CodeQL library for Go
codeql/go-all 2.1.3-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)