MCPcopy
hub / github.com/MadAppGang/dingo / EnumCodeGen

Struct EnumCodeGen

pkg/ast/enum_codegen.go:11–13  ·  view source on GitHub ↗

EnumCodeGen generates Go code from EnumDecl AST nodes. This replaces the string-based transformEnum function with proper AST-based generation.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected