Skip to content

Conversation

sandersn
Copy link
Member

@sandersn sandersn commented Aug 27, 2019

Fallout from constructor-functions-as-classes. constructor functions are marked with SymbolFlags.Class, but should still be treated like functions for goto-def.

Fixes #33107

@sandersn sandersn changed the title goto-def needs special handling for constructor functions goto-def should treat constructor functions as functions Aug 27, 2019
@sandersn sandersn merged commit 13e1ccd into master Aug 27, 2019
timsuchanek pushed a commit to timsuchanek/TypeScript that referenced this pull request Sep 11, 2019
…3109)

* goto-def:special handling for constructor functions

* Just treat constructor functions like functions

* Even simpler fallback
@sandersn sandersn deleted the fix-gotodef-constructor-functions branch July 26, 2022 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

goto-def no longer recognises constructor functions as classlike
3 participants