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

Predicate SsaSource::with_definition

Holds if v is defined by a with statement.

Import path

import semmle.python.essa.SsaDefinitions
predicate with_definition(Variable v, ControlFlowNode defn)