Skip to content

fix accessor parse with line terminator#22893

Merged
sandersn merged 1 commit into
microsoft:masterfrom
Kingwl:fix-accessor-parse
Mar 28, 2018
Merged

fix accessor parse with line terminator#22893
sandersn merged 1 commit into
microsoft:masterfrom
Kingwl:fix-accessor-parse

Conversation

@Kingwl
Copy link
Copy Markdown
Contributor

@Kingwl Kingwl commented Mar 27, 2018

Fixes #22757

@mhegazy mhegazy requested a review from sandersn March 28, 2018 00:58
@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Mar 28, 2018

@sandersn can you please review

Comment thread src/compiler/parser.ts
case SyntaxKind.DefaultKeyword:
return nextTokenCanFollowDefaultKeyword();
case SyntaxKind.StaticKeyword:
case SyntaxKind.GetKeyword:
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.

the two new lines are the two GetKeyword/SetKeyword cases. Everything else is a refactor to use switch instead of if.

@sandersn sandersn merged commit cb9f436 into microsoft:master Mar 28, 2018
@Kingwl Kingwl deleted the fix-accessor-parse branch March 29, 2018 07:30
@microsoft microsoft locked and limited conversation to collaborators Jul 25, 2018
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.

3 participants