Documentation ¶
Index ¶
- func Print(ast common.INode, simple bool)
- func RunGobRegister()
- func RunReturnable(tree common.INode) common.INode
- func RunTemplateGenerator(tree common.INode, templates *Templates)
- func RunTemplateLoader(tree common.INode, templates *Templates)
- func RunTemplateParse(file *common.File, templates *Templates)
- func RunTemplateReplace(tree common.INode, typeSrc []string, typeDest []string) common.INode
- func RunTemplateUsage(file *common.File, templates *Templates)
- func TypeCheck(ast common.INode)
- type AstWalker
- type Desugar
- type FuncSig
- type Printer
- type Returnable
- type Scope
- type Stack
- type Template
- type TemplateGenerator
- type TemplateParse
- type TemplateReplace
- type TemplateSerie
- type TemplateUsage
- type Templates
- type TypeChecker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunGobRegister ¶
func RunGobRegister()
func RunTemplateGenerator ¶ added in v0.7.1
func RunTemplateLoader ¶ added in v0.7.2
func RunTemplateParse ¶ added in v0.7.1
func RunTemplateReplace ¶ added in v0.7.2
func RunTemplateUsage ¶ added in v0.7.1
Types ¶
type AstWalker ¶
type AstWalker struct {
// contains filtered or unexported fields
}
type Desugar ¶
type Desugar struct {
Templates *Templates
}
func NewDesugar ¶
func NewDesugar() *Desugar
type FuncSig ¶
type FuncSig struct {
// contains filtered or unexported fields
}
func NewFuncSig ¶
func NewFuncSig() *FuncSig
type Returnable ¶ added in v0.7.1
type Template ¶
type Template struct { Name string Pack string Types []string UsedFor [][]string GeneratedFor map[string][]string Node common.INode }
func NewTemplate ¶ added in v0.7.1
func (*Template) AddGeneratedFor ¶ added in v0.7.1
func (*Template) AddUsedFor ¶ added in v0.7.1
type TemplateGenerator ¶ added in v0.7.1
func (*TemplateGenerator) GenerateStruct ¶ added in v0.7.1
func (this *TemplateGenerator) GenerateStruct(template *Template)
func (*TemplateGenerator) GenerateTemplates ¶ added in v0.7.2
func (this *TemplateGenerator) GenerateTemplates(templates *Templates)
func (*TemplateGenerator) GenerateTopFns ¶ added in v0.7.1
func (this *TemplateGenerator) GenerateTopFns(template *Template)
type TemplateParse ¶ added in v0.7.1
type TemplateParse struct { AstWalker Root common.INode Package string Templates *Templates ImportName string }
func (*TemplateParse) Signature ¶ added in v0.7.1
func (this *TemplateParse) Signature(n common.INode) common.INode
func (*TemplateParse) StructType ¶ added in v0.7.1
func (this *TemplateParse) StructType(n common.INode) common.INode
type TemplateReplace ¶ added in v0.7.2
type TemplateReplace struct { AstWalker // contains filtered or unexported fields }
type TemplateSerie ¶ added in v0.7.2
type TemplateUsage ¶ added in v0.7.1
type TemplateUsage struct { AstWalker File *common.File Root common.INode Package string Templates *Templates }
func (*TemplateUsage) Arguments ¶ added in v0.7.1
func (this *TemplateUsage) Arguments(n common.INode) common.INode
func (*TemplateUsage) CompositeLit ¶ added in v0.7.1
func (this *TemplateUsage) CompositeLit(n common.INode) common.INode
type Templates ¶
func NewTemplates ¶ added in v0.7.1
func NewTemplates() *Templates
func (Templates) ResetUsedFor ¶ added in v0.7.1
func (this Templates) ResetUsedFor()
type TypeChecker ¶
type TypeChecker struct { AstWalker // contains filtered or unexported fields }
func (*TypeChecker) AfterBlock ¶
func (this *TypeChecker) AfterBlock(n common.INode)
func (*TypeChecker) Assignment ¶
func (this *TypeChecker) Assignment(n common.INode) common.INode
func (*TypeChecker) BeforeBlock ¶
func (this *TypeChecker) BeforeBlock(n common.INode)
Click to show internal directories.
Click to hide internal directories.