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
-
private Compiler c - compilerSource
-
virtual Compiler compiler()Get the compiler.
- errSource
-
virtual CompilerErr err(Str msg, Loc? 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
- removeTypeDefSource
-
Remove a synthetic type
- suppressErrSource
-
Bool suppressErr := false - syntheticsUnitSource
-
CompilationUnit syntheticsUnit()Get default compilation unit to use for synthetic definitions such as wrapper types.
- typesSource
-
TypeDef[] types()Convenience for compiler.types
- unitsSource
-
CompilationUnit[] units()Convenience for compiler.pod.units
- warnSource
-
virtual CompilerErr warn(Str msg, Loc? loc)Create, log, and return a warning CompilerErr.