CodeQL library for Python
Search

Class StmtList

A list of statements

Import path

import python

Direct supertypes

Indirect supertypes

Predicates

contains

Holds if this list of statements contains the AST node a

getLastItem

Gets the last item in this list of statements, if any.

Inherited predicates

getAnItem

Gets an item of this statement list

from StmtList_
getItem

Gets the nth item of this statement list

from StmtList_
getParentfrom StmtList_
toString

Gets a textual representation of this element.

from StmtList_