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

Member predicate AstNode::getEnclosingFunction

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

FuncDef getEnclosingFunction()