- 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
checkJsSafety
curType
err
src
CompilerErr err(Str msg, Loc? loc := null)
fieldToJs
isJsType
isPrimitive
js
loc
make
src
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
plugin
src
CompileEsPlugin plugin { private set }
pmap
qnameToJs
resolveType
toLoc
uniqName
warn
src
CompilerErr warn(Str msg, Loc? loc := null)