class compiler::CompilerSupport
sys::Obj compiler::CompilerSupport
CompilerSupport provides lots of convenience methods for classes used during the compiler pipeline.
- addTypeDef
-
Add a synthetic type
- bombIfErr
-
Void bombIfErr()
If any errors are accumulated, then throw the first one
- compiler
-
virtual Compiler compiler()
Get the compiler.
- err
-
virtual CompilerErr err(Str msg, Loc? loc := null)
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
-
CNamespace ns()
Convenience for compiler.ns
- pod
-
PodDef pod()
Convenience for compiler.pod
- removeTypeDef
-
Remove a synthetic type
- suppressErr
-
Bool suppressErr := false
- syntheticsUnit
-
CompilationUnit syntheticsUnit()
Get default compilation unit to use for synthetic definitions such as wrapper types.
- types
-
TypeDef[] types()
Convenience for compiler.types
- units
-
CompilationUnit[] units()
Convenience for compiler.pod.units
- warn
-
virtual CompilerErr warn(Str msg, Loc? loc := null)
Create, log, and return a warning CompilerErr.