Class StmtListNode
A print node for StmtList.
A StmtListNode is always a child of an AstElementNode,
and the child-parent relation is defined by the getStmtList predicate in AstElementNode.
The label for a StmtList is decided based on the result from the getStmtList predicate in AstElementNode.
Import path
import semmle.python.PrintAstDirect supertypes
Indirect supertypes
Fields
Predicates
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 |
| getLocation | Gets the location of this node in the source code. | from PrintAstNode |
| getParent | Gets the parent of this node, if any. | from PrintAstNode |
| getProperty | Gets the value of the property of this node, where the name of the property is | from PrintAstNode |