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

Member predicate IfNode::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)