Haxe API Documentation
Back |
Indextypedef haxe.macro.JSGenApi
Available in flash8, neko, js, flash, php, cpp
This is the api that is passed to the custom JS generator.
- var types : Array<Type>
- all the types that were compiled by haXe
- function setTypeAccessor(callb : Type -> String) : Void
- define the JS code that gets generated when a class or enum is accessed in a typed expression
- function setCurrentClass(c : ClassType) : Void
- select the current classe
- function quoteString(s : String) : String
- quote and escape the given string constant
- var outputFile : String
- the file in which the JS code can be generated
- var main : Null<TypedExpr>
- the main call expression, if a -main class is defined
- function isKeyword(ident : String) : Bool
- tells if the given identifier is a JS keyword
- function generateValue(e : TypedExpr) : String
- generate the JS code for a given typed expression-value
- function generateStatement(e : TypedExpr) : String
- generate the JS code for any given typed expression
- function buildMetaData(t : BaseType) : Null<TypedExpr>
- create the metadata expression for the given type
Back |
Index