diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent_DesignTime.codegen.cs index ee8a2465822..df40a48d8d6 100644 --- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent_DesignTime.codegen.cs +++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent_DesignTime.codegen.cs @@ -14,11 +14,13 @@ public class AspNetCore_d3c3d6059615673cb46fc4974164d61eabadb890 : Microsoft.Asp #pragma warning disable 219 private void __RazorDirectiveTokenHelpers__() { ((System.Action)(() => { +#nullable restore #line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent.cshtml" IDisposable __typeHelper = default(IDisposable); #line default #line hidden +#nullable disable } ))(); } @@ -30,24 +32,30 @@ private void __RazorDirectiveTokenHelpers__() { protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) { base.BuildRenderTree(builder); +#nullable restore #line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent.cshtml" __o = this.ToString(); #line default #line hidden +#nullable disable +#nullable restore #line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent.cshtml" __o = string.Format("{0}", "Hello"); #line default #line hidden +#nullable disable } #pragma warning restore 1998 +#nullable restore #line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent.cshtml" void IDisposable.Dispose(){ } #line default #line hidden +#nullable disable } } #pragma warning restore 1591 diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent_DesignTime.mappings.txt index 92205715127..ee0bc772d70 100644 --- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent_DesignTime.mappings.txt +++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent_DesignTime.mappings.txt @@ -1,23 +1,23 @@ Source Location: (12:0,12 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent.cshtml) |IDisposable| -Generated Location: (665:17,0 [11] ) +Generated Location: (684:18,0 [11] ) |IDisposable| Source Location: (38:1,13 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent.cshtml) |this.ToString()| -Generated Location: (1261:33,13 [15] ) +Generated Location: (1318:36,13 [15] ) |this.ToString()| Source Location: (79:3,5 [29] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent.cshtml) |string.Format("{0}", "Hello")| -Generated Location: (1406:38,6 [29] ) +Generated Location: (1501:43,6 [29] ) |string.Format("{0}", "Hello")| Source Location: (132:6,12 [37] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent.cshtml) | void IDisposable.Dispose(){ } | -Generated Location: (1620:45,12 [37] ) +Generated Location: (1753:52,12 [37] ) | void IDisposable.Dispose(){ } | diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent_Runtime.codegen.cs index 63ec0d98791..37e1ce772c4 100644 --- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent_Runtime.codegen.cs +++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent_Runtime.codegen.cs @@ -23,12 +23,14 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTr builder.CloseElement(); } #pragma warning restore 1998 +#nullable restore #line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent.cshtml" void IDisposable.Dispose(){ } #line default #line hidden +#nullable disable } } #pragma warning restore 1591 diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.codegen.cs index d39b64c26d8..48a1f5fdba1 100644 --- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.codegen.cs +++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.codegen.cs @@ -23,37 +23,49 @@ private void __RazorDirectiveTokenHelpers__() { #pragma warning disable 1998 public async override global::System.Threading.Tasks.Task ExecuteAsync() { +#nullable restore #line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml" __o = this.ToString(); #line default #line hidden +#nullable disable +#nullable restore #line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml" __o = string.Format("{0}", "Hello"); #line default #line hidden +#nullable disable +#nullable restore #line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml" var cls = "foo"; #line default #line hidden +#nullable disable +#nullable restore #line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml" if(cls != null) { #line default #line hidden +#nullable disable +#nullable restore #line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml" __o = cls; #line default #line hidden +#nullable disable +#nullable restore #line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml" } #line default #line hidden +#nullable disable } #pragma warning restore 1998 [global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute] diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.mappings.txt index 372b49cb6f8..5c0927db715 100644 --- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.mappings.txt +++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_DesignTime.mappings.txt @@ -1,34 +1,34 @@ Source Location: (13:0,13 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml) |this.ToString()| -Generated Location: (1030:26,13 [15] ) +Generated Location: (1049:27,13 [15] ) |this.ToString()| Source Location: (54:2,5 [29] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml) |string.Format("{0}", "Hello")| -Generated Location: (1166:31,6 [29] ) +Generated Location: (1223:34,6 [29] ) |string.Format("{0}", "Hello")| Source Location: (95:4,2 [25] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml) | var cls = "foo"; | -Generated Location: (1312:36,2 [25] ) +Generated Location: (1407:41,2 [25] ) | var cls = "foo"; | Source Location: (134:7,11 [18] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml) |if(cls != null) { | -Generated Location: (1460:42,11 [18] ) +Generated Location: (1593:49,11 [18] ) |if(cls != null) { | Source Location: (153:7,30 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml) |cls| -Generated Location: (1622:47,30 [3] ) +Generated Location: (1793:56,30 [3] ) |cls| Source Location: (156:7,33 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml) | }| -Generated Location: (1773:52,33 [2] ) +Generated Location: (1982:63,33 [2] ) | }| diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_Runtime.codegen.cs index b6640c206d3..1885fba68ac 100644 --- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_Runtime.codegen.cs +++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_Runtime.codegen.cs @@ -20,44 +20,56 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Basic : gl { WriteLiteral("