class
compiler::InitEnum
sys::Obj
compiler::CompilerSupport
compiler::CompilerStep
compiler::InitEnum
InitEnum is used to auto-generate EnumDefs into abstract syntax tree representation of the fields and method.
Slots
- addCtor
-
Void addCtor()
Add constructor or enhance existing constructor.
- addFromStr
-
Void addFromStr()
Add fromStr method.
- make
-
new make(Compiler compiler)
- makeField
-
FieldDef makeField(EnumDef def)
Make enum value field: public static final Foo name = make(ord, name)
- makeValuesField
-
FieldDef makeValuesField()
Make values field: List of Enum values
- run
-
virtual Void run()
- visitTypeDef