access.d (dmd-2.094.1) | : | access.d (dmd-2.094.2) | ||
---|---|---|---|---|
skipping to change at line 165 | skipping to change at line 165 | |||
return true; | return true; | |||
} | } | |||
} | } | |||
return sc._module == s.getAccessModule(); | return sc._module == s.getAccessModule(); | |||
} | } | |||
/**************************************** | /**************************************** | |||
* Check access to d for expression e.d | * Check access to d for expression e.d | |||
* Returns true if the declaration is not accessible. | * Returns true if the declaration is not accessible. | |||
*/ | */ | |||
bool checkAccess(Loc loc, Scope* sc, Expression e, Declaration d) | bool checkAccess(Loc loc, Scope* sc, Expression e, Dsymbol d) | |||
{ | { | |||
if (sc.flags & SCOPE.noaccesscheck) | if (sc.flags & SCOPE.noaccesscheck) | |||
return false; | return false; | |||
static if (LOG) | static if (LOG) | |||
{ | { | |||
if (e) | if (e) | |||
{ | { | |||
printf("checkAccess(%s . %s)\n", e.toChars(), d.toChars()); | printf("checkAccess(%s . %s)\n", e.toChars(), d.toChars()); | |||
printf("\te.type = %s\n", e.type.toChars()); | printf("\te.type = %s\n", e.type.toChars()); | |||
} | } | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |