sys::Obj compiler::CompilerSupport
CompilerSupport provides lots of convenience methods for classes used during the compiler pipeline.
Add a synthetic type
Void bombIfErr()
If any errors are accumulated, then throw the first one
virtual Compiler compiler()
Get the compiler.
virtual CompilerErr err(Str msg, Loc? loc := null)
Create, log, and return a CompilerErr.
CompilerErr errReport(CompilerErr e)
Log, store, and return the specified CompilerErr.
CompilerLog log()
Convenience for compiler.log
new make(Compiler compiler)
Constructor takes the associated Compiler
Bool needParameterizedCollectionCoerce(CType t)
Return if t is a parameterized collection type and the input flag coerceParameterizedCollectionTypes is set
CNamespace ns()
Convenience for compiler.ns
PodDef pod()
Convenience for compiler.pod
Remove a synthetic type
Bool suppressErr := false
CompilationUnit syntheticsUnit()
Get default compilation unit to use for synthetic definitions such as wrapper types.
TypeDef[] types()
Convenience for compiler.types
CompilationUnit[] units()
Convenience for compiler.pod.units
virtual CompilerErr warn(Str msg, Loc? loc := null)
Create, log, and return a warning CompilerErr.
compiler 1.0.82∙26-Jun-2025 Thu 13:18:36 EDT