Class BaseAstNode
A graph node representing a real AST node.
Import path
import semmle.go.PrintAst
Direct supertypes
Indirect supertypes
Fields
Predicates
getChild | Gets the child node at index |
getEnclosingFunction | Gets the |
getLocation | Gets the location of this node in the source code. |
toString | Gets a textual representation of this node. |
Inherited predicates
getAChild | Gets a child of this node. | from PrintAstNode |
getChildEdgeLabel | Gets the label for the edge from this node to the specified child. By default, this is just the index of the child, but subclasses can override this. | from PrintAstNode |
getProperty | Gets the value of the property of this node, where the name of the property is | from PrintAstNode |
shouldPrint | Holds if this node should be printed in the output. By default, all nodes within a function are printed, but the query can override | from PrintAstNode |