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

Predicate nodeGetEnclosingCallable

Gets the callable in which this node occurs.

Import path

import semmle.python.dataflow.new.internal.DataFlowPrivate
DataFlowCallable nodeGetEnclosingCallable(Node n)