-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.
Description
When dealing with classes, clicking on a field highlights all the places where this specific field is used in the current file:

It'd be nice if this worked with records too:

As you can see, even though the cursor is on field
, the other example.field
later in the main isn't highlighted.
Ideally this highlight should highlight all usages of the field under cursor within the library, for all Records with a matching shape.
As such, given:
void main() {
final example = (field: 42);
example.field; < Cursor on field
}
void fn() {
final example = (field: 42);
example.field;
}
Then if the cursor is on example.field
in main
, the example.field
in fn
should also be highlighted, as the record shape maches.
Metadata
Metadata
Assignees
Labels
area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.