- Index
- »
- compilerEs
- »
- JsNode
type
constructors
fields
methods
c | |
---|---|
checkJsSafety | |
curType | |
err | |
fieldToJs |
Get the name that should be used for the generated field in JS code. |
isJsType | |
isPrimitive | |
js | |
loc | |
methodParams |
generates |
methodToJs |
Get the name that should be used for the generated method in JS code. |
nameToJs |
Return the JS identifier name to use for the given Fantom name. |
node | |
qnameToJs |
Get the module-qualified name for this CType. |
resolveType | |
toLoc | |
uniqName |
return a unique id name |
warn | |
write | |
writeBlock | |
writeExpr | |
writeStmt |
Slot Details
c
Compiler c()
checkJsSafety
curType
TypeDef? curType()
err
CompilerErr err(Str msg, Loc? loc := null)
fieldToJs
isJsType
isPrimitive
js
JsWriter js()
loc
virtual Loc? loc()
make
new make(CompileEsPlugin plugin, Node? node := null)
methodParams
methodToJs
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
resolveType
toLoc
uniqName
warn
CompilerErr warn(Str msg, Loc? loc := null)
write
abstract Void write()