Skip to content

Call Hierarchy and Find References support for anonymous inner constructor call expressions #798

@eric-milles

Description

@eric-milles

Follow up from #768. Consider the following:

class Foo {
  Foo() {}
  Foo(one, two = null) {}
}
class Bar {
  void meth() {
    new Foo() {}
    new Foo(1) {}
    new Foo(1, 2) {}
  }
}

Call Hierarchy (Ctrl+Alt+H) or Find References (Ctrl+Shift+G) on "Foo()" should include the "new Foo()" reference in Bar. Similarly, "Foo(one, two...)" should include the 2 references "new Foo(1)" and "new Foo(1,2)" in Bar.

Also, Find Declarations (Ctrl+G) should work from "new Foo()" back to "Foo()".

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions