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

Handle skipped trivia in the C# tokenizer #11207

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

333fred
Copy link
Member

@333fred 333fred commented Nov 13, 2024

Reaction to dotnet/roslyn#75724. Will need to update to a version of Roslyn with this change to be able to test.

Reaction to dotnet/roslyn#75724. Will need to update to a version of Roslyn with this change to be able to test.
@333fred 333fred marked this pull request as ready for review November 14, 2024 20:05
@333fred 333fred requested review from a team as code owners November 14, 2024 20:05
Copy link
Contributor

@davidwengier davidwengier left a 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));
Copy link
Member

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.

Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants