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

Refine syntax error recovery for partial code to not interfere with non-error code. #17692

Merged
merged 1 commit into from
Mar 15, 2017

Conversation

gafter
Copy link
Member

@gafter gafter commented Mar 10, 2017

Related to #15885
Fixes #17683

@CyrusNajmabadi Would you like to have a look at this before I send it out for review?

@gafter gafter added this to the 15.3 milestone Mar 10, 2017
@gafter gafter self-assigned this Mar 10, 2017
@gafter gafter requested a review from CyrusNajmabadi March 10, 2017 05:31
@tannergooding
Copy link
Member

test windows_debug_vs-integration_prtest please

@gafter
Copy link
Member Author

gafter commented Mar 10, 2017

@dotnet/roslyn-compiler @jaredpar @CyrusNajmabadi Please review this tiny correction to a recent change to error recovery. It addresses VSO 393733

@gafter gafter added the 4 - In Review A fix for the issue is submitted for review. label Mar 10, 2017
t == Int32.
MinValue
select t";
UsingExpression(source);
Copy link
Contributor

Choose a reason for hiding this comment

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

UsingExpression(source); [](start = 12, length = 24)

Is there a way to assert that there is no errors?

Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like the helper is taking expected diagnostics as an optional parameter. So the errors are checked.

Copy link
Member Author

Choose a reason for hiding this comment

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

The name of the helper doesn't really help the reader know that, though. I'll look at improving that in the future.

MaxValue when true:
break;
}";
UsingStatement(source);
Copy link
Contributor

Choose a reason for hiding this comment

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

UsingStatement(source); [](start = 12, length = 23)

Is there a way to assert that there is no errors?

Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like the helper is taking expected diagnostics as an optional parameter. So the errors are checked.

Copy link
Contributor

@AlekseyTs AlekseyTs left a comment

Choose a reason for hiding this comment

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

LGTM

@gafter
Copy link
Member Author

gafter commented Mar 11, 2017

@dotnet/roslyn-compiler May I please have a second review?

2 similar comments
@gafter
Copy link
Member Author

gafter commented Mar 14, 2017

@dotnet/roslyn-compiler May I please have a second review?

@gafter
Copy link
Member Author

gafter commented Mar 15, 2017

@dotnet/roslyn-compiler May I please have a second review?

@cston
Copy link
Member

cston commented Mar 15, 2017

LGTM

@gafter gafter merged commit 0bb7894 into dotnet:master Mar 15, 2017
@CyrusNajmabadi
Copy link
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 - In Review A fix for the issue is submitted for review. Area-Compilers Bug cla-already-signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants