CompilerSupport provides lots of convenience methods for classes used during the compiler pipeline.
Slots
- addTypeDefSource
-
Add a synthetic type
- bombIfErrSource
-
Void bombIfErr()If any errors are accumulated, then throw the first one
- compilerSource
-
Compiler compiler - errSource
-
virtual CompilerErr err(Str msg, Location? loc)Create, log, and return a CompilerErr.
- errReportSource
-
CompilerErr errReport(CompilerErr e)Log, store, and return the specified CompilerErr.
- logSource
-
CompilerLog log()Convenience for compiler.log
- makeSource
-
new make(Compiler compiler)Constructor takes the associated Compiler
- nsSource
-
CNamespace ns()Convenience for compiler.ns
- podSource
-
PodDef pod()Convenience for compiler.pod
- suppressErrSource
-
Bool suppressErr := false - typesSource
-
TypeDef[] types()Convenience for compiler.types
- unitsSource
-
CompilationUnit[] units()Convenience for compiler.pod.units