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

Member predicate EssaDefinition::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.

Location getLocation()