abstract class fanc::TranspileCmd
sys::Obj util::AbstractMain fanc::FancCmd fanc::TranspileCmd
Base class for transpiler commands
- buildScriptMap
-
Map of pod name to build scripts for environment
- compilePod
-
virtual Void compilePod(TranspilePod pod)Compile build script into AST
- compiler
-
Compiler? compilerCompiler for current pod
- flattenPods
-
Void flattenPods()Expand command line pod names to their full dependency chain. We require all podNames to be pre-compiled using normal Fantom compilation
- genPod
-
virtual Void genPod(PodDef pod)Generate pod which calls genType for each non-synthetic
- genType
-
virtual Void genType(TypeDef type)Generate non-synthetic type
- init
-
virtual Void init()Standard initializaton
- outDir
- podNames
- pods
-
TranspilePod[] pods := TranspilePod[,]Pod data with flattened dependency chain
- run
-
override Int run()Call compilePod on every target
- stdCompilerInput
-
virtual CompilerInput stdCompilerInput(TranspilePod pod, |CompilerInput|? f := null)Use the build script to generate the standard compiler input and then inovke the callback on it for additonal configuration.
- transpile
-
virtual Int transpile()Delete outDir and run compilePod on all pods