Files
sdk/pkg/analysis_server/lib
Konstantin Shcheglov 983b3a8b85 DeCo. Stop indexing references to optional positional formal parameters from arguments.
IIRC it was added in https://dart-review.googlesource.com/c/sdk/+/45922
only to see if an optional positional formal parameter is used, and is
not used otherwise anywhere else in DAS. I think that the usefulness of
this feature is limited, and not indexing optional positional would be
consistent with handling of required positional formal parameters.

I have also similar thoughts about `super.foo` references from required
or optional positional formal parameters of constructors. As with these,
we have to filter them out during refactoring, again without obvious
usefulness to balance it.

Change-Id: I7eed423bb9d83ae78ce0cac6625eae79a7240316
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/475960
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2026-01-28 09:26:11 -08:00
..