W3cubDocs

/Haxe

Printer

package haxe.macro

Available on all platforms

This class provides some utility methods to convert elements from the macro context to a human-readable String representation.

Constructor

@:value({ tabString : "\t" }) new (tabString:String = "\t")

Methods

printAccess (access:Access):String

printBinop (op:Binop):String

printComplexType (ct:ComplexType):String

printConstant (c:Constant):String

printExpr (e:Expr):String

printExprs (el:Array<Expr>, sep:String):String

printField (field:Field):String

printFormatString (s:String):String

printFunction (func:Function):String

printFunctionArg (arg:FunctionArg):String

printMetadata (meta:MetadataEntry):String

printString (s:String):String

@:value({ printPackage : true }) printTypeDefinition (t:TypeDefinition, printPackage:Bool = true):String

printTypeParam (param:TypeParam):String

printTypeParamDecl (tpd:TypeParamDecl):String

printTypePath (tp:TypePath):String

printUnop (op:Unop):String

printVar (v:Var):String

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/haxe/macro/Printer.html