Skip to content

Fix find-refs crash on JSDocNamepath #36941

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 21, 2020
Merged

Conversation

sandersn
Copy link
Member

JSDocNamepaths span a lot of identifiers that we don't actually care about, so it's incorrect for createChildren to add its children as synthetic nodes.

Fixes #36338

Not sure who is best to review this, so I'm going with @andrewbranch and @orta since I believe @orta wrote support for JSDocNamepaths and I think @andrewbranch has worked with services a bit.

JSDocNamepaths span a lot of identifiers that we don't actually care
about, so it's incorrect for createChildren to add its children as
synthetic nodes.
Copy link
Member

@andrewbranch andrewbranch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL JSDocNamepaths exist

@sandersn sandersn merged commit 6b645f5 into master Feb 21, 2020
@sandersn
Copy link
Member Author

We tried really hard to ignore them and finally had to write code to explicitly ignore them.

@sandersn sandersn deleted the fix-namepath-find-refs-crash branch February 21, 2020 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when trying to rename an export whose declaration is annotated with pathed JS Doc
3 participants