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

Member predicate ControlFlow::Root::isRootOf

Holds if nd belongs to this file or function.

predicate isRootOf(AstNode nd)