JsNode translates a compiler::Node into the equivalent JavaScript source code.
Slots
- isPrimitiveSource
-
Return true if the type is a primitive type:
- Bool
- Decimal
- Float
- Int
- Num
- Str
- makeSource
-
new make(CompilerSupport support)
- pmapSource
- qnameToJsSource
-
Return the JavaScript qname for this CType.
- supportSource
-
CompilerSupport support
- thisNameSource
-
Str thisName
The name of the
this
var. - uniqueSource
-
Str unique()
Return a unique identifier name.
- vnameToJsSource
-
Return the JavaScript variable name for the given Fan variable name.
- writeSource
-
abstract Void write(JsWriter out)
Write the JavaScript source code for this node.