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

Member predicate EssaNodeRefinement::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()