| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
CQ. Use _withScope / _withTypeParameterScope in ReferenceResolver.
Introduce `_withScope` and `_withTypeParameterScope` helpers and use
them throughout outline resolution (classes, enums, extensions, methods,
functions, and parameters) instead of open-coded “save/restore scope”
blocks. This reduces boilerplate and makes nesting of
TypeParameterScope/InstanceScope/ExtensionScope consistent.
Also fix an outline resolution bug for instance fields in classes with a
primary constructor: field type annotations were being resolved in the
primary-constructor initializer scope. That allowed primary constructor
parameters to shadow names that should come from the surrounding class
scope (e.g. the class name in `A? field`). Field type annotations are
now resolved in the class scope, while initializer expressions continue
to use the constructor-initializer scope when applicable.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |