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

Member predicate ControlFlow::Root::isRootOf

Holds if nd belongs to this file or function.

predicate isRootOf(AstNode nd)