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

Class GlobalSsaVariable

An SSA variable that is backed by a global variable

Import path

import python

Direct supertypes

Indirect supertypes

Predicates

getId
getVariable
toString

Gets a textual representation of this element.

Inherited predicates

getASourceUse

Gets a use of this variable, where a “use” is defined by SsaSourceVariable.getASourceUse(). Note that this differs from EssaVariable.getAUse().

from EssaVariable
getAUse

Gets a use of this variable, where a “use” is defined by SsaSourceVariable.getAUse(). Note that this differs from EssaVariable.getASourceUse().

from EssaVariable
getDefinition

Gets the (unique) definition of this variable.

from EssaVariable
getLocation

Gets the location of this variable.

from EssaVariable
getName

Gets the name of this variable.

from EssaVariable
getRepresentation

Gets a string representation of this variable. WARNING: The format of this may change and it may be very inefficient to compute. To used for debugging and testing only.

from EssaVariable
getScope

Gets the scope of this variable.

from EssaVariable
getSourceVariable

Gets the source variable from which this variable is derived.

from EssaVariable
isMetaVariable

Holds if this the meta-variable for a scope. This is used to attach attributes for undeclared variables implicitly defined by from ... import * and the like.

from EssaVariable

Charpred