Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct { Package string // package name Dependencies map[string]string // imports (full package path => imported name) Specs []*Spec }
Generator is a generator for Enum sources
func (*Generator) GetAnnotationSymbol ¶
func (*Generator) GetAnnotationSymbol() generator.AnnotationSymbol
GetAnnotationSymbol implements generator.Generator#GetAnnotation
func (*Generator) GetFormatter ¶
GetFormatter implements generator.Generator#GetFormatter
func (*Generator) Run ¶
func (enum *Generator) Run(pkg *generator.PackageInfo, nodes []*generator.AnnotatedNode) ([]*generator.Result, error)
Run implementes generator.Generator#Run
type Spec ¶
Spec represents Enum specification
func CollectSpecs ¶
func CollectSpecs(pkg *generator.PackageInfo, nodes []*generator.AnnotatedNode) ([]*Spec, error)
CollectSpecs returns a spec list of Enum
Click to show internal directories.
Click to hide internal directories.