CodeQL library for Python
codeql/python-all 0.11.13 (changelog, source)
Search

Member predicate AstElementNode::getStmtList

Gets the indexth StmtList that is a child of the AstNode that this print node represents. label is used for pretty-printing a label in the parent-child relation in the ast-viewer.

The StmtListNode class and the getChild predicate uses getStmtList to define a parent-child relation with labels.

index must be 0 or positive.

StmtList getStmtList(int index, string label)