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

Member predicate ObjectInternal::getOrigin

Gets a control flow node that represents the source origin of this object, if it has a meaningful location in the source code. This method exists primarily for providing backwards compatibility and locations for source objects. Source code objects should attempt to return exactly one result for this method.

ControlFlowNode getOrigin()