CodeQL library for Go
codeql/go-all 3.0.3-dev (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()