Documentation ¶
Index ¶
- func BlockStmtToExpr(node *ast.BlockStmt) ast.Expr
- func ToBasicLit(x Ast) *ast.BasicLit
- func ToBlockStmt(x Ast) *ast.BlockStmt
- func ToCallExpr(x Ast) *ast.CallExpr
- func ToDecl(x Ast) ast.Decl
- func ToExpr(x Ast) ast.Expr
- func ToExprSlice(x Ast) []ast.Expr
- func ToField(x Ast) *ast.Field
- func ToFieldList(x Ast) *ast.FieldList
- func ToFile(x Ast) *ast.File
- func ToFuncType(x Ast) *ast.FuncType
- func ToIdent(x Ast) *ast.Ident
- func ToIdentSlice(x Ast) []*ast.Ident
- func ToImportSpec(x Ast) *ast.ImportSpec
- func ToNode(x Ast) ast.Node
- func ToNodes(x Ast) []ast.Node
- func ToNodesAppend(dst []ast.Node, x Ast) []ast.Node
- func ToSpec(x Ast) ast.Spec
- func ToStmt(x Ast) ast.Stmt
- func ToStmtSlice(x Ast) []ast.Stmt
- type ArrayType
- type AssignStmt
- type Ast
- type AstSlice
- func (x AstSlice) Append(child Ast) AstWithSlice
- func (x AstSlice) Get(i int) Ast
- func (x AstSlice) Interface() interface{}
- func (x AstSlice) New() Ast
- func (x AstSlice) Op() token.Token
- func (x AstSlice) Set(i int, child Ast)
- func (x AstSlice) Size() int
- func (x AstSlice) Slice(lo, hi int) AstWithSlice
- type AstWithNode
- func AnyToAstWithNode(any interface{}, caller interface{}) AstWithNode
- func ToAst(node ast.Node) AstWithNode
- func ToAst1(i int, node ast.Node) AstWithNode
- func ToAst2(i int, n0 ast.Node, n1 ast.Node) AstWithNode
- func ToAst3(i int, n0 ast.Node, n1 ast.Node, n2 *ast.BlockStmt) AstWithNode
- func ToAst4(i int, n0 ast.Node, n1 ast.Node, n2 ast.Node, n3 ast.Node) AstWithNode
- type AstWithNode_github_com_cosmos72_gomacro_ast2
- func (Proxy *AstWithNode_github_com_cosmos72_gomacro_ast2) Get(i int) Ast
- func (Proxy *AstWithNode_github_com_cosmos72_gomacro_ast2) Interface() interface{}
- func (Proxy *AstWithNode_github_com_cosmos72_gomacro_ast2) New() Ast
- func (Proxy *AstWithNode_github_com_cosmos72_gomacro_ast2) Node() ast.Node
- func (Proxy *AstWithNode_github_com_cosmos72_gomacro_ast2) Op() token.Token
- func (Proxy *AstWithNode_github_com_cosmos72_gomacro_ast2) Set(i int, child Ast)
- func (Proxy *AstWithNode_github_com_cosmos72_gomacro_ast2) Size() int
- type AstWithSlice
- type AstWithSlice_github_com_cosmos72_gomacro_ast2
- func (Proxy *AstWithSlice_github_com_cosmos72_gomacro_ast2) Append(child Ast) AstWithSlice
- func (Proxy *AstWithSlice_github_com_cosmos72_gomacro_ast2) Get(i int) Ast
- func (Proxy *AstWithSlice_github_com_cosmos72_gomacro_ast2) Interface() interface{}
- func (Proxy *AstWithSlice_github_com_cosmos72_gomacro_ast2) New() Ast
- func (Proxy *AstWithSlice_github_com_cosmos72_gomacro_ast2) Op() token.Token
- func (Proxy *AstWithSlice_github_com_cosmos72_gomacro_ast2) Set(i int, child Ast)
- func (Proxy *AstWithSlice_github_com_cosmos72_gomacro_ast2) Size() int
- func (Proxy *AstWithSlice_github_com_cosmos72_gomacro_ast2) Slice(lo int, hi int) AstWithSlice
- type Ast_github_com_cosmos72_gomacro_ast2
- func (Proxy *Ast_github_com_cosmos72_gomacro_ast2) Get(i int) Ast
- func (Proxy *Ast_github_com_cosmos72_gomacro_ast2) Interface() interface{}
- func (Proxy *Ast_github_com_cosmos72_gomacro_ast2) New() Ast
- func (Proxy *Ast_github_com_cosmos72_gomacro_ast2) Op() token.Token
- func (Proxy *Ast_github_com_cosmos72_gomacro_ast2) Set(i int, child Ast)
- func (Proxy *Ast_github_com_cosmos72_gomacro_ast2) Size() int
- type BadDecl
- type BadExpr
- type BadStmt
- type BasicLit
- type BinaryExpr
- type BlockStmt
- func (x BlockStmt) Append(child Ast) AstWithSlice
- func (x BlockStmt) Get(i int) Ast
- func (x BlockStmt) Interface() interface{}
- func (x BlockStmt) New() Ast
- func (x BlockStmt) Node() ast.Node
- func (x BlockStmt) Op() token.Token
- func (x BlockStmt) Set(i int, child Ast)
- func (x BlockStmt) Size() int
- func (x BlockStmt) Slice(lo, hi int) AstWithSlice
- type BranchStmt
- type CallExpr
- type CaseClause
- type ChanType
- type CommClause
- type CompositeLit
- type DeclSlice
- func (x DeclSlice) Append(child Ast) AstWithSlice
- func (x DeclSlice) Get(i int) Ast
- func (x DeclSlice) Interface() interface{}
- func (x DeclSlice) New() Ast
- func (x DeclSlice) Op() token.Token
- func (x DeclSlice) Set(i int, child Ast)
- func (x DeclSlice) Size() int
- func (x DeclSlice) Slice(lo, hi int) AstWithSlice
- type DeclStmt
- type DeferStmt
- type Ellipsis
- type EmptyStmt
- type ExprSlice
- func (x ExprSlice) Append(child Ast) AstWithSlice
- func (x ExprSlice) Get(i int) Ast
- func (x ExprSlice) Interface() interface{}
- func (x ExprSlice) New() Ast
- func (x ExprSlice) Op() token.Token
- func (x ExprSlice) Set(i int, child Ast)
- func (x ExprSlice) Size() int
- func (x ExprSlice) Slice(lo, hi int) AstWithSlice
- type ExprStmt
- type Field
- type FieldList
- func (x FieldList) Append(child Ast) AstWithSlice
- func (x FieldList) Get(i int) Ast
- func (x FieldList) Interface() interface{}
- func (x FieldList) New() Ast
- func (x FieldList) Node() ast.Node
- func (x FieldList) Op() token.Token
- func (x FieldList) Set(i int, child Ast)
- func (x FieldList) Size() int
- func (x FieldList) Slice(lo, hi int) AstWithSlice
- type FieldSlice
- func (x FieldSlice) Append(child Ast) AstWithSlice
- func (x FieldSlice) Get(i int) Ast
- func (x FieldSlice) Interface() interface{}
- func (x FieldSlice) New() Ast
- func (x FieldSlice) Op() token.Token
- func (x FieldSlice) Set(i int, child Ast)
- func (x FieldSlice) Size() int
- func (x FieldSlice) Slice(lo, hi int) AstWithSlice
- type File
- func (x File) Append(child Ast) AstWithSlice
- func (x File) Get(i int) Ast
- func (x File) Interface() interface{}
- func (x File) New() Ast
- func (x File) Node() ast.Node
- func (x File) Op() token.Token
- func (x File) Set(i int, child Ast)
- func (x File) Size() int
- func (x File) Slice(lo, hi int) AstWithSlice
- type ForStmt
- type FuncDecl
- type FuncLit
- type FuncType
- type GenDecl
- func (x GenDecl) Append(child Ast) AstWithSlice
- func (x GenDecl) Get(i int) Ast
- func (x GenDecl) Interface() interface{}
- func (x GenDecl) New() Ast
- func (x GenDecl) Node() ast.Node
- func (x GenDecl) Op() token.Token
- func (x GenDecl) Set(i int, child Ast)
- func (x GenDecl) Size() int
- func (x GenDecl) Slice(lo, hi int) AstWithSlice
- type GoStmt
- type Ident
- type IdentSlice
- func (x IdentSlice) Append(child Ast) AstWithSlice
- func (x IdentSlice) Get(i int) Ast
- func (x IdentSlice) Interface() interface{}
- func (x IdentSlice) New() Ast
- func (x IdentSlice) Op() token.Token
- func (x IdentSlice) Set(i int, child Ast)
- func (x IdentSlice) Size() int
- func (x IdentSlice) Slice(lo, hi int) AstWithSlice
- type IfStmt
- type ImportSpec
- type IncDecStmt
- type IndexExpr
- type InterfaceType
- type KeyValueExpr
- type LabeledStmt
- type MapType
- type NodeSlice
- func (x NodeSlice) Append(child Ast) AstWithSlice
- func (x NodeSlice) Get(i int) Ast
- func (x NodeSlice) Interface() interface{}
- func (x NodeSlice) New() Ast
- func (x NodeSlice) Op() token.Token
- func (x NodeSlice) Set(i int, child Ast)
- func (x NodeSlice) Size() int
- func (x NodeSlice) Slice(lo, hi int) AstWithSlice
- type Package
- type ParenExpr
- type RangeStmt
- type ReturnStmt
- func (x ReturnStmt) Append(child Ast) AstWithSlice
- func (x ReturnStmt) Get(i int) Ast
- func (x ReturnStmt) Interface() interface{}
- func (x ReturnStmt) New() Ast
- func (x ReturnStmt) Node() ast.Node
- func (x ReturnStmt) Op() token.Token
- func (x ReturnStmt) Set(i int, child Ast)
- func (x ReturnStmt) Size() int
- func (x ReturnStmt) Slice(lo, hi int) AstWithSlice
- type SelectStmt
- type SelectorExpr
- type SendStmt
- type SliceExpr
- type SpecSlice
- func (x SpecSlice) Append(child Ast) AstWithSlice
- func (x SpecSlice) Get(i int) Ast
- func (x SpecSlice) Interface() interface{}
- func (x SpecSlice) New() Ast
- func (x SpecSlice) Op() token.Token
- func (x SpecSlice) Set(i int, child Ast)
- func (x SpecSlice) Size() int
- func (x SpecSlice) Slice(lo, hi int) AstWithSlice
- type StarExpr
- type StmtSlice
- func (x StmtSlice) Append(child Ast) AstWithSlice
- func (x StmtSlice) Get(i int) Ast
- func (x StmtSlice) Interface() interface{}
- func (x StmtSlice) New() Ast
- func (x StmtSlice) Op() token.Token
- func (x StmtSlice) Set(i int, child Ast)
- func (x StmtSlice) Size() int
- func (x StmtSlice) Slice(lo, hi int) AstWithSlice
- type StructType
- type SwitchStmt
- type TypeAssertExpr
- type TypeSpec
- type TypeSwitchStmt
- type UnaryExpr
- type ValueSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToBasicLit ¶
func ToBlockStmt ¶
func ToCallExpr ¶
func ToExprSlice ¶
func ToFieldList ¶
func ToFuncType ¶
func ToIdentSlice ¶
func ToImportSpec ¶
func ToImportSpec(x Ast) *ast.ImportSpec
func ToNode ¶
ToNode converts Ast back ast.Node, or panics on failure (it fails if the argument is not AstWithNode)
func ToStmtSlice ¶
Types ¶
type ArrayType ¶
func (ArrayType) Interface ¶
func (x ArrayType) Interface() interface{}
.................. functions Interface() interface{}
type AssignStmt ¶
type AssignStmt struct{ X *ast.AssignStmt }
func (AssignStmt) Get ¶
func (x AssignStmt) Get(i int) Ast
func (AssignStmt) Interface ¶
func (x AssignStmt) Interface() interface{}
func (AssignStmt) New ¶
func (x AssignStmt) New() Ast
func (AssignStmt) Node ¶
func (x AssignStmt) Node() ast.Node
func (AssignStmt) Op ¶
func (x AssignStmt) Op() token.Token
func (AssignStmt) Set ¶
func (x AssignStmt) Set(i int, child Ast)
func (AssignStmt) Size ¶
func (x AssignStmt) Size() int
type Ast ¶
type AstSlice ¶
type AstSlice struct{ X []Ast }
func (AstSlice) Append ¶
func (x AstSlice) Append(child Ast) AstWithSlice
func (AstSlice) Slice ¶
func (x AstSlice) Slice(lo, hi int) AstWithSlice
type AstWithNode ¶
func AnyToAstWithNode ¶
func AnyToAstWithNode(any interface{}, caller interface{}) AstWithNode
func ToAst ¶
func ToAst(node ast.Node) AstWithNode
ToAst converts an ast.Node to Ast, providing uniform access to the node contents
func ToAst1 ¶
func ToAst1(i int, node ast.Node) AstWithNode
ToAst2 returns either n0 (if i == 0) or n1, converted to Ast
type AstWithNode_github_com_cosmos72_gomacro_ast2 ¶
type AstWithNode_github_com_cosmos72_gomacro_ast2 struct { Object interface{} Get_ func(i int) Ast Interface_ func() interface{} New_ func() Ast Node_ func() ast.Node Op_ func() token.Token Set_ func(i int, child Ast) Size_ func() int }
--------------- proxy for github.com/cosmos72/gomacro/ast2.AstWithNode ---------------
func (*AstWithNode_github_com_cosmos72_gomacro_ast2) Get ¶
func (Proxy *AstWithNode_github_com_cosmos72_gomacro_ast2) Get(i int) Ast
func (*AstWithNode_github_com_cosmos72_gomacro_ast2) Interface ¶
func (Proxy *AstWithNode_github_com_cosmos72_gomacro_ast2) Interface() interface{}
func (*AstWithNode_github_com_cosmos72_gomacro_ast2) New ¶
func (Proxy *AstWithNode_github_com_cosmos72_gomacro_ast2) New() Ast
func (*AstWithNode_github_com_cosmos72_gomacro_ast2) Node ¶
func (Proxy *AstWithNode_github_com_cosmos72_gomacro_ast2) Node() ast.Node
func (*AstWithNode_github_com_cosmos72_gomacro_ast2) Op ¶
func (Proxy *AstWithNode_github_com_cosmos72_gomacro_ast2) Op() token.Token
func (*AstWithNode_github_com_cosmos72_gomacro_ast2) Set ¶
func (Proxy *AstWithNode_github_com_cosmos72_gomacro_ast2) Set(i int, child Ast)
func (*AstWithNode_github_com_cosmos72_gomacro_ast2) Size ¶
func (Proxy *AstWithNode_github_com_cosmos72_gomacro_ast2) Size() int
type AstWithSlice ¶
type AstWithSlice interface { Ast Slice(lo, hi int) AstWithSlice Append(child Ast) AstWithSlice }
func AnyToAstWithSlice ¶
func AnyToAstWithSlice(any interface{}, caller interface{}) AstWithSlice
func ToAstWithSlice ¶
func ToAstWithSlice(x Ast, caller interface{}) AstWithSlice
type AstWithSlice_github_com_cosmos72_gomacro_ast2 ¶
type AstWithSlice_github_com_cosmos72_gomacro_ast2 struct { Object interface{} Append_ func(child Ast) AstWithSlice Get_ func(i int) Ast Interface_ func() interface{} New_ func() Ast Op_ func() token.Token Set_ func(i int, child Ast) Size_ func() int Slice_ func(lo int, hi int) AstWithSlice }
--------------- proxy for github.com/cosmos72/gomacro/ast2.AstWithSlice ---------------
func (*AstWithSlice_github_com_cosmos72_gomacro_ast2) Append ¶
func (Proxy *AstWithSlice_github_com_cosmos72_gomacro_ast2) Append(child Ast) AstWithSlice
func (*AstWithSlice_github_com_cosmos72_gomacro_ast2) Get ¶
func (Proxy *AstWithSlice_github_com_cosmos72_gomacro_ast2) Get(i int) Ast
func (*AstWithSlice_github_com_cosmos72_gomacro_ast2) Interface ¶
func (Proxy *AstWithSlice_github_com_cosmos72_gomacro_ast2) Interface() interface{}
func (*AstWithSlice_github_com_cosmos72_gomacro_ast2) New ¶
func (Proxy *AstWithSlice_github_com_cosmos72_gomacro_ast2) New() Ast
func (*AstWithSlice_github_com_cosmos72_gomacro_ast2) Op ¶
func (Proxy *AstWithSlice_github_com_cosmos72_gomacro_ast2) Op() token.Token
func (*AstWithSlice_github_com_cosmos72_gomacro_ast2) Set ¶
func (Proxy *AstWithSlice_github_com_cosmos72_gomacro_ast2) Set(i int, child Ast)
func (*AstWithSlice_github_com_cosmos72_gomacro_ast2) Size ¶
func (Proxy *AstWithSlice_github_com_cosmos72_gomacro_ast2) Size() int
func (*AstWithSlice_github_com_cosmos72_gomacro_ast2) Slice ¶
func (Proxy *AstWithSlice_github_com_cosmos72_gomacro_ast2) Slice(lo int, hi int) AstWithSlice
type Ast_github_com_cosmos72_gomacro_ast2 ¶
type Ast_github_com_cosmos72_gomacro_ast2 struct { Object interface{} Get_ func(i int) Ast Interface_ func() interface{} New_ func() Ast Op_ func() token.Token Set_ func(i int, child Ast) Size_ func() int }
--------------- proxy for github.com/cosmos72/gomacro/ast2.Ast ---------------
func (*Ast_github_com_cosmos72_gomacro_ast2) Get ¶
func (Proxy *Ast_github_com_cosmos72_gomacro_ast2) Get(i int) Ast
func (*Ast_github_com_cosmos72_gomacro_ast2) Interface ¶
func (Proxy *Ast_github_com_cosmos72_gomacro_ast2) Interface() interface{}
func (*Ast_github_com_cosmos72_gomacro_ast2) New ¶
func (Proxy *Ast_github_com_cosmos72_gomacro_ast2) New() Ast
func (*Ast_github_com_cosmos72_gomacro_ast2) Op ¶
func (Proxy *Ast_github_com_cosmos72_gomacro_ast2) Op() token.Token
func (*Ast_github_com_cosmos72_gomacro_ast2) Set ¶
func (Proxy *Ast_github_com_cosmos72_gomacro_ast2) Set(i int, child Ast)
func (*Ast_github_com_cosmos72_gomacro_ast2) Size ¶
func (Proxy *Ast_github_com_cosmos72_gomacro_ast2) Size() int
type BinaryExpr ¶
type BinaryExpr struct{ X *ast.BinaryExpr }
func (BinaryExpr) Get ¶
func (x BinaryExpr) Get(i int) Ast
func (BinaryExpr) Interface ¶
func (x BinaryExpr) Interface() interface{}
func (BinaryExpr) New ¶
func (x BinaryExpr) New() Ast
func (BinaryExpr) Node ¶
func (x BinaryExpr) Node() ast.Node
func (BinaryExpr) Op ¶
func (x BinaryExpr) Op() token.Token
func (BinaryExpr) Set ¶
func (x BinaryExpr) Set(i int, child Ast)
func (BinaryExpr) Size ¶
func (x BinaryExpr) Size() int
type BlockStmt ¶
func (BlockStmt) Append ¶
func (x BlockStmt) Append(child Ast) AstWithSlice
func (BlockStmt) Slice ¶
func (x BlockStmt) Slice(lo, hi int) AstWithSlice
type BranchStmt ¶
type BranchStmt struct{ X *ast.BranchStmt }
func (BranchStmt) Get ¶
func (x BranchStmt) Get(i int) Ast
func (BranchStmt) Interface ¶
func (x BranchStmt) Interface() interface{}
func (BranchStmt) New ¶
func (x BranchStmt) New() Ast
func (BranchStmt) Node ¶
func (x BranchStmt) Node() ast.Node
func (BranchStmt) Op ¶
func (x BranchStmt) Op() token.Token
func (BranchStmt) Set ¶
func (x BranchStmt) Set(i int, child Ast)
func (BranchStmt) Size ¶
func (x BranchStmt) Size() int
type CaseClause ¶
type CaseClause struct{ X *ast.CaseClause }
func (CaseClause) Get ¶
func (x CaseClause) Get(i int) Ast
func (CaseClause) Interface ¶
func (x CaseClause) Interface() interface{}
func (CaseClause) New ¶
func (x CaseClause) New() Ast
func (CaseClause) Node ¶
func (x CaseClause) Node() ast.Node
func (CaseClause) Op ¶
func (x CaseClause) Op() token.Token
func (CaseClause) Set ¶
func (x CaseClause) Set(i int, child Ast)
func (CaseClause) Size ¶
func (x CaseClause) Size() int
type CommClause ¶
type CommClause struct{ X *ast.CommClause }
func (CommClause) Get ¶
func (x CommClause) Get(i int) Ast
func (CommClause) Interface ¶
func (x CommClause) Interface() interface{}
func (CommClause) New ¶
func (x CommClause) New() Ast
func (CommClause) Node ¶
func (x CommClause) Node() ast.Node
func (CommClause) Op ¶
func (x CommClause) Op() token.Token
func (CommClause) Set ¶
func (x CommClause) Set(i int, child Ast)
func (CommClause) Size ¶
func (x CommClause) Size() int
type CompositeLit ¶
type CompositeLit struct{ X *ast.CompositeLit }
func (CompositeLit) Get ¶
func (x CompositeLit) Get(i int) Ast
func (CompositeLit) Interface ¶
func (x CompositeLit) Interface() interface{}
func (CompositeLit) New ¶
func (x CompositeLit) New() Ast
func (CompositeLit) Node ¶
func (x CompositeLit) Node() ast.Node
func (CompositeLit) Op ¶
func (x CompositeLit) Op() token.Token
func (CompositeLit) Set ¶
func (x CompositeLit) Set(i int, child Ast)
func (CompositeLit) Size ¶
func (x CompositeLit) Size() int
type DeclSlice ¶
func (DeclSlice) Append ¶
func (x DeclSlice) Append(child Ast) AstWithSlice
func (DeclSlice) Slice ¶
func (x DeclSlice) Slice(lo, hi int) AstWithSlice
type ExprSlice ¶
func (ExprSlice) Append ¶
func (x ExprSlice) Append(child Ast) AstWithSlice
func (ExprSlice) Slice ¶
func (x ExprSlice) Slice(lo, hi int) AstWithSlice
type FieldList ¶
func (FieldList) Append ¶
func (x FieldList) Append(child Ast) AstWithSlice
func (FieldList) Slice ¶
func (x FieldList) Slice(lo, hi int) AstWithSlice
type FieldSlice ¶
func (FieldSlice) Append ¶
func (x FieldSlice) Append(child Ast) AstWithSlice
func (FieldSlice) Get ¶
func (x FieldSlice) Get(i int) Ast
func (FieldSlice) Interface ¶
func (x FieldSlice) Interface() interface{}
func (FieldSlice) New ¶
func (x FieldSlice) New() Ast
func (FieldSlice) Op ¶
func (x FieldSlice) Op() token.Token
func (FieldSlice) Set ¶
func (x FieldSlice) Set(i int, child Ast)
func (FieldSlice) Size ¶
func (x FieldSlice) Size() int
func (FieldSlice) Slice ¶
func (x FieldSlice) Slice(lo, hi int) AstWithSlice
type File ¶
func (File) Append ¶
func (x File) Append(child Ast) AstWithSlice
func (File) Slice ¶
func (x File) Slice(lo, hi int) AstWithSlice
type GenDecl ¶
func (GenDecl) Append ¶
func (x GenDecl) Append(child Ast) AstWithSlice
func (GenDecl) Slice ¶
func (x GenDecl) Slice(lo, hi int) AstWithSlice
type IdentSlice ¶
func (IdentSlice) Append ¶
func (x IdentSlice) Append(child Ast) AstWithSlice
func (IdentSlice) Get ¶
func (x IdentSlice) Get(i int) Ast
func (IdentSlice) Interface ¶
func (x IdentSlice) Interface() interface{}
func (IdentSlice) New ¶
func (x IdentSlice) New() Ast
func (IdentSlice) Op ¶
func (x IdentSlice) Op() token.Token
func (IdentSlice) Set ¶
func (x IdentSlice) Set(i int, child Ast)
func (IdentSlice) Size ¶
func (x IdentSlice) Size() int
func (IdentSlice) Slice ¶
func (x IdentSlice) Slice(lo, hi int) AstWithSlice
type ImportSpec ¶
type ImportSpec struct{ X *ast.ImportSpec }
func (ImportSpec) Get ¶
func (x ImportSpec) Get(i int) Ast
func (ImportSpec) Interface ¶
func (x ImportSpec) Interface() interface{}
func (ImportSpec) New ¶
func (x ImportSpec) New() Ast
func (ImportSpec) Node ¶
func (x ImportSpec) Node() ast.Node
func (ImportSpec) Op ¶
func (x ImportSpec) Op() token.Token
func (ImportSpec) Set ¶
func (x ImportSpec) Set(i int, child Ast)
func (ImportSpec) Size ¶
func (x ImportSpec) Size() int
type IncDecStmt ¶
type IncDecStmt struct{ X *ast.IncDecStmt }
func (IncDecStmt) Get ¶
func (x IncDecStmt) Get(i int) Ast
func (IncDecStmt) Interface ¶
func (x IncDecStmt) Interface() interface{}
func (IncDecStmt) New ¶
func (x IncDecStmt) New() Ast
func (IncDecStmt) Node ¶
func (x IncDecStmt) Node() ast.Node
func (IncDecStmt) Op ¶
func (x IncDecStmt) Op() token.Token
func (IncDecStmt) Set ¶
func (x IncDecStmt) Set(i int, child Ast)
func (IncDecStmt) Size ¶
func (x IncDecStmt) Size() int
type InterfaceType ¶
type InterfaceType struct{ X *ast.InterfaceType }
func (InterfaceType) Get ¶
func (x InterfaceType) Get(i int) Ast
func (InterfaceType) Interface ¶
func (x InterfaceType) Interface() interface{}
func (InterfaceType) New ¶
func (x InterfaceType) New() Ast
func (InterfaceType) Node ¶
func (x InterfaceType) Node() ast.Node
func (InterfaceType) Op ¶
func (x InterfaceType) Op() token.Token
func (InterfaceType) Set ¶
func (x InterfaceType) Set(i int, child Ast)
func (InterfaceType) Size ¶
func (x InterfaceType) Size() int
type KeyValueExpr ¶
type KeyValueExpr struct{ X *ast.KeyValueExpr }
func (KeyValueExpr) Get ¶
func (x KeyValueExpr) Get(i int) Ast
func (KeyValueExpr) Interface ¶
func (x KeyValueExpr) Interface() interface{}
func (KeyValueExpr) New ¶
func (x KeyValueExpr) New() Ast
func (KeyValueExpr) Node ¶
func (x KeyValueExpr) Node() ast.Node
func (KeyValueExpr) Op ¶
func (x KeyValueExpr) Op() token.Token
func (KeyValueExpr) Set ¶
func (x KeyValueExpr) Set(i int, child Ast)
func (KeyValueExpr) Size ¶
func (x KeyValueExpr) Size() int
type LabeledStmt ¶
type LabeledStmt struct{ X *ast.LabeledStmt }
func (LabeledStmt) Get ¶
func (x LabeledStmt) Get(i int) Ast
func (LabeledStmt) Interface ¶
func (x LabeledStmt) Interface() interface{}
func (LabeledStmt) New ¶
func (x LabeledStmt) New() Ast
func (LabeledStmt) Node ¶
func (x LabeledStmt) Node() ast.Node
func (LabeledStmt) Op ¶
func (x LabeledStmt) Op() token.Token
func (LabeledStmt) Set ¶
func (x LabeledStmt) Set(i int, child Ast)
func (LabeledStmt) Size ¶
func (x LabeledStmt) Size() int
type NodeSlice ¶
func (NodeSlice) Append ¶
func (x NodeSlice) Append(child Ast) AstWithSlice
func (NodeSlice) Slice ¶
func (x NodeSlice) Slice(lo, hi int) AstWithSlice
type ReturnStmt ¶
type ReturnStmt struct{ X *ast.ReturnStmt }
func (ReturnStmt) Append ¶
func (x ReturnStmt) Append(child Ast) AstWithSlice
func (ReturnStmt) Get ¶
func (x ReturnStmt) Get(i int) Ast
func (ReturnStmt) Interface ¶
func (x ReturnStmt) Interface() interface{}
func (ReturnStmt) New ¶
func (x ReturnStmt) New() Ast
do not copy position of "return" keyword. otherwise go/format may insert a newline between "return" and the following expressions
func (ReturnStmt) Node ¶
func (x ReturnStmt) Node() ast.Node
func (ReturnStmt) Op ¶
func (x ReturnStmt) Op() token.Token
func (ReturnStmt) Set ¶
func (x ReturnStmt) Set(i int, child Ast)
func (ReturnStmt) Size ¶
func (x ReturnStmt) Size() int
func (ReturnStmt) Slice ¶
func (x ReturnStmt) Slice(lo, hi int) AstWithSlice
type SelectStmt ¶
type SelectStmt struct{ X *ast.SelectStmt }
func (SelectStmt) Get ¶
func (x SelectStmt) Get(i int) Ast
func (SelectStmt) Interface ¶
func (x SelectStmt) Interface() interface{}
func (SelectStmt) New ¶
func (x SelectStmt) New() Ast
func (SelectStmt) Node ¶
func (x SelectStmt) Node() ast.Node
func (SelectStmt) Op ¶
func (x SelectStmt) Op() token.Token
func (SelectStmt) Set ¶
func (x SelectStmt) Set(i int, child Ast)
func (SelectStmt) Size ¶
func (x SelectStmt) Size() int
type SelectorExpr ¶
type SelectorExpr struct{ X *ast.SelectorExpr }
func (SelectorExpr) Get ¶
func (x SelectorExpr) Get(i int) Ast
func (SelectorExpr) Interface ¶
func (x SelectorExpr) Interface() interface{}
func (SelectorExpr) New ¶
func (x SelectorExpr) New() Ast
func (SelectorExpr) Node ¶
func (x SelectorExpr) Node() ast.Node
func (SelectorExpr) Op ¶
func (x SelectorExpr) Op() token.Token
func (SelectorExpr) Set ¶
func (x SelectorExpr) Set(i int, child Ast)
func (SelectorExpr) Size ¶
func (x SelectorExpr) Size() int
type SpecSlice ¶
func (SpecSlice) Append ¶
func (x SpecSlice) Append(child Ast) AstWithSlice
func (SpecSlice) Slice ¶
func (x SpecSlice) Slice(lo, hi int) AstWithSlice
type StmtSlice ¶
func (StmtSlice) Append ¶
func (x StmtSlice) Append(child Ast) AstWithSlice
func (StmtSlice) Slice ¶
func (x StmtSlice) Slice(lo, hi int) AstWithSlice
type StructType ¶
type StructType struct{ X *ast.StructType }
func (StructType) Get ¶
func (x StructType) Get(i int) Ast
func (StructType) Interface ¶
func (x StructType) Interface() interface{}
func (StructType) New ¶
func (x StructType) New() Ast
func (StructType) Node ¶
func (x StructType) Node() ast.Node
func (StructType) Op ¶
func (x StructType) Op() token.Token
func (StructType) Set ¶
func (x StructType) Set(i int, child Ast)
func (StructType) Size ¶
func (x StructType) Size() int
type SwitchStmt ¶
type SwitchStmt struct{ X *ast.SwitchStmt }
func (SwitchStmt) Get ¶
func (x SwitchStmt) Get(i int) Ast
func (SwitchStmt) Interface ¶
func (x SwitchStmt) Interface() interface{}
func (SwitchStmt) New ¶
func (x SwitchStmt) New() Ast
func (SwitchStmt) Node ¶
func (x SwitchStmt) Node() ast.Node
func (SwitchStmt) Op ¶
func (x SwitchStmt) Op() token.Token
func (SwitchStmt) Set ¶
func (x SwitchStmt) Set(i int, child Ast)
func (SwitchStmt) Size ¶
func (x SwitchStmt) Size() int
type TypeAssertExpr ¶
type TypeAssertExpr struct{ X *ast.TypeAssertExpr }
func (TypeAssertExpr) Get ¶
func (x TypeAssertExpr) Get(i int) Ast
func (TypeAssertExpr) Interface ¶
func (x TypeAssertExpr) Interface() interface{}
func (TypeAssertExpr) New ¶
func (x TypeAssertExpr) New() Ast
func (TypeAssertExpr) Node ¶
func (x TypeAssertExpr) Node() ast.Node
func (TypeAssertExpr) Op ¶
func (x TypeAssertExpr) Op() token.Token
func (TypeAssertExpr) Set ¶
func (x TypeAssertExpr) Set(i int, child Ast)
func (TypeAssertExpr) Size ¶
func (x TypeAssertExpr) Size() int
type TypeSwitchStmt ¶
type TypeSwitchStmt struct{ X *ast.TypeSwitchStmt }
func (TypeSwitchStmt) Get ¶
func (x TypeSwitchStmt) Get(i int) Ast
func (TypeSwitchStmt) Interface ¶
func (x TypeSwitchStmt) Interface() interface{}
func (TypeSwitchStmt) New ¶
func (x TypeSwitchStmt) New() Ast
func (TypeSwitchStmt) Node ¶
func (x TypeSwitchStmt) Node() ast.Node
func (TypeSwitchStmt) Op ¶
func (x TypeSwitchStmt) Op() token.Token
func (TypeSwitchStmt) Set ¶
func (x TypeSwitchStmt) Set(i int, child Ast)
func (TypeSwitchStmt) Size ¶
func (x TypeSwitchStmt) Size() int