Skip to content

Record fields hover #60611

Open
Open
@FMorschel

Description

@FMorschel

Consider:

void foo((String, {int value}) r, {int? other}) {
  r.$1;
  r.value;
  var (v, :value) = r;
  foo((v, value: value), other: 0);
}

See the available hover data:

Image

Image

Considering parameters:

Image

The record pattern name is the same as above:

Image

But when filling in the record for a parameter like this, nothing shows:

Image

I'm suggesting we have some indication for the user of what type is expected at this value. And maybe enhancing the other hovers for getters.

Somewhat related to:

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-hoverIssues related to hoverstype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions