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

Class PackageScope

A package scope.

Import path

import semmle.go.Scopes

Direct supertypes

Indirect supertypes

Predicates

getPackage

Gets the package whose scope this is.

toString

Gets a textual representation of this scope.

Inherited predicates

getAnInnerScope

Gets a scope nested inside this scope.

from Scope
getEntity

Looks up the entity with the given name in this scope.

from Scope
getOuterScope

Gets the enclosing scope of this scope, if any.

from Scope