Skip to content

Distinguish types of calls for call hierarchy? #84100

@mjbvz

Description

@mjbvz

For the call hierarchy, @rbuckton brought up that JavaScript and TypeScript has many different ways of actually invoking a function:

  • New new Foo()
  • Tagged templates: foo`bar`
  • Decorators @foo
  • Property/Element access to accessors obj.foo

My proposal is that TS should return call hierarchy items for all of these cases, but I wanted to check this with you @jrieken. Does that make sense? Should we consider having a way to distinguish different call types?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions