Skip to content

Call Hierarchy and Find References support for @Newify constructor call expressions #796

@eric-milles

Description

@eric-milles

Follow up from #768. Consider the following:

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

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

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions