CodeQL library for Go
codeql/go-all 2.1.3 (changelog, source)
Search

Member predicate BaseAstNode::getEnclosingFunction

Gets the FuncDef that contains this node.

FuncDef getEnclosingFunction()