Skip to content
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

Support Trailing Commas #7747

Closed
wants to merge 1 commit into from
Closed

Support Trailing Commas #7747

wants to merge 1 commit into from

Conversation

YuichiNukiyama
Copy link
Contributor

Fixes #7279

When TS compile function parameter list, checkForTrailingComma do't be used In parser.ts. So, I change check.ts and related tests.

When TS compile function parameter list, `checkForTrailingComma` do't be
used In parser.ts. So, I change check.ts and related tests.
@@ -17244,7 +17244,8 @@ namespace ts {
}

function checkGrammarForDisallowedTrailingComma(list: NodeArray<Node>): boolean {
if (list && list.hasTrailingComma) {
if (list && list.hasTrailingComma &&
Copy link
Member

Choose a reason for hiding this comment

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

Why not just remove the calls in checkGrammarArguments and checkGrammarParameterList ?

@DanielRosenwasser
Copy link
Member

Just as a note, we need to check whether the services layer, and the compiler itself, still resolves overloads correctly.

@mhegazy
Copy link
Contributor

mhegazy commented Jun 7, 2016

This should be addressed by #8942.

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
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.

5 participants