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.
- 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)
- makeValsField
-
FieldDef makeValsField()Make vals field: List of Enum values
- run
-
virtual override Void run() - visitTypeDef