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

Class Variable

A variable, either a global or local variable (including parameters)

Import path

import python

Direct supertypes

Known direct subtypes

Predicates

escapes

Whether there is an access to this variable outside of its own scope. Usually occurs in nested functions or for global variables.

getALoad

Gets a load of this variable

getAStore

Gets a store of this variable

getAUse

Gets a use of this variable

getAnAccess

Gets an access (load or store) of this variable

getId

Gets the identifier (name) of this variable

getScope

Gets the scope of this variable

isParameter

Whether this variable is a parameter

isSelf
toString

Gets a textual representation of this element.

Charpred