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

Member predicate Entity::getScope

Gets the scope in which this entity is declared, if any.

Entities corresponding to fields and methods do not have a scope.

Scope getScope()