EnumCodeGen generates Go code from EnumDecl AST nodes. This replaces the string-based transformEnum function with proper AST-based generation.
| 9 | // EnumCodeGen generates Go code from EnumDecl AST nodes. |
| 10 | // This replaces the string-based transformEnum function with proper AST-based generation. |
| 11 | type EnumCodeGen struct { |
| 12 | buf bytes.Buffer |
| 13 | } |
| 14 | |
| 15 | // NewEnumCodeGen creates a new enum code generator. |
| 16 | func NewEnumCodeGen() *EnumCodeGen { |
nothing calls this directly
no outgoing calls
no test coverage detected