class compiler::CompilerOutput

sys::Obj
  compiler::CompilerOutput

Source

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)
cjs

Str? cjs

Source

esm

Str? esm

Source

js

Str? js

Source

If CompilerOutputMode.js mode, the JavaScript code string.

mode

CompilerOutputMode? mode

Source

Mode indicates the type of this output

podFile

File? podFile

Source

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

transientPod

Pod? transientPod

Source

If CompilerOutputMode.transientPod mode, this is loaded pod.