CodeQL library for Python
codeql/python-all 2.0.1-dev (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)