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

Member predicate BaseAstNode::getEnclosingFunction

Gets the FuncDef that contains this node.

FuncDef getEnclosingFunction()