dmd.access.checkAccess - multiple declarations
Do access check for member of this class, this class being the type of the 'this' pointer used to access smember. Returns true if the member is not accessible.
Check access to d for expression e.d Returns true if the declaration is not accessible.
bool checkAccess (
.dscope .Scope* sc,
|sc||scope from which to access to a fully qualified package name|
|p||the package/module to check access for|
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 https://issues.dlang.org/show_bug.cgi?id=313).