Documentation ¶
Index ¶
- func Parse(fset *token.FileSet, root http.FileSystem, dir string, ...) (pkgs map[string]*ast.Package, fileSources map[string][]byte, first error)
- type ArrayType
- func (s *ArrayType) AstNode() ast.Node
- func (s ArrayType) CallTreeNode(cond func(n Node) bool) Node
- func (s ArrayType) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *ArrayType) ChildByName(name string) Node
- func (s *ArrayType) ChildByNodeType(nodeType NodeType) Node
- func (s *ArrayType) ChildNode(cond func(n Node) bool) Node
- func (s *ArrayType) ChildNodes(cond func(n Node) bool) []Node
- func (s *ArrayType) Children() []Node
- func (s *ArrayType) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *ArrayType) Contains(node Node) bool
- func (s *ArrayType) FindByName(name string) []Node
- func (s *ArrayType) FindByNodeType(nodeType NodeType) []Node
- func (s *ArrayType) FindByToken(t token.Token) []Node
- func (s *ArrayType) FindByValueType(valType string) []Node
- func (s *ArrayType) FindDeclarations() []*Ident
- func (s *ArrayType) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *ArrayType) FindFirstByName(name string) Node
- func (s *ArrayType) FindFirstByNodeType(nodeType NodeType) Node
- func (s *ArrayType) FindFirstIdentByName(name string) *Ident
- func (s *ArrayType) FindFirstUsage(declaration *Ident) *Ident
- func (s *ArrayType) FindIdentByName(name string) []*Ident
- func (s *ArrayType) FindMaps() []Node
- func (s *ArrayType) FindNameInCallTree(name string) []Node
- func (s *ArrayType) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *ArrayType) FindUsages(declaration *Ident) []*Ident
- func (s *ArrayType) FindVarDeclarations() []*Ident
- func (s *ArrayType) GetIdent() *Ident
- func (s *ArrayType) GetScope() (Node, *types.Scope)
- func (s *ArrayType) GetSource() []byte
- func (s *ArrayType) GetSourceString() string
- func (s *ArrayType) Info() *types.Info
- func (s *ArrayType) IsContainedByType(nodeType NodeType) bool
- func (s *ArrayType) IsNodeType(nodeType NodeType) bool
- func (s *ArrayType) IsValueType(valType string) bool
- func (s *ArrayType) Level() int
- func (s *ArrayType) Match(regex regexp.Regexp) bool
- func (s *ArrayType) NextParentByType(nodeType NodeType) Node
- func (s *ArrayType) NodeName() string
- func (s *ArrayType) NodeType() NodeType
- func (s *ArrayType) Object() types.Object
- func (s *ArrayType) Parent() Node
- func (s *ArrayType) Parents() []Node
- func (s *ArrayType) Pkg() *Package
- func (s *ArrayType) Siblings() []Node
- func (s *ArrayType) TreeNode(cond func(n Node) bool) Node
- func (s *ArrayType) TreeNodes(cond func(n Node) bool) []Node
- func (s *ArrayType) ValueType() types.Type
- func (s *ArrayType) Visit(node ast.Node) ast.Visitor
- func (s *ArrayType) Walk(f func(node Node) bool)
- type AssignStmt
- func (s *AssignStmt) AstNode() ast.Node
- func (s AssignStmt) CallTreeNode(cond func(n Node) bool) Node
- func (s AssignStmt) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *AssignStmt) ChildByName(name string) Node
- func (s *AssignStmt) ChildByNodeType(nodeType NodeType) Node
- func (s *AssignStmt) ChildNode(cond func(n Node) bool) Node
- func (s *AssignStmt) ChildNodes(cond func(n Node) bool) []Node
- func (s *AssignStmt) Children() []Node
- func (s *AssignStmt) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *AssignStmt) Contains(node Node) bool
- func (s *AssignStmt) FindByName(name string) []Node
- func (s *AssignStmt) FindByNodeType(nodeType NodeType) []Node
- func (s *AssignStmt) FindByToken(t token.Token) []Node
- func (s *AssignStmt) FindByValueType(valType string) []Node
- func (s *AssignStmt) FindDeclarations() []*Ident
- func (s *AssignStmt) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *AssignStmt) FindFirstByName(name string) Node
- func (s *AssignStmt) FindFirstByNodeType(nodeType NodeType) Node
- func (s *AssignStmt) FindFirstIdentByName(name string) *Ident
- func (s *AssignStmt) FindFirstUsage(declaration *Ident) *Ident
- func (s *AssignStmt) FindIdentByName(name string) []*Ident
- func (s *AssignStmt) FindMaps() []Node
- func (s *AssignStmt) FindNameInCallTree(name string) []Node
- func (s *AssignStmt) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *AssignStmt) FindUsages(declaration *Ident) []*Ident
- func (s *AssignStmt) FindVarDeclarations() []*Ident
- func (s *AssignStmt) GetScope() (Node, *types.Scope)
- func (s *AssignStmt) GetSource() []byte
- func (s *AssignStmt) GetSourceString() string
- func (s *AssignStmt) Info() *types.Info
- func (s *AssignStmt) IsContainedByType(nodeType NodeType) bool
- func (s *AssignStmt) IsNodeType(nodeType NodeType) bool
- func (s *AssignStmt) IsValueType(valType string) bool
- func (s *AssignStmt) LHS() []Node
- func (s *AssignStmt) Level() int
- func (s *AssignStmt) Match(regex regexp.Regexp) bool
- func (s *AssignStmt) NextParentByType(nodeType NodeType) Node
- func (s *AssignStmt) NodeType() NodeType
- func (s *AssignStmt) Object() types.Object
- func (s *AssignStmt) Parent() Node
- func (s *AssignStmt) Parents() []Node
- func (s *AssignStmt) Pkg() *Package
- func (s *AssignStmt) RHS() []Node
- func (s *AssignStmt) Siblings() []Node
- func (s *AssignStmt) Token() token.Token
- func (s *AssignStmt) TreeNode(cond func(n Node) bool) Node
- func (s *AssignStmt) TreeNodes(cond func(n Node) bool) []Node
- func (s *AssignStmt) ValueType() types.Type
- func (s *AssignStmt) Visit(node ast.Node) ast.Visitor
- func (s *AssignStmt) Walk(f func(node Node) bool)
- type BadDecl
- func (s *BadDecl) AstNode() ast.Node
- func (s BadDecl) CallTreeNode(cond func(n Node) bool) Node
- func (s BadDecl) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *BadDecl) ChildByName(name string) Node
- func (s *BadDecl) ChildByNodeType(nodeType NodeType) Node
- func (s *BadDecl) ChildNode(cond func(n Node) bool) Node
- func (s *BadDecl) ChildNodes(cond func(n Node) bool) []Node
- func (s *BadDecl) Children() []Node
- func (s *BadDecl) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *BadDecl) Contains(node Node) bool
- func (s *BadDecl) FindByName(name string) []Node
- func (s *BadDecl) FindByNodeType(nodeType NodeType) []Node
- func (s *BadDecl) FindByToken(t token.Token) []Node
- func (s *BadDecl) FindByValueType(valType string) []Node
- func (s *BadDecl) FindDeclarations() []*Ident
- func (s *BadDecl) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *BadDecl) FindFirstByName(name string) Node
- func (s *BadDecl) FindFirstByNodeType(nodeType NodeType) Node
- func (s *BadDecl) FindFirstIdentByName(name string) *Ident
- func (s *BadDecl) FindFirstUsage(declaration *Ident) *Ident
- func (s *BadDecl) FindIdentByName(name string) []*Ident
- func (s *BadDecl) FindMaps() []Node
- func (s *BadDecl) FindNameInCallTree(name string) []Node
- func (s *BadDecl) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *BadDecl) FindUsages(declaration *Ident) []*Ident
- func (s *BadDecl) FindVarDeclarations() []*Ident
- func (s *BadDecl) GetScope() (Node, *types.Scope)
- func (s *BadDecl) GetSource() []byte
- func (s *BadDecl) GetSourceString() string
- func (s *BadDecl) Info() *types.Info
- func (s *BadDecl) IsContainedByType(nodeType NodeType) bool
- func (s *BadDecl) IsNodeType(nodeType NodeType) bool
- func (s *BadDecl) IsValueType(valType string) bool
- func (s *BadDecl) Level() int
- func (s *BadDecl) Match(regex regexp.Regexp) bool
- func (s *BadDecl) NextParentByType(nodeType NodeType) Node
- func (s *BadDecl) NodeType() NodeType
- func (s *BadDecl) Object() types.Object
- func (s *BadDecl) Parent() Node
- func (s *BadDecl) Parents() []Node
- func (s *BadDecl) Pkg() *Package
- func (s *BadDecl) Siblings() []Node
- func (s *BadDecl) TreeNode(cond func(n Node) bool) Node
- func (s *BadDecl) TreeNodes(cond func(n Node) bool) []Node
- func (s *BadDecl) ValueType() types.Type
- func (s *BadDecl) Visit(node ast.Node) ast.Visitor
- func (s *BadDecl) Walk(f func(node Node) bool)
- type BadExpr
- func (s *BadExpr) AstNode() ast.Node
- func (s BadExpr) CallTreeNode(cond func(n Node) bool) Node
- func (s BadExpr) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *BadExpr) ChildByName(name string) Node
- func (s *BadExpr) ChildByNodeType(nodeType NodeType) Node
- func (s *BadExpr) ChildNode(cond func(n Node) bool) Node
- func (s *BadExpr) ChildNodes(cond func(n Node) bool) []Node
- func (s *BadExpr) Children() []Node
- func (s *BadExpr) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *BadExpr) Contains(node Node) bool
- func (s *BadExpr) FindByName(name string) []Node
- func (s *BadExpr) FindByNodeType(nodeType NodeType) []Node
- func (s *BadExpr) FindByToken(t token.Token) []Node
- func (s *BadExpr) FindByValueType(valType string) []Node
- func (s *BadExpr) FindDeclarations() []*Ident
- func (s *BadExpr) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *BadExpr) FindFirstByName(name string) Node
- func (s *BadExpr) FindFirstByNodeType(nodeType NodeType) Node
- func (s *BadExpr) FindFirstIdentByName(name string) *Ident
- func (s *BadExpr) FindFirstUsage(declaration *Ident) *Ident
- func (s *BadExpr) FindIdentByName(name string) []*Ident
- func (s *BadExpr) FindMaps() []Node
- func (s *BadExpr) FindNameInCallTree(name string) []Node
- func (s *BadExpr) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *BadExpr) FindUsages(declaration *Ident) []*Ident
- func (s *BadExpr) FindVarDeclarations() []*Ident
- func (s *BadExpr) GetScope() (Node, *types.Scope)
- func (s *BadExpr) GetSource() []byte
- func (s *BadExpr) GetSourceString() string
- func (s *BadExpr) Info() *types.Info
- func (s *BadExpr) IsContainedByType(nodeType NodeType) bool
- func (s *BadExpr) IsNodeType(nodeType NodeType) bool
- func (s *BadExpr) IsValueType(valType string) bool
- func (s *BadExpr) Level() int
- func (s *BadExpr) Match(regex regexp.Regexp) bool
- func (s *BadExpr) NextParentByType(nodeType NodeType) Node
- func (s *BadExpr) NodeType() NodeType
- func (s *BadExpr) Object() types.Object
- func (s *BadExpr) Parent() Node
- func (s *BadExpr) Parents() []Node
- func (s *BadExpr) Pkg() *Package
- func (s *BadExpr) Siblings() []Node
- func (s *BadExpr) TreeNode(cond func(n Node) bool) Node
- func (s *BadExpr) TreeNodes(cond func(n Node) bool) []Node
- func (s *BadExpr) ValueType() types.Type
- func (s *BadExpr) Visit(node ast.Node) ast.Visitor
- func (s *BadExpr) Walk(f func(node Node) bool)
- type BadStmt
- func (s *BadStmt) AstNode() ast.Node
- func (s BadStmt) CallTreeNode(cond func(n Node) bool) Node
- func (s BadStmt) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *BadStmt) ChildByName(name string) Node
- func (s *BadStmt) ChildByNodeType(nodeType NodeType) Node
- func (s *BadStmt) ChildNode(cond func(n Node) bool) Node
- func (s *BadStmt) ChildNodes(cond func(n Node) bool) []Node
- func (s *BadStmt) Children() []Node
- func (s *BadStmt) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *BadStmt) Contains(node Node) bool
- func (s *BadStmt) FindByName(name string) []Node
- func (s *BadStmt) FindByNodeType(nodeType NodeType) []Node
- func (s *BadStmt) FindByToken(t token.Token) []Node
- func (s *BadStmt) FindByValueType(valType string) []Node
- func (s *BadStmt) FindDeclarations() []*Ident
- func (s *BadStmt) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *BadStmt) FindFirstByName(name string) Node
- func (s *BadStmt) FindFirstByNodeType(nodeType NodeType) Node
- func (s *BadStmt) FindFirstIdentByName(name string) *Ident
- func (s *BadStmt) FindFirstUsage(declaration *Ident) *Ident
- func (s *BadStmt) FindIdentByName(name string) []*Ident
- func (s *BadStmt) FindMaps() []Node
- func (s *BadStmt) FindNameInCallTree(name string) []Node
- func (s *BadStmt) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *BadStmt) FindUsages(declaration *Ident) []*Ident
- func (s *BadStmt) FindVarDeclarations() []*Ident
- func (s *BadStmt) GetScope() (Node, *types.Scope)
- func (s *BadStmt) GetSource() []byte
- func (s *BadStmt) GetSourceString() string
- func (s *BadStmt) Info() *types.Info
- func (s *BadStmt) IsContainedByType(nodeType NodeType) bool
- func (s *BadStmt) IsNodeType(nodeType NodeType) bool
- func (s *BadStmt) IsValueType(valType string) bool
- func (s *BadStmt) Level() int
- func (s *BadStmt) Match(regex regexp.Regexp) bool
- func (s *BadStmt) NextParentByType(nodeType NodeType) Node
- func (s *BadStmt) NodeType() NodeType
- func (s *BadStmt) Object() types.Object
- func (s *BadStmt) Parent() Node
- func (s *BadStmt) Parents() []Node
- func (s *BadStmt) Pkg() *Package
- func (s *BadStmt) Siblings() []Node
- func (s *BadStmt) TreeNode(cond func(n Node) bool) Node
- func (s *BadStmt) TreeNodes(cond func(n Node) bool) []Node
- func (s *BadStmt) ValueType() types.Type
- func (s *BadStmt) Visit(node ast.Node) ast.Visitor
- func (s *BadStmt) Walk(f func(node Node) bool)
- type BasicLit
- func (s *BasicLit) AstNode() ast.Node
- func (s BasicLit) CallTreeNode(cond func(n Node) bool) Node
- func (s BasicLit) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *BasicLit) ChildByName(name string) Node
- func (s *BasicLit) ChildByNodeType(nodeType NodeType) Node
- func (s *BasicLit) ChildNode(cond func(n Node) bool) Node
- func (s *BasicLit) ChildNodes(cond func(n Node) bool) []Node
- func (s *BasicLit) Children() []Node
- func (s *BasicLit) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *BasicLit) Contains(node Node) bool
- func (s *BasicLit) FindByName(name string) []Node
- func (s *BasicLit) FindByNodeType(nodeType NodeType) []Node
- func (s *BasicLit) FindByToken(t token.Token) []Node
- func (s *BasicLit) FindByValueType(valType string) []Node
- func (s *BasicLit) FindDeclarations() []*Ident
- func (s *BasicLit) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *BasicLit) FindFirstByName(name string) Node
- func (s *BasicLit) FindFirstByNodeType(nodeType NodeType) Node
- func (s *BasicLit) FindFirstIdentByName(name string) *Ident
- func (s *BasicLit) FindFirstUsage(declaration *Ident) *Ident
- func (s *BasicLit) FindIdentByName(name string) []*Ident
- func (s *BasicLit) FindMaps() []Node
- func (s *BasicLit) FindNameInCallTree(name string) []Node
- func (s *BasicLit) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *BasicLit) FindUsages(declaration *Ident) []*Ident
- func (s *BasicLit) FindVarDeclarations() []*Ident
- func (s *BasicLit) GetScope() (Node, *types.Scope)
- func (s *BasicLit) GetSource() []byte
- func (s *BasicLit) GetSourceString() string
- func (s *BasicLit) Info() *types.Info
- func (s *BasicLit) IsContainedByType(nodeType NodeType) bool
- func (s *BasicLit) IsNodeType(nodeType NodeType) bool
- func (s *BasicLit) IsValueType(valType string) bool
- func (s *BasicLit) Level() int
- func (s *BasicLit) Match(regex regexp.Regexp) bool
- func (s *BasicLit) NextParentByType(nodeType NodeType) Node
- func (s *BasicLit) NodeType() NodeType
- func (s *BasicLit) Object() types.Object
- func (s *BasicLit) Parent() Node
- func (s *BasicLit) Parents() []Node
- func (s *BasicLit) Pkg() *Package
- func (s *BasicLit) Siblings() []Node
- func (s *BasicLit) Token() token.Token
- func (s *BasicLit) TreeNode(cond func(n Node) bool) Node
- func (s *BasicLit) TreeNodes(cond func(n Node) bool) []Node
- func (s *BasicLit) ValueType() types.Type
- func (s *BasicLit) Visit(node ast.Node) ast.Visitor
- func (s *BasicLit) Walk(f func(node Node) bool)
- type BinaryExpr
- func (s *BinaryExpr) AstNode() ast.Node
- func (s BinaryExpr) CallTreeNode(cond func(n Node) bool) Node
- func (s BinaryExpr) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *BinaryExpr) ChildByName(name string) Node
- func (s *BinaryExpr) ChildByNodeType(nodeType NodeType) Node
- func (s *BinaryExpr) ChildNode(cond func(n Node) bool) Node
- func (s *BinaryExpr) ChildNodes(cond func(n Node) bool) []Node
- func (s *BinaryExpr) Children() []Node
- func (s *BinaryExpr) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *BinaryExpr) Contains(node Node) bool
- func (s *BinaryExpr) FindByName(name string) []Node
- func (s *BinaryExpr) FindByNodeType(nodeType NodeType) []Node
- func (s *BinaryExpr) FindByToken(t token.Token) []Node
- func (s *BinaryExpr) FindByValueType(valType string) []Node
- func (s *BinaryExpr) FindDeclarations() []*Ident
- func (s *BinaryExpr) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *BinaryExpr) FindFirstByName(name string) Node
- func (s *BinaryExpr) FindFirstByNodeType(nodeType NodeType) Node
- func (s *BinaryExpr) FindFirstIdentByName(name string) *Ident
- func (s *BinaryExpr) FindFirstUsage(declaration *Ident) *Ident
- func (s *BinaryExpr) FindIdentByName(name string) []*Ident
- func (s *BinaryExpr) FindMaps() []Node
- func (s *BinaryExpr) FindNameInCallTree(name string) []Node
- func (s *BinaryExpr) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *BinaryExpr) FindUsages(declaration *Ident) []*Ident
- func (s *BinaryExpr) FindVarDeclarations() []*Ident
- func (s *BinaryExpr) GetScope() (Node, *types.Scope)
- func (s *BinaryExpr) GetSource() []byte
- func (s *BinaryExpr) GetSourceString() string
- func (s *BinaryExpr) Info() *types.Info
- func (s *BinaryExpr) IsContainedByType(nodeType NodeType) bool
- func (s *BinaryExpr) IsNodeType(nodeType NodeType) bool
- func (s *BinaryExpr) IsValueType(valType string) bool
- func (s *BinaryExpr) Level() int
- func (s *BinaryExpr) Match(regex regexp.Regexp) bool
- func (s *BinaryExpr) NextParentByType(nodeType NodeType) Node
- func (s *BinaryExpr) NodeType() NodeType
- func (s *BinaryExpr) Object() types.Object
- func (s *BinaryExpr) Parent() Node
- func (s *BinaryExpr) Parents() []Node
- func (s *BinaryExpr) Pkg() *Package
- func (s *BinaryExpr) Siblings() []Node
- func (s *BinaryExpr) Token() token.Token
- func (s *BinaryExpr) TreeNode(cond func(n Node) bool) Node
- func (s *BinaryExpr) TreeNodes(cond func(n Node) bool) []Node
- func (s *BinaryExpr) ValueType() types.Type
- func (s *BinaryExpr) Visit(node ast.Node) ast.Visitor
- func (s *BinaryExpr) Walk(f func(node Node) bool)
- func (s *BinaryExpr) X() Node
- func (s *BinaryExpr) Y() Node
- type BlockStmt
- func (s *BlockStmt) AstNode() ast.Node
- func (s BlockStmt) CallTreeNode(cond func(n Node) bool) Node
- func (s BlockStmt) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *BlockStmt) ChildByName(name string) Node
- func (s *BlockStmt) ChildByNodeType(nodeType NodeType) Node
- func (s *BlockStmt) ChildNode(cond func(n Node) bool) Node
- func (s *BlockStmt) ChildNodes(cond func(n Node) bool) []Node
- func (s *BlockStmt) Children() []Node
- func (s *BlockStmt) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *BlockStmt) Contains(node Node) bool
- func (s *BlockStmt) FindByName(name string) []Node
- func (s *BlockStmt) FindByNodeType(nodeType NodeType) []Node
- func (s *BlockStmt) FindByToken(t token.Token) []Node
- func (s *BlockStmt) FindByValueType(valType string) []Node
- func (s *BlockStmt) FindDeclarations() []*Ident
- func (s *BlockStmt) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *BlockStmt) FindFirstByName(name string) Node
- func (s *BlockStmt) FindFirstByNodeType(nodeType NodeType) Node
- func (s *BlockStmt) FindFirstIdentByName(name string) *Ident
- func (s *BlockStmt) FindFirstUsage(declaration *Ident) *Ident
- func (s *BlockStmt) FindIdentByName(name string) []*Ident
- func (s *BlockStmt) FindMaps() []Node
- func (s *BlockStmt) FindNameInCallTree(name string) []Node
- func (s *BlockStmt) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *BlockStmt) FindUsages(declaration *Ident) []*Ident
- func (s *BlockStmt) FindVarDeclarations() []*Ident
- func (s *BlockStmt) GetScope() (Node, *types.Scope)
- func (s *BlockStmt) GetSource() []byte
- func (s *BlockStmt) GetSourceString() string
- func (s *BlockStmt) Info() *types.Info
- func (s *BlockStmt) IsContainedByType(nodeType NodeType) bool
- func (s *BlockStmt) IsNodeType(nodeType NodeType) bool
- func (s *BlockStmt) IsValueType(valType string) bool
- func (s *BlockStmt) Level() int
- func (s *BlockStmt) Match(regex regexp.Regexp) bool
- func (s *BlockStmt) NextParentByType(nodeType NodeType) Node
- func (s *BlockStmt) NodeType() NodeType
- func (s *BlockStmt) Object() types.Object
- func (s *BlockStmt) Parent() Node
- func (s *BlockStmt) Parents() []Node
- func (s *BlockStmt) Pkg() *Package
- func (s *BlockStmt) Siblings() []Node
- func (s *BlockStmt) TreeNode(cond func(n Node) bool) Node
- func (s *BlockStmt) TreeNodes(cond func(n Node) bool) []Node
- func (s *BlockStmt) ValueType() types.Type
- func (s *BlockStmt) Visit(node ast.Node) ast.Visitor
- func (s *BlockStmt) Walk(f func(node Node) bool)
- type BranchStmt
- func (s *BranchStmt) AstNode() ast.Node
- func (s BranchStmt) CallTreeNode(cond func(n Node) bool) Node
- func (s BranchStmt) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *BranchStmt) ChildByName(name string) Node
- func (s *BranchStmt) ChildByNodeType(nodeType NodeType) Node
- func (s *BranchStmt) ChildNode(cond func(n Node) bool) Node
- func (s *BranchStmt) ChildNodes(cond func(n Node) bool) []Node
- func (s *BranchStmt) Children() []Node
- func (s *BranchStmt) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *BranchStmt) Contains(node Node) bool
- func (s *BranchStmt) FindByName(name string) []Node
- func (s *BranchStmt) FindByNodeType(nodeType NodeType) []Node
- func (s *BranchStmt) FindByToken(t token.Token) []Node
- func (s *BranchStmt) FindByValueType(valType string) []Node
- func (s *BranchStmt) FindDeclarations() []*Ident
- func (s *BranchStmt) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *BranchStmt) FindFirstByName(name string) Node
- func (s *BranchStmt) FindFirstByNodeType(nodeType NodeType) Node
- func (s *BranchStmt) FindFirstIdentByName(name string) *Ident
- func (s *BranchStmt) FindFirstUsage(declaration *Ident) *Ident
- func (s *BranchStmt) FindIdentByName(name string) []*Ident
- func (s *BranchStmt) FindMaps() []Node
- func (s *BranchStmt) FindNameInCallTree(name string) []Node
- func (s *BranchStmt) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *BranchStmt) FindUsages(declaration *Ident) []*Ident
- func (s *BranchStmt) FindVarDeclarations() []*Ident
- func (s *BranchStmt) GetIdent() *Ident
- func (s *BranchStmt) GetScope() (Node, *types.Scope)
- func (s *BranchStmt) GetSource() []byte
- func (s *BranchStmt) GetSourceString() string
- func (s *BranchStmt) Info() *types.Info
- func (s *BranchStmt) IsContainedByType(nodeType NodeType) bool
- func (s *BranchStmt) IsNodeType(nodeType NodeType) bool
- func (s *BranchStmt) IsValueType(valType string) bool
- func (s *BranchStmt) Level() int
- func (s *BranchStmt) Match(regex regexp.Regexp) bool
- func (s *BranchStmt) NextParentByType(nodeType NodeType) Node
- func (s *BranchStmt) NodeName() string
- func (s *BranchStmt) NodeType() NodeType
- func (s *BranchStmt) Object() types.Object
- func (s *BranchStmt) Parent() Node
- func (s *BranchStmt) Parents() []Node
- func (s *BranchStmt) Pkg() *Package
- func (s *BranchStmt) Siblings() []Node
- func (s *BranchStmt) Token() token.Token
- func (s *BranchStmt) TreeNode(cond func(n Node) bool) Node
- func (s *BranchStmt) TreeNodes(cond func(n Node) bool) []Node
- func (s *BranchStmt) ValueType() types.Type
- func (s *BranchStmt) Visit(node ast.Node) ast.Visitor
- func (s *BranchStmt) Walk(f func(node Node) bool)
- type CallExpr
- func (s *CallExpr) AstNode() ast.Node
- func (s CallExpr) CallTreeNode(cond func(n Node) bool) Node
- func (s CallExpr) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *CallExpr) ChildByName(name string) Node
- func (s *CallExpr) ChildByNodeType(nodeType NodeType) Node
- func (s *CallExpr) ChildNode(cond func(n Node) bool) Node
- func (s *CallExpr) ChildNodes(cond func(n Node) bool) []Node
- func (s *CallExpr) Children() []Node
- func (s *CallExpr) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *CallExpr) Contains(node Node) bool
- func (s *CallExpr) FindByName(name string) []Node
- func (s *CallExpr) FindByNodeType(nodeType NodeType) []Node
- func (s *CallExpr) FindByToken(t token.Token) []Node
- func (s *CallExpr) FindByValueType(valType string) []Node
- func (s *CallExpr) FindDeclarations() []*Ident
- func (s *CallExpr) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *CallExpr) FindFirstByName(name string) Node
- func (s *CallExpr) FindFirstByNodeType(nodeType NodeType) Node
- func (s *CallExpr) FindFirstIdentByName(name string) *Ident
- func (s *CallExpr) FindFirstUsage(declaration *Ident) *Ident
- func (s *CallExpr) FindIdentByName(name string) []*Ident
- func (s *CallExpr) FindMaps() []Node
- func (s *CallExpr) FindNameInCallTree(name string) []Node
- func (s *CallExpr) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *CallExpr) FindUsages(declaration *Ident) []*Ident
- func (s *CallExpr) FindVarDeclarations() []*Ident
- func (s *CallExpr) GetIdent() *Ident
- func (s *CallExpr) GetScope() (Node, *types.Scope)
- func (s *CallExpr) GetSource() []byte
- func (s *CallExpr) GetSourceString() string
- func (s *CallExpr) Info() *types.Info
- func (s *CallExpr) IsContainedByType(nodeType NodeType) bool
- func (s *CallExpr) IsNodeType(nodeType NodeType) bool
- func (s *CallExpr) IsValueType(valType string) bool
- func (s *CallExpr) Level() int
- func (s *CallExpr) Match(regex regexp.Regexp) bool
- func (s *CallExpr) NextParentByType(nodeType NodeType) Node
- func (s *CallExpr) NodeName() string
- func (s *CallExpr) NodeType() NodeType
- func (s *CallExpr) Object() types.Object
- func (s *CallExpr) Parent() Node
- func (s *CallExpr) Parents() []Node
- func (s *CallExpr) Pkg() *Package
- func (s *CallExpr) Siblings() []Node
- func (s *CallExpr) TreeNode(cond func(n Node) bool) Node
- func (s *CallExpr) TreeNodes(cond func(n Node) bool) []Node
- func (s *CallExpr) ValueType() types.Type
- func (s *CallExpr) Visit(node ast.Node) ast.Visitor
- func (s *CallExpr) Walk(f func(node Node) bool)
- type CaseClause
- func (s *CaseClause) AstNode() ast.Node
- func (s CaseClause) CallTreeNode(cond func(n Node) bool) Node
- func (s CaseClause) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *CaseClause) ChildByName(name string) Node
- func (s *CaseClause) ChildByNodeType(nodeType NodeType) Node
- func (s *CaseClause) ChildNode(cond func(n Node) bool) Node
- func (s *CaseClause) ChildNodes(cond func(n Node) bool) []Node
- func (s *CaseClause) Children() []Node
- func (s *CaseClause) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *CaseClause) Contains(node Node) bool
- func (s *CaseClause) FindByName(name string) []Node
- func (s *CaseClause) FindByNodeType(nodeType NodeType) []Node
- func (s *CaseClause) FindByToken(t token.Token) []Node
- func (s *CaseClause) FindByValueType(valType string) []Node
- func (s *CaseClause) FindDeclarations() []*Ident
- func (s *CaseClause) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *CaseClause) FindFirstByName(name string) Node
- func (s *CaseClause) FindFirstByNodeType(nodeType NodeType) Node
- func (s *CaseClause) FindFirstIdentByName(name string) *Ident
- func (s *CaseClause) FindFirstUsage(declaration *Ident) *Ident
- func (s *CaseClause) FindIdentByName(name string) []*Ident
- func (s *CaseClause) FindMaps() []Node
- func (s *CaseClause) FindNameInCallTree(name string) []Node
- func (s *CaseClause) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *CaseClause) FindUsages(declaration *Ident) []*Ident
- func (s *CaseClause) FindVarDeclarations() []*Ident
- func (s *CaseClause) GetScope() (Node, *types.Scope)
- func (s *CaseClause) GetSource() []byte
- func (s *CaseClause) GetSourceString() string
- func (s *CaseClause) Info() *types.Info
- func (s *CaseClause) IsContainedByType(nodeType NodeType) bool
- func (s *CaseClause) IsNodeType(nodeType NodeType) bool
- func (s *CaseClause) IsValueType(valType string) bool
- func (s *CaseClause) Level() int
- func (s *CaseClause) Match(regex regexp.Regexp) bool
- func (s *CaseClause) NextParentByType(nodeType NodeType) Node
- func (s *CaseClause) NodeType() NodeType
- func (s *CaseClause) Object() types.Object
- func (s *CaseClause) Parent() Node
- func (s *CaseClause) Parents() []Node
- func (s *CaseClause) Pkg() *Package
- func (s *CaseClause) Siblings() []Node
- func (s *CaseClause) TreeNode(cond func(n Node) bool) Node
- func (s *CaseClause) TreeNodes(cond func(n Node) bool) []Node
- func (s *CaseClause) ValueType() types.Type
- func (s *CaseClause) Visit(node ast.Node) ast.Visitor
- func (s *CaseClause) Walk(f func(node Node) bool)
- type ChanType
- func (s *ChanType) AstNode() ast.Node
- func (s ChanType) CallTreeNode(cond func(n Node) bool) Node
- func (s ChanType) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *ChanType) ChildByName(name string) Node
- func (s *ChanType) ChildByNodeType(nodeType NodeType) Node
- func (s *ChanType) ChildNode(cond func(n Node) bool) Node
- func (s *ChanType) ChildNodes(cond func(n Node) bool) []Node
- func (s *ChanType) Children() []Node
- func (s *ChanType) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *ChanType) Contains(node Node) bool
- func (s *ChanType) FindByName(name string) []Node
- func (s *ChanType) FindByNodeType(nodeType NodeType) []Node
- func (s *ChanType) FindByToken(t token.Token) []Node
- func (s *ChanType) FindByValueType(valType string) []Node
- func (s *ChanType) FindDeclarations() []*Ident
- func (s *ChanType) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *ChanType) FindFirstByName(name string) Node
- func (s *ChanType) FindFirstByNodeType(nodeType NodeType) Node
- func (s *ChanType) FindFirstIdentByName(name string) *Ident
- func (s *ChanType) FindFirstUsage(declaration *Ident) *Ident
- func (s *ChanType) FindIdentByName(name string) []*Ident
- func (s *ChanType) FindMaps() []Node
- func (s *ChanType) FindNameInCallTree(name string) []Node
- func (s *ChanType) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *ChanType) FindUsages(declaration *Ident) []*Ident
- func (s *ChanType) FindVarDeclarations() []*Ident
- func (s *ChanType) GetScope() (Node, *types.Scope)
- func (s *ChanType) GetSource() []byte
- func (s *ChanType) GetSourceString() string
- func (s *ChanType) Info() *types.Info
- func (s *ChanType) IsContainedByType(nodeType NodeType) bool
- func (s *ChanType) IsNodeType(nodeType NodeType) bool
- func (s *ChanType) IsValueType(valType string) bool
- func (s *ChanType) Level() int
- func (s *ChanType) Match(regex regexp.Regexp) bool
- func (s *ChanType) NextParentByType(nodeType NodeType) Node
- func (s *ChanType) NodeType() NodeType
- func (s *ChanType) Object() types.Object
- func (s *ChanType) Parent() Node
- func (s *ChanType) Parents() []Node
- func (s *ChanType) Pkg() *Package
- func (s *ChanType) Siblings() []Node
- func (s *ChanType) TreeNode(cond func(n Node) bool) Node
- func (s *ChanType) TreeNodes(cond func(n Node) bool) []Node
- func (s *ChanType) ValueType() types.Type
- func (s *ChanType) Visit(node ast.Node) ast.Visitor
- func (s *ChanType) Walk(f func(node Node) bool)
- type CommClause
- func (s *CommClause) AstNode() ast.Node
- func (s CommClause) CallTreeNode(cond func(n Node) bool) Node
- func (s CommClause) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *CommClause) ChildByName(name string) Node
- func (s *CommClause) ChildByNodeType(nodeType NodeType) Node
- func (s *CommClause) ChildNode(cond func(n Node) bool) Node
- func (s *CommClause) ChildNodes(cond func(n Node) bool) []Node
- func (s *CommClause) Children() []Node
- func (s *CommClause) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *CommClause) Contains(node Node) bool
- func (s *CommClause) FindByName(name string) []Node
- func (s *CommClause) FindByNodeType(nodeType NodeType) []Node
- func (s *CommClause) FindByToken(t token.Token) []Node
- func (s *CommClause) FindByValueType(valType string) []Node
- func (s *CommClause) FindDeclarations() []*Ident
- func (s *CommClause) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *CommClause) FindFirstByName(name string) Node
- func (s *CommClause) FindFirstByNodeType(nodeType NodeType) Node
- func (s *CommClause) FindFirstIdentByName(name string) *Ident
- func (s *CommClause) FindFirstUsage(declaration *Ident) *Ident
- func (s *CommClause) FindIdentByName(name string) []*Ident
- func (s *CommClause) FindMaps() []Node
- func (s *CommClause) FindNameInCallTree(name string) []Node
- func (s *CommClause) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *CommClause) FindUsages(declaration *Ident) []*Ident
- func (s *CommClause) FindVarDeclarations() []*Ident
- func (s *CommClause) GetScope() (Node, *types.Scope)
- func (s *CommClause) GetSource() []byte
- func (s *CommClause) GetSourceString() string
- func (s *CommClause) Info() *types.Info
- func (s *CommClause) IsContainedByType(nodeType NodeType) bool
- func (s *CommClause) IsNodeType(nodeType NodeType) bool
- func (s *CommClause) IsValueType(valType string) bool
- func (s *CommClause) Level() int
- func (s *CommClause) Match(regex regexp.Regexp) bool
- func (s *CommClause) NextParentByType(nodeType NodeType) Node
- func (s *CommClause) NodeType() NodeType
- func (s *CommClause) Object() types.Object
- func (s *CommClause) Parent() Node
- func (s *CommClause) Parents() []Node
- func (s *CommClause) Pkg() *Package
- func (s *CommClause) Siblings() []Node
- func (s *CommClause) TreeNode(cond func(n Node) bool) Node
- func (s *CommClause) TreeNodes(cond func(n Node) bool) []Node
- func (s *CommClause) ValueType() types.Type
- func (s *CommClause) Visit(node ast.Node) ast.Visitor
- func (s *CommClause) Walk(f func(node Node) bool)
- type Comment
- func (s *Comment) AstNode() ast.Node
- func (s Comment) CallTreeNode(cond func(n Node) bool) Node
- func (s Comment) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *Comment) ChildByName(name string) Node
- func (s *Comment) ChildByNodeType(nodeType NodeType) Node
- func (s *Comment) ChildNode(cond func(n Node) bool) Node
- func (s *Comment) ChildNodes(cond func(n Node) bool) []Node
- func (s *Comment) Children() []Node
- func (s *Comment) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *Comment) Contains(node Node) bool
- func (s *Comment) FindByName(name string) []Node
- func (s *Comment) FindByNodeType(nodeType NodeType) []Node
- func (s *Comment) FindByToken(t token.Token) []Node
- func (s *Comment) FindByValueType(valType string) []Node
- func (s *Comment) FindDeclarations() []*Ident
- func (s *Comment) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *Comment) FindFirstByName(name string) Node
- func (s *Comment) FindFirstByNodeType(nodeType NodeType) Node
- func (s *Comment) FindFirstIdentByName(name string) *Ident
- func (s *Comment) FindFirstUsage(declaration *Ident) *Ident
- func (s *Comment) FindIdentByName(name string) []*Ident
- func (s *Comment) FindMaps() []Node
- func (s *Comment) FindNameInCallTree(name string) []Node
- func (s *Comment) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *Comment) FindUsages(declaration *Ident) []*Ident
- func (s *Comment) FindVarDeclarations() []*Ident
- func (s *Comment) GetScope() (Node, *types.Scope)
- func (s *Comment) GetSource() []byte
- func (s *Comment) GetSourceString() string
- func (s *Comment) Info() *types.Info
- func (s *Comment) IsContainedByType(nodeType NodeType) bool
- func (s *Comment) IsNodeType(nodeType NodeType) bool
- func (s *Comment) IsValueType(valType string) bool
- func (s *Comment) Level() int
- func (s *Comment) Match(regex regexp.Regexp) bool
- func (s *Comment) NextParentByType(nodeType NodeType) Node
- func (s *Comment) NodeType() NodeType
- func (s *Comment) Object() types.Object
- func (s *Comment) Parent() Node
- func (s *Comment) Parents() []Node
- func (s *Comment) Pkg() *Package
- func (s *Comment) Siblings() []Node
- func (s *Comment) TreeNode(cond func(n Node) bool) Node
- func (s *Comment) TreeNodes(cond func(n Node) bool) []Node
- func (s *Comment) ValueType() types.Type
- func (s *Comment) Visit(node ast.Node) ast.Visitor
- func (s *Comment) Walk(f func(node Node) bool)
- type CommentGroup
- func (s *CommentGroup) AstNode() ast.Node
- func (s CommentGroup) CallTreeNode(cond func(n Node) bool) Node
- func (s CommentGroup) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *CommentGroup) ChildByName(name string) Node
- func (s *CommentGroup) ChildByNodeType(nodeType NodeType) Node
- func (s *CommentGroup) ChildNode(cond func(n Node) bool) Node
- func (s *CommentGroup) ChildNodes(cond func(n Node) bool) []Node
- func (s *CommentGroup) Children() []Node
- func (s *CommentGroup) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *CommentGroup) Contains(node Node) bool
- func (s *CommentGroup) FindByName(name string) []Node
- func (s *CommentGroup) FindByNodeType(nodeType NodeType) []Node
- func (s *CommentGroup) FindByToken(t token.Token) []Node
- func (s *CommentGroup) FindByValueType(valType string) []Node
- func (s *CommentGroup) FindDeclarations() []*Ident
- func (s *CommentGroup) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *CommentGroup) FindFirstByName(name string) Node
- func (s *CommentGroup) FindFirstByNodeType(nodeType NodeType) Node
- func (s *CommentGroup) FindFirstIdentByName(name string) *Ident
- func (s *CommentGroup) FindFirstUsage(declaration *Ident) *Ident
- func (s *CommentGroup) FindIdentByName(name string) []*Ident
- func (s *CommentGroup) FindMaps() []Node
- func (s *CommentGroup) FindNameInCallTree(name string) []Node
- func (s *CommentGroup) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *CommentGroup) FindUsages(declaration *Ident) []*Ident
- func (s *CommentGroup) FindVarDeclarations() []*Ident
- func (s *CommentGroup) GetScope() (Node, *types.Scope)
- func (s *CommentGroup) GetSource() []byte
- func (s *CommentGroup) GetSourceString() string
- func (s *CommentGroup) Info() *types.Info
- func (s *CommentGroup) IsContainedByType(nodeType NodeType) bool
- func (s *CommentGroup) IsNodeType(nodeType NodeType) bool
- func (s *CommentGroup) IsValueType(valType string) bool
- func (s *CommentGroup) Level() int
- func (s *CommentGroup) Match(regex regexp.Regexp) bool
- func (s *CommentGroup) NextParentByType(nodeType NodeType) Node
- func (s *CommentGroup) NodeType() NodeType
- func (s *CommentGroup) Object() types.Object
- func (s *CommentGroup) Parent() Node
- func (s *CommentGroup) Parents() []Node
- func (s *CommentGroup) Pkg() *Package
- func (s *CommentGroup) Siblings() []Node
- func (s *CommentGroup) TreeNode(cond func(n Node) bool) Node
- func (s *CommentGroup) TreeNodes(cond func(n Node) bool) []Node
- func (s *CommentGroup) ValueType() types.Type
- func (s *CommentGroup) Visit(node ast.Node) ast.Visitor
- func (s *CommentGroup) Walk(f func(node Node) bool)
- type CompositeLit
- func (s *CompositeLit) AstNode() ast.Node
- func (s CompositeLit) CallTreeNode(cond func(n Node) bool) Node
- func (s CompositeLit) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *CompositeLit) ChildByName(name string) Node
- func (s *CompositeLit) ChildByNodeType(nodeType NodeType) Node
- func (s *CompositeLit) ChildNode(cond func(n Node) bool) Node
- func (s *CompositeLit) ChildNodes(cond func(n Node) bool) []Node
- func (s *CompositeLit) Children() []Node
- func (s *CompositeLit) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *CompositeLit) Contains(node Node) bool
- func (s *CompositeLit) FindByName(name string) []Node
- func (s *CompositeLit) FindByNodeType(nodeType NodeType) []Node
- func (s *CompositeLit) FindByToken(t token.Token) []Node
- func (s *CompositeLit) FindByValueType(valType string) []Node
- func (s *CompositeLit) FindDeclarations() []*Ident
- func (s *CompositeLit) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *CompositeLit) FindFirstByName(name string) Node
- func (s *CompositeLit) FindFirstByNodeType(nodeType NodeType) Node
- func (s *CompositeLit) FindFirstIdentByName(name string) *Ident
- func (s *CompositeLit) FindFirstUsage(declaration *Ident) *Ident
- func (s *CompositeLit) FindIdentByName(name string) []*Ident
- func (s *CompositeLit) FindMaps() []Node
- func (s *CompositeLit) FindNameInCallTree(name string) []Node
- func (s *CompositeLit) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *CompositeLit) FindUsages(declaration *Ident) []*Ident
- func (s *CompositeLit) FindVarDeclarations() []*Ident
- func (s *CompositeLit) GetScope() (Node, *types.Scope)
- func (s *CompositeLit) GetSource() []byte
- func (s *CompositeLit) GetSourceString() string
- func (s *CompositeLit) Info() *types.Info
- func (s *CompositeLit) IsContainedByType(nodeType NodeType) bool
- func (s *CompositeLit) IsNodeType(nodeType NodeType) bool
- func (s *CompositeLit) IsValueType(valType string) bool
- func (s *CompositeLit) Level() int
- func (s *CompositeLit) Match(regex regexp.Regexp) bool
- func (s *CompositeLit) NextParentByType(nodeType NodeType) Node
- func (s *CompositeLit) NodeType() NodeType
- func (s *CompositeLit) Object() types.Object
- func (s *CompositeLit) Parent() Node
- func (s *CompositeLit) Parents() []Node
- func (s *CompositeLit) Pkg() *Package
- func (s *CompositeLit) Siblings() []Node
- func (s *CompositeLit) TreeNode(cond func(n Node) bool) Node
- func (s *CompositeLit) TreeNodes(cond func(n Node) bool) []Node
- func (s *CompositeLit) ValueType() types.Type
- func (s *CompositeLit) Visit(node ast.Node) ast.Visitor
- func (s *CompositeLit) Walk(f func(node Node) bool)
- type DeclStmt
- func (s *DeclStmt) AstNode() ast.Node
- func (s DeclStmt) CallTreeNode(cond func(n Node) bool) Node
- func (s DeclStmt) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *DeclStmt) ChildByName(name string) Node
- func (s *DeclStmt) ChildByNodeType(nodeType NodeType) Node
- func (s *DeclStmt) ChildNode(cond func(n Node) bool) Node
- func (s *DeclStmt) ChildNodes(cond func(n Node) bool) []Node
- func (s *DeclStmt) Children() []Node
- func (s *DeclStmt) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *DeclStmt) Contains(node Node) bool
- func (s *DeclStmt) FindByName(name string) []Node
- func (s *DeclStmt) FindByNodeType(nodeType NodeType) []Node
- func (s *DeclStmt) FindByToken(t token.Token) []Node
- func (s *DeclStmt) FindByValueType(valType string) []Node
- func (s *DeclStmt) FindDeclarations() []*Ident
- func (s *DeclStmt) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *DeclStmt) FindFirstByName(name string) Node
- func (s *DeclStmt) FindFirstByNodeType(nodeType NodeType) Node
- func (s *DeclStmt) FindFirstIdentByName(name string) *Ident
- func (s *DeclStmt) FindFirstUsage(declaration *Ident) *Ident
- func (s *DeclStmt) FindIdentByName(name string) []*Ident
- func (s *DeclStmt) FindMaps() []Node
- func (s *DeclStmt) FindNameInCallTree(name string) []Node
- func (s *DeclStmt) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *DeclStmt) FindUsages(declaration *Ident) []*Ident
- func (s *DeclStmt) FindVarDeclarations() []*Ident
- func (s *DeclStmt) GetScope() (Node, *types.Scope)
- func (s *DeclStmt) GetSource() []byte
- func (s *DeclStmt) GetSourceString() string
- func (s *DeclStmt) Info() *types.Info
- func (s *DeclStmt) IsContainedByType(nodeType NodeType) bool
- func (s *DeclStmt) IsNodeType(nodeType NodeType) bool
- func (s *DeclStmt) IsValueType(valType string) bool
- func (s *DeclStmt) Level() int
- func (s *DeclStmt) Match(regex regexp.Regexp) bool
- func (s *DeclStmt) NextParentByType(nodeType NodeType) Node
- func (s *DeclStmt) NodeType() NodeType
- func (s *DeclStmt) Object() types.Object
- func (s *DeclStmt) Parent() Node
- func (s *DeclStmt) Parents() []Node
- func (s *DeclStmt) Pkg() *Package
- func (s *DeclStmt) Siblings() []Node
- func (s *DeclStmt) TreeNode(cond func(n Node) bool) Node
- func (s *DeclStmt) TreeNodes(cond func(n Node) bool) []Node
- func (s *DeclStmt) ValueType() types.Type
- func (s *DeclStmt) Visit(node ast.Node) ast.Visitor
- func (s *DeclStmt) Walk(f func(node Node) bool)
- type DeferStmt
- func (s *DeferStmt) AstNode() ast.Node
- func (s DeferStmt) CallTreeNode(cond func(n Node) bool) Node
- func (s DeferStmt) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *DeferStmt) ChildByName(name string) Node
- func (s *DeferStmt) ChildByNodeType(nodeType NodeType) Node
- func (s *DeferStmt) ChildNode(cond func(n Node) bool) Node
- func (s *DeferStmt) ChildNodes(cond func(n Node) bool) []Node
- func (s *DeferStmt) Children() []Node
- func (s *DeferStmt) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *DeferStmt) Contains(node Node) bool
- func (s *DeferStmt) FindByName(name string) []Node
- func (s *DeferStmt) FindByNodeType(nodeType NodeType) []Node
- func (s *DeferStmt) FindByToken(t token.Token) []Node
- func (s *DeferStmt) FindByValueType(valType string) []Node
- func (s *DeferStmt) FindDeclarations() []*Ident
- func (s *DeferStmt) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *DeferStmt) FindFirstByName(name string) Node
- func (s *DeferStmt) FindFirstByNodeType(nodeType NodeType) Node
- func (s *DeferStmt) FindFirstIdentByName(name string) *Ident
- func (s *DeferStmt) FindFirstUsage(declaration *Ident) *Ident
- func (s *DeferStmt) FindIdentByName(name string) []*Ident
- func (s *DeferStmt) FindMaps() []Node
- func (s *DeferStmt) FindNameInCallTree(name string) []Node
- func (s *DeferStmt) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *DeferStmt) FindUsages(declaration *Ident) []*Ident
- func (s *DeferStmt) FindVarDeclarations() []*Ident
- func (s *DeferStmt) GetScope() (Node, *types.Scope)
- func (s *DeferStmt) GetSource() []byte
- func (s *DeferStmt) GetSourceString() string
- func (s *DeferStmt) Info() *types.Info
- func (s *DeferStmt) IsContainedByType(nodeType NodeType) bool
- func (s *DeferStmt) IsNodeType(nodeType NodeType) bool
- func (s *DeferStmt) IsValueType(valType string) bool
- func (s *DeferStmt) Level() int
- func (s *DeferStmt) Match(regex regexp.Regexp) bool
- func (s *DeferStmt) NextParentByType(nodeType NodeType) Node
- func (s *DeferStmt) NodeType() NodeType
- func (s *DeferStmt) Object() types.Object
- func (s *DeferStmt) Parent() Node
- func (s *DeferStmt) Parents() []Node
- func (s *DeferStmt) Pkg() *Package
- func (s *DeferStmt) Siblings() []Node
- func (s *DeferStmt) TreeNode(cond func(n Node) bool) Node
- func (s *DeferStmt) TreeNodes(cond func(n Node) bool) []Node
- func (s *DeferStmt) ValueType() types.Type
- func (s *DeferStmt) Visit(node ast.Node) ast.Visitor
- func (s *DeferStmt) Walk(f func(node Node) bool)
- type Ellipsis
- func (s *Ellipsis) AstNode() ast.Node
- func (s Ellipsis) CallTreeNode(cond func(n Node) bool) Node
- func (s Ellipsis) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *Ellipsis) ChildByName(name string) Node
- func (s *Ellipsis) ChildByNodeType(nodeType NodeType) Node
- func (s *Ellipsis) ChildNode(cond func(n Node) bool) Node
- func (s *Ellipsis) ChildNodes(cond func(n Node) bool) []Node
- func (s *Ellipsis) Children() []Node
- func (s *Ellipsis) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *Ellipsis) Contains(node Node) bool
- func (s *Ellipsis) FindByName(name string) []Node
- func (s *Ellipsis) FindByNodeType(nodeType NodeType) []Node
- func (s *Ellipsis) FindByToken(t token.Token) []Node
- func (s *Ellipsis) FindByValueType(valType string) []Node
- func (s *Ellipsis) FindDeclarations() []*Ident
- func (s *Ellipsis) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *Ellipsis) FindFirstByName(name string) Node
- func (s *Ellipsis) FindFirstByNodeType(nodeType NodeType) Node
- func (s *Ellipsis) FindFirstIdentByName(name string) *Ident
- func (s *Ellipsis) FindFirstUsage(declaration *Ident) *Ident
- func (s *Ellipsis) FindIdentByName(name string) []*Ident
- func (s *Ellipsis) FindMaps() []Node
- func (s *Ellipsis) FindNameInCallTree(name string) []Node
- func (s *Ellipsis) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *Ellipsis) FindUsages(declaration *Ident) []*Ident
- func (s *Ellipsis) FindVarDeclarations() []*Ident
- func (s *Ellipsis) GetScope() (Node, *types.Scope)
- func (s *Ellipsis) GetSource() []byte
- func (s *Ellipsis) GetSourceString() string
- func (s *Ellipsis) Info() *types.Info
- func (s *Ellipsis) IsContainedByType(nodeType NodeType) bool
- func (s *Ellipsis) IsNodeType(nodeType NodeType) bool
- func (s *Ellipsis) IsValueType(valType string) bool
- func (s *Ellipsis) Level() int
- func (s *Ellipsis) Match(regex regexp.Regexp) bool
- func (s *Ellipsis) NextParentByType(nodeType NodeType) Node
- func (s *Ellipsis) NodeType() NodeType
- func (s *Ellipsis) Object() types.Object
- func (s *Ellipsis) Parent() Node
- func (s *Ellipsis) Parents() []Node
- func (s *Ellipsis) Pkg() *Package
- func (s *Ellipsis) Siblings() []Node
- func (s *Ellipsis) TreeNode(cond func(n Node) bool) Node
- func (s *Ellipsis) TreeNodes(cond func(n Node) bool) []Node
- func (s *Ellipsis) ValueType() types.Type
- func (s *Ellipsis) Visit(node ast.Node) ast.Visitor
- func (s *Ellipsis) Walk(f func(node Node) bool)
- type EmptyStmt
- func (s *EmptyStmt) AstNode() ast.Node
- func (s EmptyStmt) CallTreeNode(cond func(n Node) bool) Node
- func (s EmptyStmt) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *EmptyStmt) ChildByName(name string) Node
- func (s *EmptyStmt) ChildByNodeType(nodeType NodeType) Node
- func (s *EmptyStmt) ChildNode(cond func(n Node) bool) Node
- func (s *EmptyStmt) ChildNodes(cond func(n Node) bool) []Node
- func (s *EmptyStmt) Children() []Node
- func (s *EmptyStmt) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *EmptyStmt) Contains(node Node) bool
- func (s *EmptyStmt) FindByName(name string) []Node
- func (s *EmptyStmt) FindByNodeType(nodeType NodeType) []Node
- func (s *EmptyStmt) FindByToken(t token.Token) []Node
- func (s *EmptyStmt) FindByValueType(valType string) []Node
- func (s *EmptyStmt) FindDeclarations() []*Ident
- func (s *EmptyStmt) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *EmptyStmt) FindFirstByName(name string) Node
- func (s *EmptyStmt) FindFirstByNodeType(nodeType NodeType) Node
- func (s *EmptyStmt) FindFirstIdentByName(name string) *Ident
- func (s *EmptyStmt) FindFirstUsage(declaration *Ident) *Ident
- func (s *EmptyStmt) FindIdentByName(name string) []*Ident
- func (s *EmptyStmt) FindMaps() []Node
- func (s *EmptyStmt) FindNameInCallTree(name string) []Node
- func (s *EmptyStmt) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *EmptyStmt) FindUsages(declaration *Ident) []*Ident
- func (s *EmptyStmt) FindVarDeclarations() []*Ident
- func (s *EmptyStmt) GetScope() (Node, *types.Scope)
- func (s *EmptyStmt) GetSource() []byte
- func (s *EmptyStmt) GetSourceString() string
- func (s *EmptyStmt) Info() *types.Info
- func (s *EmptyStmt) IsContainedByType(nodeType NodeType) bool
- func (s *EmptyStmt) IsNodeType(nodeType NodeType) bool
- func (s *EmptyStmt) IsValueType(valType string) bool
- func (s *EmptyStmt) Level() int
- func (s *EmptyStmt) Match(regex regexp.Regexp) bool
- func (s *EmptyStmt) NextParentByType(nodeType NodeType) Node
- func (s *EmptyStmt) NodeType() NodeType
- func (s *EmptyStmt) Object() types.Object
- func (s *EmptyStmt) Parent() Node
- func (s *EmptyStmt) Parents() []Node
- func (s *EmptyStmt) Pkg() *Package
- func (s *EmptyStmt) Siblings() []Node
- func (s *EmptyStmt) TreeNode(cond func(n Node) bool) Node
- func (s *EmptyStmt) TreeNodes(cond func(n Node) bool) []Node
- func (s *EmptyStmt) ValueType() types.Type
- func (s *EmptyStmt) Visit(node ast.Node) ast.Visitor
- func (s *EmptyStmt) Walk(f func(node Node) bool)
- type ExprStmt
- func (s *ExprStmt) AstNode() ast.Node
- func (s ExprStmt) CallTreeNode(cond func(n Node) bool) Node
- func (s ExprStmt) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *ExprStmt) ChildByName(name string) Node
- func (s *ExprStmt) ChildByNodeType(nodeType NodeType) Node
- func (s *ExprStmt) ChildNode(cond func(n Node) bool) Node
- func (s *ExprStmt) ChildNodes(cond func(n Node) bool) []Node
- func (s *ExprStmt) Children() []Node
- func (s *ExprStmt) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *ExprStmt) Contains(node Node) bool
- func (s *ExprStmt) FindByName(name string) []Node
- func (s *ExprStmt) FindByNodeType(nodeType NodeType) []Node
- func (s *ExprStmt) FindByToken(t token.Token) []Node
- func (s *ExprStmt) FindByValueType(valType string) []Node
- func (s *ExprStmt) FindDeclarations() []*Ident
- func (s *ExprStmt) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *ExprStmt) FindFirstByName(name string) Node
- func (s *ExprStmt) FindFirstByNodeType(nodeType NodeType) Node
- func (s *ExprStmt) FindFirstIdentByName(name string) *Ident
- func (s *ExprStmt) FindFirstUsage(declaration *Ident) *Ident
- func (s *ExprStmt) FindIdentByName(name string) []*Ident
- func (s *ExprStmt) FindMaps() []Node
- func (s *ExprStmt) FindNameInCallTree(name string) []Node
- func (s *ExprStmt) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *ExprStmt) FindUsages(declaration *Ident) []*Ident
- func (s *ExprStmt) FindVarDeclarations() []*Ident
- func (s *ExprStmt) GetScope() (Node, *types.Scope)
- func (s *ExprStmt) GetSource() []byte
- func (s *ExprStmt) GetSourceString() string
- func (s *ExprStmt) Info() *types.Info
- func (s *ExprStmt) IsContainedByType(nodeType NodeType) bool
- func (s *ExprStmt) IsNodeType(nodeType NodeType) bool
- func (s *ExprStmt) IsValueType(valType string) bool
- func (s *ExprStmt) Level() int
- func (s *ExprStmt) Match(regex regexp.Regexp) bool
- func (s *ExprStmt) NextParentByType(nodeType NodeType) Node
- func (s *ExprStmt) NodeType() NodeType
- func (s *ExprStmt) Object() types.Object
- func (s *ExprStmt) Parent() Node
- func (s *ExprStmt) Parents() []Node
- func (s *ExprStmt) Pkg() *Package
- func (s *ExprStmt) Siblings() []Node
- func (s *ExprStmt) TreeNode(cond func(n Node) bool) Node
- func (s *ExprStmt) TreeNodes(cond func(n Node) bool) []Node
- func (s *ExprStmt) ValueType() types.Type
- func (s *ExprStmt) Visit(node ast.Node) ast.Visitor
- func (s *ExprStmt) Walk(f func(node Node) bool)
- type Field
- func (s *Field) AstNode() ast.Node
- func (s Field) CallTreeNode(cond func(n Node) bool) Node
- func (s Field) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *Field) ChildByName(name string) Node
- func (s *Field) ChildByNodeType(nodeType NodeType) Node
- func (s *Field) ChildNode(cond func(n Node) bool) Node
- func (s *Field) ChildNodes(cond func(n Node) bool) []Node
- func (s *Field) Children() []Node
- func (s *Field) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *Field) Contains(node Node) bool
- func (s *Field) FindByName(name string) []Node
- func (s *Field) FindByNodeType(nodeType NodeType) []Node
- func (s *Field) FindByToken(t token.Token) []Node
- func (s *Field) FindByValueType(valType string) []Node
- func (s *Field) FindDeclarations() []*Ident
- func (s *Field) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *Field) FindFirstByName(name string) Node
- func (s *Field) FindFirstByNodeType(nodeType NodeType) Node
- func (s *Field) FindFirstIdentByName(name string) *Ident
- func (s *Field) FindFirstUsage(declaration *Ident) *Ident
- func (s *Field) FindIdentByName(name string) []*Ident
- func (s *Field) FindMaps() []Node
- func (s *Field) FindNameInCallTree(name string) []Node
- func (s *Field) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *Field) FindUsages(declaration *Ident) []*Ident
- func (s *Field) FindVarDeclarations() []*Ident
- func (s *Field) GetIdent() *Ident
- func (s *Field) GetScope() (Node, *types.Scope)
- func (s *Field) GetSource() []byte
- func (s *Field) GetSourceString() string
- func (s *Field) Info() *types.Info
- func (s *Field) IsContainedByType(nodeType NodeType) bool
- func (s *Field) IsNodeType(nodeType NodeType) bool
- func (s *Field) IsValueType(valType string) bool
- func (s *Field) Level() int
- func (s *Field) Match(regex regexp.Regexp) bool
- func (s *Field) NextParentByType(nodeType NodeType) Node
- func (s *Field) NodeName() string
- func (s *Field) NodeType() NodeType
- func (s *Field) Object() types.Object
- func (s *Field) Parent() Node
- func (s *Field) Parents() []Node
- func (s *Field) Pkg() *Package
- func (s *Field) Siblings() []Node
- func (s *Field) TreeNode(cond func(n Node) bool) Node
- func (s *Field) TreeNodes(cond func(n Node) bool) []Node
- func (s *Field) ValueType() types.Type
- func (s *Field) Visit(node ast.Node) ast.Visitor
- func (s *Field) Walk(f func(node Node) bool)
- type FieldList
- func (s *FieldList) AstNode() ast.Node
- func (s FieldList) CallTreeNode(cond func(n Node) bool) Node
- func (s FieldList) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *FieldList) ChildByName(name string) Node
- func (s *FieldList) ChildByNodeType(nodeType NodeType) Node
- func (s *FieldList) ChildNode(cond func(n Node) bool) Node
- func (s *FieldList) ChildNodes(cond func(n Node) bool) []Node
- func (s *FieldList) Children() []Node
- func (s *FieldList) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *FieldList) Contains(node Node) bool
- func (s *FieldList) FindByName(name string) []Node
- func (s *FieldList) FindByNodeType(nodeType NodeType) []Node
- func (s *FieldList) FindByToken(t token.Token) []Node
- func (s *FieldList) FindByValueType(valType string) []Node
- func (s *FieldList) FindDeclarations() []*Ident
- func (s *FieldList) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *FieldList) FindFirstByName(name string) Node
- func (s *FieldList) FindFirstByNodeType(nodeType NodeType) Node
- func (s *FieldList) FindFirstIdentByName(name string) *Ident
- func (s *FieldList) FindFirstUsage(declaration *Ident) *Ident
- func (s *FieldList) FindIdentByName(name string) []*Ident
- func (s *FieldList) FindMaps() []Node
- func (s *FieldList) FindNameInCallTree(name string) []Node
- func (s *FieldList) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *FieldList) FindUsages(declaration *Ident) []*Ident
- func (s *FieldList) FindVarDeclarations() []*Ident
- func (s *FieldList) GetScope() (Node, *types.Scope)
- func (s *FieldList) GetSource() []byte
- func (s *FieldList) GetSourceString() string
- func (s *FieldList) Info() *types.Info
- func (s *FieldList) IsContainedByType(nodeType NodeType) bool
- func (s *FieldList) IsNodeType(nodeType NodeType) bool
- func (s *FieldList) IsValueType(valType string) bool
- func (s *FieldList) Level() int
- func (s *FieldList) Match(regex regexp.Regexp) bool
- func (s *FieldList) NextParentByType(nodeType NodeType) Node
- func (s *FieldList) NodeType() NodeType
- func (s *FieldList) Object() types.Object
- func (s *FieldList) Parent() Node
- func (s *FieldList) Parents() []Node
- func (s *FieldList) Pkg() *Package
- func (s *FieldList) Siblings() []Node
- func (s *FieldList) TreeNode(cond func(n Node) bool) Node
- func (s *FieldList) TreeNodes(cond func(n Node) bool) []Node
- func (s *FieldList) ValueType() types.Type
- func (s *FieldList) Visit(node ast.Node) ast.Visitor
- func (s *FieldList) Walk(f func(node Node) bool)
- type File
- func (s *File) AstNode() ast.Node
- func (s File) CallTreeNode(cond func(n Node) bool) Node
- func (s File) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *File) ChildByName(name string) Node
- func (s *File) ChildByNodeType(nodeType NodeType) Node
- func (s *File) ChildNode(cond func(n Node) bool) Node
- func (s *File) ChildNodes(cond func(n Node) bool) []Node
- func (s *File) Children() []Node
- func (s *File) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *File) Contains(node Node) bool
- func (s *File) FindByName(name string) []Node
- func (s *File) FindByNodeType(nodeType NodeType) []Node
- func (s *File) FindByToken(t token.Token) []Node
- func (s *File) FindByValueType(valType string) []Node
- func (s *File) FindDeclarations() []*Ident
- func (s *File) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *File) FindFirstByName(name string) Node
- func (s *File) FindFirstByNodeType(nodeType NodeType) Node
- func (s *File) FindFirstIdentByName(name string) *Ident
- func (s *File) FindFirstUsage(declaration *Ident) *Ident
- func (s *File) FindIdentByName(name string) []*Ident
- func (s *File) FindMaps() []Node
- func (s *File) FindNameInCallTree(name string) []Node
- func (s *File) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *File) FindUsages(declaration *Ident) []*Ident
- func (s *File) FindVarDeclarations() []*Ident
- func (s *File) GetIdent() *Ident
- func (s *File) GetScope() (Node, *types.Scope)
- func (s *File) GetSource() []byte
- func (s *File) GetSourceString() string
- func (s *File) Info() *types.Info
- func (s *File) IsContainedByType(nodeType NodeType) bool
- func (s *File) IsNodeType(nodeType NodeType) bool
- func (s *File) IsValueType(valType string) bool
- func (s *File) Level() int
- func (s *File) Match(regex regexp.Regexp) bool
- func (s *File) NextParentByType(nodeType NodeType) Node
- func (s *File) NodeName() string
- func (s *File) NodeType() NodeType
- func (s *File) Object() types.Object
- func (s *File) Parent() Node
- func (s *File) Parents() []Node
- func (s *File) Pkg() *Package
- func (s *File) Siblings() []Node
- func (s *File) TreeNode(cond func(n Node) bool) Node
- func (s *File) TreeNodes(cond func(n Node) bool) []Node
- func (s *File) ValueType() types.Type
- func (s *File) Visit(node ast.Node) ast.Visitor
- func (s *File) Walk(f func(node Node) bool)
- type Folder
- type ForStmt
- func (s *ForStmt) AstNode() ast.Node
- func (s ForStmt) CallTreeNode(cond func(n Node) bool) Node
- func (s ForStmt) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *ForStmt) ChildByName(name string) Node
- func (s *ForStmt) ChildByNodeType(nodeType NodeType) Node
- func (s *ForStmt) ChildNode(cond func(n Node) bool) Node
- func (s *ForStmt) ChildNodes(cond func(n Node) bool) []Node
- func (s *ForStmt) Children() []Node
- func (s *ForStmt) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *ForStmt) Cond() Node
- func (s *ForStmt) Contains(node Node) bool
- func (s *ForStmt) FindByName(name string) []Node
- func (s *ForStmt) FindByNodeType(nodeType NodeType) []Node
- func (s *ForStmt) FindByToken(t token.Token) []Node
- func (s *ForStmt) FindByValueType(valType string) []Node
- func (s *ForStmt) FindDeclarations() []*Ident
- func (s *ForStmt) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *ForStmt) FindFirstByName(name string) Node
- func (s *ForStmt) FindFirstByNodeType(nodeType NodeType) Node
- func (s *ForStmt) FindFirstIdentByName(name string) *Ident
- func (s *ForStmt) FindFirstUsage(declaration *Ident) *Ident
- func (s *ForStmt) FindIdentByName(name string) []*Ident
- func (s *ForStmt) FindMaps() []Node
- func (s *ForStmt) FindNameInCallTree(name string) []Node
- func (s *ForStmt) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *ForStmt) FindUsages(declaration *Ident) []*Ident
- func (s *ForStmt) FindVarDeclarations() []*Ident
- func (s *ForStmt) GetScope() (Node, *types.Scope)
- func (s *ForStmt) GetSource() []byte
- func (s *ForStmt) GetSourceString() string
- func (s *ForStmt) Info() *types.Info
- func (s *ForStmt) Init() Node
- func (s *ForStmt) IsContainedByType(nodeType NodeType) bool
- func (s *ForStmt) IsNodeType(nodeType NodeType) bool
- func (s *ForStmt) IsValueType(valType string) bool
- func (s *ForStmt) Level() int
- func (s *ForStmt) Match(regex regexp.Regexp) bool
- func (s *ForStmt) NextParentByType(nodeType NodeType) Node
- func (s *ForStmt) NodeType() NodeType
- func (s *ForStmt) Object() types.Object
- func (s *ForStmt) Parent() Node
- func (s *ForStmt) Parents() []Node
- func (s *ForStmt) Pkg() *Package
- func (s *ForStmt) Post() Node
- func (s *ForStmt) Siblings() []Node
- func (s *ForStmt) TreeNode(cond func(n Node) bool) Node
- func (s *ForStmt) TreeNodes(cond func(n Node) bool) []Node
- func (s *ForStmt) ValueType() types.Type
- func (s *ForStmt) Visit(node ast.Node) ast.Visitor
- func (s *ForStmt) Walk(f func(node Node) bool)
- type FuncDecl
- func (s *FuncDecl) AstNode() ast.Node
- func (s FuncDecl) CallTreeNode(cond func(n Node) bool) Node
- func (s FuncDecl) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *FuncDecl) ChildByName(name string) Node
- func (s *FuncDecl) ChildByNodeType(nodeType NodeType) Node
- func (s *FuncDecl) ChildNode(cond func(n Node) bool) Node
- func (s *FuncDecl) ChildNodes(cond func(n Node) bool) []Node
- func (s *FuncDecl) Children() []Node
- func (s *FuncDecl) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *FuncDecl) Contains(node Node) bool
- func (s *FuncDecl) FindByName(name string) []Node
- func (s *FuncDecl) FindByNodeType(nodeType NodeType) []Node
- func (s *FuncDecl) FindByToken(t token.Token) []Node
- func (s *FuncDecl) FindByValueType(valType string) []Node
- func (s *FuncDecl) FindDeclarations() []*Ident
- func (s *FuncDecl) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *FuncDecl) FindFirstByName(name string) Node
- func (s *FuncDecl) FindFirstByNodeType(nodeType NodeType) Node
- func (s *FuncDecl) FindFirstIdentByName(name string) *Ident
- func (s *FuncDecl) FindFirstUsage(declaration *Ident) *Ident
- func (s *FuncDecl) FindIdentByName(name string) []*Ident
- func (s *FuncDecl) FindMaps() []Node
- func (s *FuncDecl) FindNameInCallTree(name string) []Node
- func (s *FuncDecl) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *FuncDecl) FindUsages(declaration *Ident) []*Ident
- func (s *FuncDecl) FindVarDeclarations() []*Ident
- func (s *FuncDecl) GetIdent() *Ident
- func (s *FuncDecl) GetScope() (Node, *types.Scope)
- func (s *FuncDecl) GetSource() []byte
- func (s *FuncDecl) GetSourceString() string
- func (s *FuncDecl) Info() *types.Info
- func (s *FuncDecl) IsContainedByType(nodeType NodeType) bool
- func (s *FuncDecl) IsNodeType(nodeType NodeType) bool
- func (s *FuncDecl) IsValueType(valType string) bool
- func (s *FuncDecl) Level() int
- func (s *FuncDecl) Match(regex regexp.Regexp) bool
- func (s *FuncDecl) NextParentByType(nodeType NodeType) Node
- func (s *FuncDecl) NodeName() string
- func (s *FuncDecl) NodeType() NodeType
- func (s *FuncDecl) Object() types.Object
- func (s *FuncDecl) Params() *FieldList
- func (s *FuncDecl) Parent() Node
- func (s *FuncDecl) Parents() []Node
- func (s *FuncDecl) Pkg() *Package
- func (s *FuncDecl) Results() *FieldList
- func (s *FuncDecl) Siblings() []Node
- func (s *FuncDecl) TreeNode(cond func(n Node) bool) Node
- func (s *FuncDecl) TreeNodes(cond func(n Node) bool) []Node
- func (s *FuncDecl) ValueType() types.Type
- func (s *FuncDecl) Visit(node ast.Node) ast.Visitor
- func (s *FuncDecl) Walk(f func(node Node) bool)
- type FuncLit
- func (s *FuncLit) AstNode() ast.Node
- func (s FuncLit) CallTreeNode(cond func(n Node) bool) Node
- func (s FuncLit) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *FuncLit) ChildByName(name string) Node
- func (s *FuncLit) ChildByNodeType(nodeType NodeType) Node
- func (s *FuncLit) ChildNode(cond func(n Node) bool) Node
- func (s *FuncLit) ChildNodes(cond func(n Node) bool) []Node
- func (s *FuncLit) Children() []Node
- func (s *FuncLit) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *FuncLit) Contains(node Node) bool
- func (s *FuncLit) FindByName(name string) []Node
- func (s *FuncLit) FindByNodeType(nodeType NodeType) []Node
- func (s *FuncLit) FindByToken(t token.Token) []Node
- func (s *FuncLit) FindByValueType(valType string) []Node
- func (s *FuncLit) FindDeclarations() []*Ident
- func (s *FuncLit) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *FuncLit) FindFirstByName(name string) Node
- func (s *FuncLit) FindFirstByNodeType(nodeType NodeType) Node
- func (s *FuncLit) FindFirstIdentByName(name string) *Ident
- func (s *FuncLit) FindFirstUsage(declaration *Ident) *Ident
- func (s *FuncLit) FindIdentByName(name string) []*Ident
- func (s *FuncLit) FindMaps() []Node
- func (s *FuncLit) FindNameInCallTree(name string) []Node
- func (s *FuncLit) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *FuncLit) FindUsages(declaration *Ident) []*Ident
- func (s *FuncLit) FindVarDeclarations() []*Ident
- func (s *FuncLit) GetScope() (Node, *types.Scope)
- func (s *FuncLit) GetSource() []byte
- func (s *FuncLit) GetSourceString() string
- func (s *FuncLit) Info() *types.Info
- func (s *FuncLit) IsContainedByType(nodeType NodeType) bool
- func (s *FuncLit) IsNodeType(nodeType NodeType) bool
- func (s *FuncLit) IsValueType(valType string) bool
- func (s *FuncLit) Level() int
- func (s *FuncLit) Match(regex regexp.Regexp) bool
- func (s *FuncLit) NextParentByType(nodeType NodeType) Node
- func (s *FuncLit) NodeType() NodeType
- func (s *FuncLit) Object() types.Object
- func (s *FuncLit) Parent() Node
- func (s *FuncLit) Parents() []Node
- func (s *FuncLit) Pkg() *Package
- func (s *FuncLit) Siblings() []Node
- func (s *FuncLit) TreeNode(cond func(n Node) bool) Node
- func (s *FuncLit) TreeNodes(cond func(n Node) bool) []Node
- func (s *FuncLit) ValueType() types.Type
- func (s *FuncLit) Visit(node ast.Node) ast.Visitor
- func (s *FuncLit) Walk(f func(node Node) bool)
- type FuncType
- func (s *FuncType) AstNode() ast.Node
- func (s FuncType) CallTreeNode(cond func(n Node) bool) Node
- func (s FuncType) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *FuncType) ChildByName(name string) Node
- func (s *FuncType) ChildByNodeType(nodeType NodeType) Node
- func (s *FuncType) ChildNode(cond func(n Node) bool) Node
- func (s *FuncType) ChildNodes(cond func(n Node) bool) []Node
- func (s *FuncType) Children() []Node
- func (s *FuncType) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *FuncType) Contains(node Node) bool
- func (s *FuncType) FindByName(name string) []Node
- func (s *FuncType) FindByNodeType(nodeType NodeType) []Node
- func (s *FuncType) FindByToken(t token.Token) []Node
- func (s *FuncType) FindByValueType(valType string) []Node
- func (s *FuncType) FindDeclarations() []*Ident
- func (s *FuncType) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *FuncType) FindFirstByName(name string) Node
- func (s *FuncType) FindFirstByNodeType(nodeType NodeType) Node
- func (s *FuncType) FindFirstIdentByName(name string) *Ident
- func (s *FuncType) FindFirstUsage(declaration *Ident) *Ident
- func (s *FuncType) FindIdentByName(name string) []*Ident
- func (s *FuncType) FindMaps() []Node
- func (s *FuncType) FindNameInCallTree(name string) []Node
- func (s *FuncType) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *FuncType) FindUsages(declaration *Ident) []*Ident
- func (s *FuncType) FindVarDeclarations() []*Ident
- func (s *FuncType) GetScope() (Node, *types.Scope)
- func (s *FuncType) GetSource() []byte
- func (s *FuncType) GetSourceString() string
- func (s *FuncType) Info() *types.Info
- func (s *FuncType) IsContainedByType(nodeType NodeType) bool
- func (s *FuncType) IsNodeType(nodeType NodeType) bool
- func (s *FuncType) IsValueType(valType string) bool
- func (s *FuncType) Level() int
- func (s *FuncType) Match(regex regexp.Regexp) bool
- func (s *FuncType) NextParentByType(nodeType NodeType) Node
- func (s *FuncType) NodeType() NodeType
- func (s *FuncType) Object() types.Object
- func (s *FuncType) Params() *FieldList
- func (s *FuncType) Parent() Node
- func (s *FuncType) Parents() []Node
- func (s *FuncType) Pkg() *Package
- func (s *FuncType) Results() *FieldList
- func (s *FuncType) Siblings() []Node
- func (s *FuncType) TreeNode(cond func(n Node) bool) Node
- func (s *FuncType) TreeNodes(cond func(n Node) bool) []Node
- func (s *FuncType) ValueType() types.Type
- func (s *FuncType) Visit(node ast.Node) ast.Visitor
- func (s *FuncType) Walk(f func(node Node) bool)
- type GenDecl
- func (s *GenDecl) AstNode() ast.Node
- func (s GenDecl) CallTreeNode(cond func(n Node) bool) Node
- func (s GenDecl) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *GenDecl) ChildByName(name string) Node
- func (s *GenDecl) ChildByNodeType(nodeType NodeType) Node
- func (s *GenDecl) ChildNode(cond func(n Node) bool) Node
- func (s *GenDecl) ChildNodes(cond func(n Node) bool) []Node
- func (s *GenDecl) Children() []Node
- func (s *GenDecl) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *GenDecl) Contains(node Node) bool
- func (s *GenDecl) FindByName(name string) []Node
- func (s *GenDecl) FindByNodeType(nodeType NodeType) []Node
- func (s *GenDecl) FindByToken(t token.Token) []Node
- func (s *GenDecl) FindByValueType(valType string) []Node
- func (s *GenDecl) FindDeclarations() []*Ident
- func (s *GenDecl) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *GenDecl) FindFirstByName(name string) Node
- func (s *GenDecl) FindFirstByNodeType(nodeType NodeType) Node
- func (s *GenDecl) FindFirstIdentByName(name string) *Ident
- func (s *GenDecl) FindFirstUsage(declaration *Ident) *Ident
- func (s *GenDecl) FindIdentByName(name string) []*Ident
- func (s *GenDecl) FindMaps() []Node
- func (s *GenDecl) FindNameInCallTree(name string) []Node
- func (s *GenDecl) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *GenDecl) FindUsages(declaration *Ident) []*Ident
- func (s *GenDecl) FindVarDeclarations() []*Ident
- func (s *GenDecl) GetScope() (Node, *types.Scope)
- func (s *GenDecl) GetSource() []byte
- func (s *GenDecl) GetSourceString() string
- func (s *GenDecl) Info() *types.Info
- func (s *GenDecl) IsContainedByType(nodeType NodeType) bool
- func (s *GenDecl) IsNodeType(nodeType NodeType) bool
- func (s *GenDecl) IsValueType(valType string) bool
- func (s *GenDecl) Level() int
- func (s *GenDecl) Match(regex regexp.Regexp) bool
- func (s *GenDecl) NextParentByType(nodeType NodeType) Node
- func (s *GenDecl) NodeType() NodeType
- func (s *GenDecl) Object() types.Object
- func (s *GenDecl) Parent() Node
- func (s *GenDecl) Parents() []Node
- func (s *GenDecl) Pkg() *Package
- func (s *GenDecl) Siblings() []Node
- func (s *GenDecl) Token() token.Token
- func (s *GenDecl) TreeNode(cond func(n Node) bool) Node
- func (s *GenDecl) TreeNodes(cond func(n Node) bool) []Node
- func (s *GenDecl) ValueType() types.Type
- func (s *GenDecl) Visit(node ast.Node) ast.Visitor
- func (s *GenDecl) Walk(f func(node Node) bool)
- type GoStmt
- func (s *GoStmt) AstNode() ast.Node
- func (s GoStmt) CallTreeNode(cond func(n Node) bool) Node
- func (s GoStmt) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *GoStmt) ChildByName(name string) Node
- func (s *GoStmt) ChildByNodeType(nodeType NodeType) Node
- func (s *GoStmt) ChildNode(cond func(n Node) bool) Node
- func (s *GoStmt) ChildNodes(cond func(n Node) bool) []Node
- func (s *GoStmt) Children() []Node
- func (s *GoStmt) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *GoStmt) Contains(node Node) bool
- func (s *GoStmt) FindByName(name string) []Node
- func (s *GoStmt) FindByNodeType(nodeType NodeType) []Node
- func (s *GoStmt) FindByToken(t token.Token) []Node
- func (s *GoStmt) FindByValueType(valType string) []Node
- func (s *GoStmt) FindDeclarations() []*Ident
- func (s *GoStmt) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *GoStmt) FindFirstByName(name string) Node
- func (s *GoStmt) FindFirstByNodeType(nodeType NodeType) Node
- func (s *GoStmt) FindFirstIdentByName(name string) *Ident
- func (s *GoStmt) FindFirstUsage(declaration *Ident) *Ident
- func (s *GoStmt) FindIdentByName(name string) []*Ident
- func (s *GoStmt) FindMaps() []Node
- func (s *GoStmt) FindNameInCallTree(name string) []Node
- func (s *GoStmt) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *GoStmt) FindUsages(declaration *Ident) []*Ident
- func (s *GoStmt) FindVarDeclarations() []*Ident
- func (s *GoStmt) GetScope() (Node, *types.Scope)
- func (s *GoStmt) GetSource() []byte
- func (s *GoStmt) GetSourceString() string
- func (s *GoStmt) Info() *types.Info
- func (s *GoStmt) IsContainedByType(nodeType NodeType) bool
- func (s *GoStmt) IsNodeType(nodeType NodeType) bool
- func (s *GoStmt) IsValueType(valType string) bool
- func (s *GoStmt) Level() int
- func (s *GoStmt) Match(regex regexp.Regexp) bool
- func (s *GoStmt) NextParentByType(nodeType NodeType) Node
- func (s *GoStmt) NodeType() NodeType
- func (s *GoStmt) Object() types.Object
- func (s *GoStmt) Parent() Node
- func (s *GoStmt) Parents() []Node
- func (s *GoStmt) Pkg() *Package
- func (s *GoStmt) Siblings() []Node
- func (s *GoStmt) TreeNode(cond func(n Node) bool) Node
- func (s *GoStmt) TreeNodes(cond func(n Node) bool) []Node
- func (s *GoStmt) ValueType() types.Type
- func (s *GoStmt) Visit(node ast.Node) ast.Visitor
- func (s *GoStmt) Walk(f func(node Node) bool)
- type Ident
- func (s *Ident) AstNode() ast.Node
- func (s Ident) CallTreeNode(cond func(n Node) bool) Node
- func (s Ident) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *Ident) ChildByName(name string) Node
- func (s *Ident) ChildByNodeType(nodeType NodeType) Node
- func (s *Ident) ChildNode(cond func(n Node) bool) Node
- func (s *Ident) ChildNodes(cond func(n Node) bool) []Node
- func (s *Ident) Children() []Node
- func (s *Ident) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *Ident) Contains(node Node) bool
- func (s *Ident) FindByName(name string) []Node
- func (s *Ident) FindByNodeType(nodeType NodeType) []Node
- func (s *Ident) FindByToken(t token.Token) []Node
- func (s *Ident) FindByValueType(valType string) []Node
- func (s *Ident) FindDeclarations() []*Ident
- func (s *Ident) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *Ident) FindFirstByName(name string) Node
- func (s *Ident) FindFirstByNodeType(nodeType NodeType) Node
- func (s *Ident) FindFirstIdentByName(name string) *Ident
- func (s *Ident) FindFirstUsage(declaration *Ident) *Ident
- func (s *Ident) FindIdentByName(name string) []*Ident
- func (s *Ident) FindMaps() []Node
- func (s *Ident) FindNameInCallTree(name string) []Node
- func (s *Ident) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *Ident) FindUsages(declaration *Ident) []*Ident
- func (s *Ident) FindVarDeclarations() []*Ident
- func (s *Ident) GetIdent() *Ident
- func (s *Ident) GetScope() (Node, *types.Scope)
- func (s *Ident) GetSource() []byte
- func (s *Ident) GetSourceString() string
- func (s *Ident) Info() *types.Info
- func (s *Ident) IsContainedByType(nodeType NodeType) bool
- func (s *Ident) IsNodeType(nodeType NodeType) bool
- func (s *Ident) IsValueType(valType string) bool
- func (s *Ident) Level() int
- func (s *Ident) Match(regex regexp.Regexp) bool
- func (s *Ident) NextParentByType(nodeType NodeType) Node
- func (s *Ident) NodeName() string
- func (s *Ident) NodeType() NodeType
- func (s *Ident) Object() types.Object
- func (s *Ident) Parent() Node
- func (s *Ident) Parents() []Node
- func (s *Ident) Pkg() *Package
- func (s *Ident) Siblings() []Node
- func (s *Ident) TreeNode(cond func(n Node) bool) Node
- func (s *Ident) TreeNodes(cond func(n Node) bool) []Node
- func (s *Ident) ValueType() types.Type
- func (s *Ident) Visit(node ast.Node) ast.Visitor
- func (s *Ident) Walk(f func(node Node) bool)
- type Identifier
- type IfStmt
- func (s *IfStmt) AstNode() ast.Node
- func (s IfStmt) CallTreeNode(cond func(n Node) bool) Node
- func (s IfStmt) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *IfStmt) ChildByName(name string) Node
- func (s *IfStmt) ChildByNodeType(nodeType NodeType) Node
- func (s *IfStmt) ChildNode(cond func(n Node) bool) Node
- func (s *IfStmt) ChildNodes(cond func(n Node) bool) []Node
- func (s *IfStmt) Children() []Node
- func (s *IfStmt) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *IfStmt) Contains(node Node) bool
- func (s *IfStmt) FindByName(name string) []Node
- func (s *IfStmt) FindByNodeType(nodeType NodeType) []Node
- func (s *IfStmt) FindByToken(t token.Token) []Node
- func (s *IfStmt) FindByValueType(valType string) []Node
- func (s *IfStmt) FindDeclarations() []*Ident
- func (s *IfStmt) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *IfStmt) FindFirstByName(name string) Node
- func (s *IfStmt) FindFirstByNodeType(nodeType NodeType) Node
- func (s *IfStmt) FindFirstIdentByName(name string) *Ident
- func (s *IfStmt) FindFirstUsage(declaration *Ident) *Ident
- func (s *IfStmt) FindIdentByName(name string) []*Ident
- func (s *IfStmt) FindMaps() []Node
- func (s *IfStmt) FindNameInCallTree(name string) []Node
- func (s *IfStmt) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *IfStmt) FindUsages(declaration *Ident) []*Ident
- func (s *IfStmt) FindVarDeclarations() []*Ident
- func (s *IfStmt) GetScope() (Node, *types.Scope)
- func (s *IfStmt) GetSource() []byte
- func (s *IfStmt) GetSourceString() string
- func (s *IfStmt) Info() *types.Info
- func (s *IfStmt) IsContainedByType(nodeType NodeType) bool
- func (s *IfStmt) IsNodeType(nodeType NodeType) bool
- func (s *IfStmt) IsValueType(valType string) bool
- func (s *IfStmt) Level() int
- func (s *IfStmt) Match(regex regexp.Regexp) bool
- func (s *IfStmt) NextParentByType(nodeType NodeType) Node
- func (s *IfStmt) NodeType() NodeType
- func (s *IfStmt) Object() types.Object
- func (s *IfStmt) Parent() Node
- func (s *IfStmt) Parents() []Node
- func (s *IfStmt) Pkg() *Package
- func (s *IfStmt) Siblings() []Node
- func (s *IfStmt) TreeNode(cond func(n Node) bool) Node
- func (s *IfStmt) TreeNodes(cond func(n Node) bool) []Node
- func (s *IfStmt) ValueType() types.Type
- func (s *IfStmt) Visit(node ast.Node) ast.Visitor
- func (s *IfStmt) Walk(f func(node Node) bool)
- type ImportSpec
- func (s *ImportSpec) AstNode() ast.Node
- func (s ImportSpec) CallTreeNode(cond func(n Node) bool) Node
- func (s ImportSpec) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *ImportSpec) ChildByName(name string) Node
- func (s *ImportSpec) ChildByNodeType(nodeType NodeType) Node
- func (s *ImportSpec) ChildNode(cond func(n Node) bool) Node
- func (s *ImportSpec) ChildNodes(cond func(n Node) bool) []Node
- func (s *ImportSpec) Children() []Node
- func (s *ImportSpec) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *ImportSpec) Contains(node Node) bool
- func (s *ImportSpec) FindByName(name string) []Node
- func (s *ImportSpec) FindByNodeType(nodeType NodeType) []Node
- func (s *ImportSpec) FindByToken(t token.Token) []Node
- func (s *ImportSpec) FindByValueType(valType string) []Node
- func (s *ImportSpec) FindDeclarations() []*Ident
- func (s *ImportSpec) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *ImportSpec) FindFirstByName(name string) Node
- func (s *ImportSpec) FindFirstByNodeType(nodeType NodeType) Node
- func (s *ImportSpec) FindFirstIdentByName(name string) *Ident
- func (s *ImportSpec) FindFirstUsage(declaration *Ident) *Ident
- func (s *ImportSpec) FindIdentByName(name string) []*Ident
- func (s *ImportSpec) FindMaps() []Node
- func (s *ImportSpec) FindNameInCallTree(name string) []Node
- func (s *ImportSpec) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *ImportSpec) FindUsages(declaration *Ident) []*Ident
- func (s *ImportSpec) FindVarDeclarations() []*Ident
- func (s *ImportSpec) GetIdent() *Ident
- func (s *ImportSpec) GetScope() (Node, *types.Scope)
- func (s *ImportSpec) GetSource() []byte
- func (s *ImportSpec) GetSourceString() string
- func (s *ImportSpec) Info() *types.Info
- func (s *ImportSpec) IsContainedByType(nodeType NodeType) bool
- func (s *ImportSpec) IsNodeType(nodeType NodeType) bool
- func (s *ImportSpec) IsValueType(valType string) bool
- func (s *ImportSpec) Level() int
- func (s *ImportSpec) Match(regex regexp.Regexp) bool
- func (s *ImportSpec) NextParentByType(nodeType NodeType) Node
- func (s *ImportSpec) NodeName() string
- func (s *ImportSpec) NodeType() NodeType
- func (s *ImportSpec) Object() types.Object
- func (s *ImportSpec) Parent() Node
- func (s *ImportSpec) Parents() []Node
- func (s *ImportSpec) Pkg() *Package
- func (s *ImportSpec) Siblings() []Node
- func (s *ImportSpec) TreeNode(cond func(n Node) bool) Node
- func (s *ImportSpec) TreeNodes(cond func(n Node) bool) []Node
- func (s *ImportSpec) ValueType() types.Type
- func (s *ImportSpec) Visit(node ast.Node) ast.Visitor
- func (s *ImportSpec) Walk(f func(node Node) bool)
- type IncDecStmt
- func (s *IncDecStmt) AstNode() ast.Node
- func (s IncDecStmt) CallTreeNode(cond func(n Node) bool) Node
- func (s IncDecStmt) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *IncDecStmt) ChildByName(name string) Node
- func (s *IncDecStmt) ChildByNodeType(nodeType NodeType) Node
- func (s *IncDecStmt) ChildNode(cond func(n Node) bool) Node
- func (s *IncDecStmt) ChildNodes(cond func(n Node) bool) []Node
- func (s *IncDecStmt) Children() []Node
- func (s *IncDecStmt) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *IncDecStmt) Contains(node Node) bool
- func (s *IncDecStmt) FindByName(name string) []Node
- func (s *IncDecStmt) FindByNodeType(nodeType NodeType) []Node
- func (s *IncDecStmt) FindByToken(t token.Token) []Node
- func (s *IncDecStmt) FindByValueType(valType string) []Node
- func (s *IncDecStmt) FindDeclarations() []*Ident
- func (s *IncDecStmt) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *IncDecStmt) FindFirstByName(name string) Node
- func (s *IncDecStmt) FindFirstByNodeType(nodeType NodeType) Node
- func (s *IncDecStmt) FindFirstIdentByName(name string) *Ident
- func (s *IncDecStmt) FindFirstUsage(declaration *Ident) *Ident
- func (s *IncDecStmt) FindIdentByName(name string) []*Ident
- func (s *IncDecStmt) FindMaps() []Node
- func (s *IncDecStmt) FindNameInCallTree(name string) []Node
- func (s *IncDecStmt) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *IncDecStmt) FindUsages(declaration *Ident) []*Ident
- func (s *IncDecStmt) FindVarDeclarations() []*Ident
- func (s *IncDecStmt) GetScope() (Node, *types.Scope)
- func (s *IncDecStmt) GetSource() []byte
- func (s *IncDecStmt) GetSourceString() string
- func (s *IncDecStmt) Info() *types.Info
- func (s *IncDecStmt) IsContainedByType(nodeType NodeType) bool
- func (s *IncDecStmt) IsNodeType(nodeType NodeType) bool
- func (s *IncDecStmt) IsValueType(valType string) bool
- func (s *IncDecStmt) Level() int
- func (s *IncDecStmt) Match(regex regexp.Regexp) bool
- func (s *IncDecStmt) NextParentByType(nodeType NodeType) Node
- func (s *IncDecStmt) NodeType() NodeType
- func (s *IncDecStmt) Object() types.Object
- func (s *IncDecStmt) Parent() Node
- func (s *IncDecStmt) Parents() []Node
- func (s *IncDecStmt) Pkg() *Package
- func (s *IncDecStmt) Siblings() []Node
- func (s *IncDecStmt) Token() token.Token
- func (s *IncDecStmt) TreeNode(cond func(n Node) bool) Node
- func (s *IncDecStmt) TreeNodes(cond func(n Node) bool) []Node
- func (s *IncDecStmt) ValueType() types.Type
- func (s *IncDecStmt) Visit(node ast.Node) ast.Visitor
- func (s *IncDecStmt) Walk(f func(node Node) bool)
- type IndexExpr
- func (s *IndexExpr) AstNode() ast.Node
- func (s IndexExpr) CallTreeNode(cond func(n Node) bool) Node
- func (s IndexExpr) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *IndexExpr) ChildByName(name string) Node
- func (s *IndexExpr) ChildByNodeType(nodeType NodeType) Node
- func (s *IndexExpr) ChildNode(cond func(n Node) bool) Node
- func (s *IndexExpr) ChildNodes(cond func(n Node) bool) []Node
- func (s *IndexExpr) Children() []Node
- func (s *IndexExpr) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *IndexExpr) Contains(node Node) bool
- func (s *IndexExpr) FindByName(name string) []Node
- func (s *IndexExpr) FindByNodeType(nodeType NodeType) []Node
- func (s *IndexExpr) FindByToken(t token.Token) []Node
- func (s *IndexExpr) FindByValueType(valType string) []Node
- func (s *IndexExpr) FindDeclarations() []*Ident
- func (s *IndexExpr) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *IndexExpr) FindFirstByName(name string) Node
- func (s *IndexExpr) FindFirstByNodeType(nodeType NodeType) Node
- func (s *IndexExpr) FindFirstIdentByName(name string) *Ident
- func (s *IndexExpr) FindFirstUsage(declaration *Ident) *Ident
- func (s *IndexExpr) FindIdentByName(name string) []*Ident
- func (s *IndexExpr) FindMaps() []Node
- func (s *IndexExpr) FindNameInCallTree(name string) []Node
- func (s *IndexExpr) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *IndexExpr) FindUsages(declaration *Ident) []*Ident
- func (s *IndexExpr) FindVarDeclarations() []*Ident
- func (s *IndexExpr) GetScope() (Node, *types.Scope)
- func (s *IndexExpr) GetSource() []byte
- func (s *IndexExpr) GetSourceString() string
- func (s *IndexExpr) Info() *types.Info
- func (s *IndexExpr) IsContainedByType(nodeType NodeType) bool
- func (s *IndexExpr) IsNodeType(nodeType NodeType) bool
- func (s *IndexExpr) IsValueType(valType string) bool
- func (s *IndexExpr) Level() int
- func (s *IndexExpr) Match(regex regexp.Regexp) bool
- func (s *IndexExpr) NextParentByType(nodeType NodeType) Node
- func (s *IndexExpr) NodeType() NodeType
- func (s *IndexExpr) Object() types.Object
- func (s *IndexExpr) Parent() Node
- func (s *IndexExpr) Parents() []Node
- func (s *IndexExpr) Pkg() *Package
- func (s *IndexExpr) Siblings() []Node
- func (s *IndexExpr) TreeNode(cond func(n Node) bool) Node
- func (s *IndexExpr) TreeNodes(cond func(n Node) bool) []Node
- func (s *IndexExpr) ValueType() types.Type
- func (s *IndexExpr) Visit(node ast.Node) ast.Visitor
- func (s *IndexExpr) Walk(f func(node Node) bool)
- type InterfaceType
- func (s *InterfaceType) AstNode() ast.Node
- func (s InterfaceType) CallTreeNode(cond func(n Node) bool) Node
- func (s InterfaceType) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *InterfaceType) ChildByName(name string) Node
- func (s *InterfaceType) ChildByNodeType(nodeType NodeType) Node
- func (s *InterfaceType) ChildNode(cond func(n Node) bool) Node
- func (s *InterfaceType) ChildNodes(cond func(n Node) bool) []Node
- func (s *InterfaceType) Children() []Node
- func (s *InterfaceType) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *InterfaceType) Contains(node Node) bool
- func (s *InterfaceType) FindByName(name string) []Node
- func (s *InterfaceType) FindByNodeType(nodeType NodeType) []Node
- func (s *InterfaceType) FindByToken(t token.Token) []Node
- func (s *InterfaceType) FindByValueType(valType string) []Node
- func (s *InterfaceType) FindDeclarations() []*Ident
- func (s *InterfaceType) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *InterfaceType) FindFirstByName(name string) Node
- func (s *InterfaceType) FindFirstByNodeType(nodeType NodeType) Node
- func (s *InterfaceType) FindFirstIdentByName(name string) *Ident
- func (s *InterfaceType) FindFirstUsage(declaration *Ident) *Ident
- func (s *InterfaceType) FindIdentByName(name string) []*Ident
- func (s *InterfaceType) FindMaps() []Node
- func (s *InterfaceType) FindNameInCallTree(name string) []Node
- func (s *InterfaceType) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *InterfaceType) FindUsages(declaration *Ident) []*Ident
- func (s *InterfaceType) FindVarDeclarations() []*Ident
- func (s *InterfaceType) GetScope() (Node, *types.Scope)
- func (s *InterfaceType) GetSource() []byte
- func (s *InterfaceType) GetSourceString() string
- func (s *InterfaceType) Info() *types.Info
- func (s *InterfaceType) IsContainedByType(nodeType NodeType) bool
- func (s *InterfaceType) IsNodeType(nodeType NodeType) bool
- func (s *InterfaceType) IsValueType(valType string) bool
- func (s *InterfaceType) Level() int
- func (s *InterfaceType) Match(regex regexp.Regexp) bool
- func (s *InterfaceType) NextParentByType(nodeType NodeType) Node
- func (s *InterfaceType) NodeType() NodeType
- func (s *InterfaceType) Object() types.Object
- func (s *InterfaceType) Parent() Node
- func (s *InterfaceType) Parents() []Node
- func (s *InterfaceType) Pkg() *Package
- func (s *InterfaceType) Siblings() []Node
- func (s *InterfaceType) TreeNode(cond func(n Node) bool) Node
- func (s *InterfaceType) TreeNodes(cond func(n Node) bool) []Node
- func (s *InterfaceType) ValueType() types.Type
- func (s *InterfaceType) Visit(node ast.Node) ast.Visitor
- func (s *InterfaceType) Walk(f func(node Node) bool)
- type KeyValueExpr
- func (s *KeyValueExpr) AstNode() ast.Node
- func (s KeyValueExpr) CallTreeNode(cond func(n Node) bool) Node
- func (s KeyValueExpr) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *KeyValueExpr) ChildByName(name string) Node
- func (s *KeyValueExpr) ChildByNodeType(nodeType NodeType) Node
- func (s *KeyValueExpr) ChildNode(cond func(n Node) bool) Node
- func (s *KeyValueExpr) ChildNodes(cond func(n Node) bool) []Node
- func (s *KeyValueExpr) Children() []Node
- func (s *KeyValueExpr) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *KeyValueExpr) Contains(node Node) bool
- func (s *KeyValueExpr) FindByName(name string) []Node
- func (s *KeyValueExpr) FindByNodeType(nodeType NodeType) []Node
- func (s *KeyValueExpr) FindByToken(t token.Token) []Node
- func (s *KeyValueExpr) FindByValueType(valType string) []Node
- func (s *KeyValueExpr) FindDeclarations() []*Ident
- func (s *KeyValueExpr) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *KeyValueExpr) FindFirstByName(name string) Node
- func (s *KeyValueExpr) FindFirstByNodeType(nodeType NodeType) Node
- func (s *KeyValueExpr) FindFirstIdentByName(name string) *Ident
- func (s *KeyValueExpr) FindFirstUsage(declaration *Ident) *Ident
- func (s *KeyValueExpr) FindIdentByName(name string) []*Ident
- func (s *KeyValueExpr) FindMaps() []Node
- func (s *KeyValueExpr) FindNameInCallTree(name string) []Node
- func (s *KeyValueExpr) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *KeyValueExpr) FindUsages(declaration *Ident) []*Ident
- func (s *KeyValueExpr) FindVarDeclarations() []*Ident
- func (s *KeyValueExpr) GetScope() (Node, *types.Scope)
- func (s *KeyValueExpr) GetSource() []byte
- func (s *KeyValueExpr) GetSourceString() string
- func (s *KeyValueExpr) Info() *types.Info
- func (s *KeyValueExpr) IsContainedByType(nodeType NodeType) bool
- func (s *KeyValueExpr) IsNodeType(nodeType NodeType) bool
- func (s *KeyValueExpr) IsValueType(valType string) bool
- func (s *KeyValueExpr) Level() int
- func (s *KeyValueExpr) Match(regex regexp.Regexp) bool
- func (s *KeyValueExpr) NextParentByType(nodeType NodeType) Node
- func (s *KeyValueExpr) NodeType() NodeType
- func (s *KeyValueExpr) Object() types.Object
- func (s *KeyValueExpr) Parent() Node
- func (s *KeyValueExpr) Parents() []Node
- func (s *KeyValueExpr) Pkg() *Package
- func (s *KeyValueExpr) Siblings() []Node
- func (s *KeyValueExpr) TreeNode(cond func(n Node) bool) Node
- func (s *KeyValueExpr) TreeNodes(cond func(n Node) bool) []Node
- func (s *KeyValueExpr) ValueType() types.Type
- func (s *KeyValueExpr) Visit(node ast.Node) ast.Visitor
- func (s *KeyValueExpr) Walk(f func(node Node) bool)
- type LabeledStmt
- func (s *LabeledStmt) AstNode() ast.Node
- func (s LabeledStmt) CallTreeNode(cond func(n Node) bool) Node
- func (s LabeledStmt) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *LabeledStmt) ChildByName(name string) Node
- func (s *LabeledStmt) ChildByNodeType(nodeType NodeType) Node
- func (s *LabeledStmt) ChildNode(cond func(n Node) bool) Node
- func (s *LabeledStmt) ChildNodes(cond func(n Node) bool) []Node
- func (s *LabeledStmt) Children() []Node
- func (s *LabeledStmt) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *LabeledStmt) Contains(node Node) bool
- func (s *LabeledStmt) FindByName(name string) []Node
- func (s *LabeledStmt) FindByNodeType(nodeType NodeType) []Node
- func (s *LabeledStmt) FindByToken(t token.Token) []Node
- func (s *LabeledStmt) FindByValueType(valType string) []Node
- func (s *LabeledStmt) FindDeclarations() []*Ident
- func (s *LabeledStmt) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *LabeledStmt) FindFirstByName(name string) Node
- func (s *LabeledStmt) FindFirstByNodeType(nodeType NodeType) Node
- func (s *LabeledStmt) FindFirstIdentByName(name string) *Ident
- func (s *LabeledStmt) FindFirstUsage(declaration *Ident) *Ident
- func (s *LabeledStmt) FindIdentByName(name string) []*Ident
- func (s *LabeledStmt) FindMaps() []Node
- func (s *LabeledStmt) FindNameInCallTree(name string) []Node
- func (s *LabeledStmt) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *LabeledStmt) FindUsages(declaration *Ident) []*Ident
- func (s *LabeledStmt) FindVarDeclarations() []*Ident
- func (s *LabeledStmt) GetIdent() *Ident
- func (s *LabeledStmt) GetScope() (Node, *types.Scope)
- func (s *LabeledStmt) GetSource() []byte
- func (s *LabeledStmt) GetSourceString() string
- func (s *LabeledStmt) Info() *types.Info
- func (s *LabeledStmt) IsContainedByType(nodeType NodeType) bool
- func (s *LabeledStmt) IsNodeType(nodeType NodeType) bool
- func (s *LabeledStmt) IsValueType(valType string) bool
- func (s *LabeledStmt) Level() int
- func (s *LabeledStmt) Match(regex regexp.Regexp) bool
- func (s *LabeledStmt) NextParentByType(nodeType NodeType) Node
- func (s *LabeledStmt) NodeName() string
- func (s *LabeledStmt) NodeType() NodeType
- func (s *LabeledStmt) Object() types.Object
- func (s *LabeledStmt) Parent() Node
- func (s *LabeledStmt) Parents() []Node
- func (s *LabeledStmt) Pkg() *Package
- func (s *LabeledStmt) Siblings() []Node
- func (s *LabeledStmt) TreeNode(cond func(n Node) bool) Node
- func (s *LabeledStmt) TreeNodes(cond func(n Node) bool) []Node
- func (s *LabeledStmt) ValueType() types.Type
- func (s *LabeledStmt) Visit(node ast.Node) ast.Visitor
- func (s *LabeledStmt) Walk(f func(node Node) bool)
- type MapType
- func (s *MapType) AstNode() ast.Node
- func (s MapType) CallTreeNode(cond func(n Node) bool) Node
- func (s MapType) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *MapType) ChildByName(name string) Node
- func (s *MapType) ChildByNodeType(nodeType NodeType) Node
- func (s *MapType) ChildNode(cond func(n Node) bool) Node
- func (s *MapType) ChildNodes(cond func(n Node) bool) []Node
- func (s *MapType) Children() []Node
- func (s *MapType) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *MapType) Contains(node Node) bool
- func (s *MapType) FindByName(name string) []Node
- func (s *MapType) FindByNodeType(nodeType NodeType) []Node
- func (s *MapType) FindByToken(t token.Token) []Node
- func (s *MapType) FindByValueType(valType string) []Node
- func (s *MapType) FindDeclarations() []*Ident
- func (s *MapType) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *MapType) FindFirstByName(name string) Node
- func (s *MapType) FindFirstByNodeType(nodeType NodeType) Node
- func (s *MapType) FindFirstIdentByName(name string) *Ident
- func (s *MapType) FindFirstUsage(declaration *Ident) *Ident
- func (s *MapType) FindIdentByName(name string) []*Ident
- func (s *MapType) FindMaps() []Node
- func (s *MapType) FindNameInCallTree(name string) []Node
- func (s *MapType) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *MapType) FindUsages(declaration *Ident) []*Ident
- func (s *MapType) FindVarDeclarations() []*Ident
- func (s *MapType) GetScope() (Node, *types.Scope)
- func (s *MapType) GetSource() []byte
- func (s *MapType) GetSourceString() string
- func (s *MapType) Info() *types.Info
- func (s *MapType) IsContainedByType(nodeType NodeType) bool
- func (s *MapType) IsNodeType(nodeType NodeType) bool
- func (s *MapType) IsValueType(valType string) bool
- func (s *MapType) Level() int
- func (s *MapType) Match(regex regexp.Regexp) bool
- func (s *MapType) NextParentByType(nodeType NodeType) Node
- func (s *MapType) NodeType() NodeType
- func (s *MapType) Object() types.Object
- func (s *MapType) Parent() Node
- func (s *MapType) Parents() []Node
- func (s *MapType) Pkg() *Package
- func (s *MapType) Siblings() []Node
- func (s *MapType) TreeNode(cond func(n Node) bool) Node
- func (s *MapType) TreeNodes(cond func(n Node) bool) []Node
- func (s *MapType) ValueType() types.Type
- func (s *MapType) Visit(node ast.Node) ast.Visitor
- func (s *MapType) Walk(f func(node Node) bool)
- type Named
- type Node
- type NodeType
- type Package
- func (s *Package) AstNode() ast.Node
- func (s Package) CallTreeNode(cond func(n Node) bool) Node
- func (s Package) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *Package) ChildByName(name string) Node
- func (s *Package) ChildByNodeType(nodeType NodeType) Node
- func (s *Package) ChildNode(cond func(n Node) bool) Node
- func (s *Package) ChildNodes(cond func(n Node) bool) []Node
- func (s *Package) Children() []Node
- func (s *Package) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *Package) Contains(node Node) bool
- func (s *Package) FindByName(name string) []Node
- func (s *Package) FindByNodeType(nodeType NodeType) []Node
- func (s *Package) FindByToken(t token.Token) []Node
- func (s *Package) FindByValueType(valType string) []Node
- func (s *Package) FindDeclarations() []*Ident
- func (s *Package) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *Package) FindFirstByName(name string) Node
- func (s *Package) FindFirstByNodeType(nodeType NodeType) Node
- func (s *Package) FindFirstIdentByName(name string) *Ident
- func (s *Package) FindFirstUsage(declaration *Ident) *Ident
- func (s *Package) FindIdentByName(name string) []*Ident
- func (s *Package) FindMaps() []Node
- func (s *Package) FindNameInCallTree(name string) []Node
- func (s *Package) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *Package) FindUsages(declaration *Ident) []*Ident
- func (s *Package) FindVarDeclarations() []*Ident
- func (s *Package) FuncDeclByName(name string) *FuncDecl
- func (s *Package) FuncDeclbyCallExpr(node *CallExpr) *FuncDecl
- func (s *Package) GetRawFiles() map[string][]byte
- func (s *Package) GetScope() (Node, *types.Scope)
- func (s *Package) GetSource() []byte
- func (s *Package) GetSourceString() string
- func (s *Package) Info() *types.Info
- func (s *Package) IsContainedByType(nodeType NodeType) bool
- func (s *Package) IsNodeType(nodeType NodeType) bool
- func (s *Package) IsValueType(valType string) bool
- func (s *Package) Level() int
- func (s *Package) Match(regex regexp.Regexp) bool
- func (s *Package) NextParentByType(nodeType NodeType) Node
- func (s *Package) NodeType() NodeType
- func (s *Package) Object() types.Object
- func (s *Package) Parent() Node
- func (s *Package) Parents() []Node
- func (s *Package) Pkg() *Package
- func (s *Package) Siblings() []Node
- func (s *Package) TreeNode(cond func(n Node) bool) Node
- func (s *Package) TreeNodes(cond func(n Node) bool) []Node
- func (s *Package) ValueType() types.Type
- func (s *Package) Visit(node ast.Node) ast.Visitor
- func (s *Package) Walk(f func(node Node) bool)
- type ParenExpr
- func (s *ParenExpr) AstNode() ast.Node
- func (s ParenExpr) CallTreeNode(cond func(n Node) bool) Node
- func (s ParenExpr) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *ParenExpr) ChildByName(name string) Node
- func (s *ParenExpr) ChildByNodeType(nodeType NodeType) Node
- func (s *ParenExpr) ChildNode(cond func(n Node) bool) Node
- func (s *ParenExpr) ChildNodes(cond func(n Node) bool) []Node
- func (s *ParenExpr) Children() []Node
- func (s *ParenExpr) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *ParenExpr) Contains(node Node) bool
- func (s *ParenExpr) FindByName(name string) []Node
- func (s *ParenExpr) FindByNodeType(nodeType NodeType) []Node
- func (s *ParenExpr) FindByToken(t token.Token) []Node
- func (s *ParenExpr) FindByValueType(valType string) []Node
- func (s *ParenExpr) FindDeclarations() []*Ident
- func (s *ParenExpr) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *ParenExpr) FindFirstByName(name string) Node
- func (s *ParenExpr) FindFirstByNodeType(nodeType NodeType) Node
- func (s *ParenExpr) FindFirstIdentByName(name string) *Ident
- func (s *ParenExpr) FindFirstUsage(declaration *Ident) *Ident
- func (s *ParenExpr) FindIdentByName(name string) []*Ident
- func (s *ParenExpr) FindMaps() []Node
- func (s *ParenExpr) FindNameInCallTree(name string) []Node
- func (s *ParenExpr) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *ParenExpr) FindUsages(declaration *Ident) []*Ident
- func (s *ParenExpr) FindVarDeclarations() []*Ident
- func (s *ParenExpr) GetScope() (Node, *types.Scope)
- func (s *ParenExpr) GetSource() []byte
- func (s *ParenExpr) GetSourceString() string
- func (s *ParenExpr) Info() *types.Info
- func (s *ParenExpr) IsContainedByType(nodeType NodeType) bool
- func (s *ParenExpr) IsNodeType(nodeType NodeType) bool
- func (s *ParenExpr) IsValueType(valType string) bool
- func (s *ParenExpr) Level() int
- func (s *ParenExpr) Match(regex regexp.Regexp) bool
- func (s *ParenExpr) NextParentByType(nodeType NodeType) Node
- func (s *ParenExpr) NodeType() NodeType
- func (s *ParenExpr) Object() types.Object
- func (s *ParenExpr) Parent() Node
- func (s *ParenExpr) Parents() []Node
- func (s *ParenExpr) Pkg() *Package
- func (s *ParenExpr) Siblings() []Node
- func (s *ParenExpr) TreeNode(cond func(n Node) bool) Node
- func (s *ParenExpr) TreeNodes(cond func(n Node) bool) []Node
- func (s *ParenExpr) ValueType() types.Type
- func (s *ParenExpr) Visit(node ast.Node) ast.Visitor
- func (s *ParenExpr) Walk(f func(node Node) bool)
- type RangeStmt
- func (s *RangeStmt) AstNode() ast.Node
- func (s RangeStmt) CallTreeNode(cond func(n Node) bool) Node
- func (s RangeStmt) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *RangeStmt) ChildByName(name string) Node
- func (s *RangeStmt) ChildByNodeType(nodeType NodeType) Node
- func (s *RangeStmt) ChildNode(cond func(n Node) bool) Node
- func (s *RangeStmt) ChildNodes(cond func(n Node) bool) []Node
- func (s *RangeStmt) Children() []Node
- func (s *RangeStmt) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *RangeStmt) Contains(node Node) bool
- func (s *RangeStmt) FindByName(name string) []Node
- func (s *RangeStmt) FindByNodeType(nodeType NodeType) []Node
- func (s *RangeStmt) FindByToken(t token.Token) []Node
- func (s *RangeStmt) FindByValueType(valType string) []Node
- func (s *RangeStmt) FindDeclarations() []*Ident
- func (s *RangeStmt) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *RangeStmt) FindFirstByName(name string) Node
- func (s *RangeStmt) FindFirstByNodeType(nodeType NodeType) Node
- func (s *RangeStmt) FindFirstIdentByName(name string) *Ident
- func (s *RangeStmt) FindFirstUsage(declaration *Ident) *Ident
- func (s *RangeStmt) FindIdentByName(name string) []*Ident
- func (s *RangeStmt) FindMaps() []Node
- func (s *RangeStmt) FindNameInCallTree(name string) []Node
- func (s *RangeStmt) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *RangeStmt) FindUsages(declaration *Ident) []*Ident
- func (s *RangeStmt) FindVarDeclarations() []*Ident
- func (s *RangeStmt) GetScope() (Node, *types.Scope)
- func (s *RangeStmt) GetSource() []byte
- func (s *RangeStmt) GetSourceString() string
- func (s *RangeStmt) Info() *types.Info
- func (s *RangeStmt) IsContainedByType(nodeType NodeType) bool
- func (s *RangeStmt) IsNodeType(nodeType NodeType) bool
- func (s *RangeStmt) IsValueType(valType string) bool
- func (s *RangeStmt) Key() Node
- func (s *RangeStmt) Level() int
- func (s *RangeStmt) Match(regex regexp.Regexp) bool
- func (s *RangeStmt) NextParentByType(nodeType NodeType) Node
- func (s *RangeStmt) NodeType() NodeType
- func (s *RangeStmt) Object() types.Object
- func (s *RangeStmt) Parent() Node
- func (s *RangeStmt) Parents() []Node
- func (s *RangeStmt) Pkg() *Package
- func (s *RangeStmt) Siblings() []Node
- func (s *RangeStmt) Token() token.Token
- func (s *RangeStmt) TreeNode(cond func(n Node) bool) Node
- func (s *RangeStmt) TreeNodes(cond func(n Node) bool) []Node
- func (s *RangeStmt) Value() Node
- func (s *RangeStmt) ValueType() types.Type
- func (s *RangeStmt) Visit(node ast.Node) ast.Visitor
- func (s *RangeStmt) Walk(f func(node Node) bool)
- func (s *RangeStmt) X() Node
- type RawFile
- type ReturnStmt
- func (s *ReturnStmt) AstNode() ast.Node
- func (s ReturnStmt) CallTreeNode(cond func(n Node) bool) Node
- func (s ReturnStmt) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *ReturnStmt) ChildByName(name string) Node
- func (s *ReturnStmt) ChildByNodeType(nodeType NodeType) Node
- func (s *ReturnStmt) ChildNode(cond func(n Node) bool) Node
- func (s *ReturnStmt) ChildNodes(cond func(n Node) bool) []Node
- func (s *ReturnStmt) Children() []Node
- func (s *ReturnStmt) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *ReturnStmt) Contains(node Node) bool
- func (s *ReturnStmt) FindByName(name string) []Node
- func (s *ReturnStmt) FindByNodeType(nodeType NodeType) []Node
- func (s *ReturnStmt) FindByToken(t token.Token) []Node
- func (s *ReturnStmt) FindByValueType(valType string) []Node
- func (s *ReturnStmt) FindDeclarations() []*Ident
- func (s *ReturnStmt) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *ReturnStmt) FindFirstByName(name string) Node
- func (s *ReturnStmt) FindFirstByNodeType(nodeType NodeType) Node
- func (s *ReturnStmt) FindFirstIdentByName(name string) *Ident
- func (s *ReturnStmt) FindFirstUsage(declaration *Ident) *Ident
- func (s *ReturnStmt) FindIdentByName(name string) []*Ident
- func (s *ReturnStmt) FindMaps() []Node
- func (s *ReturnStmt) FindNameInCallTree(name string) []Node
- func (s *ReturnStmt) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *ReturnStmt) FindUsages(declaration *Ident) []*Ident
- func (s *ReturnStmt) FindVarDeclarations() []*Ident
- func (s *ReturnStmt) GetScope() (Node, *types.Scope)
- func (s *ReturnStmt) GetSource() []byte
- func (s *ReturnStmt) GetSourceString() string
- func (s *ReturnStmt) Info() *types.Info
- func (s *ReturnStmt) IsContainedByType(nodeType NodeType) bool
- func (s *ReturnStmt) IsNodeType(nodeType NodeType) bool
- func (s *ReturnStmt) IsValueType(valType string) bool
- func (s *ReturnStmt) Level() int
- func (s *ReturnStmt) Match(regex regexp.Regexp) bool
- func (s *ReturnStmt) NextParentByType(nodeType NodeType) Node
- func (s *ReturnStmt) NodeType() NodeType
- func (s *ReturnStmt) Object() types.Object
- func (s *ReturnStmt) Parent() Node
- func (s *ReturnStmt) Parents() []Node
- func (s *ReturnStmt) Pkg() *Package
- func (s *ReturnStmt) Siblings() []Node
- func (s *ReturnStmt) TreeNode(cond func(n Node) bool) Node
- func (s *ReturnStmt) TreeNodes(cond func(n Node) bool) []Node
- func (s *ReturnStmt) ValueType() types.Type
- func (s *ReturnStmt) Visit(node ast.Node) ast.Visitor
- func (s *ReturnStmt) Walk(f func(node Node) bool)
- type SelectStmt
- func (s *SelectStmt) AstNode() ast.Node
- func (s SelectStmt) CallTreeNode(cond func(n Node) bool) Node
- func (s SelectStmt) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *SelectStmt) ChildByName(name string) Node
- func (s *SelectStmt) ChildByNodeType(nodeType NodeType) Node
- func (s *SelectStmt) ChildNode(cond func(n Node) bool) Node
- func (s *SelectStmt) ChildNodes(cond func(n Node) bool) []Node
- func (s *SelectStmt) Children() []Node
- func (s *SelectStmt) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *SelectStmt) Contains(node Node) bool
- func (s *SelectStmt) FindByName(name string) []Node
- func (s *SelectStmt) FindByNodeType(nodeType NodeType) []Node
- func (s *SelectStmt) FindByToken(t token.Token) []Node
- func (s *SelectStmt) FindByValueType(valType string) []Node
- func (s *SelectStmt) FindDeclarations() []*Ident
- func (s *SelectStmt) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *SelectStmt) FindFirstByName(name string) Node
- func (s *SelectStmt) FindFirstByNodeType(nodeType NodeType) Node
- func (s *SelectStmt) FindFirstIdentByName(name string) *Ident
- func (s *SelectStmt) FindFirstUsage(declaration *Ident) *Ident
- func (s *SelectStmt) FindIdentByName(name string) []*Ident
- func (s *SelectStmt) FindMaps() []Node
- func (s *SelectStmt) FindNameInCallTree(name string) []Node
- func (s *SelectStmt) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *SelectStmt) FindUsages(declaration *Ident) []*Ident
- func (s *SelectStmt) FindVarDeclarations() []*Ident
- func (s *SelectStmt) GetScope() (Node, *types.Scope)
- func (s *SelectStmt) GetSource() []byte
- func (s *SelectStmt) GetSourceString() string
- func (s *SelectStmt) Info() *types.Info
- func (s *SelectStmt) IsContainedByType(nodeType NodeType) bool
- func (s *SelectStmt) IsNodeType(nodeType NodeType) bool
- func (s *SelectStmt) IsValueType(valType string) bool
- func (s *SelectStmt) Level() int
- func (s *SelectStmt) Match(regex regexp.Regexp) bool
- func (s *SelectStmt) NextParentByType(nodeType NodeType) Node
- func (s *SelectStmt) NodeType() NodeType
- func (s *SelectStmt) Object() types.Object
- func (s *SelectStmt) Parent() Node
- func (s *SelectStmt) Parents() []Node
- func (s *SelectStmt) Pkg() *Package
- func (s *SelectStmt) Siblings() []Node
- func (s *SelectStmt) TreeNode(cond func(n Node) bool) Node
- func (s *SelectStmt) TreeNodes(cond func(n Node) bool) []Node
- func (s *SelectStmt) ValueType() types.Type
- func (s *SelectStmt) Visit(node ast.Node) ast.Visitor
- func (s *SelectStmt) Walk(f func(node Node) bool)
- type SelectorExpr
- func (s *SelectorExpr) AstNode() ast.Node
- func (s SelectorExpr) CallTreeNode(cond func(n Node) bool) Node
- func (s SelectorExpr) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *SelectorExpr) ChildByName(name string) Node
- func (s *SelectorExpr) ChildByNodeType(nodeType NodeType) Node
- func (s *SelectorExpr) ChildNode(cond func(n Node) bool) Node
- func (s *SelectorExpr) ChildNodes(cond func(n Node) bool) []Node
- func (s *SelectorExpr) Children() []Node
- func (s *SelectorExpr) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *SelectorExpr) Contains(node Node) bool
- func (s *SelectorExpr) FindByName(name string) []Node
- func (s *SelectorExpr) FindByNodeType(nodeType NodeType) []Node
- func (s *SelectorExpr) FindByToken(t token.Token) []Node
- func (s *SelectorExpr) FindByValueType(valType string) []Node
- func (s *SelectorExpr) FindDeclarations() []*Ident
- func (s *SelectorExpr) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *SelectorExpr) FindFirstByName(name string) Node
- func (s *SelectorExpr) FindFirstByNodeType(nodeType NodeType) Node
- func (s *SelectorExpr) FindFirstIdentByName(name string) *Ident
- func (s *SelectorExpr) FindFirstUsage(declaration *Ident) *Ident
- func (s *SelectorExpr) FindIdentByName(name string) []*Ident
- func (s *SelectorExpr) FindMaps() []Node
- func (s *SelectorExpr) FindNameInCallTree(name string) []Node
- func (s *SelectorExpr) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *SelectorExpr) FindUsages(declaration *Ident) []*Ident
- func (s *SelectorExpr) FindVarDeclarations() []*Ident
- func (s *SelectorExpr) GetIdent() *Ident
- func (s *SelectorExpr) GetScope() (Node, *types.Scope)
- func (s *SelectorExpr) GetSource() []byte
- func (s *SelectorExpr) GetSourceString() string
- func (s *SelectorExpr) Info() *types.Info
- func (s *SelectorExpr) IsContainedByType(nodeType NodeType) bool
- func (s *SelectorExpr) IsNodeType(nodeType NodeType) bool
- func (s *SelectorExpr) IsValueType(valType string) bool
- func (s *SelectorExpr) Level() int
- func (s *SelectorExpr) Match(regex regexp.Regexp) bool
- func (s *SelectorExpr) NextParentByType(nodeType NodeType) Node
- func (s *SelectorExpr) NodeName() string
- func (s *SelectorExpr) NodeType() NodeType
- func (s *SelectorExpr) Object() types.Object
- func (s *SelectorExpr) PackageName() *Ident
- func (s *SelectorExpr) Parent() Node
- func (s *SelectorExpr) Parents() []Node
- func (s *SelectorExpr) Pkg() *Package
- func (s *SelectorExpr) Siblings() []Node
- func (s *SelectorExpr) TreeNode(cond func(n Node) bool) Node
- func (s *SelectorExpr) TreeNodes(cond func(n Node) bool) []Node
- func (s *SelectorExpr) ValueType() types.Type
- func (s *SelectorExpr) Visit(node ast.Node) ast.Visitor
- func (s *SelectorExpr) Walk(f func(node Node) bool)
- type SendStmt
- func (s *SendStmt) AstNode() ast.Node
- func (s SendStmt) CallTreeNode(cond func(n Node) bool) Node
- func (s SendStmt) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *SendStmt) ChildByName(name string) Node
- func (s *SendStmt) ChildByNodeType(nodeType NodeType) Node
- func (s *SendStmt) ChildNode(cond func(n Node) bool) Node
- func (s *SendStmt) ChildNodes(cond func(n Node) bool) []Node
- func (s *SendStmt) Children() []Node
- func (s *SendStmt) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *SendStmt) Contains(node Node) bool
- func (s *SendStmt) FindByName(name string) []Node
- func (s *SendStmt) FindByNodeType(nodeType NodeType) []Node
- func (s *SendStmt) FindByToken(t token.Token) []Node
- func (s *SendStmt) FindByValueType(valType string) []Node
- func (s *SendStmt) FindDeclarations() []*Ident
- func (s *SendStmt) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *SendStmt) FindFirstByName(name string) Node
- func (s *SendStmt) FindFirstByNodeType(nodeType NodeType) Node
- func (s *SendStmt) FindFirstIdentByName(name string) *Ident
- func (s *SendStmt) FindFirstUsage(declaration *Ident) *Ident
- func (s *SendStmt) FindIdentByName(name string) []*Ident
- func (s *SendStmt) FindMaps() []Node
- func (s *SendStmt) FindNameInCallTree(name string) []Node
- func (s *SendStmt) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *SendStmt) FindUsages(declaration *Ident) []*Ident
- func (s *SendStmt) FindVarDeclarations() []*Ident
- func (s *SendStmt) GetScope() (Node, *types.Scope)
- func (s *SendStmt) GetSource() []byte
- func (s *SendStmt) GetSourceString() string
- func (s *SendStmt) Info() *types.Info
- func (s *SendStmt) IsContainedByType(nodeType NodeType) bool
- func (s *SendStmt) IsNodeType(nodeType NodeType) bool
- func (s *SendStmt) IsValueType(valType string) bool
- func (s *SendStmt) Level() int
- func (s *SendStmt) Match(regex regexp.Regexp) bool
- func (s *SendStmt) NextParentByType(nodeType NodeType) Node
- func (s *SendStmt) NodeType() NodeType
- func (s *SendStmt) Object() types.Object
- func (s *SendStmt) Parent() Node
- func (s *SendStmt) Parents() []Node
- func (s *SendStmt) Pkg() *Package
- func (s *SendStmt) Siblings() []Node
- func (s *SendStmt) TreeNode(cond func(n Node) bool) Node
- func (s *SendStmt) TreeNodes(cond func(n Node) bool) []Node
- func (s *SendStmt) ValueType() types.Type
- func (s *SendStmt) Visit(node ast.Node) ast.Visitor
- func (s *SendStmt) Walk(f func(node Node) bool)
- type SliceExpr
- func (s *SliceExpr) AstNode() ast.Node
- func (s SliceExpr) CallTreeNode(cond func(n Node) bool) Node
- func (s SliceExpr) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *SliceExpr) ChildByName(name string) Node
- func (s *SliceExpr) ChildByNodeType(nodeType NodeType) Node
- func (s *SliceExpr) ChildNode(cond func(n Node) bool) Node
- func (s *SliceExpr) ChildNodes(cond func(n Node) bool) []Node
- func (s *SliceExpr) Children() []Node
- func (s *SliceExpr) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *SliceExpr) Contains(node Node) bool
- func (s *SliceExpr) FindByName(name string) []Node
- func (s *SliceExpr) FindByNodeType(nodeType NodeType) []Node
- func (s *SliceExpr) FindByToken(t token.Token) []Node
- func (s *SliceExpr) FindByValueType(valType string) []Node
- func (s *SliceExpr) FindDeclarations() []*Ident
- func (s *SliceExpr) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *SliceExpr) FindFirstByName(name string) Node
- func (s *SliceExpr) FindFirstByNodeType(nodeType NodeType) Node
- func (s *SliceExpr) FindFirstIdentByName(name string) *Ident
- func (s *SliceExpr) FindFirstUsage(declaration *Ident) *Ident
- func (s *SliceExpr) FindIdentByName(name string) []*Ident
- func (s *SliceExpr) FindMaps() []Node
- func (s *SliceExpr) FindNameInCallTree(name string) []Node
- func (s *SliceExpr) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *SliceExpr) FindUsages(declaration *Ident) []*Ident
- func (s *SliceExpr) FindVarDeclarations() []*Ident
- func (s *SliceExpr) GetScope() (Node, *types.Scope)
- func (s *SliceExpr) GetSource() []byte
- func (s *SliceExpr) GetSourceString() string
- func (s *SliceExpr) Info() *types.Info
- func (s *SliceExpr) IsContainedByType(nodeType NodeType) bool
- func (s *SliceExpr) IsNodeType(nodeType NodeType) bool
- func (s *SliceExpr) IsValueType(valType string) bool
- func (s *SliceExpr) Level() int
- func (s *SliceExpr) Match(regex regexp.Regexp) bool
- func (s *SliceExpr) NextParentByType(nodeType NodeType) Node
- func (s *SliceExpr) NodeType() NodeType
- func (s *SliceExpr) Object() types.Object
- func (s *SliceExpr) Parent() Node
- func (s *SliceExpr) Parents() []Node
- func (s *SliceExpr) Pkg() *Package
- func (s *SliceExpr) Siblings() []Node
- func (s *SliceExpr) TreeNode(cond func(n Node) bool) Node
- func (s *SliceExpr) TreeNodes(cond func(n Node) bool) []Node
- func (s *SliceExpr) ValueType() types.Type
- func (s *SliceExpr) Visit(node ast.Node) ast.Visitor
- func (s *SliceExpr) Walk(f func(node Node) bool)
- type StarExpr
- func (s *StarExpr) AstNode() ast.Node
- func (s StarExpr) CallTreeNode(cond func(n Node) bool) Node
- func (s StarExpr) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *StarExpr) ChildByName(name string) Node
- func (s *StarExpr) ChildByNodeType(nodeType NodeType) Node
- func (s *StarExpr) ChildNode(cond func(n Node) bool) Node
- func (s *StarExpr) ChildNodes(cond func(n Node) bool) []Node
- func (s *StarExpr) Children() []Node
- func (s *StarExpr) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *StarExpr) Contains(node Node) bool
- func (s *StarExpr) FindByName(name string) []Node
- func (s *StarExpr) FindByNodeType(nodeType NodeType) []Node
- func (s *StarExpr) FindByToken(t token.Token) []Node
- func (s *StarExpr) FindByValueType(valType string) []Node
- func (s *StarExpr) FindDeclarations() []*Ident
- func (s *StarExpr) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *StarExpr) FindFirstByName(name string) Node
- func (s *StarExpr) FindFirstByNodeType(nodeType NodeType) Node
- func (s *StarExpr) FindFirstIdentByName(name string) *Ident
- func (s *StarExpr) FindFirstUsage(declaration *Ident) *Ident
- func (s *StarExpr) FindIdentByName(name string) []*Ident
- func (s *StarExpr) FindMaps() []Node
- func (s *StarExpr) FindNameInCallTree(name string) []Node
- func (s *StarExpr) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *StarExpr) FindUsages(declaration *Ident) []*Ident
- func (s *StarExpr) FindVarDeclarations() []*Ident
- func (s *StarExpr) GetScope() (Node, *types.Scope)
- func (s *StarExpr) GetSource() []byte
- func (s *StarExpr) GetSourceString() string
- func (s *StarExpr) Info() *types.Info
- func (s *StarExpr) IsContainedByType(nodeType NodeType) bool
- func (s *StarExpr) IsNodeType(nodeType NodeType) bool
- func (s *StarExpr) IsValueType(valType string) bool
- func (s *StarExpr) Level() int
- func (s *StarExpr) Match(regex regexp.Regexp) bool
- func (s *StarExpr) NextParentByType(nodeType NodeType) Node
- func (s *StarExpr) NodeType() NodeType
- func (s *StarExpr) Object() types.Object
- func (s *StarExpr) Parent() Node
- func (s *StarExpr) Parents() []Node
- func (s *StarExpr) Pkg() *Package
- func (s *StarExpr) Siblings() []Node
- func (s *StarExpr) TreeNode(cond func(n Node) bool) Node
- func (s *StarExpr) TreeNodes(cond func(n Node) bool) []Node
- func (s *StarExpr) ValueType() types.Type
- func (s *StarExpr) Visit(node ast.Node) ast.Visitor
- func (s *StarExpr) Walk(f func(node Node) bool)
- type StructType
- func (s *StructType) AstNode() ast.Node
- func (s StructType) CallTreeNode(cond func(n Node) bool) Node
- func (s StructType) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *StructType) ChildByName(name string) Node
- func (s *StructType) ChildByNodeType(nodeType NodeType) Node
- func (s *StructType) ChildNode(cond func(n Node) bool) Node
- func (s *StructType) ChildNodes(cond func(n Node) bool) []Node
- func (s *StructType) Children() []Node
- func (s *StructType) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *StructType) Contains(node Node) bool
- func (s *StructType) FindByName(name string) []Node
- func (s *StructType) FindByNodeType(nodeType NodeType) []Node
- func (s *StructType) FindByToken(t token.Token) []Node
- func (s *StructType) FindByValueType(valType string) []Node
- func (s *StructType) FindDeclarations() []*Ident
- func (s *StructType) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *StructType) FindFirstByName(name string) Node
- func (s *StructType) FindFirstByNodeType(nodeType NodeType) Node
- func (s *StructType) FindFirstIdentByName(name string) *Ident
- func (s *StructType) FindFirstUsage(declaration *Ident) *Ident
- func (s *StructType) FindIdentByName(name string) []*Ident
- func (s *StructType) FindMaps() []Node
- func (s *StructType) FindNameInCallTree(name string) []Node
- func (s *StructType) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *StructType) FindUsages(declaration *Ident) []*Ident
- func (s *StructType) FindVarDeclarations() []*Ident
- func (s *StructType) GetScope() (Node, *types.Scope)
- func (s *StructType) GetSource() []byte
- func (s *StructType) GetSourceString() string
- func (s *StructType) Info() *types.Info
- func (s *StructType) IsContainedByType(nodeType NodeType) bool
- func (s *StructType) IsNodeType(nodeType NodeType) bool
- func (s *StructType) IsValueType(valType string) bool
- func (s *StructType) Level() int
- func (s *StructType) Match(regex regexp.Regexp) bool
- func (s *StructType) NextParentByType(nodeType NodeType) Node
- func (s *StructType) NodeType() NodeType
- func (s *StructType) Object() types.Object
- func (s *StructType) Parent() Node
- func (s *StructType) Parents() []Node
- func (s *StructType) Pkg() *Package
- func (s *StructType) Siblings() []Node
- func (s *StructType) TreeNode(cond func(n Node) bool) Node
- func (s *StructType) TreeNodes(cond func(n Node) bool) []Node
- func (s *StructType) ValueType() types.Type
- func (s *StructType) Visit(node ast.Node) ast.Visitor
- func (s *StructType) Walk(f func(node Node) bool)
- type SwitchStmt
- func (s *SwitchStmt) AstNode() ast.Node
- func (s SwitchStmt) CallTreeNode(cond func(n Node) bool) Node
- func (s SwitchStmt) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *SwitchStmt) ChildByName(name string) Node
- func (s *SwitchStmt) ChildByNodeType(nodeType NodeType) Node
- func (s *SwitchStmt) ChildNode(cond func(n Node) bool) Node
- func (s *SwitchStmt) ChildNodes(cond func(n Node) bool) []Node
- func (s *SwitchStmt) Children() []Node
- func (s *SwitchStmt) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *SwitchStmt) Contains(node Node) bool
- func (s *SwitchStmt) FindByName(name string) []Node
- func (s *SwitchStmt) FindByNodeType(nodeType NodeType) []Node
- func (s *SwitchStmt) FindByToken(t token.Token) []Node
- func (s *SwitchStmt) FindByValueType(valType string) []Node
- func (s *SwitchStmt) FindDeclarations() []*Ident
- func (s *SwitchStmt) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *SwitchStmt) FindFirstByName(name string) Node
- func (s *SwitchStmt) FindFirstByNodeType(nodeType NodeType) Node
- func (s *SwitchStmt) FindFirstIdentByName(name string) *Ident
- func (s *SwitchStmt) FindFirstUsage(declaration *Ident) *Ident
- func (s *SwitchStmt) FindIdentByName(name string) []*Ident
- func (s *SwitchStmt) FindMaps() []Node
- func (s *SwitchStmt) FindNameInCallTree(name string) []Node
- func (s *SwitchStmt) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *SwitchStmt) FindUsages(declaration *Ident) []*Ident
- func (s *SwitchStmt) FindVarDeclarations() []*Ident
- func (s *SwitchStmt) GetScope() (Node, *types.Scope)
- func (s *SwitchStmt) GetSource() []byte
- func (s *SwitchStmt) GetSourceString() string
- func (s *SwitchStmt) Info() *types.Info
- func (s *SwitchStmt) IsContainedByType(nodeType NodeType) bool
- func (s *SwitchStmt) IsNodeType(nodeType NodeType) bool
- func (s *SwitchStmt) IsValueType(valType string) bool
- func (s *SwitchStmt) Level() int
- func (s *SwitchStmt) Match(regex regexp.Regexp) bool
- func (s *SwitchStmt) NextParentByType(nodeType NodeType) Node
- func (s *SwitchStmt) NodeType() NodeType
- func (s *SwitchStmt) Object() types.Object
- func (s *SwitchStmt) Parent() Node
- func (s *SwitchStmt) Parents() []Node
- func (s *SwitchStmt) Pkg() *Package
- func (s *SwitchStmt) Siblings() []Node
- func (s *SwitchStmt) TreeNode(cond func(n Node) bool) Node
- func (s *SwitchStmt) TreeNodes(cond func(n Node) bool) []Node
- func (s *SwitchStmt) ValueType() types.Type
- func (s *SwitchStmt) Visit(node ast.Node) ast.Visitor
- func (s *SwitchStmt) Walk(f func(node Node) bool)
- type Token
- type TypeAssertExpr
- func (s *TypeAssertExpr) AstNode() ast.Node
- func (s TypeAssertExpr) CallTreeNode(cond func(n Node) bool) Node
- func (s TypeAssertExpr) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *TypeAssertExpr) ChildByName(name string) Node
- func (s *TypeAssertExpr) ChildByNodeType(nodeType NodeType) Node
- func (s *TypeAssertExpr) ChildNode(cond func(n Node) bool) Node
- func (s *TypeAssertExpr) ChildNodes(cond func(n Node) bool) []Node
- func (s *TypeAssertExpr) Children() []Node
- func (s *TypeAssertExpr) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *TypeAssertExpr) Contains(node Node) bool
- func (s *TypeAssertExpr) FindByName(name string) []Node
- func (s *TypeAssertExpr) FindByNodeType(nodeType NodeType) []Node
- func (s *TypeAssertExpr) FindByToken(t token.Token) []Node
- func (s *TypeAssertExpr) FindByValueType(valType string) []Node
- func (s *TypeAssertExpr) FindDeclarations() []*Ident
- func (s *TypeAssertExpr) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *TypeAssertExpr) FindFirstByName(name string) Node
- func (s *TypeAssertExpr) FindFirstByNodeType(nodeType NodeType) Node
- func (s *TypeAssertExpr) FindFirstIdentByName(name string) *Ident
- func (s *TypeAssertExpr) FindFirstUsage(declaration *Ident) *Ident
- func (s *TypeAssertExpr) FindIdentByName(name string) []*Ident
- func (s *TypeAssertExpr) FindMaps() []Node
- func (s *TypeAssertExpr) FindNameInCallTree(name string) []Node
- func (s *TypeAssertExpr) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *TypeAssertExpr) FindUsages(declaration *Ident) []*Ident
- func (s *TypeAssertExpr) FindVarDeclarations() []*Ident
- func (s *TypeAssertExpr) GetScope() (Node, *types.Scope)
- func (s *TypeAssertExpr) GetSource() []byte
- func (s *TypeAssertExpr) GetSourceString() string
- func (s *TypeAssertExpr) Info() *types.Info
- func (s *TypeAssertExpr) IsContainedByType(nodeType NodeType) bool
- func (s *TypeAssertExpr) IsNodeType(nodeType NodeType) bool
- func (s *TypeAssertExpr) IsValueType(valType string) bool
- func (s *TypeAssertExpr) Level() int
- func (s *TypeAssertExpr) Match(regex regexp.Regexp) bool
- func (s *TypeAssertExpr) NextParentByType(nodeType NodeType) Node
- func (s *TypeAssertExpr) NodeType() NodeType
- func (s *TypeAssertExpr) Object() types.Object
- func (s *TypeAssertExpr) Parent() Node
- func (s *TypeAssertExpr) Parents() []Node
- func (s *TypeAssertExpr) Pkg() *Package
- func (s *TypeAssertExpr) Siblings() []Node
- func (s *TypeAssertExpr) TreeNode(cond func(n Node) bool) Node
- func (s *TypeAssertExpr) TreeNodes(cond func(n Node) bool) []Node
- func (s *TypeAssertExpr) ValueType() types.Type
- func (s *TypeAssertExpr) Visit(node ast.Node) ast.Visitor
- func (s *TypeAssertExpr) Walk(f func(node Node) bool)
- type TypeSpec
- func (s *TypeSpec) AstNode() ast.Node
- func (s TypeSpec) CallTreeNode(cond func(n Node) bool) Node
- func (s TypeSpec) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *TypeSpec) ChildByName(name string) Node
- func (s *TypeSpec) ChildByNodeType(nodeType NodeType) Node
- func (s *TypeSpec) ChildNode(cond func(n Node) bool) Node
- func (s *TypeSpec) ChildNodes(cond func(n Node) bool) []Node
- func (s *TypeSpec) Children() []Node
- func (s *TypeSpec) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *TypeSpec) Contains(node Node) bool
- func (s *TypeSpec) FindByName(name string) []Node
- func (s *TypeSpec) FindByNodeType(nodeType NodeType) []Node
- func (s *TypeSpec) FindByToken(t token.Token) []Node
- func (s *TypeSpec) FindByValueType(valType string) []Node
- func (s *TypeSpec) FindDeclarations() []*Ident
- func (s *TypeSpec) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *TypeSpec) FindFirstByName(name string) Node
- func (s *TypeSpec) FindFirstByNodeType(nodeType NodeType) Node
- func (s *TypeSpec) FindFirstIdentByName(name string) *Ident
- func (s *TypeSpec) FindFirstUsage(declaration *Ident) *Ident
- func (s *TypeSpec) FindIdentByName(name string) []*Ident
- func (s *TypeSpec) FindMaps() []Node
- func (s *TypeSpec) FindNameInCallTree(name string) []Node
- func (s *TypeSpec) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *TypeSpec) FindUsages(declaration *Ident) []*Ident
- func (s *TypeSpec) FindVarDeclarations() []*Ident
- func (s *TypeSpec) GetIdent() *Ident
- func (s *TypeSpec) GetScope() (Node, *types.Scope)
- func (s *TypeSpec) GetSource() []byte
- func (s *TypeSpec) GetSourceString() string
- func (s *TypeSpec) Info() *types.Info
- func (s *TypeSpec) IsContainedByType(nodeType NodeType) bool
- func (s *TypeSpec) IsNodeType(nodeType NodeType) bool
- func (s *TypeSpec) IsValueType(valType string) bool
- func (s *TypeSpec) Level() int
- func (s *TypeSpec) Match(regex regexp.Regexp) bool
- func (s *TypeSpec) NextParentByType(nodeType NodeType) Node
- func (s *TypeSpec) NodeName() string
- func (s *TypeSpec) NodeType() NodeType
- func (s *TypeSpec) Object() types.Object
- func (s *TypeSpec) Parent() Node
- func (s *TypeSpec) Parents() []Node
- func (s *TypeSpec) Pkg() *Package
- func (s *TypeSpec) Siblings() []Node
- func (s *TypeSpec) TreeNode(cond func(n Node) bool) Node
- func (s *TypeSpec) TreeNodes(cond func(n Node) bool) []Node
- func (s *TypeSpec) ValueType() types.Type
- func (s *TypeSpec) Visit(node ast.Node) ast.Visitor
- func (s *TypeSpec) Walk(f func(node Node) bool)
- type TypeSwitchStmt
- func (s *TypeSwitchStmt) AstNode() ast.Node
- func (s TypeSwitchStmt) CallTreeNode(cond func(n Node) bool) Node
- func (s TypeSwitchStmt) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *TypeSwitchStmt) ChildByName(name string) Node
- func (s *TypeSwitchStmt) ChildByNodeType(nodeType NodeType) Node
- func (s *TypeSwitchStmt) ChildNode(cond func(n Node) bool) Node
- func (s *TypeSwitchStmt) ChildNodes(cond func(n Node) bool) []Node
- func (s *TypeSwitchStmt) Children() []Node
- func (s *TypeSwitchStmt) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *TypeSwitchStmt) Contains(node Node) bool
- func (s *TypeSwitchStmt) FindByName(name string) []Node
- func (s *TypeSwitchStmt) FindByNodeType(nodeType NodeType) []Node
- func (s *TypeSwitchStmt) FindByToken(t token.Token) []Node
- func (s *TypeSwitchStmt) FindByValueType(valType string) []Node
- func (s *TypeSwitchStmt) FindDeclarations() []*Ident
- func (s *TypeSwitchStmt) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *TypeSwitchStmt) FindFirstByName(name string) Node
- func (s *TypeSwitchStmt) FindFirstByNodeType(nodeType NodeType) Node
- func (s *TypeSwitchStmt) FindFirstIdentByName(name string) *Ident
- func (s *TypeSwitchStmt) FindFirstUsage(declaration *Ident) *Ident
- func (s *TypeSwitchStmt) FindIdentByName(name string) []*Ident
- func (s *TypeSwitchStmt) FindMaps() []Node
- func (s *TypeSwitchStmt) FindNameInCallTree(name string) []Node
- func (s *TypeSwitchStmt) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *TypeSwitchStmt) FindUsages(declaration *Ident) []*Ident
- func (s *TypeSwitchStmt) FindVarDeclarations() []*Ident
- func (s *TypeSwitchStmt) GetScope() (Node, *types.Scope)
- func (s *TypeSwitchStmt) GetSource() []byte
- func (s *TypeSwitchStmt) GetSourceString() string
- func (s *TypeSwitchStmt) Info() *types.Info
- func (s *TypeSwitchStmt) IsContainedByType(nodeType NodeType) bool
- func (s *TypeSwitchStmt) IsNodeType(nodeType NodeType) bool
- func (s *TypeSwitchStmt) IsValueType(valType string) bool
- func (s *TypeSwitchStmt) Level() int
- func (s *TypeSwitchStmt) Match(regex regexp.Regexp) bool
- func (s *TypeSwitchStmt) NextParentByType(nodeType NodeType) Node
- func (s *TypeSwitchStmt) NodeType() NodeType
- func (s *TypeSwitchStmt) Object() types.Object
- func (s *TypeSwitchStmt) Parent() Node
- func (s *TypeSwitchStmt) Parents() []Node
- func (s *TypeSwitchStmt) Pkg() *Package
- func (s *TypeSwitchStmt) Siblings() []Node
- func (s *TypeSwitchStmt) TreeNode(cond func(n Node) bool) Node
- func (s *TypeSwitchStmt) TreeNodes(cond func(n Node) bool) []Node
- func (s *TypeSwitchStmt) ValueType() types.Type
- func (s *TypeSwitchStmt) Visit(node ast.Node) ast.Visitor
- func (s *TypeSwitchStmt) Walk(f func(node Node) bool)
- type UnaryExpr
- func (s *UnaryExpr) AstNode() ast.Node
- func (s UnaryExpr) CallTreeNode(cond func(n Node) bool) Node
- func (s UnaryExpr) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *UnaryExpr) ChildByName(name string) Node
- func (s *UnaryExpr) ChildByNodeType(nodeType NodeType) Node
- func (s *UnaryExpr) ChildNode(cond func(n Node) bool) Node
- func (s *UnaryExpr) ChildNodes(cond func(n Node) bool) []Node
- func (s *UnaryExpr) Children() []Node
- func (s *UnaryExpr) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *UnaryExpr) Contains(node Node) bool
- func (s *UnaryExpr) FindByName(name string) []Node
- func (s *UnaryExpr) FindByNodeType(nodeType NodeType) []Node
- func (s *UnaryExpr) FindByToken(t token.Token) []Node
- func (s *UnaryExpr) FindByValueType(valType string) []Node
- func (s *UnaryExpr) FindDeclarations() []*Ident
- func (s *UnaryExpr) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *UnaryExpr) FindFirstByName(name string) Node
- func (s *UnaryExpr) FindFirstByNodeType(nodeType NodeType) Node
- func (s *UnaryExpr) FindFirstIdentByName(name string) *Ident
- func (s *UnaryExpr) FindFirstUsage(declaration *Ident) *Ident
- func (s *UnaryExpr) FindIdentByName(name string) []*Ident
- func (s *UnaryExpr) FindMaps() []Node
- func (s *UnaryExpr) FindNameInCallTree(name string) []Node
- func (s *UnaryExpr) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *UnaryExpr) FindUsages(declaration *Ident) []*Ident
- func (s *UnaryExpr) FindVarDeclarations() []*Ident
- func (s *UnaryExpr) GetScope() (Node, *types.Scope)
- func (s *UnaryExpr) GetSource() []byte
- func (s *UnaryExpr) GetSourceString() string
- func (s *UnaryExpr) Info() *types.Info
- func (s *UnaryExpr) IsContainedByType(nodeType NodeType) bool
- func (s *UnaryExpr) IsNodeType(nodeType NodeType) bool
- func (s *UnaryExpr) IsValueType(valType string) bool
- func (s *UnaryExpr) Level() int
- func (s *UnaryExpr) Match(regex regexp.Regexp) bool
- func (s *UnaryExpr) NextParentByType(nodeType NodeType) Node
- func (s *UnaryExpr) NodeType() NodeType
- func (s *UnaryExpr) Object() types.Object
- func (s *UnaryExpr) Parent() Node
- func (s *UnaryExpr) Parents() []Node
- func (s *UnaryExpr) Pkg() *Package
- func (s *UnaryExpr) Siblings() []Node
- func (s *UnaryExpr) Token() token.Token
- func (s *UnaryExpr) TreeNode(cond func(n Node) bool) Node
- func (s *UnaryExpr) TreeNodes(cond func(n Node) bool) []Node
- func (s *UnaryExpr) ValueType() types.Type
- func (s *UnaryExpr) Visit(node ast.Node) ast.Visitor
- func (s *UnaryExpr) Walk(f func(node Node) bool)
- type ValueSpec
- func (s *ValueSpec) AstNode() ast.Node
- func (s ValueSpec) CallTreeNode(cond func(n Node) bool) Node
- func (s ValueSpec) CallTreeNodes(cond func(n Node) bool) []Node
- func (s *ValueSpec) ChildByName(name string) Node
- func (s *ValueSpec) ChildByNodeType(nodeType NodeType) Node
- func (s *ValueSpec) ChildNode(cond func(n Node) bool) Node
- func (s *ValueSpec) ChildNodes(cond func(n Node) bool) []Node
- func (s *ValueSpec) Children() []Node
- func (s *ValueSpec) ChildrenByNodeType(nodeType NodeType) []Node
- func (s *ValueSpec) Contains(node Node) bool
- func (s *ValueSpec) FindByName(name string) []Node
- func (s *ValueSpec) FindByNodeType(nodeType NodeType) []Node
- func (s *ValueSpec) FindByToken(t token.Token) []Node
- func (s *ValueSpec) FindByValueType(valType string) []Node
- func (s *ValueSpec) FindDeclarations() []*Ident
- func (s *ValueSpec) FindDeclarationsByType(nodeType NodeType) []*Ident
- func (s *ValueSpec) FindFirstByName(name string) Node
- func (s *ValueSpec) FindFirstByNodeType(nodeType NodeType) Node
- func (s *ValueSpec) FindFirstIdentByName(name string) *Ident
- func (s *ValueSpec) FindFirstUsage(declaration *Ident) *Ident
- func (s *ValueSpec) FindIdentByName(name string) []*Ident
- func (s *ValueSpec) FindMaps() []Node
- func (s *ValueSpec) FindNameInCallTree(name string) []Node
- func (s *ValueSpec) FindNodeTypeInCallTree(nodeType NodeType) []Node
- func (s *ValueSpec) FindUsages(declaration *Ident) []*Ident
- func (s *ValueSpec) FindVarDeclarations() []*Ident
- func (s *ValueSpec) GetScope() (Node, *types.Scope)
- func (s *ValueSpec) GetSource() []byte
- func (s *ValueSpec) GetSourceString() string
- func (s *ValueSpec) Info() *types.Info
- func (s *ValueSpec) IsContainedByType(nodeType NodeType) bool
- func (s *ValueSpec) IsNodeType(nodeType NodeType) bool
- func (s *ValueSpec) IsValueType(valType string) bool
- func (s *ValueSpec) Level() int
- func (s *ValueSpec) Match(regex regexp.Regexp) bool
- func (s *ValueSpec) NextParentByType(nodeType NodeType) Node
- func (s *ValueSpec) NodeType() NodeType
- func (s *ValueSpec) Object() types.Object
- func (s *ValueSpec) Parent() Node
- func (s *ValueSpec) Parents() []Node
- func (s *ValueSpec) Pkg() *Package
- func (s *ValueSpec) Siblings() []Node
- func (s *ValueSpec) TreeNode(cond func(n Node) bool) Node
- func (s *ValueSpec) TreeNodes(cond func(n Node) bool) []Node
- func (s *ValueSpec) ValueType() types.Type
- func (s *ValueSpec) Visit(node ast.Node) ast.Visitor
- func (s *ValueSpec) Walk(f func(node Node) bool)
- type ValueTyper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Parse ¶
func Parse(fset *token.FileSet, root http.FileSystem, dir string, filter func(os.FileInfo) bool, mode parser.Mode) (pkgs map[string]*ast.Package, fileSources map[string][]byte, first error)
Parse calls ParseFile for all files with names ending in ".go" in the http.FileSystem specified by path and returns a map of package name -> package AST with all the packages found.
If filter != nil, only the files with os.FileInfo entries passing through the filter (and ending in ".go") are considered. The mode bits are passed to ParseFile unchanged. Position information is recorded in fset, which must not be nil.
If the directory couldn't be read, a nil map and the respective error are returned. If a parse error occurred, a non-nil but incomplete map and the first error encountered are returned.
Types ¶
type ArrayType ¶
ArrayType wraps ast.ArrayType
func (ArrayType) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (ArrayType) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*ArrayType) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*ArrayType) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*ArrayType) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*ArrayType) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*ArrayType) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*ArrayType) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*ArrayType) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*ArrayType) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*ArrayType) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*ArrayType) FindDeclarations ¶
func (s *ArrayType) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*ArrayType) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*ArrayType) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*ArrayType) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*ArrayType) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*ArrayType) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*ArrayType) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*ArrayType) FindMaps ¶
func (s *ArrayType) FindMaps() []Node
FindMaps find all nodes with given value type
func (*ArrayType) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*ArrayType) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*ArrayType) FindUsages ¶
FindUsages finds usages of given declaration
func (*ArrayType) FindVarDeclarations ¶
func (s *ArrayType) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*ArrayType) GetSource ¶
func (s *ArrayType) GetSource() []byte
GetSource returns the source code of the current node
func (*ArrayType) GetSourceString ¶
func (s *ArrayType) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*ArrayType) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*ArrayType) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*ArrayType) IsValueType ¶
IsValueType checks if value type is of given type
func (*ArrayType) Level ¶
func (s *ArrayType) Level() int
Level returns the level counted from instantiated node = 0
func (*ArrayType) Match ¶
Match matches the source code of current node and content with given regex
func (*ArrayType) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*ArrayType) NodeType ¶
func (s *ArrayType) NodeType() NodeType
NodeType returns the NodeType of the node
func (*ArrayType) Parents ¶
func (s *ArrayType) Parents() []Node
Parents returns the parent path of nodes
func (*ArrayType) Pkg ¶
func (s *ArrayType) Pkg() *Package
Pkg returns the package this node belongs to.
func (*ArrayType) Siblings ¶
func (s *ArrayType) Siblings() []Node
Siblings returns all sibling nodes
func (*ArrayType) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*ArrayType) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*ArrayType) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type AssignStmt ¶
type AssignStmt struct { *ast.AssignStmt // contains filtered or unexported fields }
AssignStmt wraps ast.AssignStmt
func (AssignStmt) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (AssignStmt) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*AssignStmt) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*AssignStmt) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*AssignStmt) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*AssignStmt) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*AssignStmt) Children ¶
func (s *AssignStmt) Children() []Node
Children returns all child nodes
func (*AssignStmt) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*AssignStmt) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*AssignStmt) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*AssignStmt) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*AssignStmt) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*AssignStmt) FindDeclarations ¶
func (s *AssignStmt) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*AssignStmt) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*AssignStmt) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*AssignStmt) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*AssignStmt) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*AssignStmt) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*AssignStmt) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*AssignStmt) FindMaps ¶
func (s *AssignStmt) FindMaps() []Node
FindMaps find all nodes with given value type
func (*AssignStmt) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*AssignStmt) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*AssignStmt) FindUsages ¶
FindUsages finds usages of given declaration
func (*AssignStmt) FindVarDeclarations ¶
func (s *AssignStmt) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*AssignStmt) GetSource ¶
func (s *AssignStmt) GetSource() []byte
GetSource returns the source code of the current node
func (*AssignStmt) GetSourceString ¶
func (s *AssignStmt) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*AssignStmt) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*AssignStmt) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*AssignStmt) IsValueType ¶
IsValueType checks if value type is of given type
func (*AssignStmt) Level ¶
func (s *AssignStmt) Level() int
Level returns the level counted from instantiated node = 0
func (*AssignStmt) Match ¶
Match matches the source code of current node and content with given regex
func (*AssignStmt) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*AssignStmt) NodeType ¶
func (s *AssignStmt) NodeType() NodeType
NodeType returns the NodeType of the node
func (*AssignStmt) Parents ¶
func (s *AssignStmt) Parents() []Node
Parents returns the parent path of nodes
func (*AssignStmt) Pkg ¶
func (s *AssignStmt) Pkg() *Package
Pkg returns the package this node belongs to.
func (*AssignStmt) Siblings ¶
func (s *AssignStmt) Siblings() []Node
Siblings returns all sibling nodes
func (*AssignStmt) Token ¶
func (s *AssignStmt) Token() token.Token
Token returns the token of the node
func (*AssignStmt) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*AssignStmt) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*AssignStmt) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type BadDecl ¶
BadDecl wraps ast.BadDecl
func (BadDecl) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (BadDecl) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*BadDecl) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*BadDecl) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*BadDecl) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*BadDecl) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*BadDecl) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*BadDecl) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*BadDecl) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*BadDecl) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*BadDecl) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*BadDecl) FindDeclarations ¶
func (s *BadDecl) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*BadDecl) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*BadDecl) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*BadDecl) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*BadDecl) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*BadDecl) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*BadDecl) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*BadDecl) FindMaps ¶
func (s *BadDecl) FindMaps() []Node
FindMaps find all nodes with given value type
func (*BadDecl) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*BadDecl) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*BadDecl) FindUsages ¶
FindUsages finds usages of given declaration
func (*BadDecl) FindVarDeclarations ¶
func (s *BadDecl) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*BadDecl) GetSource ¶
func (s *BadDecl) GetSource() []byte
GetSource returns the source code of the current node
func (*BadDecl) GetSourceString ¶
func (s *BadDecl) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*BadDecl) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*BadDecl) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*BadDecl) IsValueType ¶
IsValueType checks if value type is of given type
func (*BadDecl) Level ¶
func (s *BadDecl) Level() int
Level returns the level counted from instantiated node = 0
func (*BadDecl) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*BadDecl) NodeType ¶
func (s *BadDecl) NodeType() NodeType
NodeType returns the NodeType of the node
func (*BadDecl) Parents ¶
func (s *BadDecl) Parents() []Node
Parents returns the parent path of nodes
func (*BadDecl) Pkg ¶
func (s *BadDecl) Pkg() *Package
Pkg returns the package this node belongs to.
func (*BadDecl) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*BadDecl) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*BadDecl) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type BadExpr ¶
BadExpr wraps ast.BadExpr
func (BadExpr) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (BadExpr) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*BadExpr) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*BadExpr) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*BadExpr) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*BadExpr) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*BadExpr) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*BadExpr) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*BadExpr) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*BadExpr) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*BadExpr) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*BadExpr) FindDeclarations ¶
func (s *BadExpr) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*BadExpr) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*BadExpr) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*BadExpr) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*BadExpr) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*BadExpr) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*BadExpr) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*BadExpr) FindMaps ¶
func (s *BadExpr) FindMaps() []Node
FindMaps find all nodes with given value type
func (*BadExpr) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*BadExpr) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*BadExpr) FindUsages ¶
FindUsages finds usages of given declaration
func (*BadExpr) FindVarDeclarations ¶
func (s *BadExpr) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*BadExpr) GetSource ¶
func (s *BadExpr) GetSource() []byte
GetSource returns the source code of the current node
func (*BadExpr) GetSourceString ¶
func (s *BadExpr) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*BadExpr) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*BadExpr) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*BadExpr) IsValueType ¶
IsValueType checks if value type is of given type
func (*BadExpr) Level ¶
func (s *BadExpr) Level() int
Level returns the level counted from instantiated node = 0
func (*BadExpr) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*BadExpr) NodeType ¶
func (s *BadExpr) NodeType() NodeType
NodeType returns the NodeType of the node
func (*BadExpr) Parents ¶
func (s *BadExpr) Parents() []Node
Parents returns the parent path of nodes
func (*BadExpr) Pkg ¶
func (s *BadExpr) Pkg() *Package
Pkg returns the package this node belongs to.
func (*BadExpr) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*BadExpr) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*BadExpr) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type BadStmt ¶
BadStmt wraps ast.BadStmt
func (BadStmt) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (BadStmt) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*BadStmt) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*BadStmt) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*BadStmt) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*BadStmt) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*BadStmt) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*BadStmt) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*BadStmt) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*BadStmt) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*BadStmt) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*BadStmt) FindDeclarations ¶
func (s *BadStmt) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*BadStmt) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*BadStmt) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*BadStmt) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*BadStmt) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*BadStmt) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*BadStmt) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*BadStmt) FindMaps ¶
func (s *BadStmt) FindMaps() []Node
FindMaps find all nodes with given value type
func (*BadStmt) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*BadStmt) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*BadStmt) FindUsages ¶
FindUsages finds usages of given declaration
func (*BadStmt) FindVarDeclarations ¶
func (s *BadStmt) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*BadStmt) GetSource ¶
func (s *BadStmt) GetSource() []byte
GetSource returns the source code of the current node
func (*BadStmt) GetSourceString ¶
func (s *BadStmt) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*BadStmt) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*BadStmt) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*BadStmt) IsValueType ¶
IsValueType checks if value type is of given type
func (*BadStmt) Level ¶
func (s *BadStmt) Level() int
Level returns the level counted from instantiated node = 0
func (*BadStmt) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*BadStmt) NodeType ¶
func (s *BadStmt) NodeType() NodeType
NodeType returns the NodeType of the node
func (*BadStmt) Parents ¶
func (s *BadStmt) Parents() []Node
Parents returns the parent path of nodes
func (*BadStmt) Pkg ¶
func (s *BadStmt) Pkg() *Package
Pkg returns the package this node belongs to.
func (*BadStmt) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*BadStmt) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*BadStmt) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type BasicLit ¶
BasicLit wraps ast.BasicLit
func (BasicLit) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (BasicLit) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*BasicLit) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*BasicLit) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*BasicLit) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*BasicLit) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*BasicLit) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*BasicLit) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*BasicLit) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*BasicLit) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*BasicLit) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*BasicLit) FindDeclarations ¶
func (s *BasicLit) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*BasicLit) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*BasicLit) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*BasicLit) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*BasicLit) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*BasicLit) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*BasicLit) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*BasicLit) FindMaps ¶
func (s *BasicLit) FindMaps() []Node
FindMaps find all nodes with given value type
func (*BasicLit) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*BasicLit) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*BasicLit) FindUsages ¶
FindUsages finds usages of given declaration
func (*BasicLit) FindVarDeclarations ¶
func (s *BasicLit) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*BasicLit) GetSource ¶
func (s *BasicLit) GetSource() []byte
GetSource returns the source code of the current node
func (*BasicLit) GetSourceString ¶
func (s *BasicLit) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*BasicLit) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*BasicLit) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*BasicLit) IsValueType ¶
IsValueType checks if value type is of given type
func (*BasicLit) Level ¶
func (s *BasicLit) Level() int
Level returns the level counted from instantiated node = 0
func (*BasicLit) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*BasicLit) NodeType ¶
func (s *BasicLit) NodeType() NodeType
NodeType returns the NodeType of the node
func (*BasicLit) Parents ¶
func (s *BasicLit) Parents() []Node
Parents returns the parent path of nodes
func (*BasicLit) Pkg ¶
func (s *BasicLit) Pkg() *Package
Pkg returns the package this node belongs to.
func (*BasicLit) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*BasicLit) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*BasicLit) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type BinaryExpr ¶
type BinaryExpr struct { *ast.BinaryExpr // contains filtered or unexported fields }
BinaryExpr wraps ast.BinaryExpr
func (BinaryExpr) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (BinaryExpr) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*BinaryExpr) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*BinaryExpr) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*BinaryExpr) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*BinaryExpr) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*BinaryExpr) Children ¶
func (s *BinaryExpr) Children() []Node
Children returns all child nodes
func (*BinaryExpr) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*BinaryExpr) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*BinaryExpr) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*BinaryExpr) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*BinaryExpr) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*BinaryExpr) FindDeclarations ¶
func (s *BinaryExpr) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*BinaryExpr) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*BinaryExpr) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*BinaryExpr) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*BinaryExpr) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*BinaryExpr) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*BinaryExpr) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*BinaryExpr) FindMaps ¶
func (s *BinaryExpr) FindMaps() []Node
FindMaps find all nodes with given value type
func (*BinaryExpr) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*BinaryExpr) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*BinaryExpr) FindUsages ¶
FindUsages finds usages of given declaration
func (*BinaryExpr) FindVarDeclarations ¶
func (s *BinaryExpr) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*BinaryExpr) GetSource ¶
func (s *BinaryExpr) GetSource() []byte
GetSource returns the source code of the current node
func (*BinaryExpr) GetSourceString ¶
func (s *BinaryExpr) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*BinaryExpr) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*BinaryExpr) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*BinaryExpr) IsValueType ¶
IsValueType checks if value type is of given type
func (*BinaryExpr) Level ¶
func (s *BinaryExpr) Level() int
Level returns the level counted from instantiated node = 0
func (*BinaryExpr) Match ¶
Match matches the source code of current node and content with given regex
func (*BinaryExpr) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*BinaryExpr) NodeType ¶
func (s *BinaryExpr) NodeType() NodeType
NodeType returns the NodeType of the node
func (*BinaryExpr) Parents ¶
func (s *BinaryExpr) Parents() []Node
Parents returns the parent path of nodes
func (*BinaryExpr) Pkg ¶
func (s *BinaryExpr) Pkg() *Package
Pkg returns the package this node belongs to.
func (*BinaryExpr) Siblings ¶
func (s *BinaryExpr) Siblings() []Node
Siblings returns all sibling nodes
func (*BinaryExpr) Token ¶
func (s *BinaryExpr) Token() token.Token
Token returns the token of the node
func (*BinaryExpr) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*BinaryExpr) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*BinaryExpr) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
func (*BinaryExpr) Visit ¶
Visit implements the ast.Visitor interface and is used to walk the underlying ast.Node tree
type BlockStmt ¶
BlockStmt wraps ast.BlockStmt
func (BlockStmt) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (BlockStmt) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*BlockStmt) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*BlockStmt) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*BlockStmt) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*BlockStmt) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*BlockStmt) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*BlockStmt) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*BlockStmt) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*BlockStmt) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*BlockStmt) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*BlockStmt) FindDeclarations ¶
func (s *BlockStmt) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*BlockStmt) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*BlockStmt) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*BlockStmt) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*BlockStmt) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*BlockStmt) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*BlockStmt) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*BlockStmt) FindMaps ¶
func (s *BlockStmt) FindMaps() []Node
FindMaps find all nodes with given value type
func (*BlockStmt) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*BlockStmt) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*BlockStmt) FindUsages ¶
FindUsages finds usages of given declaration
func (*BlockStmt) FindVarDeclarations ¶
func (s *BlockStmt) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*BlockStmt) GetSource ¶
func (s *BlockStmt) GetSource() []byte
GetSource returns the source code of the current node
func (*BlockStmt) GetSourceString ¶
func (s *BlockStmt) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*BlockStmt) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*BlockStmt) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*BlockStmt) IsValueType ¶
IsValueType checks if value type is of given type
func (*BlockStmt) Level ¶
func (s *BlockStmt) Level() int
Level returns the level counted from instantiated node = 0
func (*BlockStmt) Match ¶
Match matches the source code of current node and content with given regex
func (*BlockStmt) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*BlockStmt) NodeType ¶
func (s *BlockStmt) NodeType() NodeType
NodeType returns the NodeType of the node
func (*BlockStmt) Parents ¶
func (s *BlockStmt) Parents() []Node
Parents returns the parent path of nodes
func (*BlockStmt) Pkg ¶
func (s *BlockStmt) Pkg() *Package
Pkg returns the package this node belongs to.
func (*BlockStmt) Siblings ¶
func (s *BlockStmt) Siblings() []Node
Siblings returns all sibling nodes
func (*BlockStmt) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*BlockStmt) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*BlockStmt) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type BranchStmt ¶
type BranchStmt struct { *ast.BranchStmt // contains filtered or unexported fields }
BranchStmt wraps ast.BranchStmt
func (BranchStmt) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (BranchStmt) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*BranchStmt) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*BranchStmt) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*BranchStmt) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*BranchStmt) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*BranchStmt) Children ¶
func (s *BranchStmt) Children() []Node
Children returns all child nodes
func (*BranchStmt) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*BranchStmt) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*BranchStmt) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*BranchStmt) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*BranchStmt) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*BranchStmt) FindDeclarations ¶
func (s *BranchStmt) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*BranchStmt) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*BranchStmt) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*BranchStmt) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*BranchStmt) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*BranchStmt) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*BranchStmt) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*BranchStmt) FindMaps ¶
func (s *BranchStmt) FindMaps() []Node
FindMaps find all nodes with given value type
func (*BranchStmt) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*BranchStmt) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*BranchStmt) FindUsages ¶
FindUsages finds usages of given declaration
func (*BranchStmt) FindVarDeclarations ¶
func (s *BranchStmt) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*BranchStmt) GetIdent ¶
func (s *BranchStmt) GetIdent() *Ident
GetIdent returns the name of the node
func (*BranchStmt) GetSource ¶
func (s *BranchStmt) GetSource() []byte
GetSource returns the source code of the current node
func (*BranchStmt) GetSourceString ¶
func (s *BranchStmt) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*BranchStmt) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*BranchStmt) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*BranchStmt) IsValueType ¶
IsValueType checks if value type is of given type
func (*BranchStmt) Level ¶
func (s *BranchStmt) Level() int
Level returns the level counted from instantiated node = 0
func (*BranchStmt) Match ¶
Match matches the source code of current node and content with given regex
func (*BranchStmt) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*BranchStmt) NodeName ¶
func (s *BranchStmt) NodeName() string
NodeName returns the name of the node
func (*BranchStmt) NodeType ¶
func (s *BranchStmt) NodeType() NodeType
NodeType returns the NodeType of the node
func (*BranchStmt) Parents ¶
func (s *BranchStmt) Parents() []Node
Parents returns the parent path of nodes
func (*BranchStmt) Pkg ¶
func (s *BranchStmt) Pkg() *Package
Pkg returns the package this node belongs to.
func (*BranchStmt) Siblings ¶
func (s *BranchStmt) Siblings() []Node
Siblings returns all sibling nodes
func (*BranchStmt) Token ¶
func (s *BranchStmt) Token() token.Token
Token returns the token of the node
func (*BranchStmt) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*BranchStmt) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*BranchStmt) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type CallExpr ¶
CallExpr wraps ast.CallExpr
func (CallExpr) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (CallExpr) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*CallExpr) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*CallExpr) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*CallExpr) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*CallExpr) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*CallExpr) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*CallExpr) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*CallExpr) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*CallExpr) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*CallExpr) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*CallExpr) FindDeclarations ¶
func (s *CallExpr) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*CallExpr) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*CallExpr) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*CallExpr) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*CallExpr) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*CallExpr) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*CallExpr) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*CallExpr) FindMaps ¶
func (s *CallExpr) FindMaps() []Node
FindMaps find all nodes with given value type
func (*CallExpr) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*CallExpr) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*CallExpr) FindUsages ¶
FindUsages finds usages of given declaration
func (*CallExpr) FindVarDeclarations ¶
func (s *CallExpr) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*CallExpr) GetSource ¶
func (s *CallExpr) GetSource() []byte
GetSource returns the source code of the current node
func (*CallExpr) GetSourceString ¶
func (s *CallExpr) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*CallExpr) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*CallExpr) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*CallExpr) IsValueType ¶
IsValueType checks if value type is of given type
func (*CallExpr) Level ¶
func (s *CallExpr) Level() int
Level returns the level counted from instantiated node = 0
func (*CallExpr) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*CallExpr) NodeType ¶
func (s *CallExpr) NodeType() NodeType
NodeType returns the NodeType of the node
func (*CallExpr) Parents ¶
func (s *CallExpr) Parents() []Node
Parents returns the parent path of nodes
func (*CallExpr) Pkg ¶
func (s *CallExpr) Pkg() *Package
Pkg returns the package this node belongs to.
func (*CallExpr) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*CallExpr) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*CallExpr) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type CaseClause ¶
type CaseClause struct { *ast.CaseClause // contains filtered or unexported fields }
CaseClause wraps ast.CaseClause
func (CaseClause) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (CaseClause) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*CaseClause) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*CaseClause) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*CaseClause) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*CaseClause) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*CaseClause) Children ¶
func (s *CaseClause) Children() []Node
Children returns all child nodes
func (*CaseClause) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*CaseClause) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*CaseClause) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*CaseClause) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*CaseClause) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*CaseClause) FindDeclarations ¶
func (s *CaseClause) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*CaseClause) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*CaseClause) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*CaseClause) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*CaseClause) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*CaseClause) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*CaseClause) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*CaseClause) FindMaps ¶
func (s *CaseClause) FindMaps() []Node
FindMaps find all nodes with given value type
func (*CaseClause) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*CaseClause) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*CaseClause) FindUsages ¶
FindUsages finds usages of given declaration
func (*CaseClause) FindVarDeclarations ¶
func (s *CaseClause) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*CaseClause) GetSource ¶
func (s *CaseClause) GetSource() []byte
GetSource returns the source code of the current node
func (*CaseClause) GetSourceString ¶
func (s *CaseClause) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*CaseClause) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*CaseClause) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*CaseClause) IsValueType ¶
IsValueType checks if value type is of given type
func (*CaseClause) Level ¶
func (s *CaseClause) Level() int
Level returns the level counted from instantiated node = 0
func (*CaseClause) Match ¶
Match matches the source code of current node and content with given regex
func (*CaseClause) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*CaseClause) NodeType ¶
func (s *CaseClause) NodeType() NodeType
NodeType returns the NodeType of the node
func (*CaseClause) Parents ¶
func (s *CaseClause) Parents() []Node
Parents returns the parent path of nodes
func (*CaseClause) Pkg ¶
func (s *CaseClause) Pkg() *Package
Pkg returns the package this node belongs to.
func (*CaseClause) Siblings ¶
func (s *CaseClause) Siblings() []Node
Siblings returns all sibling nodes
func (*CaseClause) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*CaseClause) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*CaseClause) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type ChanType ¶
ChanType wraps ast.ChanType
func (ChanType) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (ChanType) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*ChanType) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*ChanType) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*ChanType) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*ChanType) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*ChanType) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*ChanType) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*ChanType) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*ChanType) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*ChanType) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*ChanType) FindDeclarations ¶
func (s *ChanType) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*ChanType) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*ChanType) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*ChanType) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*ChanType) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*ChanType) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*ChanType) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*ChanType) FindMaps ¶
func (s *ChanType) FindMaps() []Node
FindMaps find all nodes with given value type
func (*ChanType) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*ChanType) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*ChanType) FindUsages ¶
FindUsages finds usages of given declaration
func (*ChanType) FindVarDeclarations ¶
func (s *ChanType) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*ChanType) GetSource ¶
func (s *ChanType) GetSource() []byte
GetSource returns the source code of the current node
func (*ChanType) GetSourceString ¶
func (s *ChanType) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*ChanType) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*ChanType) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*ChanType) IsValueType ¶
IsValueType checks if value type is of given type
func (*ChanType) Level ¶
func (s *ChanType) Level() int
Level returns the level counted from instantiated node = 0
func (*ChanType) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*ChanType) NodeType ¶
func (s *ChanType) NodeType() NodeType
NodeType returns the NodeType of the node
func (*ChanType) Parents ¶
func (s *ChanType) Parents() []Node
Parents returns the parent path of nodes
func (*ChanType) Pkg ¶
func (s *ChanType) Pkg() *Package
Pkg returns the package this node belongs to.
func (*ChanType) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*ChanType) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*ChanType) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type CommClause ¶
type CommClause struct { *ast.CommClause // contains filtered or unexported fields }
CommClause wraps ast.CommClause
func (CommClause) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (CommClause) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*CommClause) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*CommClause) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*CommClause) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*CommClause) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*CommClause) Children ¶
func (s *CommClause) Children() []Node
Children returns all child nodes
func (*CommClause) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*CommClause) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*CommClause) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*CommClause) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*CommClause) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*CommClause) FindDeclarations ¶
func (s *CommClause) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*CommClause) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*CommClause) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*CommClause) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*CommClause) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*CommClause) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*CommClause) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*CommClause) FindMaps ¶
func (s *CommClause) FindMaps() []Node
FindMaps find all nodes with given value type
func (*CommClause) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*CommClause) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*CommClause) FindUsages ¶
FindUsages finds usages of given declaration
func (*CommClause) FindVarDeclarations ¶
func (s *CommClause) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*CommClause) GetSource ¶
func (s *CommClause) GetSource() []byte
GetSource returns the source code of the current node
func (*CommClause) GetSourceString ¶
func (s *CommClause) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*CommClause) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*CommClause) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*CommClause) IsValueType ¶
IsValueType checks if value type is of given type
func (*CommClause) Level ¶
func (s *CommClause) Level() int
Level returns the level counted from instantiated node = 0
func (*CommClause) Match ¶
Match matches the source code of current node and content with given regex
func (*CommClause) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*CommClause) NodeType ¶
func (s *CommClause) NodeType() NodeType
NodeType returns the NodeType of the node
func (*CommClause) Parents ¶
func (s *CommClause) Parents() []Node
Parents returns the parent path of nodes
func (*CommClause) Pkg ¶
func (s *CommClause) Pkg() *Package
Pkg returns the package this node belongs to.
func (*CommClause) Siblings ¶
func (s *CommClause) Siblings() []Node
Siblings returns all sibling nodes
func (*CommClause) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*CommClause) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*CommClause) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type Comment ¶
Comment wraps ast.Comment
func (Comment) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (Comment) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*Comment) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*Comment) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*Comment) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*Comment) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*Comment) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*Comment) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*Comment) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*Comment) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*Comment) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*Comment) FindDeclarations ¶
func (s *Comment) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*Comment) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*Comment) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*Comment) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*Comment) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*Comment) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*Comment) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*Comment) FindMaps ¶
func (s *Comment) FindMaps() []Node
FindMaps find all nodes with given value type
func (*Comment) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*Comment) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*Comment) FindUsages ¶
FindUsages finds usages of given declaration
func (*Comment) FindVarDeclarations ¶
func (s *Comment) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*Comment) GetSource ¶
func (s *Comment) GetSource() []byte
GetSource returns the source code of the current node
func (*Comment) GetSourceString ¶
func (s *Comment) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*Comment) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*Comment) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*Comment) IsValueType ¶
IsValueType checks if value type is of given type
func (*Comment) Level ¶
func (s *Comment) Level() int
Level returns the level counted from instantiated node = 0
func (*Comment) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*Comment) NodeType ¶
func (s *Comment) NodeType() NodeType
NodeType returns the NodeType of the node
func (*Comment) Parents ¶
func (s *Comment) Parents() []Node
Parents returns the parent path of nodes
func (*Comment) Pkg ¶
func (s *Comment) Pkg() *Package
Pkg returns the package this node belongs to.
func (*Comment) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*Comment) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*Comment) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type CommentGroup ¶
type CommentGroup struct { *ast.CommentGroup // contains filtered or unexported fields }
CommentGroup wraps ast.CommentGroup
func (CommentGroup) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (CommentGroup) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*CommentGroup) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*CommentGroup) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*CommentGroup) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*CommentGroup) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*CommentGroup) Children ¶
func (s *CommentGroup) Children() []Node
Children returns all child nodes
func (*CommentGroup) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*CommentGroup) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*CommentGroup) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*CommentGroup) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*CommentGroup) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*CommentGroup) FindDeclarations ¶
func (s *CommentGroup) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*CommentGroup) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*CommentGroup) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*CommentGroup) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*CommentGroup) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*CommentGroup) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*CommentGroup) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*CommentGroup) FindMaps ¶
func (s *CommentGroup) FindMaps() []Node
FindMaps find all nodes with given value type
func (*CommentGroup) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*CommentGroup) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*CommentGroup) FindUsages ¶
FindUsages finds usages of given declaration
func (*CommentGroup) FindVarDeclarations ¶
func (s *CommentGroup) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*CommentGroup) GetSource ¶
func (s *CommentGroup) GetSource() []byte
GetSource returns the source code of the current node
func (*CommentGroup) GetSourceString ¶
func (s *CommentGroup) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*CommentGroup) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*CommentGroup) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*CommentGroup) IsValueType ¶
IsValueType checks if value type is of given type
func (*CommentGroup) Level ¶
func (s *CommentGroup) Level() int
Level returns the level counted from instantiated node = 0
func (*CommentGroup) Match ¶
Match matches the source code of current node and content with given regex
func (*CommentGroup) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*CommentGroup) NodeType ¶
func (s *CommentGroup) NodeType() NodeType
NodeType returns the NodeType of the node
func (*CommentGroup) Parents ¶
func (s *CommentGroup) Parents() []Node
Parents returns the parent path of nodes
func (*CommentGroup) Pkg ¶
func (s *CommentGroup) Pkg() *Package
Pkg returns the package this node belongs to.
func (*CommentGroup) Siblings ¶
func (s *CommentGroup) Siblings() []Node
Siblings returns all sibling nodes
func (*CommentGroup) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*CommentGroup) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*CommentGroup) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type CompositeLit ¶
type CompositeLit struct { *ast.CompositeLit // contains filtered or unexported fields }
CompositeLit wraps ast.CompositeLit
func (CompositeLit) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (CompositeLit) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*CompositeLit) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*CompositeLit) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*CompositeLit) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*CompositeLit) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*CompositeLit) Children ¶
func (s *CompositeLit) Children() []Node
Children returns all child nodes
func (*CompositeLit) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*CompositeLit) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*CompositeLit) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*CompositeLit) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*CompositeLit) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*CompositeLit) FindDeclarations ¶
func (s *CompositeLit) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*CompositeLit) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*CompositeLit) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*CompositeLit) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*CompositeLit) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*CompositeLit) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*CompositeLit) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*CompositeLit) FindMaps ¶
func (s *CompositeLit) FindMaps() []Node
FindMaps find all nodes with given value type
func (*CompositeLit) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*CompositeLit) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*CompositeLit) FindUsages ¶
FindUsages finds usages of given declaration
func (*CompositeLit) FindVarDeclarations ¶
func (s *CompositeLit) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*CompositeLit) GetSource ¶
func (s *CompositeLit) GetSource() []byte
GetSource returns the source code of the current node
func (*CompositeLit) GetSourceString ¶
func (s *CompositeLit) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*CompositeLit) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*CompositeLit) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*CompositeLit) IsValueType ¶
IsValueType checks if value type is of given type
func (*CompositeLit) Level ¶
func (s *CompositeLit) Level() int
Level returns the level counted from instantiated node = 0
func (*CompositeLit) Match ¶
Match matches the source code of current node and content with given regex
func (*CompositeLit) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*CompositeLit) NodeType ¶
func (s *CompositeLit) NodeType() NodeType
NodeType returns the NodeType of the node
func (*CompositeLit) Parents ¶
func (s *CompositeLit) Parents() []Node
Parents returns the parent path of nodes
func (*CompositeLit) Pkg ¶
func (s *CompositeLit) Pkg() *Package
Pkg returns the package this node belongs to.
func (*CompositeLit) Siblings ¶
func (s *CompositeLit) Siblings() []Node
Siblings returns all sibling nodes
func (*CompositeLit) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*CompositeLit) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*CompositeLit) ValueType ¶
func (s *CompositeLit) ValueType() types.Type
ValueType returns the value type of the node.
type DeclStmt ¶
DeclStmt wraps ast.DeclStmt
func (DeclStmt) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (DeclStmt) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*DeclStmt) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*DeclStmt) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*DeclStmt) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*DeclStmt) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*DeclStmt) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*DeclStmt) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*DeclStmt) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*DeclStmt) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*DeclStmt) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*DeclStmt) FindDeclarations ¶
func (s *DeclStmt) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*DeclStmt) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*DeclStmt) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*DeclStmt) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*DeclStmt) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*DeclStmt) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*DeclStmt) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*DeclStmt) FindMaps ¶
func (s *DeclStmt) FindMaps() []Node
FindMaps find all nodes with given value type
func (*DeclStmt) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*DeclStmt) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*DeclStmt) FindUsages ¶
FindUsages finds usages of given declaration
func (*DeclStmt) FindVarDeclarations ¶
func (s *DeclStmt) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*DeclStmt) GetSource ¶
func (s *DeclStmt) GetSource() []byte
GetSource returns the source code of the current node
func (*DeclStmt) GetSourceString ¶
func (s *DeclStmt) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*DeclStmt) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*DeclStmt) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*DeclStmt) IsValueType ¶
IsValueType checks if value type is of given type
func (*DeclStmt) Level ¶
func (s *DeclStmt) Level() int
Level returns the level counted from instantiated node = 0
func (*DeclStmt) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*DeclStmt) NodeType ¶
func (s *DeclStmt) NodeType() NodeType
NodeType returns the NodeType of the node
func (*DeclStmt) Parents ¶
func (s *DeclStmt) Parents() []Node
Parents returns the parent path of nodes
func (*DeclStmt) Pkg ¶
func (s *DeclStmt) Pkg() *Package
Pkg returns the package this node belongs to.
func (*DeclStmt) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*DeclStmt) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*DeclStmt) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type DeferStmt ¶
DeferStmt wraps ast.DeferStmt
func (DeferStmt) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (DeferStmt) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*DeferStmt) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*DeferStmt) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*DeferStmt) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*DeferStmt) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*DeferStmt) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*DeferStmt) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*DeferStmt) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*DeferStmt) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*DeferStmt) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*DeferStmt) FindDeclarations ¶
func (s *DeferStmt) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*DeferStmt) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*DeferStmt) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*DeferStmt) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*DeferStmt) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*DeferStmt) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*DeferStmt) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*DeferStmt) FindMaps ¶
func (s *DeferStmt) FindMaps() []Node
FindMaps find all nodes with given value type
func (*DeferStmt) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*DeferStmt) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*DeferStmt) FindUsages ¶
FindUsages finds usages of given declaration
func (*DeferStmt) FindVarDeclarations ¶
func (s *DeferStmt) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*DeferStmt) GetSource ¶
func (s *DeferStmt) GetSource() []byte
GetSource returns the source code of the current node
func (*DeferStmt) GetSourceString ¶
func (s *DeferStmt) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*DeferStmt) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*DeferStmt) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*DeferStmt) IsValueType ¶
IsValueType checks if value type is of given type
func (*DeferStmt) Level ¶
func (s *DeferStmt) Level() int
Level returns the level counted from instantiated node = 0
func (*DeferStmt) Match ¶
Match matches the source code of current node and content with given regex
func (*DeferStmt) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*DeferStmt) NodeType ¶
func (s *DeferStmt) NodeType() NodeType
NodeType returns the NodeType of the node
func (*DeferStmt) Parents ¶
func (s *DeferStmt) Parents() []Node
Parents returns the parent path of nodes
func (*DeferStmt) Pkg ¶
func (s *DeferStmt) Pkg() *Package
Pkg returns the package this node belongs to.
func (*DeferStmt) Siblings ¶
func (s *DeferStmt) Siblings() []Node
Siblings returns all sibling nodes
func (*DeferStmt) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*DeferStmt) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*DeferStmt) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type Ellipsis ¶
Ellipsis wraps ast.Ellipsis
func (Ellipsis) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (Ellipsis) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*Ellipsis) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*Ellipsis) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*Ellipsis) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*Ellipsis) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*Ellipsis) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*Ellipsis) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*Ellipsis) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*Ellipsis) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*Ellipsis) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*Ellipsis) FindDeclarations ¶
func (s *Ellipsis) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*Ellipsis) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*Ellipsis) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*Ellipsis) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*Ellipsis) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*Ellipsis) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*Ellipsis) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*Ellipsis) FindMaps ¶
func (s *Ellipsis) FindMaps() []Node
FindMaps find all nodes with given value type
func (*Ellipsis) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*Ellipsis) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*Ellipsis) FindUsages ¶
FindUsages finds usages of given declaration
func (*Ellipsis) FindVarDeclarations ¶
func (s *Ellipsis) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*Ellipsis) GetSource ¶
func (s *Ellipsis) GetSource() []byte
GetSource returns the source code of the current node
func (*Ellipsis) GetSourceString ¶
func (s *Ellipsis) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*Ellipsis) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*Ellipsis) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*Ellipsis) IsValueType ¶
IsValueType checks if value type is of given type
func (*Ellipsis) Level ¶
func (s *Ellipsis) Level() int
Level returns the level counted from instantiated node = 0
func (*Ellipsis) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*Ellipsis) NodeType ¶
func (s *Ellipsis) NodeType() NodeType
NodeType returns the NodeType of the node
func (*Ellipsis) Parents ¶
func (s *Ellipsis) Parents() []Node
Parents returns the parent path of nodes
func (*Ellipsis) Pkg ¶
func (s *Ellipsis) Pkg() *Package
Pkg returns the package this node belongs to.
func (*Ellipsis) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*Ellipsis) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*Ellipsis) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type EmptyStmt ¶
EmptyStmt wraps ast.EmptyStmt
func (EmptyStmt) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (EmptyStmt) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*EmptyStmt) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*EmptyStmt) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*EmptyStmt) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*EmptyStmt) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*EmptyStmt) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*EmptyStmt) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*EmptyStmt) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*EmptyStmt) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*EmptyStmt) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*EmptyStmt) FindDeclarations ¶
func (s *EmptyStmt) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*EmptyStmt) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*EmptyStmt) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*EmptyStmt) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*EmptyStmt) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*EmptyStmt) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*EmptyStmt) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*EmptyStmt) FindMaps ¶
func (s *EmptyStmt) FindMaps() []Node
FindMaps find all nodes with given value type
func (*EmptyStmt) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*EmptyStmt) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*EmptyStmt) FindUsages ¶
FindUsages finds usages of given declaration
func (*EmptyStmt) FindVarDeclarations ¶
func (s *EmptyStmt) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*EmptyStmt) GetSource ¶
func (s *EmptyStmt) GetSource() []byte
GetSource returns the source code of the current node
func (*EmptyStmt) GetSourceString ¶
func (s *EmptyStmt) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*EmptyStmt) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*EmptyStmt) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*EmptyStmt) IsValueType ¶
IsValueType checks if value type is of given type
func (*EmptyStmt) Level ¶
func (s *EmptyStmt) Level() int
Level returns the level counted from instantiated node = 0
func (*EmptyStmt) Match ¶
Match matches the source code of current node and content with given regex
func (*EmptyStmt) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*EmptyStmt) NodeType ¶
func (s *EmptyStmt) NodeType() NodeType
NodeType returns the NodeType of the node
func (*EmptyStmt) Parents ¶
func (s *EmptyStmt) Parents() []Node
Parents returns the parent path of nodes
func (*EmptyStmt) Pkg ¶
func (s *EmptyStmt) Pkg() *Package
Pkg returns the package this node belongs to.
func (*EmptyStmt) Siblings ¶
func (s *EmptyStmt) Siblings() []Node
Siblings returns all sibling nodes
func (*EmptyStmt) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*EmptyStmt) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*EmptyStmt) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type ExprStmt ¶
ExprStmt wraps ast.ExprStmt
func (ExprStmt) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (ExprStmt) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*ExprStmt) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*ExprStmt) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*ExprStmt) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*ExprStmt) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*ExprStmt) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*ExprStmt) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*ExprStmt) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*ExprStmt) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*ExprStmt) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*ExprStmt) FindDeclarations ¶
func (s *ExprStmt) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*ExprStmt) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*ExprStmt) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*ExprStmt) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*ExprStmt) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*ExprStmt) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*ExprStmt) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*ExprStmt) FindMaps ¶
func (s *ExprStmt) FindMaps() []Node
FindMaps find all nodes with given value type
func (*ExprStmt) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*ExprStmt) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*ExprStmt) FindUsages ¶
FindUsages finds usages of given declaration
func (*ExprStmt) FindVarDeclarations ¶
func (s *ExprStmt) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*ExprStmt) GetSource ¶
func (s *ExprStmt) GetSource() []byte
GetSource returns the source code of the current node
func (*ExprStmt) GetSourceString ¶
func (s *ExprStmt) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*ExprStmt) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*ExprStmt) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*ExprStmt) IsValueType ¶
IsValueType checks if value type is of given type
func (*ExprStmt) Level ¶
func (s *ExprStmt) Level() int
Level returns the level counted from instantiated node = 0
func (*ExprStmt) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*ExprStmt) NodeType ¶
func (s *ExprStmt) NodeType() NodeType
NodeType returns the NodeType of the node
func (*ExprStmt) Parents ¶
func (s *ExprStmt) Parents() []Node
Parents returns the parent path of nodes
func (*ExprStmt) Pkg ¶
func (s *ExprStmt) Pkg() *Package
Pkg returns the package this node belongs to.
func (*ExprStmt) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*ExprStmt) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*ExprStmt) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type Field ¶
Field wraps ast.Field
func (Field) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (Field) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*Field) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*Field) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*Field) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*Field) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*Field) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*Field) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*Field) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*Field) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*Field) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*Field) FindDeclarations ¶
func (s *Field) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*Field) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*Field) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*Field) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*Field) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*Field) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*Field) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*Field) FindMaps ¶
func (s *Field) FindMaps() []Node
FindMaps find all nodes with given value type
func (*Field) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*Field) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*Field) FindUsages ¶
FindUsages finds usages of given declaration
func (*Field) FindVarDeclarations ¶
func (s *Field) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*Field) GetSource ¶
func (s *Field) GetSource() []byte
GetSource returns the source code of the current node
func (*Field) GetSourceString ¶
func (s *Field) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*Field) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*Field) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*Field) IsValueType ¶
IsValueType checks if value type is of given type
func (*Field) Level ¶
func (s *Field) Level() int
Level returns the level counted from instantiated node = 0
func (*Field) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*Field) NodeType ¶
func (s *Field) NodeType() NodeType
NodeType returns the NodeType of the node
func (*Field) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*Field) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
type FieldList ¶
FieldList wraps ast.FieldList
func (FieldList) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (FieldList) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*FieldList) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*FieldList) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*FieldList) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*FieldList) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*FieldList) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*FieldList) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*FieldList) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*FieldList) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*FieldList) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*FieldList) FindDeclarations ¶
func (s *FieldList) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*FieldList) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*FieldList) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*FieldList) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*FieldList) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*FieldList) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*FieldList) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*FieldList) FindMaps ¶
func (s *FieldList) FindMaps() []Node
FindMaps find all nodes with given value type
func (*FieldList) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*FieldList) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*FieldList) FindUsages ¶
FindUsages finds usages of given declaration
func (*FieldList) FindVarDeclarations ¶
func (s *FieldList) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*FieldList) GetSource ¶
func (s *FieldList) GetSource() []byte
GetSource returns the source code of the current node
func (*FieldList) GetSourceString ¶
func (s *FieldList) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*FieldList) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*FieldList) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*FieldList) IsValueType ¶
IsValueType checks if value type is of given type
func (*FieldList) Level ¶
func (s *FieldList) Level() int
Level returns the level counted from instantiated node = 0
func (*FieldList) Match ¶
Match matches the source code of current node and content with given regex
func (*FieldList) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*FieldList) NodeType ¶
func (s *FieldList) NodeType() NodeType
NodeType returns the NodeType of the node
func (*FieldList) Parents ¶
func (s *FieldList) Parents() []Node
Parents returns the parent path of nodes
func (*FieldList) Pkg ¶
func (s *FieldList) Pkg() *Package
Pkg returns the package this node belongs to.
func (*FieldList) Siblings ¶
func (s *FieldList) Siblings() []Node
Siblings returns all sibling nodes
func (*FieldList) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*FieldList) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*FieldList) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type File ¶
File wraps ast.File
func NewFileNode ¶
NewFileNode creates a new file node including raw content for regex searches. Use NewNode to create a file without regex capabilities.
func (File) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (File) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*File) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*File) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*File) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*File) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*File) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*File) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*File) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*File) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*File) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*File) FindDeclarations ¶
func (s *File) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*File) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*File) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*File) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*File) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*File) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*File) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*File) FindMaps ¶
func (s *File) FindMaps() []Node
FindMaps find all nodes with given value type
func (*File) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*File) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*File) FindUsages ¶
FindUsages finds usages of given declaration
func (*File) FindVarDeclarations ¶
func (s *File) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*File) GetSource ¶
func (s *File) GetSource() []byte
GetSource returns the source code of the current node
func (*File) GetSourceString ¶
func (s *File) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*File) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*File) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*File) IsValueType ¶
IsValueType checks if value type is of given type
func (*File) Level ¶
func (s *File) Level() int
Level returns the level counted from instantiated node = 0
func (*File) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*File) NodeType ¶
func (s *File) NodeType() NodeType
NodeType returns the NodeType of the node
func (*File) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*File) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
type Folder ¶
type Folder struct { Info *types.Info FSet *token.FileSet Pkgs map[string]*Package Pkg *types.Package RawFiles map[string]*RawFile // contains filtered or unexported fields }
Folder represents a go package folder
func NewFolder ¶
func NewFolder(root http.FileSystem, dir string) *Folder
NewFolder creates a new folder with given path. Use ParseFolder to parse ast from go files in path. The pkgPath is the import path of the package to be used by types.ParseInfo.
func (*Folder) GetRawFiles ¶
GetRawFiles a map of file contents
func (*Folder) ParseFolder ¶
ParseFolder will parse all to files in folder. It skips test files.
type ForStmt ¶
ForStmt wraps ast.ForStmt
func (ForStmt) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (ForStmt) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*ForStmt) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*ForStmt) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*ForStmt) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*ForStmt) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*ForStmt) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*ForStmt) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*ForStmt) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*ForStmt) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*ForStmt) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*ForStmt) FindDeclarations ¶
func (s *ForStmt) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*ForStmt) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*ForStmt) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*ForStmt) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*ForStmt) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*ForStmt) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*ForStmt) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*ForStmt) FindMaps ¶
func (s *ForStmt) FindMaps() []Node
FindMaps find all nodes with given value type
func (*ForStmt) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*ForStmt) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*ForStmt) FindUsages ¶
FindUsages finds usages of given declaration
func (*ForStmt) FindVarDeclarations ¶
func (s *ForStmt) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*ForStmt) GetSource ¶
func (s *ForStmt) GetSource() []byte
GetSource returns the source code of the current node
func (*ForStmt) GetSourceString ¶
func (s *ForStmt) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*ForStmt) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*ForStmt) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*ForStmt) IsValueType ¶
IsValueType checks if value type is of given type
func (*ForStmt) Level ¶
func (s *ForStmt) Level() int
Level returns the level counted from instantiated node = 0
func (*ForStmt) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*ForStmt) NodeType ¶
func (s *ForStmt) NodeType() NodeType
NodeType returns the NodeType of the node
func (*ForStmt) Parents ¶
func (s *ForStmt) Parents() []Node
Parents returns the parent path of nodes
func (*ForStmt) Pkg ¶
func (s *ForStmt) Pkg() *Package
Pkg returns the package this node belongs to.
func (*ForStmt) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*ForStmt) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*ForStmt) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type FuncDecl ¶
FuncDecl wraps ast.FuncDecl
func (FuncDecl) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (FuncDecl) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*FuncDecl) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*FuncDecl) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*FuncDecl) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*FuncDecl) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*FuncDecl) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*FuncDecl) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*FuncDecl) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*FuncDecl) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*FuncDecl) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*FuncDecl) FindDeclarations ¶
func (s *FuncDecl) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*FuncDecl) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*FuncDecl) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*FuncDecl) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*FuncDecl) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*FuncDecl) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*FuncDecl) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*FuncDecl) FindMaps ¶
func (s *FuncDecl) FindMaps() []Node
FindMaps find all nodes with given value type
func (*FuncDecl) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*FuncDecl) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*FuncDecl) FindUsages ¶
FindUsages finds usages of given declaration
func (*FuncDecl) FindVarDeclarations ¶
func (s *FuncDecl) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*FuncDecl) GetSource ¶
func (s *FuncDecl) GetSource() []byte
GetSource returns the source code of the current node
func (*FuncDecl) GetSourceString ¶
func (s *FuncDecl) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*FuncDecl) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*FuncDecl) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*FuncDecl) IsValueType ¶
IsValueType checks if value type is of given type
func (*FuncDecl) Level ¶
func (s *FuncDecl) Level() int
Level returns the level counted from instantiated node = 0
func (*FuncDecl) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*FuncDecl) NodeType ¶
func (s *FuncDecl) NodeType() NodeType
NodeType returns the NodeType of the node
func (*FuncDecl) Parents ¶
func (s *FuncDecl) Parents() []Node
Parents returns the parent path of nodes
func (*FuncDecl) Pkg ¶
func (s *FuncDecl) Pkg() *Package
Pkg returns the package this node belongs to.
func (*FuncDecl) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*FuncDecl) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*FuncDecl) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type FuncLit ¶
FuncLit wraps ast.FuncLit
func (FuncLit) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (FuncLit) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*FuncLit) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*FuncLit) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*FuncLit) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*FuncLit) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*FuncLit) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*FuncLit) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*FuncLit) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*FuncLit) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*FuncLit) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*FuncLit) FindDeclarations ¶
func (s *FuncLit) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*FuncLit) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*FuncLit) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*FuncLit) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*FuncLit) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*FuncLit) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*FuncLit) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*FuncLit) FindMaps ¶
func (s *FuncLit) FindMaps() []Node
FindMaps find all nodes with given value type
func (*FuncLit) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*FuncLit) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*FuncLit) FindUsages ¶
FindUsages finds usages of given declaration
func (*FuncLit) FindVarDeclarations ¶
func (s *FuncLit) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*FuncLit) GetSource ¶
func (s *FuncLit) GetSource() []byte
GetSource returns the source code of the current node
func (*FuncLit) GetSourceString ¶
func (s *FuncLit) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*FuncLit) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*FuncLit) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*FuncLit) IsValueType ¶
IsValueType checks if value type is of given type
func (*FuncLit) Level ¶
func (s *FuncLit) Level() int
Level returns the level counted from instantiated node = 0
func (*FuncLit) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*FuncLit) NodeType ¶
func (s *FuncLit) NodeType() NodeType
NodeType returns the NodeType of the node
func (*FuncLit) Parents ¶
func (s *FuncLit) Parents() []Node
Parents returns the parent path of nodes
func (*FuncLit) Pkg ¶
func (s *FuncLit) Pkg() *Package
Pkg returns the package this node belongs to.
func (*FuncLit) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*FuncLit) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*FuncLit) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type FuncType ¶
FuncType wraps ast.FuncType
func (FuncType) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (FuncType) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*FuncType) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*FuncType) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*FuncType) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*FuncType) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*FuncType) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*FuncType) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*FuncType) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*FuncType) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*FuncType) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*FuncType) FindDeclarations ¶
func (s *FuncType) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*FuncType) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*FuncType) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*FuncType) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*FuncType) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*FuncType) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*FuncType) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*FuncType) FindMaps ¶
func (s *FuncType) FindMaps() []Node
FindMaps find all nodes with given value type
func (*FuncType) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*FuncType) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*FuncType) FindUsages ¶
FindUsages finds usages of given declaration
func (*FuncType) FindVarDeclarations ¶
func (s *FuncType) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*FuncType) GetSource ¶
func (s *FuncType) GetSource() []byte
GetSource returns the source code of the current node
func (*FuncType) GetSourceString ¶
func (s *FuncType) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*FuncType) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*FuncType) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*FuncType) IsValueType ¶
IsValueType checks if value type is of given type
func (*FuncType) Level ¶
func (s *FuncType) Level() int
Level returns the level counted from instantiated node = 0
func (*FuncType) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*FuncType) NodeType ¶
func (s *FuncType) NodeType() NodeType
NodeType returns the NodeType of the node
func (*FuncType) Parents ¶
func (s *FuncType) Parents() []Node
Parents returns the parent path of nodes
func (*FuncType) Pkg ¶
func (s *FuncType) Pkg() *Package
Pkg returns the package this node belongs to.
func (*FuncType) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*FuncType) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*FuncType) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type GenDecl ¶
GenDecl wraps ast.GenDecl
func (GenDecl) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (GenDecl) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*GenDecl) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*GenDecl) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*GenDecl) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*GenDecl) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*GenDecl) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*GenDecl) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*GenDecl) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*GenDecl) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*GenDecl) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*GenDecl) FindDeclarations ¶
func (s *GenDecl) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*GenDecl) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*GenDecl) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*GenDecl) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*GenDecl) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*GenDecl) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*GenDecl) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*GenDecl) FindMaps ¶
func (s *GenDecl) FindMaps() []Node
FindMaps find all nodes with given value type
func (*GenDecl) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*GenDecl) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*GenDecl) FindUsages ¶
FindUsages finds usages of given declaration
func (*GenDecl) FindVarDeclarations ¶
func (s *GenDecl) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*GenDecl) GetSource ¶
func (s *GenDecl) GetSource() []byte
GetSource returns the source code of the current node
func (*GenDecl) GetSourceString ¶
func (s *GenDecl) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*GenDecl) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*GenDecl) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*GenDecl) IsValueType ¶
IsValueType checks if value type is of given type
func (*GenDecl) Level ¶
func (s *GenDecl) Level() int
Level returns the level counted from instantiated node = 0
func (*GenDecl) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*GenDecl) NodeType ¶
func (s *GenDecl) NodeType() NodeType
NodeType returns the NodeType of the node
func (*GenDecl) Parents ¶
func (s *GenDecl) Parents() []Node
Parents returns the parent path of nodes
func (*GenDecl) Pkg ¶
func (s *GenDecl) Pkg() *Package
Pkg returns the package this node belongs to.
func (*GenDecl) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*GenDecl) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*GenDecl) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type GoStmt ¶
GoStmt wraps ast.GoStmt
func (GoStmt) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (GoStmt) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*GoStmt) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*GoStmt) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*GoStmt) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*GoStmt) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*GoStmt) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*GoStmt) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*GoStmt) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*GoStmt) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*GoStmt) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*GoStmt) FindDeclarations ¶
func (s *GoStmt) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*GoStmt) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*GoStmt) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*GoStmt) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*GoStmt) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*GoStmt) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*GoStmt) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*GoStmt) FindMaps ¶
func (s *GoStmt) FindMaps() []Node
FindMaps find all nodes with given value type
func (*GoStmt) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*GoStmt) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*GoStmt) FindUsages ¶
FindUsages finds usages of given declaration
func (*GoStmt) FindVarDeclarations ¶
func (s *GoStmt) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*GoStmt) GetSource ¶
func (s *GoStmt) GetSource() []byte
GetSource returns the source code of the current node
func (*GoStmt) GetSourceString ¶
func (s *GoStmt) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*GoStmt) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*GoStmt) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*GoStmt) IsValueType ¶
IsValueType checks if value type is of given type
func (*GoStmt) Level ¶
func (s *GoStmt) Level() int
Level returns the level counted from instantiated node = 0
func (*GoStmt) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*GoStmt) NodeType ¶
func (s *GoStmt) NodeType() NodeType
NodeType returns the NodeType of the node
func (*GoStmt) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*GoStmt) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
type Ident ¶
Ident wraps ast.Ident
func (Ident) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (Ident) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*Ident) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*Ident) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*Ident) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*Ident) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*Ident) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*Ident) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*Ident) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*Ident) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*Ident) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*Ident) FindDeclarations ¶
func (s *Ident) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*Ident) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*Ident) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*Ident) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*Ident) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*Ident) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*Ident) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*Ident) FindMaps ¶
func (s *Ident) FindMaps() []Node
FindMaps find all nodes with given value type
func (*Ident) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*Ident) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*Ident) FindUsages ¶
FindUsages finds usages of given declaration
func (*Ident) FindVarDeclarations ¶
func (s *Ident) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*Ident) GetSource ¶
func (s *Ident) GetSource() []byte
GetSource returns the source code of the current node
func (*Ident) GetSourceString ¶
func (s *Ident) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*Ident) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*Ident) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*Ident) IsValueType ¶
IsValueType checks if value type is of given type
func (*Ident) Level ¶
func (s *Ident) Level() int
Level returns the level counted from instantiated node = 0
func (*Ident) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*Ident) NodeType ¶
func (s *Ident) NodeType() NodeType
NodeType returns the NodeType of the node
func (*Ident) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*Ident) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
type Identifier ¶
type Identifier interface {
GetIdent() *Ident
}
Identifier defines a node element with an ident attached to it or ident itself
type IfStmt ¶
IfStmt wraps ast.IfStmt
func (IfStmt) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (IfStmt) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*IfStmt) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*IfStmt) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*IfStmt) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*IfStmt) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*IfStmt) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*IfStmt) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*IfStmt) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*IfStmt) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*IfStmt) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*IfStmt) FindDeclarations ¶
func (s *IfStmt) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*IfStmt) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*IfStmt) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*IfStmt) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*IfStmt) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*IfStmt) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*IfStmt) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*IfStmt) FindMaps ¶
func (s *IfStmt) FindMaps() []Node
FindMaps find all nodes with given value type
func (*IfStmt) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*IfStmt) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*IfStmt) FindUsages ¶
FindUsages finds usages of given declaration
func (*IfStmt) FindVarDeclarations ¶
func (s *IfStmt) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*IfStmt) GetSource ¶
func (s *IfStmt) GetSource() []byte
GetSource returns the source code of the current node
func (*IfStmt) GetSourceString ¶
func (s *IfStmt) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*IfStmt) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*IfStmt) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*IfStmt) IsValueType ¶
IsValueType checks if value type is of given type
func (*IfStmt) Level ¶
func (s *IfStmt) Level() int
Level returns the level counted from instantiated node = 0
func (*IfStmt) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*IfStmt) NodeType ¶
func (s *IfStmt) NodeType() NodeType
NodeType returns the NodeType of the node
func (*IfStmt) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*IfStmt) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
type ImportSpec ¶
type ImportSpec struct { *ast.ImportSpec // contains filtered or unexported fields }
ImportSpec wraps ast.ImportSpec
func (ImportSpec) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (ImportSpec) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*ImportSpec) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*ImportSpec) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*ImportSpec) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*ImportSpec) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*ImportSpec) Children ¶
func (s *ImportSpec) Children() []Node
Children returns all child nodes
func (*ImportSpec) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*ImportSpec) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*ImportSpec) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*ImportSpec) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*ImportSpec) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*ImportSpec) FindDeclarations ¶
func (s *ImportSpec) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*ImportSpec) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*ImportSpec) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*ImportSpec) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*ImportSpec) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*ImportSpec) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*ImportSpec) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*ImportSpec) FindMaps ¶
func (s *ImportSpec) FindMaps() []Node
FindMaps find all nodes with given value type
func (*ImportSpec) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*ImportSpec) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*ImportSpec) FindUsages ¶
FindUsages finds usages of given declaration
func (*ImportSpec) FindVarDeclarations ¶
func (s *ImportSpec) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*ImportSpec) GetIdent ¶
func (s *ImportSpec) GetIdent() *Ident
GetIdent returns the name of the node
func (*ImportSpec) GetSource ¶
func (s *ImportSpec) GetSource() []byte
GetSource returns the source code of the current node
func (*ImportSpec) GetSourceString ¶
func (s *ImportSpec) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*ImportSpec) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*ImportSpec) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*ImportSpec) IsValueType ¶
IsValueType checks if value type is of given type
func (*ImportSpec) Level ¶
func (s *ImportSpec) Level() int
Level returns the level counted from instantiated node = 0
func (*ImportSpec) Match ¶
Match matches the source code of current node and content with given regex
func (*ImportSpec) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*ImportSpec) NodeName ¶
func (s *ImportSpec) NodeName() string
NodeName returns the name of the node
func (*ImportSpec) NodeType ¶
func (s *ImportSpec) NodeType() NodeType
NodeType returns the NodeType of the node
func (*ImportSpec) Parents ¶
func (s *ImportSpec) Parents() []Node
Parents returns the parent path of nodes
func (*ImportSpec) Pkg ¶
func (s *ImportSpec) Pkg() *Package
Pkg returns the package this node belongs to.
func (*ImportSpec) Siblings ¶
func (s *ImportSpec) Siblings() []Node
Siblings returns all sibling nodes
func (*ImportSpec) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*ImportSpec) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*ImportSpec) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type IncDecStmt ¶
type IncDecStmt struct { *ast.IncDecStmt // contains filtered or unexported fields }
IncDecStmt wraps ast.IncDecStmt
func (IncDecStmt) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (IncDecStmt) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*IncDecStmt) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*IncDecStmt) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*IncDecStmt) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*IncDecStmt) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*IncDecStmt) Children ¶
func (s *IncDecStmt) Children() []Node
Children returns all child nodes
func (*IncDecStmt) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*IncDecStmt) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*IncDecStmt) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*IncDecStmt) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*IncDecStmt) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*IncDecStmt) FindDeclarations ¶
func (s *IncDecStmt) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*IncDecStmt) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*IncDecStmt) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*IncDecStmt) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*IncDecStmt) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*IncDecStmt) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*IncDecStmt) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*IncDecStmt) FindMaps ¶
func (s *IncDecStmt) FindMaps() []Node
FindMaps find all nodes with given value type
func (*IncDecStmt) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*IncDecStmt) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*IncDecStmt) FindUsages ¶
FindUsages finds usages of given declaration
func (*IncDecStmt) FindVarDeclarations ¶
func (s *IncDecStmt) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*IncDecStmt) GetSource ¶
func (s *IncDecStmt) GetSource() []byte
GetSource returns the source code of the current node
func (*IncDecStmt) GetSourceString ¶
func (s *IncDecStmt) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*IncDecStmt) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*IncDecStmt) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*IncDecStmt) IsValueType ¶
IsValueType checks if value type is of given type
func (*IncDecStmt) Level ¶
func (s *IncDecStmt) Level() int
Level returns the level counted from instantiated node = 0
func (*IncDecStmt) Match ¶
Match matches the source code of current node and content with given regex
func (*IncDecStmt) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*IncDecStmt) NodeType ¶
func (s *IncDecStmt) NodeType() NodeType
NodeType returns the NodeType of the node
func (*IncDecStmt) Parents ¶
func (s *IncDecStmt) Parents() []Node
Parents returns the parent path of nodes
func (*IncDecStmt) Pkg ¶
func (s *IncDecStmt) Pkg() *Package
Pkg returns the package this node belongs to.
func (*IncDecStmt) Siblings ¶
func (s *IncDecStmt) Siblings() []Node
Siblings returns all sibling nodes
func (*IncDecStmt) Token ¶
func (s *IncDecStmt) Token() token.Token
Token returns the token of the node
func (*IncDecStmt) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*IncDecStmt) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*IncDecStmt) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type IndexExpr ¶
IndexExpr wraps ast.IndexExpr
func (IndexExpr) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (IndexExpr) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*IndexExpr) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*IndexExpr) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*IndexExpr) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*IndexExpr) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*IndexExpr) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*IndexExpr) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*IndexExpr) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*IndexExpr) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*IndexExpr) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*IndexExpr) FindDeclarations ¶
func (s *IndexExpr) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*IndexExpr) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*IndexExpr) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*IndexExpr) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*IndexExpr) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*IndexExpr) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*IndexExpr) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*IndexExpr) FindMaps ¶
func (s *IndexExpr) FindMaps() []Node
FindMaps find all nodes with given value type
func (*IndexExpr) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*IndexExpr) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*IndexExpr) FindUsages ¶
FindUsages finds usages of given declaration
func (*IndexExpr) FindVarDeclarations ¶
func (s *IndexExpr) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*IndexExpr) GetSource ¶
func (s *IndexExpr) GetSource() []byte
GetSource returns the source code of the current node
func (*IndexExpr) GetSourceString ¶
func (s *IndexExpr) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*IndexExpr) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*IndexExpr) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*IndexExpr) IsValueType ¶
IsValueType checks if value type is of given type
func (*IndexExpr) Level ¶
func (s *IndexExpr) Level() int
Level returns the level counted from instantiated node = 0
func (*IndexExpr) Match ¶
Match matches the source code of current node and content with given regex
func (*IndexExpr) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*IndexExpr) NodeType ¶
func (s *IndexExpr) NodeType() NodeType
NodeType returns the NodeType of the node
func (*IndexExpr) Parents ¶
func (s *IndexExpr) Parents() []Node
Parents returns the parent path of nodes
func (*IndexExpr) Pkg ¶
func (s *IndexExpr) Pkg() *Package
Pkg returns the package this node belongs to.
func (*IndexExpr) Siblings ¶
func (s *IndexExpr) Siblings() []Node
Siblings returns all sibling nodes
func (*IndexExpr) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*IndexExpr) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*IndexExpr) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type InterfaceType ¶
type InterfaceType struct { *ast.InterfaceType // contains filtered or unexported fields }
InterfaceType wraps ast.InterfaceType
func (InterfaceType) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (InterfaceType) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*InterfaceType) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*InterfaceType) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*InterfaceType) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*InterfaceType) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*InterfaceType) Children ¶
func (s *InterfaceType) Children() []Node
Children returns all child nodes
func (*InterfaceType) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*InterfaceType) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*InterfaceType) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*InterfaceType) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*InterfaceType) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*InterfaceType) FindDeclarations ¶
func (s *InterfaceType) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*InterfaceType) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*InterfaceType) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*InterfaceType) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*InterfaceType) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*InterfaceType) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*InterfaceType) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*InterfaceType) FindMaps ¶
func (s *InterfaceType) FindMaps() []Node
FindMaps find all nodes with given value type
func (*InterfaceType) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*InterfaceType) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*InterfaceType) FindUsages ¶
FindUsages finds usages of given declaration
func (*InterfaceType) FindVarDeclarations ¶
func (s *InterfaceType) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*InterfaceType) GetSource ¶
func (s *InterfaceType) GetSource() []byte
GetSource returns the source code of the current node
func (*InterfaceType) GetSourceString ¶
func (s *InterfaceType) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*InterfaceType) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*InterfaceType) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*InterfaceType) IsValueType ¶
IsValueType checks if value type is of given type
func (*InterfaceType) Level ¶
func (s *InterfaceType) Level() int
Level returns the level counted from instantiated node = 0
func (*InterfaceType) Match ¶
Match matches the source code of current node and content with given regex
func (*InterfaceType) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*InterfaceType) NodeType ¶
func (s *InterfaceType) NodeType() NodeType
NodeType returns the NodeType of the node
func (*InterfaceType) Parents ¶
func (s *InterfaceType) Parents() []Node
Parents returns the parent path of nodes
func (*InterfaceType) Pkg ¶
func (s *InterfaceType) Pkg() *Package
Pkg returns the package this node belongs to.
func (*InterfaceType) Siblings ¶
func (s *InterfaceType) Siblings() []Node
Siblings returns all sibling nodes
func (*InterfaceType) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*InterfaceType) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*InterfaceType) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type KeyValueExpr ¶
type KeyValueExpr struct { *ast.KeyValueExpr // contains filtered or unexported fields }
KeyValueExpr wraps ast.KeyValueExpr
func (KeyValueExpr) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (KeyValueExpr) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*KeyValueExpr) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*KeyValueExpr) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*KeyValueExpr) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*KeyValueExpr) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*KeyValueExpr) Children ¶
func (s *KeyValueExpr) Children() []Node
Children returns all child nodes
func (*KeyValueExpr) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*KeyValueExpr) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*KeyValueExpr) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*KeyValueExpr) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*KeyValueExpr) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*KeyValueExpr) FindDeclarations ¶
func (s *KeyValueExpr) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*KeyValueExpr) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*KeyValueExpr) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*KeyValueExpr) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*KeyValueExpr) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*KeyValueExpr) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*KeyValueExpr) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*KeyValueExpr) FindMaps ¶
func (s *KeyValueExpr) FindMaps() []Node
FindMaps find all nodes with given value type
func (*KeyValueExpr) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*KeyValueExpr) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*KeyValueExpr) FindUsages ¶
FindUsages finds usages of given declaration
func (*KeyValueExpr) FindVarDeclarations ¶
func (s *KeyValueExpr) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*KeyValueExpr) GetSource ¶
func (s *KeyValueExpr) GetSource() []byte
GetSource returns the source code of the current node
func (*KeyValueExpr) GetSourceString ¶
func (s *KeyValueExpr) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*KeyValueExpr) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*KeyValueExpr) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*KeyValueExpr) IsValueType ¶
IsValueType checks if value type is of given type
func (*KeyValueExpr) Level ¶
func (s *KeyValueExpr) Level() int
Level returns the level counted from instantiated node = 0
func (*KeyValueExpr) Match ¶
Match matches the source code of current node and content with given regex
func (*KeyValueExpr) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*KeyValueExpr) NodeType ¶
func (s *KeyValueExpr) NodeType() NodeType
NodeType returns the NodeType of the node
func (*KeyValueExpr) Parents ¶
func (s *KeyValueExpr) Parents() []Node
Parents returns the parent path of nodes
func (*KeyValueExpr) Pkg ¶
func (s *KeyValueExpr) Pkg() *Package
Pkg returns the package this node belongs to.
func (*KeyValueExpr) Siblings ¶
func (s *KeyValueExpr) Siblings() []Node
Siblings returns all sibling nodes
func (*KeyValueExpr) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*KeyValueExpr) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*KeyValueExpr) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type LabeledStmt ¶
type LabeledStmt struct { *ast.LabeledStmt // contains filtered or unexported fields }
LabeledStmt wraps ast.LabeledStmt
func (LabeledStmt) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (LabeledStmt) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*LabeledStmt) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*LabeledStmt) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*LabeledStmt) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*LabeledStmt) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*LabeledStmt) Children ¶
func (s *LabeledStmt) Children() []Node
Children returns all child nodes
func (*LabeledStmt) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*LabeledStmt) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*LabeledStmt) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*LabeledStmt) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*LabeledStmt) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*LabeledStmt) FindDeclarations ¶
func (s *LabeledStmt) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*LabeledStmt) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*LabeledStmt) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*LabeledStmt) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*LabeledStmt) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*LabeledStmt) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*LabeledStmt) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*LabeledStmt) FindMaps ¶
func (s *LabeledStmt) FindMaps() []Node
FindMaps find all nodes with given value type
func (*LabeledStmt) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*LabeledStmt) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*LabeledStmt) FindUsages ¶
FindUsages finds usages of given declaration
func (*LabeledStmt) FindVarDeclarations ¶
func (s *LabeledStmt) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*LabeledStmt) GetIdent ¶
func (s *LabeledStmt) GetIdent() *Ident
GetIdent returns the name of the node
func (*LabeledStmt) GetSource ¶
func (s *LabeledStmt) GetSource() []byte
GetSource returns the source code of the current node
func (*LabeledStmt) GetSourceString ¶
func (s *LabeledStmt) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*LabeledStmt) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*LabeledStmt) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*LabeledStmt) IsValueType ¶
IsValueType checks if value type is of given type
func (*LabeledStmt) Level ¶
func (s *LabeledStmt) Level() int
Level returns the level counted from instantiated node = 0
func (*LabeledStmt) Match ¶
Match matches the source code of current node and content with given regex
func (*LabeledStmt) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*LabeledStmt) NodeName ¶
func (s *LabeledStmt) NodeName() string
NodeName returns the name of the node
func (*LabeledStmt) NodeType ¶
func (s *LabeledStmt) NodeType() NodeType
NodeType returns the NodeType of the node
func (*LabeledStmt) Parents ¶
func (s *LabeledStmt) Parents() []Node
Parents returns the parent path of nodes
func (*LabeledStmt) Pkg ¶
func (s *LabeledStmt) Pkg() *Package
Pkg returns the package this node belongs to.
func (*LabeledStmt) Siblings ¶
func (s *LabeledStmt) Siblings() []Node
Siblings returns all sibling nodes
func (*LabeledStmt) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*LabeledStmt) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*LabeledStmt) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type MapType ¶
MapType wraps ast.MapType
func (MapType) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (MapType) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*MapType) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*MapType) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*MapType) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*MapType) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*MapType) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*MapType) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*MapType) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*MapType) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*MapType) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*MapType) FindDeclarations ¶
func (s *MapType) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*MapType) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*MapType) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*MapType) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*MapType) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*MapType) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*MapType) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*MapType) FindMaps ¶
func (s *MapType) FindMaps() []Node
FindMaps find all nodes with given value type
func (*MapType) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*MapType) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*MapType) FindUsages ¶
FindUsages finds usages of given declaration
func (*MapType) FindVarDeclarations ¶
func (s *MapType) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*MapType) GetSource ¶
func (s *MapType) GetSource() []byte
GetSource returns the source code of the current node
func (*MapType) GetSourceString ¶
func (s *MapType) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*MapType) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*MapType) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*MapType) IsValueType ¶
IsValueType checks if value type is of given type
func (*MapType) Level ¶
func (s *MapType) Level() int
Level returns the level counted from instantiated node = 0
func (*MapType) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*MapType) NodeType ¶
func (s *MapType) NodeType() NodeType
NodeType returns the NodeType of the node
func (*MapType) Parents ¶
func (s *MapType) Parents() []Node
Parents returns the parent path of nodes
func (*MapType) Pkg ¶
func (s *MapType) Pkg() *Package
Pkg returns the package this node belongs to.
func (*MapType) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*MapType) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*MapType) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type Named ¶
type Named interface { // NodeName returns the name of the node NodeName() string }
Named provides an interface for nodes with a name
type Node ¶
type Node interface { ast.Node Level() int AstNode() ast.Node IsNodeType(nodeType NodeType) bool NodeType() NodeType IsValueType(valType string) bool ValueType() types.Type Object() types.Object Info() *types.Info Walk(f func(node Node) bool) GetScope() (Node, *types.Scope) Parent() Node Parents() []Node NextParentByType(nodeType NodeType) Node IsContainedByType(nodeType NodeType) bool Siblings() []Node Children() []Node Contains(node Node) bool ChildByName(name string) Node ChildrenByNodeType(nodeType NodeType) []Node ChildByNodeType(nodeType NodeType) Node FindByName(name string) []Node FindFirstByName(name string) Node FindIdentByName(name string) []*Ident FindFirstIdentByName(name string) *Ident FindNameInCallTree(name string) []Node FindByNodeType(nodeType NodeType) []Node FindFirstByNodeType(nodeType NodeType) Node FindNodeTypeInCallTree(nodeType NodeType) []Node FindByValueType(valType string) []Node FindByToken(t token.Token) []Node FindMaps() []Node FindDeclarations() []*Ident FindDeclarationsByType(nodeType NodeType) []*Ident FindVarDeclarations() []*Ident FindUsages(*Ident) []*Ident ChildNodes(cond func(n Node) bool) []Node ChildNode(cond func(n Node) bool) Node TreeNodes(cond func(n Node) bool) []Node TreeNode(cond func(n Node) bool) Node CallTreeNodes(cond func(n Node) bool) []Node CallTreeNode(cond func(n Node) bool) Node GetSource() []byte GetSourceString() string // contains filtered or unexported methods }
Node wraps a ast.Node with helpful traversal functions
type NodeType ¶
type NodeType string
NodeType defines a node type string to search for type
const ( NodeTypeComment NodeType = "*astrav.Comment" NodeTypeCommentGroup NodeType = "*astrav.CommentGroup" NodeTypeField NodeType = "*astrav.Field" NodeTypeFieldList NodeType = "*astrav.FieldList" NodeTypeBadExpr NodeType = "*astrav.BadExpr" NodeTypeIdent NodeType = "*astrav.Ident" NodeTypeEllipsis NodeType = "*astrav.Ellipsis" NodeTypeBasicLit NodeType = "*astrav.BasicLit" NodeTypeFuncLit NodeType = "*astrav.FuncLit" NodeTypeCompositeLit NodeType = "*astrav.CompositeLit" NodeTypeParenExpr NodeType = "*astrav.ParenExpr" NodeTypeSelectorExpr NodeType = "*astrav.SelectorExpr" NodeTypeIndexExpr NodeType = "*astrav.IndexExpr" NodeTypeSliceExpr NodeType = "*astrav.SliceExpr" NodeTypeTypeAssertExpr NodeType = "*astrav.TypeAssertExpr" NodeTypeCallExpr NodeType = "*astrav.CallExpr" NodeTypeStarExpr NodeType = "*astrav.StarExpr" NodeTypeUnaryExpr NodeType = "*astrav.UnaryExpr" NodeTypeBinaryExpr NodeType = "*astrav.BinaryExpr" NodeTypeKeyValueExpr NodeType = "*astrav.KeyValueExpr" NodeTypeArrayType NodeType = "*astrav.ArrayType" NodeTypeStructType NodeType = "*astrav.StructType" NodeTypeFuncType NodeType = "*astrav.FuncType" NodeTypeInterfaceType NodeType = "*astrav.InterfaceType" NodeTypeMapType NodeType = "*astrav.MapType" NodeTypeChanType NodeType = "*astrav.ChanType" NodeTypeBadStmt NodeType = "*astrav.BadStmt" NodeTypeDeclStmt NodeType = "*astrav.DeclStmt" NodeTypeEmptyStmt NodeType = "*astrav.EmptyStmt" NodeTypeLabeledStmt NodeType = "*astrav.LabeledStmt" NodeTypeExprStmt NodeType = "*astrav.ExprStmt" NodeTypeSendStmt NodeType = "*astrav.SendStmt" NodeTypeIncDecStmt NodeType = "*astrav.IncDecStmt" NodeTypeAssignStmt NodeType = "*astrav.AssignStmt" NodeTypeGoStmt NodeType = "*astrav.GoStmt" NodeTypeDeferStmt NodeType = "*astrav.DeferStmt" NodeTypeReturnStmt NodeType = "*astrav.ReturnStmt" NodeTypeBranchStmt NodeType = "*astrav.BranchStmt" NodeTypeBlockStmt NodeType = "*astrav.BlockStmt" NodeTypeIfStmt NodeType = "*astrav.IfStmt" NodeTypeCaseClause NodeType = "*astrav.CaseClause" NodeTypeSwitchStmt NodeType = "*astrav.SwitchStmt" NodeTypeTypeSwitchStmt NodeType = "*astrav.TypeSwitchStmt" NodeTypeCommClause NodeType = "*astrav.CommClause" NodeTypeSelectStmt NodeType = "*astrav.SelectStmt" NodeTypeForStmt NodeType = "*astrav.ForStmt" NodeTypeRangeStmt NodeType = "*astrav.RangeStmt" NodeTypeImportSpec NodeType = "*astrav.ImportSpec" NodeTypeValueSpec NodeType = "*astrav.ValueSpec" NodeTypeTypeSpec NodeType = "*astrav.TypeSpec" NodeTypeBadDecl NodeType = "*astrav.BadDecl" NodeTypeGenDecl NodeType = "*astrav.GenDecl" NodeTypeFuncDecl NodeType = "*astrav.FuncDecl" NodeTypeFile NodeType = "*astrav.File" NodeTypePackage NodeType = "*astrav.Package" )
Nodetype contants
type Package ¶
Package wraps ast.Package
func (Package) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (Package) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*Package) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*Package) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*Package) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*Package) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*Package) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*Package) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*Package) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*Package) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*Package) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*Package) FindDeclarations ¶
func (s *Package) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*Package) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*Package) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*Package) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*Package) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*Package) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*Package) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*Package) FindMaps ¶
func (s *Package) FindMaps() []Node
FindMaps find all nodes with given value type
func (*Package) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*Package) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*Package) FindUsages ¶
FindUsages finds usages of given declaration
func (*Package) FindVarDeclarations ¶
func (s *Package) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*Package) FuncDeclByName ¶
FuncDeclByName returns a func declaration by name
func (*Package) FuncDeclbyCallExpr ¶
FuncDeclbyCallExpr returns a function declaration from its usage
func (*Package) GetRawFiles ¶
GetRawFiles returns the raw files from the package.
func (*Package) GetSource ¶
func (s *Package) GetSource() []byte
GetSource returns the source code of the current node
func (*Package) GetSourceString ¶
func (s *Package) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*Package) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*Package) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*Package) IsValueType ¶
IsValueType checks if value type is of given type
func (*Package) Level ¶
func (s *Package) Level() int
Level returns the level counted from instantiated node = 0
func (*Package) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*Package) NodeType ¶
func (s *Package) NodeType() NodeType
NodeType returns the NodeType of the node
func (*Package) Parents ¶
func (s *Package) Parents() []Node
Parents returns the parent path of nodes
func (*Package) Pkg ¶
func (s *Package) Pkg() *Package
Pkg returns the package this node belongs to.
func (*Package) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*Package) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*Package) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type ParenExpr ¶
ParenExpr wraps ast.ParenExpr
func (ParenExpr) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (ParenExpr) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*ParenExpr) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*ParenExpr) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*ParenExpr) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*ParenExpr) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*ParenExpr) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*ParenExpr) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*ParenExpr) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*ParenExpr) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*ParenExpr) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*ParenExpr) FindDeclarations ¶
func (s *ParenExpr) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*ParenExpr) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*ParenExpr) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*ParenExpr) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*ParenExpr) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*ParenExpr) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*ParenExpr) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*ParenExpr) FindMaps ¶
func (s *ParenExpr) FindMaps() []Node
FindMaps find all nodes with given value type
func (*ParenExpr) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*ParenExpr) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*ParenExpr) FindUsages ¶
FindUsages finds usages of given declaration
func (*ParenExpr) FindVarDeclarations ¶
func (s *ParenExpr) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*ParenExpr) GetSource ¶
func (s *ParenExpr) GetSource() []byte
GetSource returns the source code of the current node
func (*ParenExpr) GetSourceString ¶
func (s *ParenExpr) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*ParenExpr) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*ParenExpr) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*ParenExpr) IsValueType ¶
IsValueType checks if value type is of given type
func (*ParenExpr) Level ¶
func (s *ParenExpr) Level() int
Level returns the level counted from instantiated node = 0
func (*ParenExpr) Match ¶
Match matches the source code of current node and content with given regex
func (*ParenExpr) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*ParenExpr) NodeType ¶
func (s *ParenExpr) NodeType() NodeType
NodeType returns the NodeType of the node
func (*ParenExpr) Parents ¶
func (s *ParenExpr) Parents() []Node
Parents returns the parent path of nodes
func (*ParenExpr) Pkg ¶
func (s *ParenExpr) Pkg() *Package
Pkg returns the package this node belongs to.
func (*ParenExpr) Siblings ¶
func (s *ParenExpr) Siblings() []Node
Siblings returns all sibling nodes
func (*ParenExpr) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*ParenExpr) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*ParenExpr) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type RangeStmt ¶
RangeStmt wraps ast.RangeStmt
func (RangeStmt) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (RangeStmt) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*RangeStmt) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*RangeStmt) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*RangeStmt) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*RangeStmt) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*RangeStmt) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*RangeStmt) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*RangeStmt) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*RangeStmt) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*RangeStmt) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*RangeStmt) FindDeclarations ¶
func (s *RangeStmt) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*RangeStmt) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*RangeStmt) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*RangeStmt) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*RangeStmt) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*RangeStmt) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*RangeStmt) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*RangeStmt) FindMaps ¶
func (s *RangeStmt) FindMaps() []Node
FindMaps find all nodes with given value type
func (*RangeStmt) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*RangeStmt) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*RangeStmt) FindUsages ¶
FindUsages finds usages of given declaration
func (*RangeStmt) FindVarDeclarations ¶
func (s *RangeStmt) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*RangeStmt) GetSource ¶
func (s *RangeStmt) GetSource() []byte
GetSource returns the source code of the current node
func (*RangeStmt) GetSourceString ¶
func (s *RangeStmt) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*RangeStmt) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*RangeStmt) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*RangeStmt) IsValueType ¶
IsValueType checks if value type is of given type
func (*RangeStmt) Level ¶
func (s *RangeStmt) Level() int
Level returns the level counted from instantiated node = 0
func (*RangeStmt) Match ¶
Match matches the source code of current node and content with given regex
func (*RangeStmt) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*RangeStmt) NodeType ¶
func (s *RangeStmt) NodeType() NodeType
NodeType returns the NodeType of the node
func (*RangeStmt) Parents ¶
func (s *RangeStmt) Parents() []Node
Parents returns the parent path of nodes
func (*RangeStmt) Pkg ¶
func (s *RangeStmt) Pkg() *Package
Pkg returns the package this node belongs to.
func (*RangeStmt) Siblings ¶
func (s *RangeStmt) Siblings() []Node
Siblings returns all sibling nodes
func (*RangeStmt) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*RangeStmt) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*RangeStmt) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
func (*RangeStmt) Visit ¶
Visit implements the ast.Visitor interface and is used to walk the underlying ast.Node tree
type RawFile ¶
RawFile is based on token.File to add the source code of the file
func NewRawFile ¶
NewRawFile creates a new RawFile. RawFile is based on token.File and contains the source code
func (*RawFile) ContainsPos ¶
ContainsPos checks if rawfile cotains a given position or not
type ReturnStmt ¶
type ReturnStmt struct { *ast.ReturnStmt // contains filtered or unexported fields }
ReturnStmt wraps ast.ReturnStmt
func (ReturnStmt) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (ReturnStmt) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*ReturnStmt) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*ReturnStmt) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*ReturnStmt) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*ReturnStmt) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*ReturnStmt) Children ¶
func (s *ReturnStmt) Children() []Node
Children returns all child nodes
func (*ReturnStmt) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*ReturnStmt) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*ReturnStmt) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*ReturnStmt) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*ReturnStmt) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*ReturnStmt) FindDeclarations ¶
func (s *ReturnStmt) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*ReturnStmt) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*ReturnStmt) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*ReturnStmt) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*ReturnStmt) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*ReturnStmt) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*ReturnStmt) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*ReturnStmt) FindMaps ¶
func (s *ReturnStmt) FindMaps() []Node
FindMaps find all nodes with given value type
func (*ReturnStmt) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*ReturnStmt) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*ReturnStmt) FindUsages ¶
FindUsages finds usages of given declaration
func (*ReturnStmt) FindVarDeclarations ¶
func (s *ReturnStmt) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*ReturnStmt) GetSource ¶
func (s *ReturnStmt) GetSource() []byte
GetSource returns the source code of the current node
func (*ReturnStmt) GetSourceString ¶
func (s *ReturnStmt) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*ReturnStmt) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*ReturnStmt) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*ReturnStmt) IsValueType ¶
IsValueType checks if value type is of given type
func (*ReturnStmt) Level ¶
func (s *ReturnStmt) Level() int
Level returns the level counted from instantiated node = 0
func (*ReturnStmt) Match ¶
Match matches the source code of current node and content with given regex
func (*ReturnStmt) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*ReturnStmt) NodeType ¶
func (s *ReturnStmt) NodeType() NodeType
NodeType returns the NodeType of the node
func (*ReturnStmt) Parents ¶
func (s *ReturnStmt) Parents() []Node
Parents returns the parent path of nodes
func (*ReturnStmt) Pkg ¶
func (s *ReturnStmt) Pkg() *Package
Pkg returns the package this node belongs to.
func (*ReturnStmt) Siblings ¶
func (s *ReturnStmt) Siblings() []Node
Siblings returns all sibling nodes
func (*ReturnStmt) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*ReturnStmt) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*ReturnStmt) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type SelectStmt ¶
type SelectStmt struct { *ast.SelectStmt // contains filtered or unexported fields }
SelectStmt wraps ast.SelectStmt
func (SelectStmt) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (SelectStmt) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*SelectStmt) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*SelectStmt) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*SelectStmt) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*SelectStmt) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*SelectStmt) Children ¶
func (s *SelectStmt) Children() []Node
Children returns all child nodes
func (*SelectStmt) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*SelectStmt) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*SelectStmt) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*SelectStmt) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*SelectStmt) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*SelectStmt) FindDeclarations ¶
func (s *SelectStmt) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*SelectStmt) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*SelectStmt) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*SelectStmt) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*SelectStmt) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*SelectStmt) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*SelectStmt) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*SelectStmt) FindMaps ¶
func (s *SelectStmt) FindMaps() []Node
FindMaps find all nodes with given value type
func (*SelectStmt) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*SelectStmt) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*SelectStmt) FindUsages ¶
FindUsages finds usages of given declaration
func (*SelectStmt) FindVarDeclarations ¶
func (s *SelectStmt) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*SelectStmt) GetSource ¶
func (s *SelectStmt) GetSource() []byte
GetSource returns the source code of the current node
func (*SelectStmt) GetSourceString ¶
func (s *SelectStmt) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*SelectStmt) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*SelectStmt) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*SelectStmt) IsValueType ¶
IsValueType checks if value type is of given type
func (*SelectStmt) Level ¶
func (s *SelectStmt) Level() int
Level returns the level counted from instantiated node = 0
func (*SelectStmt) Match ¶
Match matches the source code of current node and content with given regex
func (*SelectStmt) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*SelectStmt) NodeType ¶
func (s *SelectStmt) NodeType() NodeType
NodeType returns the NodeType of the node
func (*SelectStmt) Parents ¶
func (s *SelectStmt) Parents() []Node
Parents returns the parent path of nodes
func (*SelectStmt) Pkg ¶
func (s *SelectStmt) Pkg() *Package
Pkg returns the package this node belongs to.
func (*SelectStmt) Siblings ¶
func (s *SelectStmt) Siblings() []Node
Siblings returns all sibling nodes
func (*SelectStmt) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*SelectStmt) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*SelectStmt) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type SelectorExpr ¶
type SelectorExpr struct { *ast.SelectorExpr // contains filtered or unexported fields }
SelectorExpr wraps ast.SelectorExpr
func (SelectorExpr) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (SelectorExpr) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*SelectorExpr) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*SelectorExpr) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*SelectorExpr) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*SelectorExpr) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*SelectorExpr) Children ¶
func (s *SelectorExpr) Children() []Node
Children returns all child nodes
func (*SelectorExpr) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*SelectorExpr) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*SelectorExpr) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*SelectorExpr) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*SelectorExpr) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*SelectorExpr) FindDeclarations ¶
func (s *SelectorExpr) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*SelectorExpr) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*SelectorExpr) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*SelectorExpr) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*SelectorExpr) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*SelectorExpr) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*SelectorExpr) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*SelectorExpr) FindMaps ¶
func (s *SelectorExpr) FindMaps() []Node
FindMaps find all nodes with given value type
func (*SelectorExpr) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*SelectorExpr) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*SelectorExpr) FindUsages ¶
FindUsages finds usages of given declaration
func (*SelectorExpr) FindVarDeclarations ¶
func (s *SelectorExpr) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*SelectorExpr) GetIdent ¶
func (s *SelectorExpr) GetIdent() *Ident
GetIdent returns the name of the node
func (*SelectorExpr) GetSource ¶
func (s *SelectorExpr) GetSource() []byte
GetSource returns the source code of the current node
func (*SelectorExpr) GetSourceString ¶
func (s *SelectorExpr) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*SelectorExpr) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*SelectorExpr) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*SelectorExpr) IsValueType ¶
IsValueType checks if value type is of given type
func (*SelectorExpr) Level ¶
func (s *SelectorExpr) Level() int
Level returns the level counted from instantiated node = 0
func (*SelectorExpr) Match ¶
Match matches the source code of current node and content with given regex
func (*SelectorExpr) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*SelectorExpr) NodeName ¶
func (s *SelectorExpr) NodeName() string
NodeName returns the name of the node
func (*SelectorExpr) NodeType ¶
func (s *SelectorExpr) NodeType() NodeType
NodeType returns the NodeType of the node
func (*SelectorExpr) PackageName ¶
func (s *SelectorExpr) PackageName() *Ident
PackageName returns the package name
func (*SelectorExpr) Parents ¶
func (s *SelectorExpr) Parents() []Node
Parents returns the parent path of nodes
func (*SelectorExpr) Pkg ¶
func (s *SelectorExpr) Pkg() *Package
Pkg returns the package this node belongs to.
func (*SelectorExpr) Siblings ¶
func (s *SelectorExpr) Siblings() []Node
Siblings returns all sibling nodes
func (*SelectorExpr) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*SelectorExpr) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*SelectorExpr) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type SendStmt ¶
SendStmt wraps ast.SendStmt
func (SendStmt) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (SendStmt) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*SendStmt) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*SendStmt) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*SendStmt) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*SendStmt) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*SendStmt) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*SendStmt) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*SendStmt) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*SendStmt) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*SendStmt) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*SendStmt) FindDeclarations ¶
func (s *SendStmt) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*SendStmt) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*SendStmt) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*SendStmt) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*SendStmt) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*SendStmt) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*SendStmt) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*SendStmt) FindMaps ¶
func (s *SendStmt) FindMaps() []Node
FindMaps find all nodes with given value type
func (*SendStmt) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*SendStmt) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*SendStmt) FindUsages ¶
FindUsages finds usages of given declaration
func (*SendStmt) FindVarDeclarations ¶
func (s *SendStmt) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*SendStmt) GetSource ¶
func (s *SendStmt) GetSource() []byte
GetSource returns the source code of the current node
func (*SendStmt) GetSourceString ¶
func (s *SendStmt) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*SendStmt) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*SendStmt) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*SendStmt) IsValueType ¶
IsValueType checks if value type is of given type
func (*SendStmt) Level ¶
func (s *SendStmt) Level() int
Level returns the level counted from instantiated node = 0
func (*SendStmt) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*SendStmt) NodeType ¶
func (s *SendStmt) NodeType() NodeType
NodeType returns the NodeType of the node
func (*SendStmt) Parents ¶
func (s *SendStmt) Parents() []Node
Parents returns the parent path of nodes
func (*SendStmt) Pkg ¶
func (s *SendStmt) Pkg() *Package
Pkg returns the package this node belongs to.
func (*SendStmt) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*SendStmt) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*SendStmt) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type SliceExpr ¶
SliceExpr wraps ast.SliceExpr
func (SliceExpr) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (SliceExpr) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*SliceExpr) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*SliceExpr) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*SliceExpr) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*SliceExpr) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*SliceExpr) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*SliceExpr) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*SliceExpr) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*SliceExpr) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*SliceExpr) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*SliceExpr) FindDeclarations ¶
func (s *SliceExpr) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*SliceExpr) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*SliceExpr) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*SliceExpr) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*SliceExpr) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*SliceExpr) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*SliceExpr) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*SliceExpr) FindMaps ¶
func (s *SliceExpr) FindMaps() []Node
FindMaps find all nodes with given value type
func (*SliceExpr) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*SliceExpr) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*SliceExpr) FindUsages ¶
FindUsages finds usages of given declaration
func (*SliceExpr) FindVarDeclarations ¶
func (s *SliceExpr) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*SliceExpr) GetSource ¶
func (s *SliceExpr) GetSource() []byte
GetSource returns the source code of the current node
func (*SliceExpr) GetSourceString ¶
func (s *SliceExpr) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*SliceExpr) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*SliceExpr) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*SliceExpr) IsValueType ¶
IsValueType checks if value type is of given type
func (*SliceExpr) Level ¶
func (s *SliceExpr) Level() int
Level returns the level counted from instantiated node = 0
func (*SliceExpr) Match ¶
Match matches the source code of current node and content with given regex
func (*SliceExpr) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*SliceExpr) NodeType ¶
func (s *SliceExpr) NodeType() NodeType
NodeType returns the NodeType of the node
func (*SliceExpr) Parents ¶
func (s *SliceExpr) Parents() []Node
Parents returns the parent path of nodes
func (*SliceExpr) Pkg ¶
func (s *SliceExpr) Pkg() *Package
Pkg returns the package this node belongs to.
func (*SliceExpr) Siblings ¶
func (s *SliceExpr) Siblings() []Node
Siblings returns all sibling nodes
func (*SliceExpr) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*SliceExpr) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*SliceExpr) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type StarExpr ¶
StarExpr wraps ast.StarExpr
func (StarExpr) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (StarExpr) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*StarExpr) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*StarExpr) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*StarExpr) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*StarExpr) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*StarExpr) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*StarExpr) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*StarExpr) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*StarExpr) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*StarExpr) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*StarExpr) FindDeclarations ¶
func (s *StarExpr) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*StarExpr) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*StarExpr) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*StarExpr) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*StarExpr) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*StarExpr) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*StarExpr) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*StarExpr) FindMaps ¶
func (s *StarExpr) FindMaps() []Node
FindMaps find all nodes with given value type
func (*StarExpr) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*StarExpr) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*StarExpr) FindUsages ¶
FindUsages finds usages of given declaration
func (*StarExpr) FindVarDeclarations ¶
func (s *StarExpr) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*StarExpr) GetSource ¶
func (s *StarExpr) GetSource() []byte
GetSource returns the source code of the current node
func (*StarExpr) GetSourceString ¶
func (s *StarExpr) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*StarExpr) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*StarExpr) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*StarExpr) IsValueType ¶
IsValueType checks if value type is of given type
func (*StarExpr) Level ¶
func (s *StarExpr) Level() int
Level returns the level counted from instantiated node = 0
func (*StarExpr) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*StarExpr) NodeType ¶
func (s *StarExpr) NodeType() NodeType
NodeType returns the NodeType of the node
func (*StarExpr) Parents ¶
func (s *StarExpr) Parents() []Node
Parents returns the parent path of nodes
func (*StarExpr) Pkg ¶
func (s *StarExpr) Pkg() *Package
Pkg returns the package this node belongs to.
func (*StarExpr) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*StarExpr) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*StarExpr) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type StructType ¶
type StructType struct { *ast.StructType // contains filtered or unexported fields }
StructType wraps ast.StructType
func (StructType) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (StructType) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*StructType) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*StructType) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*StructType) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*StructType) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*StructType) Children ¶
func (s *StructType) Children() []Node
Children returns all child nodes
func (*StructType) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*StructType) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*StructType) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*StructType) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*StructType) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*StructType) FindDeclarations ¶
func (s *StructType) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*StructType) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*StructType) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*StructType) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*StructType) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*StructType) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*StructType) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*StructType) FindMaps ¶
func (s *StructType) FindMaps() []Node
FindMaps find all nodes with given value type
func (*StructType) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*StructType) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*StructType) FindUsages ¶
FindUsages finds usages of given declaration
func (*StructType) FindVarDeclarations ¶
func (s *StructType) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*StructType) GetSource ¶
func (s *StructType) GetSource() []byte
GetSource returns the source code of the current node
func (*StructType) GetSourceString ¶
func (s *StructType) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*StructType) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*StructType) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*StructType) IsValueType ¶
IsValueType checks if value type is of given type
func (*StructType) Level ¶
func (s *StructType) Level() int
Level returns the level counted from instantiated node = 0
func (*StructType) Match ¶
Match matches the source code of current node and content with given regex
func (*StructType) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*StructType) NodeType ¶
func (s *StructType) NodeType() NodeType
NodeType returns the NodeType of the node
func (*StructType) Parents ¶
func (s *StructType) Parents() []Node
Parents returns the parent path of nodes
func (*StructType) Pkg ¶
func (s *StructType) Pkg() *Package
Pkg returns the package this node belongs to.
func (*StructType) Siblings ¶
func (s *StructType) Siblings() []Node
Siblings returns all sibling nodes
func (*StructType) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*StructType) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*StructType) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type SwitchStmt ¶
type SwitchStmt struct { *ast.SwitchStmt // contains filtered or unexported fields }
SwitchStmt wraps ast.SwitchStmt
func (SwitchStmt) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (SwitchStmt) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*SwitchStmt) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*SwitchStmt) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*SwitchStmt) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*SwitchStmt) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*SwitchStmt) Children ¶
func (s *SwitchStmt) Children() []Node
Children returns all child nodes
func (*SwitchStmt) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*SwitchStmt) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*SwitchStmt) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*SwitchStmt) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*SwitchStmt) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*SwitchStmt) FindDeclarations ¶
func (s *SwitchStmt) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*SwitchStmt) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*SwitchStmt) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*SwitchStmt) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*SwitchStmt) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*SwitchStmt) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*SwitchStmt) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*SwitchStmt) FindMaps ¶
func (s *SwitchStmt) FindMaps() []Node
FindMaps find all nodes with given value type
func (*SwitchStmt) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*SwitchStmt) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*SwitchStmt) FindUsages ¶
FindUsages finds usages of given declaration
func (*SwitchStmt) FindVarDeclarations ¶
func (s *SwitchStmt) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*SwitchStmt) GetSource ¶
func (s *SwitchStmt) GetSource() []byte
GetSource returns the source code of the current node
func (*SwitchStmt) GetSourceString ¶
func (s *SwitchStmt) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*SwitchStmt) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*SwitchStmt) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*SwitchStmt) IsValueType ¶
IsValueType checks if value type is of given type
func (*SwitchStmt) Level ¶
func (s *SwitchStmt) Level() int
Level returns the level counted from instantiated node = 0
func (*SwitchStmt) Match ¶
Match matches the source code of current node and content with given regex
func (*SwitchStmt) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*SwitchStmt) NodeType ¶
func (s *SwitchStmt) NodeType() NodeType
NodeType returns the NodeType of the node
func (*SwitchStmt) Parents ¶
func (s *SwitchStmt) Parents() []Node
Parents returns the parent path of nodes
func (*SwitchStmt) Pkg ¶
func (s *SwitchStmt) Pkg() *Package
Pkg returns the package this node belongs to.
func (*SwitchStmt) Siblings ¶
func (s *SwitchStmt) Siblings() []Node
Siblings returns all sibling nodes
func (*SwitchStmt) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*SwitchStmt) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*SwitchStmt) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type TypeAssertExpr ¶
type TypeAssertExpr struct { *ast.TypeAssertExpr // contains filtered or unexported fields }
TypeAssertExpr wraps ast.TypeAssertExpr
func (TypeAssertExpr) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (TypeAssertExpr) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*TypeAssertExpr) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*TypeAssertExpr) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*TypeAssertExpr) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*TypeAssertExpr) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*TypeAssertExpr) Children ¶
func (s *TypeAssertExpr) Children() []Node
Children returns all child nodes
func (*TypeAssertExpr) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*TypeAssertExpr) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*TypeAssertExpr) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*TypeAssertExpr) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*TypeAssertExpr) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*TypeAssertExpr) FindDeclarations ¶
func (s *TypeAssertExpr) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*TypeAssertExpr) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*TypeAssertExpr) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*TypeAssertExpr) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*TypeAssertExpr) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*TypeAssertExpr) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*TypeAssertExpr) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*TypeAssertExpr) FindMaps ¶
func (s *TypeAssertExpr) FindMaps() []Node
FindMaps find all nodes with given value type
func (*TypeAssertExpr) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*TypeAssertExpr) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*TypeAssertExpr) FindUsages ¶
FindUsages finds usages of given declaration
func (*TypeAssertExpr) FindVarDeclarations ¶
func (s *TypeAssertExpr) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*TypeAssertExpr) GetSource ¶
func (s *TypeAssertExpr) GetSource() []byte
GetSource returns the source code of the current node
func (*TypeAssertExpr) GetSourceString ¶
func (s *TypeAssertExpr) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*TypeAssertExpr) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*TypeAssertExpr) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*TypeAssertExpr) IsValueType ¶
IsValueType checks if value type is of given type
func (*TypeAssertExpr) Level ¶
func (s *TypeAssertExpr) Level() int
Level returns the level counted from instantiated node = 0
func (*TypeAssertExpr) Match ¶
Match matches the source code of current node and content with given regex
func (*TypeAssertExpr) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*TypeAssertExpr) NodeType ¶
func (s *TypeAssertExpr) NodeType() NodeType
NodeType returns the NodeType of the node
func (*TypeAssertExpr) Parent ¶
func (s *TypeAssertExpr) Parent() Node
Parent return the parent node
func (*TypeAssertExpr) Parents ¶
func (s *TypeAssertExpr) Parents() []Node
Parents returns the parent path of nodes
func (*TypeAssertExpr) Pkg ¶
func (s *TypeAssertExpr) Pkg() *Package
Pkg returns the package this node belongs to.
func (*TypeAssertExpr) Siblings ¶
func (s *TypeAssertExpr) Siblings() []Node
Siblings returns all sibling nodes
func (*TypeAssertExpr) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*TypeAssertExpr) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*TypeAssertExpr) ValueType ¶
func (s *TypeAssertExpr) ValueType() types.Type
ValueType returns the value type of the node.
type TypeSpec ¶
TypeSpec wraps ast.TypeSpec
func (TypeSpec) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (TypeSpec) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*TypeSpec) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*TypeSpec) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*TypeSpec) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*TypeSpec) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*TypeSpec) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*TypeSpec) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*TypeSpec) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*TypeSpec) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*TypeSpec) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*TypeSpec) FindDeclarations ¶
func (s *TypeSpec) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*TypeSpec) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*TypeSpec) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*TypeSpec) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*TypeSpec) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*TypeSpec) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*TypeSpec) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*TypeSpec) FindMaps ¶
func (s *TypeSpec) FindMaps() []Node
FindMaps find all nodes with given value type
func (*TypeSpec) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*TypeSpec) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*TypeSpec) FindUsages ¶
FindUsages finds usages of given declaration
func (*TypeSpec) FindVarDeclarations ¶
func (s *TypeSpec) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*TypeSpec) GetSource ¶
func (s *TypeSpec) GetSource() []byte
GetSource returns the source code of the current node
func (*TypeSpec) GetSourceString ¶
func (s *TypeSpec) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*TypeSpec) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*TypeSpec) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*TypeSpec) IsValueType ¶
IsValueType checks if value type is of given type
func (*TypeSpec) Level ¶
func (s *TypeSpec) Level() int
Level returns the level counted from instantiated node = 0
func (*TypeSpec) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*TypeSpec) NodeType ¶
func (s *TypeSpec) NodeType() NodeType
NodeType returns the NodeType of the node
func (*TypeSpec) Parents ¶
func (s *TypeSpec) Parents() []Node
Parents returns the parent path of nodes
func (*TypeSpec) Pkg ¶
func (s *TypeSpec) Pkg() *Package
Pkg returns the package this node belongs to.
func (*TypeSpec) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*TypeSpec) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
type TypeSwitchStmt ¶
type TypeSwitchStmt struct { *ast.TypeSwitchStmt // contains filtered or unexported fields }
TypeSwitchStmt wraps ast.TypeSwitchStmt
func (TypeSwitchStmt) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (TypeSwitchStmt) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*TypeSwitchStmt) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*TypeSwitchStmt) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*TypeSwitchStmt) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*TypeSwitchStmt) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*TypeSwitchStmt) Children ¶
func (s *TypeSwitchStmt) Children() []Node
Children returns all child nodes
func (*TypeSwitchStmt) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*TypeSwitchStmt) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*TypeSwitchStmt) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*TypeSwitchStmt) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*TypeSwitchStmt) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*TypeSwitchStmt) FindDeclarations ¶
func (s *TypeSwitchStmt) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*TypeSwitchStmt) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*TypeSwitchStmt) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*TypeSwitchStmt) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*TypeSwitchStmt) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*TypeSwitchStmt) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*TypeSwitchStmt) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*TypeSwitchStmt) FindMaps ¶
func (s *TypeSwitchStmt) FindMaps() []Node
FindMaps find all nodes with given value type
func (*TypeSwitchStmt) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*TypeSwitchStmt) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*TypeSwitchStmt) FindUsages ¶
FindUsages finds usages of given declaration
func (*TypeSwitchStmt) FindVarDeclarations ¶
func (s *TypeSwitchStmt) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*TypeSwitchStmt) GetSource ¶
func (s *TypeSwitchStmt) GetSource() []byte
GetSource returns the source code of the current node
func (*TypeSwitchStmt) GetSourceString ¶
func (s *TypeSwitchStmt) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*TypeSwitchStmt) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*TypeSwitchStmt) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*TypeSwitchStmt) IsValueType ¶
IsValueType checks if value type is of given type
func (*TypeSwitchStmt) Level ¶
func (s *TypeSwitchStmt) Level() int
Level returns the level counted from instantiated node = 0
func (*TypeSwitchStmt) Match ¶
Match matches the source code of current node and content with given regex
func (*TypeSwitchStmt) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*TypeSwitchStmt) NodeType ¶
func (s *TypeSwitchStmt) NodeType() NodeType
NodeType returns the NodeType of the node
func (*TypeSwitchStmt) Parent ¶
func (s *TypeSwitchStmt) Parent() Node
Parent return the parent node
func (*TypeSwitchStmt) Parents ¶
func (s *TypeSwitchStmt) Parents() []Node
Parents returns the parent path of nodes
func (*TypeSwitchStmt) Pkg ¶
func (s *TypeSwitchStmt) Pkg() *Package
Pkg returns the package this node belongs to.
func (*TypeSwitchStmt) Siblings ¶
func (s *TypeSwitchStmt) Siblings() []Node
Siblings returns all sibling nodes
func (*TypeSwitchStmt) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*TypeSwitchStmt) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*TypeSwitchStmt) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type UnaryExpr ¶
UnaryExpr wraps ast.UnaryExpr
func (UnaryExpr) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (UnaryExpr) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*UnaryExpr) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*UnaryExpr) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*UnaryExpr) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*UnaryExpr) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*UnaryExpr) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*UnaryExpr) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*UnaryExpr) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*UnaryExpr) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*UnaryExpr) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*UnaryExpr) FindDeclarations ¶
func (s *UnaryExpr) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*UnaryExpr) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*UnaryExpr) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*UnaryExpr) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*UnaryExpr) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*UnaryExpr) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*UnaryExpr) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*UnaryExpr) FindMaps ¶
func (s *UnaryExpr) FindMaps() []Node
FindMaps find all nodes with given value type
func (*UnaryExpr) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*UnaryExpr) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*UnaryExpr) FindUsages ¶
FindUsages finds usages of given declaration
func (*UnaryExpr) FindVarDeclarations ¶
func (s *UnaryExpr) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*UnaryExpr) GetSource ¶
func (s *UnaryExpr) GetSource() []byte
GetSource returns the source code of the current node
func (*UnaryExpr) GetSourceString ¶
func (s *UnaryExpr) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*UnaryExpr) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*UnaryExpr) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*UnaryExpr) IsValueType ¶
IsValueType checks if value type is of given type
func (*UnaryExpr) Level ¶
func (s *UnaryExpr) Level() int
Level returns the level counted from instantiated node = 0
func (*UnaryExpr) Match ¶
Match matches the source code of current node and content with given regex
func (*UnaryExpr) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*UnaryExpr) NodeType ¶
func (s *UnaryExpr) NodeType() NodeType
NodeType returns the NodeType of the node
func (*UnaryExpr) Parents ¶
func (s *UnaryExpr) Parents() []Node
Parents returns the parent path of nodes
func (*UnaryExpr) Pkg ¶
func (s *UnaryExpr) Pkg() *Package
Pkg returns the package this node belongs to.
func (*UnaryExpr) Siblings ¶
func (s *UnaryExpr) Siblings() []Node
Siblings returns all sibling nodes
func (*UnaryExpr) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*UnaryExpr) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
func (*UnaryExpr) ValueType ¶
ValueType returns value type information of an expression, nil otherwise
type ValueSpec ¶
ValueSpec wraps ast.ValueSpec
func (ValueSpec) CallTreeNode ¶
CallTreeNode walks the call tree returning the first node that meets the condition
func (ValueSpec) CallTreeNodes ¶
CallTreeNodes walks the call tree collecting all nodes that meet the condition
func (*ValueSpec) ChildByName ¶
ChildByName retrieves a node among the direkt children by name (only nodes that have a name)
func (*ValueSpec) ChildByNodeType ¶
ChildByNodeType returns the first child of a certain type.
func (*ValueSpec) ChildNode ¶
ChildNode walks only child nodes returning the first node that meets the condition
func (*ValueSpec) ChildNodes ¶
ChildNodes walks only child nodes collecting all nodes that meet the condition
func (*ValueSpec) ChildrenByNodeType ¶
ChildrenByNodeType returns the first child of a certain type.
func (*ValueSpec) FindByName ¶
FindByName looks for a name in the entire sub tree
func (*ValueSpec) FindByNodeType ¶
FindByNodeType returns all sub nodes of a certain type
func (*ValueSpec) FindByToken ¶
FindByToken finds a node with a token.Token attached and of given token type
func (*ValueSpec) FindByValueType ¶
FindByValueType find all nodes with given value type
func (*ValueSpec) FindDeclarations ¶
func (s *ValueSpec) FindDeclarations() []*Ident
FindDeclarations finds all declarations
func (*ValueSpec) FindDeclarationsByType ¶
FindDeclarationsByType finds all declarations by (parent) type
func (*ValueSpec) FindFirstByName ¶
FindFirstByName looks for a name in the entire sub tree. First node is returned if there are multiple.
func (*ValueSpec) FindFirstByNodeType ¶
FindFirstByNodeType returns the first sub node of a certain type
func (*ValueSpec) FindFirstIdentByName ¶
FindFirstIdentByName looks for the first Ident node in subtree with given name
func (*ValueSpec) FindFirstUsage ¶
FindFirstUsage selects the first usage
func (*ValueSpec) FindIdentByName ¶
FindIdentByName looks for Ident nodes in the entire sub tree with given name
func (*ValueSpec) FindMaps ¶
func (s *ValueSpec) FindMaps() []Node
FindMaps find all nodes with given value type
func (*ValueSpec) FindNameInCallTree ¶
FindNameInCallTree returns all nodes in call tree with given name
func (*ValueSpec) FindNodeTypeInCallTree ¶
FindNodeTypeInCallTree returns all nodes in call tree of a certain type
func (*ValueSpec) FindUsages ¶
FindUsages finds usages of given declaration
func (*ValueSpec) FindVarDeclarations ¶
func (s *ValueSpec) FindVarDeclarations() []*Ident
FindVarDeclarations finds all assignStmt (:=), valueSpec (var, const) declarations
func (*ValueSpec) GetSource ¶
func (s *ValueSpec) GetSource() []byte
GetSource returns the source code of the current node
func (*ValueSpec) GetSourceString ¶
func (s *ValueSpec) GetSourceString() string
GetSourceString is a convenience function to GetSource as string
func (*ValueSpec) IsContainedByType ¶
IsContainedByType checks if node is contained by a node of given node type
func (*ValueSpec) IsNodeType ¶
IsNodeType checks if node is of given node type
func (*ValueSpec) IsValueType ¶
IsValueType checks if value type is of given type
func (*ValueSpec) Level ¶
func (s *ValueSpec) Level() int
Level returns the level counted from instantiated node = 0
func (*ValueSpec) Match ¶
Match matches the source code of current node and content with given regex
func (*ValueSpec) NextParentByType ¶
NextParentByType returns the next parent of given type
func (*ValueSpec) NodeType ¶
func (s *ValueSpec) NodeType() NodeType
NodeType returns the NodeType of the node
func (*ValueSpec) Parents ¶
func (s *ValueSpec) Parents() []Node
Parents returns the parent path of nodes
func (*ValueSpec) Pkg ¶
func (s *ValueSpec) Pkg() *Package
Pkg returns the package this node belongs to.
func (*ValueSpec) Siblings ¶
func (s *ValueSpec) Siblings() []Node
Siblings returns all sibling nodes
func (*ValueSpec) TreeNode ¶
TreeNode walks the child tree returning the first node that meets the condition
func (*ValueSpec) TreeNodes ¶
TreeNodes walks the child tree collecting all nodes that meet the condition
type ValueTyper ¶
ValueTyper provides an interface for nodes with a value type.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
5
Package diffsquares provides method for square diffs.
|
Package diffsquares provides method for square diffs. |
7
Package hamming contains function to calculate amount of character difference between two equal strings.
|
Package hamming contains function to calculate amount of character difference between two equal strings. |