Skip to content

Roslyn Tokenizer Infrastructure#10676

Merged
333fred merged 4 commits intodotnet:feature/roslyn-tokenizerfrom
333fred:duplicate-info
Jul 29, 2024
Merged

Roslyn Tokenizer Infrastructure#10676
333fred merged 4 commits intodotnet:feature/roslyn-tokenizerfrom
333fred:duplicate-info

Conversation

@333fred
Copy link
Copy Markdown
Member

@333fred 333fred commented Jul 26, 2024

This is some of the infrastructure that will be needed to get the Roslyn tokenizer in. We'll have the new tokenizer, and an option to switch back to the legacy tokenizer. To make reviewing easier, I would highly suggest going commit-by-commit, to make sure that the renames show up as actual renames.

@333fred 333fred requested review from a team as code owners July 26, 2024 20:59
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

These tests are duplicates of the non-legacy versions, they just use the legacy parser.

var razorConfiguration = new RazorConfiguration(razorLanguageVersion, configurationName ?? "default", Extensions: [], UseConsolidatedMvcViews: true);

// We use the new tokenizer by default
var useRazorTokenizer = !parseOptions.Features.TryGetValue("use-razor-tokenizer", out var useRazorTokenizerValue)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm not sure the best way to actually test this. We could wait for the new tokenizer and test a side effect, like strings being handled better, but that doesn't seem like a great approach. I don't have any better ideas though.

@jjonescz jjonescz added the area-compiler Umbrella for all compiler issues label Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-compiler Umbrella for all compiler issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants