class
compiler::InitInput
sys::Obj compiler::CompilerSupport compiler::CompilerStep compiler::InitInput
InitInput is responsible:
- verifies the CompilerInput instance
- checks the depends dir
- constructs the appropiate CNamespace
- initializes Comiler.pod with a PodDef
- tokenizes the source code from file or string input
Slots
-
private Void checkDependsDir()
If dependsDir is not null, then check it out. This is used for bootstrap to use fcode instead of reflection for dependencies.
-
private Void initDepends()
Init the compiler.depends with list of Depends
-
private Void initFiles()
Init the compiler's srcFiles and resFiles field (file mode only)
-
private Void initNamespace()
Init the compiler.ns with an appropriate CNamespace
-
private Void initPod()
Init the compiler.pod with PodDef
-
private Void initPodFacets()
Init this step's podFacets field
-
private Void initPodFacetsFileMode()
-
private Void initPodFacetsStrMode()
-
private CompilerInput input
-
private Loc loc
- makeSource
-
new make(Compiler compiler)
Constructor takes the associated Compiler
-
private PodFacetsParser? podFacets
- runSource
-
override Void run()
Overrides compiler::CompilerStep.run
Run the step
-
private Void validateInput()
Validate that all the required input fields are set.