Documentation ¶
Index ¶
- func Convertcase(s string) string
- func DoMarshal(i interface{}, filename string)
- func Generate()
- type ArrayType
- type AssignStmt
- type BadDecl
- type BadExpr
- type BadStmt
- type BasicLit
- type BinaryExpr
- type BlockStmt
- type BranchStmt
- type CallExpr
- type CaseClause
- type ChanDir
- type ChanType
- type CommClause
- type Comment
- type CommentGroup
- type CompositeLit
- type Decl
- type DeclStmt
- type DeferStmt
- type Deferred
- type Ellipsis
- type EmptyStmt
- type Expr
- type ExprStmt
- type Field
- type FieldDeferred
- type FieldInterface
- type FieldList
- type File
- type Foo2
- type Foo3
- type ForStmt
- type FuncDecl
- type FuncLit
- type FuncType
- type GenDecl
- type GoStmt
- type Ident
- type IfStmt
- type ImportSpec
- type IncDecStmt
- type IndexExpr
- type InterfaceType
- type IsExported
- type KeyValueExpr
- type LabeledStmt
- type MapType
- type NewIdent
- type Node
- type Object
- type ObjectDeferred
- type Package
- type ParenExpr
- type RangeStmt
- type ReturnStmt
- type Scope
- type SelectStmt
- type SelectorExpr
- type SendStmt
- type SliceExpr
- type Spec
- type StarArrayType
- type StarExpr
- type Stmt
- type StructType
- type SwitchCaseClause
- type SwitchStmt
- type Table
- func (t *Table) AddVisitor(v Visitor)
- func (t *Table) PtrmapArrayType(id string) *ArrayType
- func (t *Table) PtrmapAssignStmt(id string) *AssignStmt
- func (t *Table) PtrmapBadDecl(id string) *BadDecl
- func (t *Table) PtrmapBadExpr(id string) *BadExpr
- func (t *Table) PtrmapBadStmt(id string) *BadStmt
- func (t *Table) PtrmapBasicLit(id string) *BasicLit
- func (t *Table) PtrmapBinaryExpr(id string) *BinaryExpr
- func (t *Table) PtrmapBlockStmt(id string) *BlockStmt
- func (t *Table) PtrmapBranchStmt(id string) *BranchStmt
- func (t *Table) PtrmapCallExpr(id string) *CallExpr
- func (t *Table) PtrmapCaseClause(id string) *CaseClause
- func (t *Table) PtrmapChanDir(id string) *ChanDir
- func (t *Table) PtrmapChanType(id string) *ChanType
- func (t *Table) PtrmapCommClause(id string) *CommClause
- func (t *Table) PtrmapComment(id string) *Comment
- func (t *Table) PtrmapCommentGroup(id string) *CommentGroup
- func (t *Table) PtrmapCompositeLit(id string) *CompositeLit
- func (t *Table) PtrmapDecl(id string) Decl
- func (t *Table) PtrmapDeclStmt(id string) *DeclStmt
- func (t *Table) PtrmapDeferStmt(id string) *DeferStmt
- func (t *Table) PtrmapEllipsis(id string) *Ellipsis
- func (t *Table) PtrmapEmptyStmt(id string) *EmptyStmt
- func (t *Table) PtrmapExpr(id string) Expr
- func (t *Table) PtrmapExprStmt(id string) *ExprStmt
- func (t *Table) PtrmapField(id string) Foo2
- func (t *Table) PtrmapFieldList(id string) Foo2
- func (t *Table) PtrmapFile(id string) *File
- func (t *Table) PtrmapForStmt(id string) *ForStmt
- func (t *Table) PtrmapFuncDecl(id string) *FuncDecl
- func (t *Table) PtrmapFuncLit(id string) *FuncLit
- func (t *Table) PtrmapFuncType(id string) *FuncType
- func (t *Table) PtrmapGenDecl(id string) *GenDecl
- func (t *Table) PtrmapGoStmt(id string) *GoStmt
- func (t *Table) PtrmapIdent(id string) *Ident
- func (t *Table) PtrmapIfStmt(id string) *IfStmt
- func (t *Table) PtrmapImportSpec(id string) *ImportSpec
- func (t *Table) PtrmapIncDecStmt(id string) *IncDecStmt
- func (t *Table) PtrmapIndexExpr(id string) *IndexExpr
- func (t *Table) PtrmapInterfaceType(id string) *InterfaceType
- func (t *Table) PtrmapIsExported(id string) *IsExported
- func (t *Table) PtrmapKeyValueExpr(id string) *KeyValueExpr
- func (t *Table) PtrmapLabeledStmt(id string) *LabeledStmt
- func (t *Table) PtrmapMapType(id string) *MapType
- func (t *Table) PtrmapNewIdent(id string) *NewIdent
- func (t *Table) PtrmapNode(id string) *Node
- func (t *Table) PtrmapObject(id string) *Object
- func (t *Table) PtrmapPackage(id string) *Package
- func (t *Table) PtrmapParenExpr(id string) *ParenExpr
- func (t *Table) PtrmapRangeStmt(id string) *RangeStmt
- func (t *Table) PtrmapReturnStmt(id string) *ReturnStmt
- func (t *Table) PtrmapSelectStmt(id string) *SelectStmt
- func (t *Table) PtrmapSelectorExpr(id string) *SelectorExpr
- func (t *Table) PtrmapSendStmt(id string) *SendStmt
- func (t *Table) PtrmapSliceExpr(id string) *SliceExpr
- func (t *Table) PtrmapSpec(id string) Spec
- func (t *Table) PtrmapStarExpr(id string) *StarExpr
- func (t *Table) PtrmapStmt(id string) Stmt
- func (t *Table) PtrmapStructType(id string) *StructType
- func (t *Table) PtrmapSwitchStmt(id string) *SwitchStmt
- func (t *Table) PtrmapTypeAssertExpr(id string) *TypeAssertExpr
- func (t *Table) PtrmapTypeSpec(id string) Foo2
- func (t *Table) PtrmapTypeSwitchStmt(id string) *TypeSwitchStmt
- func (t *Table) PtrmapUnaryExpr(id string) *UnaryExpr
- func (t *Table) PtrmapValueSpec(id string) *ValueSpec
- func (t *Table) StrmapArrayType(id string, f *ArrayType) *ArrayType
- func (t *Table) StrmapAssignStmt(id string, f *AssignStmt) *AssignStmt
- func (t *Table) StrmapBadDecl(id string, f *BadDecl) *BadDecl
- func (t *Table) StrmapBadExpr(id string, f *BadExpr) *BadExpr
- func (t *Table) StrmapBadStmt(id string, f *BadStmt) *BadStmt
- func (t *Table) StrmapBasicLit(id string, f *BasicLit) *BasicLit
- func (t *Table) StrmapBinaryExpr(id string, f *BinaryExpr) *BinaryExpr
- func (t *Table) StrmapBlockStmt(id string, f *BlockStmt) *BlockStmt
- func (t *Table) StrmapBranchStmt(id string, f *BranchStmt) *BranchStmt
- func (t *Table) StrmapCallExpr(id string, f *CallExpr) *CallExpr
- func (t *Table) StrmapCaseClause(id string, f *CaseClause) *CaseClause
- func (t *Table) StrmapChanDir(id string, f *ChanDir) *ChanDir
- func (t *Table) StrmapChanType(id string, f *ChanType) *ChanType
- func (t *Table) StrmapCommClause(id string, f *CommClause) *CommClause
- func (t *Table) StrmapComment(id string, f *Comment) *Comment
- func (t *Table) StrmapCommentGroup(id string, f *CommentGroup) *CommentGroup
- func (t *Table) StrmapCompositeLit(id string, f *CompositeLit) *CompositeLit
- func (t *Table) StrmapDecl(id string, f Decl) Decl
- func (t *Table) StrmapDeclStmt(id string, f *DeclStmt) *DeclStmt
- func (t *Table) StrmapDeferStmt(id string, f *DeferStmt) *DeferStmt
- func (t *Table) StrmapEllipsis(id string, f *Ellipsis) *Ellipsis
- func (t *Table) StrmapEmptyStmt(id string, f *EmptyStmt) *EmptyStmt
- func (t *Table) StrmapExpr(id string, f Expr) Expr
- func (t *Table) StrmapExprStmt(id string, f *ExprStmt) *ExprStmt
- func (t *Table) StrmapField(id string, f *Field) *Field
- func (t *Table) StrmapFieldList(id string, f *FieldList) *FieldList
- func (t *Table) StrmapFile(id string, f *File) *File
- func (t *Table) StrmapForStmt(id string, f *ForStmt) *ForStmt
- func (t *Table) StrmapFuncDecl(id string, f *FuncDecl) Foo2
- func (t *Table) StrmapFuncLit(id string, f *FuncLit) *FuncLit
- func (t *Table) StrmapFuncType(id string, f *FuncType) *FuncType
- func (t *Table) StrmapGenDecl(id string, f *GenDecl) *GenDecl
- func (t *Table) StrmapGoStmt(id string, f *GoStmt) *GoStmt
- func (t *Table) StrmapIdent(id string, f *Ident) *Ident
- func (t *Table) StrmapIfStmt(id string, f *IfStmt) *IfStmt
- func (t *Table) StrmapImportSpec(id string, f *ImportSpec) *ImportSpec
- func (t *Table) StrmapIncDecStmt(id string, f *IncDecStmt) *IncDecStmt
- func (t *Table) StrmapIndexExpr(id string, f *IndexExpr) *IndexExpr
- func (t *Table) StrmapInterfaceType(id string, f *InterfaceType) *InterfaceType
- func (t *Table) StrmapIsExported(id string, f *IsExported) *IsExported
- func (t *Table) StrmapKeyValueExpr(id string, f *KeyValueExpr) *KeyValueExpr
- func (t *Table) StrmapLabeledStmt(id string, f *LabeledStmt) *LabeledStmt
- func (t *Table) StrmapMapType(id string, f *MapType) *MapType
- func (t *Table) StrmapNewIdent(id string, f *NewIdent) *NewIdent
- func (t *Table) StrmapNode(id string, f *Node) *Node
- func (t *Table) StrmapObject(id string, f *Object) *Object
- func (t *Table) StrmapPackage(id string, f *Package) *Package
- func (t *Table) StrmapParenExpr(id string, f *ParenExpr) *ParenExpr
- func (t *Table) StrmapRangeStmt(id string, f *RangeStmt) *RangeStmt
- func (t *Table) StrmapReturnStmt(id string, f *ReturnStmt) *ReturnStmt
- func (t *Table) StrmapScope(id string, f *Scope) *Scope
- func (t *Table) StrmapSelectStmt(id string, f *SelectStmt) *SelectStmt
- func (t *Table) StrmapSelectorExpr(id string, f *SelectorExpr) *SelectorExpr
- func (t *Table) StrmapSendStmt(id string, f *SendStmt) *SendStmt
- func (t *Table) StrmapSliceExpr(id string, f *SliceExpr) *SliceExpr
- func (t *Table) StrmapSpec(id string, f Spec) Spec
- func (t *Table) StrmapStarExpr(id string, f *StarExpr) *StarExpr
- func (t *Table) StrmapStmt(id string, f Stmt) Stmt
- func (t *Table) StrmapStructType(id string, f *StructType) *StructType
- func (t *Table) StrmapSwitchStmt(id string, f *SwitchStmt) *SwitchStmt
- func (t *Table) StrmapTypeAssertExpr(id string, f *TypeAssertExpr) *TypeAssertExpr
- func (t *Table) StrmapTypeSpec(id string, f *TypeSpec) *TypeSpec
- func (t *Table) StrmapTypeSwitchStmt(id string, f *TypeSwitchStmt) *TypeSwitchStmt
- func (t *Table) StrmapUnaryExpr(id string, f *UnaryExpr) *UnaryExpr
- func (t *Table) StrmapValueSpec(id string, f *ValueSpec) Foo2
- type Type
- type TypeAssertExpr
- type TypeSpec
- type TypeSwitchStmt
- type UnaryExpr
- type ValueSpec
- type Visitor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convertcase ¶
Types ¶
type AssignStmt ¶
type AssignStmt struct { Lhs []Expr TokPos Foo3 // position of Tok Tok Foo3 // assignment token, DEFINE Rhs []Expr }
An AssignStmt node represents an assignment or a short variable declaration.
func (*AssignStmt) Report ¶
func (t *AssignStmt) Report() string
type BadStmt ¶
type BadStmt struct {
From, To Foo2 // position range of bad statement
}
A BadStmt node is a placeholder for statements containing syntax errors for which no correct statement nodes can be created.
type BinaryExpr ¶
type BinaryExpr struct { X Foo2 // left operand OpPos Foo3 // position of Op Op Foo3 // operator Y Foo2 // right operand }
A BinaryExpr node represents a binary expression.
func (*BinaryExpr) Report ¶
func (t *BinaryExpr) Report() string
type BranchStmt ¶
type BranchStmt struct { TokPos Foo3 Tok Foo3 // keyword token (BREAK, CONTINUE, GOTO, FALLTHROUGH) Label *Ident // label name; or nil }
A BranchStmt node represents a break, continue, goto, or fallthrough statement.
func (*BranchStmt) Report ¶
func (t *BranchStmt) Report() string
type CallExpr ¶
type CallExpr struct { Fun Expr // function expression Lparen Foo3 Args []Expr Ellipsis Foo3 Rparen Foo3 }
A CallExpr node represents an expression followed by an argument list.
type CaseClause ¶
type CaseClause struct { Case Foo3 List []Expr // list of expressions or types; nil means default case Colon Foo3 Body []Stmt // statement list; or nil }
A CaseClause represents a case of an expression or type switch statement.
func (*CaseClause) Report ¶
func (t *CaseClause) Report() string
type CommClause ¶
type CommClause struct { Case Foo3 // position of "case" or "default" keyword Comm Stmt // send or receive statement; nil means default case Colon Foo3 // position of ":" Body []Stmt // statement list; or nil }
A CommClause node represents a case of a select statement.
func (*CommClause) Report ¶
func (t *CommClause) Report() string
type CommentGroup ¶
type CommentGroup struct {
List []*Comment // len(List) > 0
}
func (*CommentGroup) Report ¶
func (t *CommentGroup) Report() string
type CompositeLit ¶
type CompositeLit struct { Type Expr // literal type; or nil Lbrace Foo3 Elts []Expr // []list of composite elements; or nil Rbrace Foo3 }
A CompositeLit node represents a composite literal.
func (*CompositeLit) Report ¶
func (t *CompositeLit) Report() string
type DeclStmt ¶
type DeclStmt struct {
Decl Decl // *GenDecl with CONST, TYPE, or VAR token
}
A DeclStmt node represents a declaration in a statement list.
type Deferred ¶
type Deferred struct { Id string //Data Foo2 //Data int64 Set interface{} }
deferred
type Ellipsis ¶
type Ellipsis struct { Ellipsis Foo3 // position of "..." Elt Expr // ellipsis element type (parameter lists only); or nil }
An Ellipsis node stands for the "..." type in a parameter list or the "..." length in an array type.
type EmptyStmt ¶
type EmptyStmt struct { Semicolon Foo2 // position of following ";" Implicit bool // if set, ";" was omitted in the source }
An EmptyStmt node represents an empty statement. The "position" of the empty statement is the position of the immediately following (explicit or implicit) semicolon.
type ExprStmt ¶
type ExprStmt struct {
X Foo2 // expression
}
An ExprStmt node represents a (stand-alone) expression in a statement list.
type Field ¶
type Field struct { Doc *CommentGroup Names []*Ident Type Expr Tag *BasicLit Comment *CommentGroup }
type FieldDeferred ¶
type FieldDeferred struct {
Id string
}
func (*FieldDeferred) Report ¶
func (t *FieldDeferred) Report() string
type FieldInterface ¶
type FieldInterface interface {
Report() string
}
type File ¶
type File struct { Doc *CommentGroup Package Foo3 Name *Ident Decls []Decl Scope *Scope Imports []*ImportSpec Unresolved []*Ident Comments []*CommentGroup }
type ForStmt ¶
type ForStmt struct { For Foo3 // position of "for" keyword Init Stmt // initialization statement; or nil Cond Expr // condition; or nil Post Stmt // post iteration statement; or nil Body *BlockStmt }
A ForStmt represents a for statement.
type FuncDecl ¶
type FuncDecl struct { Doc *CommentGroup // associated documentation; or nil Recv *FieldList // receiver (methods); or nil (functions) Name *Ident // function/method name Type *FuncType // function signature: parameters, results, and position of "func" keyword Body *BlockStmt // function body; or nil (forward declaration) }
type IfStmt ¶
type IfStmt struct { If Foo3 Init Stmt // initialization statement; or nil Cond Expr // condition Body *BlockStmt Else Stmt // else branch; or nil }
An IfStmt node represents an if statement.
type ImportSpec ¶
func (*ImportSpec) Report ¶
func (t *ImportSpec) Report() string
type IncDecStmt ¶
An IncDecStmt node represents an increment or decrement statement.
func (*IncDecStmt) Report ¶
func (t *IncDecStmt) Report() string
type IndexExpr ¶
type IndexExpr struct { X Foo2 // expression Lbrack Foo3 Index Foo2 // index expression Rbrack Foo3 }
An IndexExpr node represents an expression followed by an index.
type InterfaceType ¶
func (*InterfaceType) Report ¶
func (t *InterfaceType) Report() string
type IsExported ¶
type IsExported struct{}
func (*IsExported) Report ¶
func (t *IsExported) Report() string
type KeyValueExpr ¶
A KeyValueExpr node represents (key : value) pairs in composite literals.
func (*KeyValueExpr) Report ¶
func (t *KeyValueExpr) Report() string
type LabeledStmt ¶
A LabeledStmt node represents a labeled statement.
func (*LabeledStmt) Report ¶
func (t *LabeledStmt) Report() string
type ObjectDeferred ¶
type ObjectDeferred struct {
Id string
}
func (*ObjectDeferred) Report ¶
func (t *ObjectDeferred) Report() string
type Package ¶
type RangeStmt ¶
type RangeStmt struct { For Foo3 Key, Value Expr // Key, Value may be nil TokPos Foo3 Tok Foo3 // ILLEGAL if Key == nil, ASSIGN, DEFINE X Expr //Expr // value to range over Body *BlockStmt }
A RangeStmt represents a for statement with a range clause.
type ReturnStmt ¶
A ReturnStmt node represents a return statement.
func (*ReturnStmt) Report ¶
func (t *ReturnStmt) Report() string
type SelectStmt ¶
type SelectStmt struct { Select Foo3 // position of "select" keyword Body *BlockStmt // CommClauses only }
An SelectStmt node represents a select statement.
func (*SelectStmt) Report ¶
func (t *SelectStmt) Report() string
type SelectorExpr ¶
func (*SelectorExpr) Report ¶
func (t *SelectorExpr) Report() string
type SliceExpr ¶
type SliceExpr struct { X Expr // expression Lbrack Foo3 Low Expr // begin of slice range; or nil High Expr // end of slice range; or nil Max Expr // maximum capacity of slice; or nil Slice3 bool // true if 3-index slice (2 colons present) Rbrack Foo3 }
An SliceExpr node represents an expression followed by slice indices.
type StarArrayType ¶
type StarArrayType struct{}
type StructType ¶
func (*StructType) Report ¶
func (t *StructType) Report() string
func (t* Stmt) Report() (string){ r := fmt.Sprintf("Stmt:%+v",t);/*fmt.Println(r)*/;return r }
type SwitchCaseClause ¶
type SwitchCaseClause struct{}
type SwitchStmt ¶
type SwitchStmt struct { Switch Foo3 // position of "switch" keyword Init Stmt // initialization statement; or nil Tag Expr // tag expression; or nil Body *BlockStmt // CaseClauses only }
A SwitchStmt node represents an expression switch statement.
func (*SwitchStmt) Report ¶
func (t *SwitchStmt) Report() string
type Table ¶
type Table struct { Visitors []Visitor Scopes map[string]*Scope Objects map[string]*Object ArrayTypes map[string]*ArrayType AssignStmts map[string]*AssignStmt BadDecls map[string]*BadDecl BadExprs map[string]*BadExpr BadStmts map[string]*BadStmt BasicLits map[string]*BasicLit BinaryExprs map[string]*BinaryExpr BlockStmts map[string]*BlockStmt BranchStmts map[string]*BranchStmt CallExprs map[string]*CallExpr CaseClauses map[string]*CaseClause ChanDirs map[string]*ChanDir ChanTypes map[string]*ChanType CommClauses map[string]*CommClause CommentGroups map[string]*CommentGroup Comments map[string]*Comment CompositeLits map[string]*CompositeLit DeclStmts map[string]*DeclStmt DeferStmts map[string]*DeferStmt Ellipsiss map[string]*Ellipsis EmptyStmts map[string]*EmptyStmt ExprStmts map[string]*ExprStmt FieldLists map[string]*FieldList Fields map[string]*Field Files map[string]*File ForStmts map[string]*ForStmt FuncDecls map[string]*FuncDecl FuncLits map[string]*FuncLit FuncTypes map[string]*FuncType GenDecls map[string]*GenDecl GoStmts map[string]*GoStmt Idents map[string]*Ident IfStmts map[string]*IfStmt ImportSpecs map[string]*ImportSpec IncDecStmts map[string]*IncDecStmt IndexExprs map[string]*IndexExpr InterfaceTypes map[string]*InterfaceType IsExporteds map[string]*IsExported KeyValueExprs map[string]*KeyValueExpr LabeledStmts map[string]*LabeledStmt MapTypes map[string]*MapType NewIdents map[string]*NewIdent Nodes map[string]*Node Packages map[string]*Package ParenExprs map[string]*ParenExpr RangeStmts map[string]*RangeStmt ReturnStmts map[string]*ReturnStmt SelectStmts map[string]*SelectStmt SelectorExprs map[string]*SelectorExpr SendStmts map[string]*SendStmt SliceExprs map[string]*SliceExpr StarExprs map[string]*StarExpr StructTypes map[string]*StructType SwitchStmts map[string]*SwitchStmt TypeAssertExprs map[string]*TypeAssertExpr TypeSpecs map[string]*TypeSpec TypeSwitchStmts map[string]*TypeSwitchStmt UnaryExprs map[string]*UnaryExpr ValueSpecs map[string]*ValueSpec // interfaces Specs map[string]Spec Decls map[string]Decl Exprs map[string]Expr Stmts map[string]Stmt }
func CreateTable ¶
func CreateTable() *Table
func (*Table) AddVisitor ¶
func (*Table) PtrmapArrayType ¶
func (*Table) PtrmapAssignStmt ¶
func (t *Table) PtrmapAssignStmt(id string) *AssignStmt
func (*Table) PtrmapBadDecl ¶
func (*Table) PtrmapBadExpr ¶
func (*Table) PtrmapBadStmt ¶
func (*Table) PtrmapBasicLit ¶
func (*Table) PtrmapBinaryExpr ¶
func (t *Table) PtrmapBinaryExpr(id string) *BinaryExpr
func (*Table) PtrmapBlockStmt ¶
func (*Table) PtrmapBranchStmt ¶
func (t *Table) PtrmapBranchStmt(id string) *BranchStmt
func (*Table) PtrmapCallExpr ¶
func (*Table) PtrmapCaseClause ¶
func (t *Table) PtrmapCaseClause(id string) *CaseClause
func (*Table) PtrmapChanDir ¶
func (*Table) PtrmapChanType ¶
func (*Table) PtrmapCommClause ¶
func (t *Table) PtrmapCommClause(id string) *CommClause
func (*Table) PtrmapComment ¶
func (*Table) PtrmapCommentGroup ¶
func (t *Table) PtrmapCommentGroup(id string) *CommentGroup
func (*Table) PtrmapCompositeLit ¶
func (t *Table) PtrmapCompositeLit(id string) *CompositeLit
func (*Table) PtrmapDecl ¶
func (*Table) PtrmapDeclStmt ¶
func (*Table) PtrmapDeferStmt ¶
func (*Table) PtrmapEllipsis ¶
func (*Table) PtrmapEmptyStmt ¶
func (*Table) PtrmapExpr ¶
func (*Table) PtrmapExprStmt ¶
func (*Table) PtrmapField ¶
func (*Table) PtrmapFieldList ¶
func (*Table) PtrmapFile ¶
func (*Table) PtrmapForStmt ¶
func (*Table) PtrmapFuncDecl ¶
func (*Table) PtrmapFuncLit ¶
func (*Table) PtrmapFuncType ¶
func (*Table) PtrmapGenDecl ¶
func (*Table) PtrmapGoStmt ¶
func (*Table) PtrmapIdent ¶
func (*Table) PtrmapIfStmt ¶
func (*Table) PtrmapImportSpec ¶
func (t *Table) PtrmapImportSpec(id string) *ImportSpec
func (*Table) PtrmapIncDecStmt ¶
func (t *Table) PtrmapIncDecStmt(id string) *IncDecStmt
func (*Table) PtrmapIndexExpr ¶
func (*Table) PtrmapInterfaceType ¶
func (t *Table) PtrmapInterfaceType(id string) *InterfaceType
func (*Table) PtrmapIsExported ¶
func (t *Table) PtrmapIsExported(id string) *IsExported
func (*Table) PtrmapKeyValueExpr ¶
func (t *Table) PtrmapKeyValueExpr(id string) *KeyValueExpr
func (*Table) PtrmapLabeledStmt ¶
func (t *Table) PtrmapLabeledStmt(id string) *LabeledStmt
func (*Table) PtrmapMapType ¶
func (*Table) PtrmapNewIdent ¶
func (*Table) PtrmapNode ¶
func (*Table) PtrmapObject ¶
func (*Table) PtrmapPackage ¶
func (*Table) PtrmapParenExpr ¶
func (*Table) PtrmapRangeStmt ¶
func (*Table) PtrmapReturnStmt ¶
func (t *Table) PtrmapReturnStmt(id string) *ReturnStmt
func (*Table) PtrmapSelectStmt ¶
func (t *Table) PtrmapSelectStmt(id string) *SelectStmt
func (*Table) PtrmapSelectorExpr ¶
func (t *Table) PtrmapSelectorExpr(id string) *SelectorExpr
func (*Table) PtrmapSendStmt ¶
func (*Table) PtrmapSliceExpr ¶
func (*Table) PtrmapSpec ¶
func (*Table) PtrmapStarExpr ¶
func (*Table) PtrmapStmt ¶
func (*Table) PtrmapStructType ¶
func (t *Table) PtrmapStructType(id string) *StructType
func (*Table) PtrmapSwitchStmt ¶
func (t *Table) PtrmapSwitchStmt(id string) *SwitchStmt
func (*Table) PtrmapTypeAssertExpr ¶
func (t *Table) PtrmapTypeAssertExpr(id string) *TypeAssertExpr
func (*Table) PtrmapTypeSpec ¶
func (*Table) PtrmapTypeSwitchStmt ¶
func (t *Table) PtrmapTypeSwitchStmt(id string) *TypeSwitchStmt
func (*Table) PtrmapUnaryExpr ¶
func (*Table) PtrmapValueSpec ¶
func (*Table) StrmapAssignStmt ¶
func (t *Table) StrmapAssignStmt(id string, f *AssignStmt) *AssignStmt
func (*Table) StrmapBinaryExpr ¶
func (t *Table) StrmapBinaryExpr(id string, f *BinaryExpr) *BinaryExpr
func (*Table) StrmapBranchStmt ¶
func (t *Table) StrmapBranchStmt(id string, f *BranchStmt) *BranchStmt
func (*Table) StrmapCaseClause ¶
func (t *Table) StrmapCaseClause(id string, f *CaseClause) *CaseClause
func (*Table) StrmapCommClause ¶
func (t *Table) StrmapCommClause(id string, f *CommClause) *CommClause
func (*Table) StrmapCommentGroup ¶
func (t *Table) StrmapCommentGroup(id string, f *CommentGroup) *CommentGroup
func (*Table) StrmapCompositeLit ¶
func (t *Table) StrmapCompositeLit(id string, f *CompositeLit) *CompositeLit
func (*Table) StrmapImportSpec ¶
func (t *Table) StrmapImportSpec(id string, f *ImportSpec) *ImportSpec
func (*Table) StrmapIncDecStmt ¶
func (t *Table) StrmapIncDecStmt(id string, f *IncDecStmt) *IncDecStmt
func (*Table) StrmapInterfaceType ¶
func (t *Table) StrmapInterfaceType(id string, f *InterfaceType) *InterfaceType
func (*Table) StrmapIsExported ¶
func (t *Table) StrmapIsExported(id string, f *IsExported) *IsExported
func (*Table) StrmapKeyValueExpr ¶
func (t *Table) StrmapKeyValueExpr(id string, f *KeyValueExpr) *KeyValueExpr
func (*Table) StrmapLabeledStmt ¶
func (t *Table) StrmapLabeledStmt(id string, f *LabeledStmt) *LabeledStmt
func (*Table) StrmapReturnStmt ¶
func (t *Table) StrmapReturnStmt(id string, f *ReturnStmt) *ReturnStmt
func (*Table) StrmapScope ¶
outer section is scope
func (*Table) StrmapSelectStmt ¶
func (t *Table) StrmapSelectStmt(id string, f *SelectStmt) *SelectStmt
func (*Table) StrmapSelectorExpr ¶
func (t *Table) StrmapSelectorExpr(id string, f *SelectorExpr) *SelectorExpr
func (*Table) StrmapStructType ¶
func (t *Table) StrmapStructType(id string, f *StructType) *StructType
func (*Table) StrmapSwitchStmt ¶
func (t *Table) StrmapSwitchStmt(id string, f *SwitchStmt) *SwitchStmt
func (*Table) StrmapTypeAssertExpr ¶
func (t *Table) StrmapTypeAssertExpr(id string, f *TypeAssertExpr) *TypeAssertExpr
func (*Table) StrmapTypeSwitchStmt ¶
func (t *Table) StrmapTypeSwitchStmt(id string, f *TypeSwitchStmt) *TypeSwitchStmt
type TypeAssertExpr ¶
type TypeAssertExpr struct { X Expr // expression Lparen Foo3 Type Expr // asserted type; nil means type switch X.(type) Rparen Foo3 }
A TypeAssertExpr node represents an expression followed by a type assertion.
func (*TypeAssertExpr) Report ¶
func (t *TypeAssertExpr) Report() string
type TypeSpec ¶
type TypeSpec struct { Doc *CommentGroup Name *Ident Type Expr Comment *CommentGroup }
type TypeSwitchStmt ¶
type TypeSwitchStmt struct { Switch Foo3 // position of "switch" keyword Init Stmt // initialization statement; or nil Assign Stmt // x := y.(type) or y.(type) Body *BlockStmt // CaseClauses only }
An TypeSwitchStmt node represents a type switch statement.
func (*TypeSwitchStmt) Report ¶
func (t *TypeSwitchStmt) Report() string
type UnaryExpr ¶
A UnaryExpr node represents a unary expression. Unary "*" expressions are represented via StarExpr nodes.