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

Member predicate AstNode::getEnclosingBlock

Gets the innermost block statement to which this AST node belongs, if any.

BlockStmt getEnclosingBlock()