Skip to content

imporve conditional operator if missing colon#20498

Merged
mhegazy merged 1 commit into
microsoft:masterfrom
Kingwl:missing-node-improve
Jan 8, 2018
Merged

imporve conditional operator if missing colon#20498
mhegazy merged 1 commit into
microsoft:masterfrom
Kingwl:missing-node-improve

Conversation

@Kingwl
Copy link
Copy Markdown
Contributor

@Kingwl Kingwl commented Dec 6, 2017

Fixes #6127

ps:

  1. createMissingNode with Identifier type if colonToken is missing because parseAssignmentExpressionOrHigher with empty return it. have there got any better solution?
  2. jsxAndTypeAssertion is changed but i have no idea about that

@Kingwl Kingwl force-pushed the missing-node-improve branch from 2acc98d to d2290b1 Compare December 6, 2017 13:15
Comment thread src/compiler/parser.ts Outdated
parseErrorAtCurrentToken(diagnosticMessage, arg0);
}

function createMissingNodePlaceholder<T extends Node>(kind: T["kind"]) {
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.

We don't need a new kind of missing node to handle this one case. Please work with the existing infrastructure for missing nodes

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

updated 😄

@Kingwl Kingwl force-pushed the missing-node-improve branch 2 times, most recently from 3013274 to dd5944c Compare December 7, 2017 08:42
@Kingwl Kingwl force-pushed the missing-node-improve branch from dd5944c to 0ed630a Compare December 7, 2017 10:15
@mhegazy mhegazy merged commit 0ecdc87 into microsoft:master Jan 8, 2018
@Kingwl Kingwl deleted the missing-node-improve branch January 9, 2018 01:12
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 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