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

Predicate SsaSource::with_definition

Holds if v is defined by a with statement.

Import path

import python
predicate with_definition(Variable v, ControlFlowNode defn)