Skip to content

Commit e0af43a

Browse files
Update RazorSyntaxGenerator to reduce generated syntax code (#11806)
This change takes some updates from Roslyn's C# syntax generator tool to greatly reduce the code system of the generated syntax files. - Syntax.xml.Main.Generated.cs - Reduced from 1604 lines to 871 lines - Syntax.xml.Syntax.Generated.cs - Reduced from 4128 lines to 2198 lines - Syntax.xml.Internal.Generated.cs - Reduced from 5321 lines to 3822 lines
2 parents b83131d + 1dc011f commit e0af43a

File tree

7 files changed

+3729
-7942
lines changed

7 files changed

+3729
-7942
lines changed

src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Legacy/CSharpCodeParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2650,7 +2650,7 @@ private void ParseReservedDirective(SyntaxListBuilder<RazorSyntaxNode> builder,
26502650
chunkGenerator = SpanChunkGenerator.Null;
26512651
CompleteBlock();
26522652
var keyword = OutputAsMetaCode(Output());
2653-
var directiveBody = SyntaxFactory.RazorDirectiveBody(keyword, cSharpCode: null);
2653+
var directiveBody = SyntaxFactory.RazorDirectiveBody(keyword, csharpCode: null);
26542654

26552655
// transition could be null if we're already inside a code block.
26562656
transition = transition ?? SyntaxFactory.CSharpTransition(SyntaxFactory.MissingToken(SyntaxKind.Transition), chunkGenerator: null);

0 commit comments

Comments
 (0)