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