logo

class

compiler::CompilerSupport

sys::Obj
  compiler::CompilerSupport

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

Slots

addTypeDef

Void addTypeDef(TypeDef t)

Add a synthetic type

Source

bombIfErr

Void bombIfErr()

If any errors are accumulated, then throw the first one

Source

compiler

Compiler compiler

Source

err

virtual CompilerErr err(Str msg, Location loc)

Create, log, and return a CompilerErr.

Source

errReport

CompilerErr errReport(CompilerErr e)

Log, store, and return the specified CompilerErr.

Source

log

CompilerLog log()

Convenience for compiler.log

Source

make

new make(Compiler compiler)

Constructor takes the associated Compiler

Source

ns

CNamespace ns()

Convenience for compiler.ns

Source

pod

PodDef pod()

Convenience for compiler.pod

Source

suppressErr

Bool suppressErr := false

Source

types

TypeDef[] types()

Convenience for compiler.types

Source

units

CompilationUnit[] units()

Convenience for compiler.pod.units

Source