type

CompileEsPlugin

src class CompileEsPlugin : CompilerStep

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

constructors

fields

closureSupport
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

closureSupport

src JsClosure closureSupport { private set }

dependOnNames

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

js

src JsWriter js { private set }

make

src new make(Compiler c)

nextUid

src Int nextUid()

podAlias

src Str podAlias(Str podName)

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

run

src virtual override Void run()

sourcemap

src SourceMap sourcemap { private set }

thisName

src Str thisName := "this"

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