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

Member predicate Scope::getEvaluatingScope

Gets the evaluation scope for code in this (lexical) scope. This is usually the scope itself, but may be an enclosing scope. Notably, for list comprehensions in Python 2.

Scope getEvaluatingScope()