-
Notifications
You must be signed in to change notification settings - Fork 195
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
Handle skipped trivia in the C# tokenizer #11207
base: main
Are you sure you want to change the base?
Conversation
Reaction to dotnet/roslyn#75724. Will need to update to a version of Roslyn with this change to be able to test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Tooling
// x #endif; | ||
Diagnostic(ErrorCode.ERR_EndOfPPLineExpected, ";").WithLocation(5, 9)); | ||
Diagnostic(ErrorCode.ERR_BadDirectivePlacement, "#").WithLocation(5, 3)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we already have this error. Why do we need the Razor one?
If there are cases where the C# error is not reported, we probably should add C# codegen tests for them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there are cases where the C# error is not reported, we probably should add C# codegen tests for them.
Added StartOfLine_12
.
Reaction to dotnet/roslyn#75724. Will need to update to a version of Roslyn with this change to be able to test.