Skip to content

At '.' in object literal, don't close the object #27850

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
2 commits merged into from
Oct 12, 2018

Conversation

ghost
Copy link

@ghost ghost commented Oct 11, 2018

Fixes #27742

@ghost ghost requested a review from sheetalkamat October 11, 2018 22:57
case SyntaxKind.OpenBracketToken:
case SyntaxKind.AsteriskToken:
case SyntaxKind.DotDotDotToken:
case SyntaxKind.DotToken: // Not an object literal member, but don't want to close the object (see `tests/cases/fourslash/completionsDotInObjectLiteral.ts`)
Copy link
Member

Choose a reason for hiding this comment

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

Does this mean that we no longer error when we run into a .?

Copy link
Author

Choose a reason for hiding this comment

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

This code just determines whether we try to parse a new object literal member -- we can still fail to do so.

@ghost ghost merged commit 54a5be1 into master Oct 12, 2018
@ghost ghost deleted the completionsDotInObjectLiteral branch October 12, 2018 15:49
This pull request was closed.
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.

2 participants