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

Predicate getADefinition

Gets a definition for ‘use’. This exists primarily for testing use getPreferredDefinition() instead.

Import path

import analysis.DefinitionTracking
Definition getADefinition(Expr use)