checkAccess

Check access to package/module p from scope sc.

Parameters

loc
Type: Loc

source location for issued error message

sc
Type: Scope*

scope from which to access to a fully qualified package name

p
Type: Package

the package/module to check access for

Return Value

Type: bool

true if the package is not accessible.

Because a global symbol table tree is used for imported packages/modules, access to them needs to be checked based on the imports in the scope chain (see Bugzilla 313).

Meta