const classafPlastic::PlasticCompiler

sys::Obj
  afPlastic::PlasticCompiler

Compiles Fantom source code and afPlastic models into usable Fantom code.

compileCode

Source

Pod compileCode(Str fantomPodCode, Str? podName := null)

Compiles the given Fantom code into a pod. If no pod name is given, a unique one will be generated.

compileModel

Source

Type compileModel(PlasticClassModel model)

Compiles the given class model into a pod and returns the associated Fantom type.

generatePodName

Source

Str generatePodName()

Different pod names prevents "sys::Err: Duplicate pod name: <podName>". We internalise podName so we can guarantee no duplicate pod names

make

Source

new make(|This? in := null)

Creates a PlasticCompiler.

srcCodePadding

Source

const Int srcCodePadding := 5

When generating code snippets to report compilation Errs, this is the number of lines of src code the erroneous line should be padded with.