Skip to content

Constructor formal parameters not creating reference #120

@matthewnitschke-wk

Description

@matthewnitschke-wk

Given the following scenario, the following references are tagged as such:

class Foo {
  String value;
  Foo({this.value});
//          ^^^^^ reference ... Foo#value.
}

void main() {
  Foo(value: 'asdf');
//    ^^^^^ reference ... Foo#`<constructor>`().(value)
}

The parameter for this.value should be both a reference to Foo#value., and a definition for <constructor>().(value). This approach mirrors the expectation of the dart language server:

Screen.Recording.2024-02-11.at.6.42.26.PM.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions