logo

class

compiler::CheckParamDefs

sys::Obj
  compiler::CompilerSupport
    compiler::CompilerStep
      compiler::CheckParamDefs

CheckParamDefs is used to process all the parameter default expressions for all the methods. What we are looking for is default expressions which use default expressions before it which require us to insert a store instruction.

Slots

make

new make(Compiler compiler)

Source

name

Str name

Source

run

override Void run()

Run the step

Source

used

Bool used

Source

usedInSuccDef

Bool usedInSuccDef(ParamDef[] params, Int index)

Source

visitExpr

override Expr visitExpr(Expr expr)

Call to visit an expression. Return expr or a new expression if doing a replacement for the expression in the abstract syntax tree.

Source

visitMethodDef

override Void visitMethodDef(MethodDef m)

Callback when visiting a method.

Source