josh11b and Josh L
abd12c18c7
Support extended scopes that are parameterized types ( #4524 )
...
* 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 >
2024-11-13 23:48:02 +00:00
..
2024-11-13 23:48:02 +00:00
2024-11-08 20:18:22 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-13 23:48:02 +00:00
2024-11-13 23:48:02 +00:00
2024-11-13 23:48:02 +00:00
2024-11-13 23:48:02 +00:00
2024-11-13 23:48:02 +00:00
2024-11-13 23:48:02 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-13 23:48:02 +00:00
2024-11-08 17:14:52 +00:00
2024-11-13 23:48:02 +00:00
2024-11-13 23:48:02 +00:00
2024-11-13 23:48:02 +00:00
2024-11-12 01:47:33 +00:00
2024-10-30 22:45:26 +00:00
2024-11-13 23:48:02 +00:00
2024-11-08 17:14:52 +00:00
2024-11-13 23:48:02 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-10-23 16:56:23 +00:00
2024-11-13 23:48:02 +00:00
2024-11-13 23:48:02 +00:00
2024-11-08 17:14:52 +00:00
2024-11-13 23:48:02 +00:00
2024-11-08 17:14:52 +00:00
2024-11-13 23:48:02 +00:00
2024-11-13 23:48:02 +00:00
2024-11-12 01:47:33 +00:00
2024-11-08 17:14:52 +00:00
2024-11-13 23:48:02 +00:00
2024-11-13 23:48:02 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-10-30 22:45:26 +00:00
2024-11-11 21:32:33 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-10-30 22:45:26 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-12 01:47:33 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 20:18:22 +00:00
2024-11-08 17:14:52 +00:00
2024-11-13 23:48:02 +00:00
2024-10-30 22:45:26 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-13 23:48:02 +00:00
2024-11-12 01:47:33 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-10-30 22:45:26 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 17:14:52 +00:00
2024-11-13 23:48:02 +00:00
2024-11-08 17:14:52 +00:00
2024-11-12 01:47:33 +00:00
2024-11-08 17:14:52 +00:00
2024-11-08 20:18:22 +00:00
2024-11-08 17:14:52 +00:00
2024-11-13 23:48:02 +00:00