
CompilerSupport provides lots of convenience methods for classes used during the compiler pipeline.
Slots
- addTypeDef
-
Add a synthetic type
- bombIfErr
-
Void bombIfErr()
If any errors are accumulated, then throw the last one
- compiler
-
Compiler compiler
- err
-
virtual CompilerErr err(Str msg, Location loc)
Create, log, and return a CompilerErr.
- errReport
-
CompilerErr errReport(CompilerErr e)
Log, store, and return the specified CompilerErr.
- log
-
CompilerLog log()
Convenience for compiler.log
- make
-
new make(Compiler compiler)
Constructor takes the associated Compiler
- ns
-
Namespace ns()
Convenience for compiler.ns
- pod
-
PodDef pod()
Convenience for compiler.pod
- types
-
TypeDef[] types()
Convenience for compiler.types
- units
-
CompilationUnit[] units()
Convenience for compiler.pod.units