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

Member predicate AstNode::getEnclosingBlock

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

BlockStmt getEnclosingBlock()