class compiler::CompilerSupport

sys::Obj
  compiler::CompilerSupport

Source

CompilerSupport provides lots of convenience methods for classes used during the compiler pipeline.

addTypeDef

Void addTypeDef(TypeDef t)

Source

Add a synthetic type

bombIfErr

Void bombIfErr()

Source

If any errors are accumulated, then throw the first one

compiler

virtual Compiler compiler()

Source

Get the compiler.

err

virtual CompilerErr err(Str msg, Loc? loc := null)

Source

Create, log, and return a CompilerErr.

errReport

CompilerErr errReport(CompilerErr e)

Source

Log, store, and return the specified CompilerErr.

log

CompilerLog log()

Source

Convenience for compiler.log

make

new make(Compiler compiler)

Source

Constructor takes the associated Compiler

ns

CNamespace ns()

Source

Convenience for compiler.ns

pod

PodDef pod()

Source

Convenience for compiler.pod

removeTypeDef

Void removeTypeDef(TypeDef t)

Source

Remove a synthetic type

suppressErr

Bool suppressErr := false

Source

syntheticsUnit

CompilationUnit syntheticsUnit()

Source

Get default compilation unit to use for synthetic definitions such as wrapper types.

types

TypeDef[] types()

Source

Convenience for compiler.types

units

CompilationUnit[] units()

Source

Convenience for compiler.pod.units

warn

virtual CompilerErr warn(Str msg, Loc? loc := null)

Source

Create, log, and return a warning CompilerErr.