CodeQL library for Swift
codeql/swift-all 2.0.4-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)