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

Predicate definitionOf

Gets the definition (of kind kind) for the expression use, if one can be found.

Import path

import analysis.DefinitionTracking
Definition definitionOf(NiceLocationExpr use, string kind)