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

Predicate MakeImplCommon::getNodeEnclosingCallable

Gets the enclosing callable of n. Unlike n.getEnclosingCallable(), this predicate ensures that joins go from n to the result instead of the other way around.

Import path

import codeql.dataflow.internal.DataFlowImplCommon
DataFlowCallable getNodeEnclosingCallable(Node n)