CodeQL library for Python
Search

Class ScopeEntryDefinition

Definition of variable at the entry of a scope. Usually this represents the transfer of a global or non-local variable from one scope to another.

Import path

import python

Direct supertypes

Indirect supertypes

Predicates

Inherited predicates

definedByfrom EssaNodeDefinition
getAUse

Gets a use of this definition as defined by the SsaSourceVariable class.

from EssaNodeDefinition
getBasicBlockfrom EssaNodeDefinition
getDefiningNode

Gets the ControlFlowNode corresponding to this definition

from EssaNodeDefinition
getLocation

Gets the location of a control flow node that is indicative of this definition. Since definitions may occur on edges of the control flow graph, the given location may be imprecise. Distinct EssaDefinitions may return the same ControlFlowNode even for the same variable.

from EssaNodeDefinition
getRepresentation

Gets a representation of this SSA definition for debugging purposes. Since this is primarily for debugging and testing, performance may be poor.

from EssaNodeDefinition
getSourceVariable

Gets the source variable for which this a definition, either explicit or implicit.

from EssaNodeDefinition
getVariablefrom EssaDefinition
reachesEndOfBlock

Holds if this definition reaches the end of b.

from EssaNodeDefinition
toString

Gets a textual representation of this element.

from EssaNodeDefinition

Charpred