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

Use the roslyn tokenizer #10702

Merged
merged 17 commits into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Copy link
Member Author

Choose a reason for hiding this comment

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

I would honestly not try to diff this against the old code. Pretty much every line is touched. Just review as if it was a new implementation.

Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ private StateResult Trivia()
CSharpSyntaxKind.WhitespaceTrivia => SyntaxKind.Whitespace,
CSharpSyntaxKind.EndOfLineTrivia => SyntaxKind.NewLine,
CSharpSyntaxKind.SingleLineCommentTrivia or CSharpSyntaxKind.MultiLineCommentTrivia or CSharpSyntaxKind.MultiLineDocumentationCommentTrivia or CSharpSyntaxKind.SingleLineDocumentationCommentTrivia => SyntaxKind.CSharpComment,
_ => throw new InvalidOperationException("Unexpected trivia kind."),
var kind => throw new InvalidOperationException($"Unexpected trivia kind: {kind}."),
};

return Stay(EndToken(tokenType));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,7 @@ public override void Process(TagHelperContext context, TagHelperOutput output)
Assert.Single(result.GeneratedSources);
}

[Fact, WorkItem("https://github.com/dotnet/razor/issues/7049")]
[Fact(Skip = "PROTOTYPE"), WorkItem("https://github.com/dotnet/razor/issues/7049")]
public async Task SourceGenerator_CshtmlFiles_TagHelperInFunction_ManualSuppression()
{
// Arrange
Expand Down
Loading