type

CompileEsPlugin

class CompileEsPlugin : CompilerStep

Fantom source to JavaScript source compiler - this class is plugged into the compiler pipeline by the compiler::CompileJs step.

constructors

fields

dependOnNames
js
sourcemap
thisName

The variable name that refers to "this" in the current method context

methods

nextUid
podAlias

Get the alias for this pod if one was defined in js.props, otherwise return the pod name.

run

Slot Details

dependOnNames

Str:Bool dependOnNames := [:].with() |[Obj:Obj?]->Void| { ... }

js

JsWriter js { private set }

make

new make(Compiler c)

nextUid

Int nextUid()

podAlias

Str podAlias(Str podName)

Get the alias for this pod if one was defined in js.props, otherwise return the pod name.

run

virtual override Void run()

sourcemap

SourceMap sourcemap { private set }

thisName

Str thisName := "this"

The variable name that refers to "this" in the current method context