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