mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-24 14:42:40 +00:00
In `LookupQualifiedName`, use `GetHighestAllowedAccess` to check whether a scope allows access to its private members from the accessing scope (e.g. due to friendship). The `is_parent_access` param is removed from `IsAccessProhibited`; the `access_info->highest_allowed_scope` field now accounts for parent access. Also update `GetHighestAllowedAccess` so that it works for `ParameterizedClassType` in addition to `ClassType`. --------- Co-authored-by: David Blaikie <dblaikie@gmail.com>