mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 14:01:05 +01:00
* The `extended_scopes` in a `NameScope` were represented by a `NameScopeId`. Replace that with an `InstId` of an instruction returning the type that is extending this name scope. * `Context::LookupQualifiedName` now can take multiple scopes to look in. * `GetAsLookupScope` was moved out of `member_access.cpp` and is now `Context::AppendLookupScopesForConstant` This PR also fixes some existing issues that were revealed as part of writing and testing this PR: * Additional validation and handling of invalid ids. * `extend impl` in a class is not properly imported yet, but at least now it doesn't crash. The change to use an `InstId` also allowed some diagnostics and formatting to be improved. --------- Co-authored-by: Josh L <josh11b@users.noreply.github.com>