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

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