Fantom

 

class

compiler::CompilerOutput

sys::Obj
  compiler::CompilerOutput

CompilerOutput encapsulates the result of a compile. The compiler can output in three modes:

  • transientPod: compiles to an in-memory pod
  • podFile: compile a pod file to the file system, but don't automatically load it.
  • js: runs through frontend of compiler to build AST and generates JavaScript code (doesn't perform any backend fcode or pod generation)

Slots

jsSource

Str? js

If CompilerOutputMode.js mode, the JavaScript code string.

modeSource

CompilerOutputMode? mode

Mode indicates the type of this output

podFileSource

File? podFile

If CompilerOutputMode.podFile mode, the pod zip file written to disk.

transientPodSource

Pod? transientPod

If CompilerOutputMode.transientPod mode, this is loaded pod.