Documentation ¶
Index ¶
- type Generator
- func (g *Generator) AddPackageImport(packageName string)
- func (g *Generator) AddPackageImportWithAlias(packageName string, importAlias string)
- func (g *Generator) GenerateFunction(fs *parse.FileSet, funcDecl *ast.FuncDeclNode, ...) error
- func (g *Generator) GenerateRawCode(rawCodeNode *ast.RawCodeNode) error
- func (g *Generator) GenerateTypecheckingFunction(funcDecl *ast.FuncDeclNode) (map[string]*ast.SubstitutionNode, error)
- func (g *Generator) Render(packageName string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
func (*Generator) AddPackageImport ¶
func (*Generator) AddPackageImportWithAlias ¶
func (*Generator) GenerateFunction ¶
func (g *Generator) GenerateFunction(fs *parse.FileSet, funcDecl *ast.FuncDeclNode, nodeTypes map[*ast.SubstitutionNode]types.Type) error
func (*Generator) GenerateRawCode ¶
func (g *Generator) GenerateRawCode(rawCodeNode *ast.RawCodeNode) error
func (*Generator) GenerateTypecheckingFunction ¶
func (g *Generator) GenerateTypecheckingFunction(funcDecl *ast.FuncDeclNode) (map[string]*ast.SubstitutionNode, error)
Click to show internal directories.
Click to hide internal directories.