diff --git a/src/Microsoft.AspNetCore.Razor.Evolution/CodeGeneration/DefaultDocumentWriter.cs b/src/Microsoft.AspNetCore.Razor.Evolution/CodeGeneration/DefaultDocumentWriter.cs index a46d3794aa..093095ed50 100644 --- a/src/Microsoft.AspNetCore.Razor.Evolution/CodeGeneration/DefaultDocumentWriter.cs +++ b/src/Microsoft.AspNetCore.Razor.Evolution/CodeGeneration/DefaultDocumentWriter.cs @@ -10,7 +10,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.CodeGeneration { private readonly CSharpRenderingContext _context; private readonly RuntimeTarget _target; - private readonly PageStructureCSharpRenderer _renderer; public DefaultDocumentWriter(RuntimeTarget target, CSharpRenderingContext context, PageStructureCSharpRenderer renderer) @@ -57,7 +56,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.CodeGeneration { private readonly CSharpRenderingContext _context; private readonly RuntimeTarget _target; - private readonly PageStructureCSharpRenderer _renderer; public Visitor(RuntimeTarget target, CSharpRenderingContext context, PageStructureCSharpRenderer renderer) diff --git a/src/Microsoft.AspNetCore.Razor.Evolution/CodeGeneration/RuntimeCSharpRenderer.cs b/src/Microsoft.AspNetCore.Razor.Evolution/CodeGeneration/RuntimeCSharpRenderer.cs index 949970a990..b1077aee37 100644 --- a/src/Microsoft.AspNetCore.Razor.Evolution/CodeGeneration/RuntimeCSharpRenderer.cs +++ b/src/Microsoft.AspNetCore.Razor.Evolution/CodeGeneration/RuntimeCSharpRenderer.cs @@ -12,7 +12,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.CodeGeneration { internal class RuntimeCSharpRenderer : PageStructureCSharpRenderer { - public RuntimeCSharpRenderer(RuntimeTarget target, CSharpRenderingContext context) + public RuntimeCSharpRenderer(RuntimeTarget target, CSharpRenderingContext context) : base(target, context) { } @@ -71,7 +71,7 @@ namespace Microsoft.AspNetCore.Razor.Evolution.CodeGeneration var padding = BuildOffsetPadding(Context.RenderingConventions.StartWriteMethod.Length, node.Source.Value, Context); Context.Writer.Write(padding); } - + Context.Writer.Write(Context.RenderingConventions.StartWriteMethod); for (var i = 0; i < node.Children.Count; i++)