Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Generator ¶
type Generator struct { Name string Doc string Flags flag.FlagSet Run func(*Pass) error Requires []*gqlanalysis.Analyzer Output io.Writer }
A Generator describes a code generator function and its options.
func (*Generator) ToAnalyzer ¶
func (g *Generator) ToAnalyzer() *gqlanalysis.Analyzer
ToAnalyzer converts the generator to an analyzer.
type Pass ¶
type Pass struct { Generator *Generator Schema *ast.Schema Queries []*ast.QueryDocument Comments []*gqlanalysis.Comment ResultOf map[*gqlanalysis.Analyzer]interface{} Output io.Writer // contains filtered or unexported fields }
func (*Pass) CreateTemp ¶
func (pass *Pass) CreateTemp(name string) (file io.ReadWriteSeeker, path string)
Click to show internal directories.
Click to hide internal directories.