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

Member predicate AstNode::getEnclosingFunction

Gets the innermost function definition to which this AST node belongs, if any.

FuncDef getEnclosingFunction()