abstract class compilerJs::JsNode
sys::Obj compilerJs::JsNode
JsNode translates a compiler::Node into the equivalent JavaScript source code.
- isPrimitive
-
Return true if the type is a primitive type:
- Bool
- Decimal
- Float
- Int
- Num
- Str
- loc
-
Loc? loc
- make
-
new make(JsCompilerSupport support, Node? node := null)
- node
-
virtual Node? node()
- pmap
- qnameToJs
-
Return the JavaScript qname for this CType.
- support
-
JsCompilerSupport support
- vnameToJs
-
Return the JavaScript variable name for the given Fan variable name.
- write
-
abstract Void write(JsWriter out)
Write the JavaScript source code for this node.