abstract class compilerEs::JsNode
sys::Obj compilerEs::JsNode
JsNode
- c
-
Compiler c()
- checkJsSafety
- curType
-
TypeDef? curType()
- err
-
CompilerErr err(Str msg, Loc? loc := null)
- fieldToJs
-
static Str fieldToJs(Obj name)
Get the name that should be used for the generated field in JS code. A field is always private so we do not need to swizzle its name.
- isJsType
- isPrimitive
- js
-
JsWriter js()
- loc
-
virtual Loc? loc()
- make
-
new make(CompileEsPlugin plugin, Node? node := null)
- methodParams
-
Str methodParams(CParam[] params)
generates
(p1, p2, ...pn)
- methodToJs
-
static Str methodToJs(Str name)
Get the name that should be used for the generated method in JS code. It turns out we don't need to swizzle method names.
- nameToJs
-
Return the JS identifier name to use for the given Fantom name. This should be used to get names for local variable declarations and method/func parameters.
Note - use fieldJs for generating field names since we have a lot of special handling for fields Note - use methodJs for generating method names
- node
-
virtual Node? node()
- plugin
-
CompileEsPlugin plugin { private set }
- pmap
- qnameToJs
-
Get the module-qualified name for this CType. If the type is in the this pod, it does not need to be qualified
- resolveType
- toLoc
- uniqName
-
return a unique id name
- warn
-
CompilerErr warn(Str msg, Loc? loc := null)
- write
-
abstract Void write()
- writeBlock
- writeExpr
- writeStmt