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

Predicate getUniqueDefinition

Gets the unique definition for ‘use’, if one can be found. Helper for the jump-to-definition query.

Import path

import analysis.DefinitionTracking
Definition getUniqueDefinition(Expr use)