-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Fix completion in func exp and class exp #3638
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
Conversation
// fo$ <- completion list should contain local name "foo" | ||
// } | ||
// foo$ <- completion list should not contain "foo" | ||
if (displayName === "__function" || displayName === "__class") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have a getDeclaredName
which I think could be used in lieu of most of the logic in this if
's block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getDeclaredName
doesn't do the right thing for functionExpression. Talk with @mhegazy, he says there will be some rewrite on that. So I don't want to have all the change in this PR
@yuit why was this closed? |
@DanielRosenwasser my PR is snapped using master from like 2 weeks ago :(. |
You can still merge in from |
It is huge . Anyhow, I cherry-picked some commit and incorporate your comments. Sorry for confusion here |
Fix issue #3231 and add support for class expression