Skip to content

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

Merged
2 commits merged intomasterfrom
completionsDotInObjectLiteral
Oct 12, 2018
Merged

At '.' in object literal, don't close the object#27850
2 commits merged intomasterfrom
completionsDotInObjectLiteral

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Oct 11, 2018

Fixes #27742

@ghost ghost requested a review from sheetalkamat October 11, 2018 22:57
Comment thread src/compiler/parser.ts
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
Copy Markdown
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
Copy Markdown
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
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants