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("
\r\n Hello world\r\n ");
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml"
Write(string.Format("{0}", "Hello"));
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n
\r\n");
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml"
var cls = "foo";
#line default
#line hidden
+#nullable disable
WriteLiteral(" {
PushWriter(__razor_attribute_value_writer);
+#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"
Write(cls);
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml"
}
#line default
#line hidden
+#nullable disable
PopWriter();
}
), 133, 25, false);
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.cs
index 0e78caebf8d..8f5be40d382 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.cs
@@ -16,67 +16,83 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Incomplete
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"
MyService __typeHelper = default(MyService);
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"
#line default
#line hidden
+#nullable disable
}
))();
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.mappings.txt
index f7d4a23a9b9..b73427b4fcf 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.mappings.txt
@@ -1,40 +1,40 @@
Source Location: (119:6,6 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
||
-Generated Location: (767:19,0 [0] )
+Generated Location: (786:20,0 [0] )
||
Source Location: (128:7,7 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
||
-Generated Location: (957:27,0 [0] )
+Generated Location: (1014:30,0 [0] )
||
Source Location: (139:9,7 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
||
-Generated Location: (1148:35,0 [0] )
+Generated Location: (1243:40,0 [0] )
||
Source Location: (149:10,8 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
||
-Generated Location: (1339:43,0 [0] )
+Generated Location: (1472:50,0 [0] )
||
Source Location: (159:11,8 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
|MyService|
-Generated Location: (1530:51,0 [17] )
+Generated Location: (1701:60,0 [17] )
|MyService|
Source Location: (176:11,25 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
||
-Generated Location: (1780:59,0 [0] )
+Generated Location: (1989:70,0 [0] )
||
Source Location: (190:13,10 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
||
-Generated Location: (1971:67,0 [0] )
+Generated Location: (2218:80,0 [0] )
||
Source Location: (203:14,11 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
||
-Generated Location: (2162:75,0 [0] )
+Generated Location: (2447:90,0 [0] )
||
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.codegen.cs
index 7cdbaf33263..5df4e38e8c3 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.codegen.cs
@@ -16,19 +16,23 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InheritsVi
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel.cshtml"
MyBasePageForViews __typeHelper = default(MyBasePageForViews);
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel.cshtml"
MyModel __typeHelper = default(MyModel);
#line default
#line hidden
+#nullable disable
}
))();
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.mappings.txt
index 6a313a909d6..e8601673e49 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel_DesignTime.mappings.txt
@@ -1,10 +1,10 @@
Source Location: (10:0,10 [26] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel.cshtml)
|MyBasePageForViews|
-Generated Location: (740:19,0 [26] )
+Generated Location: (759:20,0 [26] )
|MyBasePageForViews|
Source Location: (45:1,7 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsViewModel.cshtml)
|MyModel|
-Generated Location: (1004:27,0 [7] )
+Generated Location: (1061:30,0 [7] )
|MyModel|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.codegen.cs
index f174a0fc2f1..854bc5acf7e 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.codegen.cs
@@ -16,11 +16,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InheritsWi
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports.cshtml"
MyModel __typeHelper = default(MyModel);
#line default
#line hidden
+#nullable disable
}
))();
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.mappings.txt
index e7daecd874c..2aefff46351 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports_DesignTime.mappings.txt
@@ -1,5 +1,5 @@
Source Location: (14:1,7 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InheritsWithViewImports.cshtml)
|MyModel|
-Generated Location: (745:19,0 [7] )
+Generated Location: (764:20,0 [7] )
|MyModel|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.codegen.cs
index 21206223738..6eb2a044658 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.codegen.cs
@@ -16,43 +16,53 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InjectWith
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel.cshtml"
MyModel __typeHelper = default(MyModel);
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel.cshtml"
MyApp __typeHelper = default(MyApp);
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel.cshtml"
global::System.Object MyPropertyName = null;
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel.cshtml"
MyService __typeHelper = default(MyService);
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel.cshtml"
global::System.Object Html = null;
#line default
#line hidden
+#nullable disable
}
))();
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.mappings.txt
index c4838ff64d3..2aa53d9a49c 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel_DesignTime.mappings.txt
@@ -1,25 +1,25 @@
Source Location: (7:0,7 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel.cshtml)
|MyModel|
-Generated Location: (766:19,0 [7] )
+Generated Location: (785:20,0 [7] )
|MyModel|
Source Location: (24:1,8 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel.cshtml)
|MyApp|
-Generated Location: (990:27,0 [5] )
+Generated Location: (1047:30,0 [5] )
|MyApp|
Source Location: (30:1,14 [14] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel.cshtml)
|MyPropertyName|
-Generated Location: (1232:35,22 [14] )
+Generated Location: (1327:40,22 [14] )
|MyPropertyName|
Source Location: (54:2,8 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel.cshtml)
|MyService|
-Generated Location: (1438:43,0 [17] )
+Generated Location: (1571:50,0 [17] )
|MyService|
Source Location: (72:2,26 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithModel.cshtml)
|Html|
-Generated Location: (1704:51,22 [4] )
+Generated Location: (1875:60,22 [4] )
|Html|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.codegen.cs
index ea95a4e7ebc..23c1be5972b 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.codegen.cs
@@ -16,75 +16,93 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InjectWith
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml"
MyModel __typeHelper = default(MyModel);
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml"
MyApp __typeHelper = default(MyApp);
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml"
global::System.Object MyPropertyName = null;
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml"
MyService __typeHelper = default(MyService);
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml"
global::System.Object Html = null;
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml"
MyApp __typeHelper = default(MyApp);
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml"
global::System.Object MyPropertyName2 = null;
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml"
MyService __typeHelper = default(MyService);
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml"
global::System.Object Html2 = null;
#line default
#line hidden
+#nullable disable
}
))();
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.mappings.txt
index 6a90f75f3e0..fd3c9832d8c 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon_DesignTime.mappings.txt
@@ -1,45 +1,45 @@
Source Location: (7:0,7 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml)
|MyModel|
-Generated Location: (774:19,0 [7] )
+Generated Location: (793:20,0 [7] )
|MyModel|
Source Location: (24:1,8 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml)
|MyApp|
-Generated Location: (1002:27,0 [5] )
+Generated Location: (1059:30,0 [5] )
|MyApp|
Source Location: (30:1,14 [14] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml)
|MyPropertyName|
-Generated Location: (1248:35,22 [14] )
+Generated Location: (1343:40,22 [14] )
|MyPropertyName|
Source Location: (58:2,8 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml)
|MyService|
-Generated Location: (1458:43,0 [17] )
+Generated Location: (1591:50,0 [17] )
|MyService|
Source Location: (76:2,26 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml)
|Html|
-Generated Location: (1728:51,22 [4] )
+Generated Location: (1899:60,22 [4] )
|Html|
Source Location: (93:3,8 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml)
|MyApp|
-Generated Location: (1928:59,0 [5] )
+Generated Location: (2137:70,0 [5] )
|MyApp|
Source Location: (99:3,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml)
|MyPropertyName2|
-Generated Location: (2174:67,22 [15] )
+Generated Location: (2421:80,22 [15] )
|MyPropertyName2|
Source Location: (129:4,8 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml)
|MyService|
-Generated Location: (2385:75,0 [17] )
+Generated Location: (2670:90,0 [17] )
|MyService|
Source Location: (147:4,26 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InjectWithSemicolon.cshtml)
|Html2|
-Generated Location: (2655:83,22 [5] )
+Generated Location: (2978:100,22 [5] )
|Html2|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.codegen.cs
index 7b2f4fedc62..65d978634b7 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.codegen.cs
@@ -16,19 +16,23 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Inject : g
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject.cshtml"
MyApp __typeHelper = default(MyApp);
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject.cshtml"
global::System.Object MyPropertyName = null;
#line default
#line hidden
+#nullable disable
}
))();
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.mappings.txt
index 10ed356ecf2..e78674c121e 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject_DesignTime.mappings.txt
@@ -1,10 +1,10 @@
Source Location: (8:0,8 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject.cshtml)
|MyApp|
-Generated Location: (748:19,0 [5] )
+Generated Location: (767:20,0 [5] )
|MyApp|
Source Location: (14:0,14 [14] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inject.cshtml)
|MyPropertyName|
-Generated Location: (981:27,22 [14] )
+Generated Location: (1038:30,22 [14] )
|MyPropertyName|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.codegen.cs
index 82441cd663f..6c0bfbaa8c0 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.codegen.cs
@@ -17,19 +17,23 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ModelExpre
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper.cshtml"
DateTime __typeHelper = default(DateTime);
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper.cshtml"
global::System.Object __typeHelper = "InputTestTagHelper, AppCode";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -41,17 +45,21 @@ private void __RazorDirectiveTokenHelpers__() {
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
__InputTestTagHelper = CreateTagHelper();
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper.cshtml"
__InputTestTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Date);
#line default
#line hidden
+#nullable disable
__InputTestTagHelper = CreateTagHelper();
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper.cshtml"
__InputTestTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => Model);
#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/ModelExpressionTagHelper_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.mappings.txt
index 63a7d6ccc1a..100abb1b5c8 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_DesignTime.mappings.txt
@@ -1,20 +1,20 @@
Source Location: (7:0,7 [8] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper.cshtml)
|DateTime|
-Generated Location: (851:20,0 [8] )
+Generated Location: (870:21,0 [8] )
|DateTime|
Source Location: (33:2,14 [29] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper.cshtml)
|"InputTestTagHelper, AppCode"|
-Generated Location: (1123:28,37 [29] )
+Generated Location: (1180:31,37 [29] )
|"InputTestTagHelper, AppCode"|
Source Location: (83:4,17 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper.cshtml)
|Date|
-Generated Location: (1802:44,102 [4] )
+Generated Location: (1897:49,102 [4] )
|Date|
Source Location: (111:5,18 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper.cshtml)
|Model|
-Generated Location: (2118:50,94 [5] )
+Generated Location: (2251:57,94 [5] )
|Model|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_Runtime.codegen.cs
index 8f900536ac9..0e7defef2de 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper_Runtime.codegen.cs
@@ -44,11 +44,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ModelExpre
);
__InputTestTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__InputTestTagHelper);
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper.cshtml"
__InputTestTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Date);
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("for", __InputTestTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -63,11 +65,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ModelExpre
);
__InputTestTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__InputTestTagHelper);
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ModelExpressionTagHelper.cshtml"
__InputTestTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => Model);
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("for", __InputTestTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.codegen.cs
index 63c2a52c6fa..bc7f0279024 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.codegen.cs
@@ -16,11 +16,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Model : gl
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model.cshtml"
System.Collections.IEnumerable __typeHelper = default(System.Collections.IEnumerable);
#line default
#line hidden
+#nullable disable
}
))();
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.mappings.txt
index 7d84cf754d8..5328a5fda41 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model_DesignTime.mappings.txt
@@ -1,5 +1,5 @@
Source Location: (7:0,7 [30] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Model.cshtml)
|System.Collections.IEnumerable|
-Generated Location: (769:19,0 [30] )
+Generated Location: (788:20,0 [30] )
|System.Collections.IEnumerable|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.codegen.cs
index e8f705cef7f..648d6a810fd 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.codegen.cs
@@ -16,19 +16,23 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MultipleMo
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels.cshtml"
ThisShouldBeGenerated __typeHelper = default(ThisShouldBeGenerated);
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels.cshtml"
System.Collections.IEnumerable __typeHelper = default(System.Collections.IEnumerable);
#line default
#line hidden
+#nullable disable
}
))();
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.mappings.txt
index 79d7e257c77..9f3cb96a3e0 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels_DesignTime.mappings.txt
@@ -1,10 +1,10 @@
Source Location: (7:0,7 [21] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels.cshtml)
|ThisShouldBeGenerated|
-Generated Location: (778:19,0 [21] )
+Generated Location: (797:20,0 [21] )
|ThisShouldBeGenerated|
Source Location: (37:1,7 [30] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MultipleModels.cshtml)
|System.Collections.IEnumerable|
-Generated Location: (1029:27,0 [30] )
+Generated Location: (1086:30,0 [30] )
|System.Collections.IEnumerable|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_DesignTime.codegen.cs
index 9d7181bfad0..8ef243c98e6 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_DesignTime.codegen.cs
@@ -16,11 +16,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_PageWithNa
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace.cshtml"
global::System.Object __typeHelper = nameof(Test.Namespace);
#line default
#line hidden
+#nullable disable
}
))();
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_DesignTime.mappings.txt
index b41240c9c53..74d9dc14327 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace_DesignTime.mappings.txt
@@ -1,5 +1,5 @@
Source Location: (18:1,11 [14] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PageWithNamespace.cshtml)
|Test.Namespace|
-Generated Location: (809:19,44 [14] )
+Generated Location: (828:20,44 [14] )
|Test.Namespace|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate_DesignTime.codegen.cs
index 8f5d082e6ab..e66684b63d3 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate_DesignTime.codegen.cs
@@ -11,30 +11,36 @@ namespace AspNetCore
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate.cshtml"
using Microsoft.AspNetCore.Mvc.RazorPages;
#line default
#line hidden
+#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemMetadataAttribute("RouteTemplate", "/About")]
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPagesWithRouteTemplate : global::Microsoft.AspNetCore.Mvc.RazorPages.Page
{
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate.cshtml"
global::System.Object __typeHelper = "/About";
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate.cshtml"
NewModel __typeHelper = default(NewModel);
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -45,13 +51,16 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate.cshtml"
__o = Model.Name;
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate.cshtml"
public class NewModel : PageModel
@@ -61,6 +70,7 @@ public class NewModel : PageModel
#line default
#line hidden
+#nullable disable
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate_DesignTime.mappings.txt
index cc5e9cad30d..9485855d238 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate_DesignTime.mappings.txt
@@ -1,21 +1,21 @@
Source Location: (36:3,1 [41] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate.cshtml)
|using Microsoft.AspNetCore.Mvc.RazorPages|
-Generated Location: (492:14,0 [41] )
+Generated Location: (511:15,0 [41] )
|using Microsoft.AspNetCore.Mvc.RazorPages|
Source Location: (6:0,6 [8] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate.cshtml)
|"/About"|
-Generated Location: (1108:25,37 [8] )
+Generated Location: (1165:28,37 [8] )
|"/About"|
Source Location: (25:2,7 [8] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate.cshtml)
|NewModel|
-Generated Location: (1313:33,0 [8] )
+Generated Location: (1408:38,0 [8] )
|NewModel|
Source Location: (213:12,18 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate.cshtml)
|Model.Name|
-Generated Location: (1841:48,18 [10] )
+Generated Location: (1974:55,18 [10] )
|Model.Name|
Source Location: (93:5,12 [97] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate.cshtml)
@@ -25,7 +25,7 @@ Source Location: (93:5,12 [97] TestFiles/IntegrationTests/CodeGenerationIntegrat
public string Name { get; set; }
}
|
-Generated Location: (2049:55,12 [97] )
+Generated Location: (2220:64,12 [97] )
|
public class NewModel : PageModel
{
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate_Runtime.codegen.cs
index d61cd1b60b1..eb6860f4b30 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate_Runtime.codegen.cs
@@ -12,11 +12,13 @@ namespace AspNetCore
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate.cshtml"
using Microsoft.AspNetCore.Mvc.RazorPages;
#line default
#line hidden
+#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemMetadataAttribute("RouteTemplate", "/About")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"547900310554f446d88da593a245719ee9dbb12f", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate.cshtml")]
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPagesWithRouteTemplate : global::Microsoft.AspNetCore.Mvc.RazorPages.Page
@@ -27,14 +29,17 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPages
WriteLiteral("\r\n");
WriteLiteral("\r\n");
WriteLiteral("\r\nNew Customer ");
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate.cshtml"
Write(Model.Name);
#line default
#line hidden
+#nullable disable
WriteLiteral(" \r\n");
}
#pragma warning restore 1998
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate.cshtml"
public class NewModel : PageModel
@@ -44,6 +49,7 @@ public class NewModel : PageModel
#line default
#line hidden
+#nullable disable
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_DesignTime.codegen.cs
index aeb2631c460..b0f5beb1a98 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_DesignTime.codegen.cs
@@ -11,22 +11,26 @@ namespace AspNetCore
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel.cshtml"
using Microsoft.AspNetCore.Mvc.RazorPages;
#line default
#line hidden
+#nullable disable
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPagesWithoutModel : global::Microsoft.AspNetCore.Mvc.RazorPages.Page
{
private global::DivTagHelper __DivTagHelper;
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel.cshtml"
global::System.Object __typeHelper = "*, AppCode";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -38,17 +42,20 @@ private void __RazorDirectiveTokenHelpers__() {
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
__DivTagHelper = CreateTagHelper();
+#nullable restore
#line 25 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel.cshtml"
__o = Name;
#line default
#line hidden
+#nullable disable
__DivTagHelper = CreateTagHelper();
__DivTagHelper = CreateTagHelper();
__DivTagHelper = CreateTagHelper();
__DivTagHelper = CreateTagHelper();
}
#pragma warning restore 1998
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel.cshtml"
public IActionResult OnPost(Customer customer)
@@ -66,6 +73,7 @@ public class Customer
#line default
#line hidden
+#nullable disable
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_DesignTime.mappings.txt
index 33f7baa3774..3a67aa86efe 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_DesignTime.mappings.txt
@@ -1,16 +1,16 @@
Source Location: (38:3,1 [41] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel.cshtml)
|using Microsoft.AspNetCore.Mvc.RazorPages|
-Generated Location: (487:14,0 [41] )
+Generated Location: (506:15,0 [41] )
|using Microsoft.AspNetCore.Mvc.RazorPages|
Source Location: (23:2,14 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel.cshtml)
|"*, AppCode"|
-Generated Location: (1035:25,37 [12] )
+Generated Location: (1092:28,37 [12] )
|"*, AppCode"|
Source Location: (566:24,47 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel.cshtml)
|Name|
-Generated Location: (1629:41,47 [4] )
+Generated Location: (1724:46,47 [4] )
|Name|
Source Location: (95:5,12 [283] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel.cshtml)
@@ -28,7 +28,7 @@ Source Location: (95:5,12 [283] TestFiles/IntegrationTests/CodeGenerationIntegra
public string Name { get; set; }
}
|
-Generated Location: (2110:52,12 [283] )
+Generated Location: (2243:59,12 [283] )
|
public IActionResult OnPost(Customer customer)
{
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_Runtime.codegen.cs
index c4f7c2473f3..e001e0593c2 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_Runtime.codegen.cs
@@ -12,11 +12,13 @@ namespace AspNetCore
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel.cshtml"
using Microsoft.AspNetCore.Mvc.RazorPages;
#line default
#line hidden
+#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"8bf3954ad78688478de155359db8af32627ee2b8", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel.cshtml")]
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPagesWithoutModel : global::Microsoft.AspNetCore.Mvc.RazorPages.Page
{
@@ -65,11 +67,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPages
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
WriteLiteral("\r\n ");
+#nullable restore
#line 25 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel.cshtml"
Write(Name);
#line default
#line hidden
+#nullable disable
WriteLiteral(" \r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
WriteLiteral("\r\n \r\n \r\n ");
@@ -131,6 +135,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPages
WriteLiteral("\r\n\r\n");
}
#pragma warning restore 1998
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel.cshtml"
public IActionResult OnPost(Customer customer)
@@ -148,6 +153,7 @@ public class Customer
#line default
#line hidden
+#nullable disable
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_DesignTime.codegen.cs
index d7acbdf7d1c..8cd1703ea87 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_DesignTime.codegen.cs
@@ -11,30 +11,36 @@ namespace AspNetCore
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages.cshtml"
using Microsoft.AspNetCore.Mvc.RazorPages;
#line default
#line hidden
+#nullable disable
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPages : global::Microsoft.AspNetCore.Mvc.RazorPages.Page
{
private global::DivTagHelper __DivTagHelper;
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages.cshtml"
NewModel __typeHelper = default(NewModel);
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages.cshtml"
global::System.Object __typeHelper = "*, AppCode";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -46,17 +52,20 @@ private void __RazorDirectiveTokenHelpers__() {
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
__DivTagHelper = CreateTagHelper();
+#nullable restore
#line 29 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages.cshtml"
__o = Model.Name;
#line default
#line hidden
+#nullable disable
__DivTagHelper = CreateTagHelper();
__DivTagHelper = CreateTagHelper();
__DivTagHelper = CreateTagHelper();
__DivTagHelper = CreateTagHelper();
}
#pragma warning restore 1998
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages.cshtml"
public class NewModel : PageModel
@@ -77,6 +86,7 @@ public class Customer
#line default
#line hidden
+#nullable disable
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_DesignTime.mappings.txt
index 0af8c77dfd5..a01ff719cf4 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_DesignTime.mappings.txt
@@ -1,21 +1,21 @@
Source Location: (55:4,1 [41] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages.cshtml)
|using Microsoft.AspNetCore.Mvc.RazorPages|
-Generated Location: (475:14,0 [41] )
+Generated Location: (494:15,0 [41] )
|using Microsoft.AspNetCore.Mvc.RazorPages|
Source Location: (16:2,7 [8] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages.cshtml)
|NewModel|
-Generated Location: (962:25,0 [8] )
+Generated Location: (1019:28,0 [8] )
|NewModel|
Source Location: (40:3,14 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages.cshtml)
|"*, AppCode"|
-Generated Location: (1220:33,37 [12] )
+Generated Location: (1315:38,37 [12] )
|"*, AppCode"|
Source Location: (661:28,47 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages.cshtml)
|Model.Name|
-Generated Location: (1802:49,47 [10] )
+Generated Location: (1935:56,47 [10] )
|Model.Name|
Source Location: (112:6,12 [360] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages.cshtml)
@@ -36,7 +36,7 @@ Source Location: (112:6,12 [360] TestFiles/IntegrationTests/CodeGenerationIntegr
public string Name { get; set; }
}
|
-Generated Location: (2277:60,12 [360] )
+Generated Location: (2448:69,12 [360] )
|
public class NewModel : PageModel
{
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_Runtime.codegen.cs
index 856f8eb8ee3..3ab0b406337 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_Runtime.codegen.cs
@@ -12,11 +12,13 @@ namespace AspNetCore
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages.cshtml"
using Microsoft.AspNetCore.Mvc.RazorPages;
#line default
#line hidden
+#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"d33caff161b646a61b273d7c544111395b652557", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages.cshtml")]
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPages : global::Microsoft.AspNetCore.Mvc.RazorPages.Page
{
@@ -65,11 +67,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPages
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
WriteLiteral("\r\n ");
+#nullable restore
#line 29 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages.cshtml"
Write(Model.Name);
#line default
#line hidden
+#nullable disable
WriteLiteral(" \r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
WriteLiteral("\r\n \r\n \r\n ");
@@ -131,6 +135,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPages
WriteLiteral("\r\n\r\n");
}
#pragma warning restore 1998
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages.cshtml"
public class NewModel : PageModel
@@ -151,6 +156,7 @@ public class Customer
#line default
#line hidden
+#nullable disable
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.IModelExpressionProvider ModelExpressionProvider { get; private set; }
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.codegen.cs
index 3ca46af8a7c..9d1e2bf58d4 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.codegen.cs
@@ -17,27 +17,33 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Sections :
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml"
DateTime __typeHelper = default(DateTime);
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml"
global::System.Object __typeHelper = "InputTestTagHelper, AppCode";
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml"
global::System.Object Section1 = null;
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -48,19 +54,23 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml"
Layout = "_SectionTestLayout.cshtml";
#line default
#line hidden
+#nullable disable
DefineSection("Section1", async(__razor_section_writer) => {
__InputTestTagHelper = CreateTagHelper();
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml"
__InputTestTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Date);
#line default
#line hidden
+#nullable disable
}
);
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.mappings.txt
index 1cc991810c0..f97fc02e0b8 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.mappings.txt
@@ -1,29 +1,29 @@
Source Location: (7:0,7 [8] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml)
|DateTime|
-Generated Location: (819:20,0 [8] )
+Generated Location: (838:21,0 [8] )
|DateTime|
Source Location: (33:2,14 [29] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml)
|"InputTestTagHelper, AppCode"|
-Generated Location: (1075:28,37 [29] )
+Generated Location: (1132:31,37 [29] )
|"InputTestTagHelper, AppCode"|
Source Location: (152:10,9 [8] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml)
|Section1|
-Generated Location: (1305:36,22 [8] )
+Generated Location: (1400:41,22 [8] )
|Section1|
Source Location: (68:4,2 [46] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml)
|
Layout = "_SectionTestLayout.cshtml";
|
-Generated Location: (1771:51,2 [46] )
+Generated Location: (1904:58,2 [46] )
|
Layout = "_SectionTestLayout.cshtml";
|
Source Location: (222:12,21 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml)
|Date|
-Generated Location: (2196:59,102 [4] )
+Generated Location: (2367:68,102 [4] )
|Date|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_Runtime.codegen.cs
index 43660572925..85c27277e56 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_Runtime.codegen.cs
@@ -39,12 +39,14 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Sections :
{
WriteLiteral("\r\n");
WriteLiteral("\r\n");
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml"
Layout = "_SectionTestLayout.cshtml";
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\nSome body
\r\n\r\n");
DefineSection("Section1", async() => {
WriteLiteral("\r\n This is in Section 1
\r\n ");
@@ -53,11 +55,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Sections :
);
__InputTestTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__InputTestTagHelper);
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml"
__InputTestTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Date);
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("for", __InputTestTagHelper.For, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives_DesignTime.codegen.cs
index ad57e4a82b0..11eff281545 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives_DesignTime.codegen.cs
@@ -10,26 +10,34 @@ namespace AspNetCore
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives.cshtml"
using System.ComponentModel;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives.cshtml"
using System.Collections;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives.cshtml"
using System;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives.cshtml"
using System;
#line default
#line hidden
+#nullable disable
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_UsingDirectives : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage
{
#pragma warning disable 219
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives_DesignTime.mappings.txt
index 71a6bf2b2d7..4337c167909 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives_DesignTime.mappings.txt
@@ -1,20 +1,20 @@
Source Location: (1:0,1 [27] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives.cshtml)
|using System.ComponentModel|
-Generated Location: (461:13,0 [27] )
+Generated Location: (480:14,0 [27] )
|using System.ComponentModel|
Source Location: (31:1,1 [24] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives.cshtml)
|using System.Collections|
-Generated Location: (613:18,0 [24] )
+Generated Location: (670:21,0 [24] )
|using System.Collections|
Source Location: (58:2,1 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives.cshtml)
|using System|
-Generated Location: (762:23,0 [12] )
+Generated Location: (857:28,0 [12] )
|using System|
Source Location: (73:3,1 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives.cshtml)
|using System|
-Generated Location: (899:28,0 [12] )
+Generated Location: (1032:35,0 [12] )
|using System|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives_Runtime.codegen.cs
index 4b1e4e8805b..9cd56d20e21 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives_Runtime.codegen.cs
@@ -11,26 +11,34 @@ namespace AspNetCore
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Mvc.ViewFeatures;
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives.cshtml"
using System.ComponentModel;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives.cshtml"
using System.Collections;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives.cshtml"
using System;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives.cshtml"
using System;
#line default
#line hidden
+#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"452979e8e4dd77a84a4c50425dd3a162e265990d", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UsingDirectives.cshtml")]
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_UsingDirectives : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage
{
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_DesignTime.codegen.cs
index b6196f66518..02339582f95 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_DesignTime.codegen.cs
@@ -18,11 +18,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ViewCompon
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper.cshtml"
global::System.Object __typeHelper = "*, AppCode";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -33,19 +35,23 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper.cshtml"
var foo = "Hello";
#line default
#line hidden
+#nullable disable
__AllTagHelper = CreateTagHelper();
__TestViewComponentTagHelper = CreateTagHelper();
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper.cshtml"
__o = foo;
#line default
#line hidden
+#nullable disable
__TestViewComponentTagHelper.firstName = string.Empty;
__AllTagHelper.Bar = " World";
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_DesignTime.mappings.txt
index 9c5fd32efbd..2fe93f8a9e7 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_DesignTime.mappings.txt
@@ -1,19 +1,19 @@
Source Location: (14:0,14 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper.cshtml)
|"*, AppCode"|
-Generated Location: (1057:21,37 [12] )
+Generated Location: (1076:22,37 [12] )
|"*, AppCode"|
Source Location: (30:1,2 [26] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper.cshtml)
|
var foo = "Hello";
|
-Generated Location: (1534:36,2 [26] )
+Generated Location: (1591:39,2 [26] )
|
var foo = "Hello";
|
Source Location: (83:5,22 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper.cshtml)
|foo|
-Generated Location: (1985:44,22 [3] )
+Generated Location: (2080:49,22 [3] )
|foo|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_Runtime.codegen.cs
index 002512387b0..e4c78739e2b 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper_Runtime.codegen.cs
@@ -39,12 +39,14 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ViewCompon
#pragma warning disable 1998
public async override global::System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper.cshtml"
var foo = "Hello";
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("vc:test", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
}
@@ -54,11 +56,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ViewCompon
__TestViewComponentTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestViewComponentTagHelper);
BeginWriteTagHelperAttribute();
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewComponentTagHelper.cshtml"
WriteLiteral(foo);
#line default
#line hidden
+#nullable disable
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
__TestViewComponentTagHelper.firstName = __tagHelperStringValueBuffer;
__tagHelperExecutionContext.AddTagHelperAttribute("first-name", __TestViewComponentTagHelper.firstName, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_DesignTime.codegen.cs
index 209d3361f0d..4f9c742eadf 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_DesignTime.codegen.cs
@@ -16,11 +16,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ViewWithNa
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace.cshtml"
global::System.Object __typeHelper = nameof(Test.Namespace);
#line default
#line hidden
+#nullable disable
}
))();
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_DesignTime.mappings.txt
index 2b7a295e01a..927c17b4756 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace_DesignTime.mappings.txt
@@ -1,5 +1,5 @@
Source Location: (11:0,11 [14] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ViewWithNamespace.cshtml)
|Test.Namespace|
-Generated Location: (818:19,44 [14] )
+Generated Location: (837:20,44 [14] )
|Test.Namespace|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_DesignTime.codegen.cs
index 1f60d924cca..7a5e5b43f0a 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_DesignTime.codegen.cs
@@ -16,19 +16,23 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest__ViewImpor
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports.cshtml"
IHtmlHelper __typeHelper = default(IHtmlHelper);
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports.cshtml"
global::System.Object Helper = null;
#line default
#line hidden
+#nullable disable
}
))();
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_DesignTime.mappings.txt
index dc03ca32dae..6f9eb70d0eb 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports_DesignTime.mappings.txt
@@ -1,10 +1,10 @@
Source Location: (8:0,8 [19] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports.cshtml)
|IHtmlHelper|
-Generated Location: (760:19,0 [19] )
+Generated Location: (779:20,0 [19] )
|IHtmlHelper|
Source Location: (28:0,28 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/_ViewImports.cshtml)
|Helper|
-Generated Location: (1027:27,22 [6] )
+Generated Location: (1084:30,22 [6] )
|Helper|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/InjectTargetExtensionTest.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/InjectTargetExtensionTest.cs
index fcc8b1123c2..ec314d03f67 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/InjectTargetExtensionTest.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version1_X.Test/InjectTargetExtensionTest.cs
@@ -56,12 +56,14 @@ public void InjectDirectiveTargetExtension_WritesPropertyWithLinePragma_WhenSour
target.WriteInjectProperty(context, node);
// Assert
- Assert.Equal(
+ Assert.Equal(Environment.NewLine +
+ "#nullable restore" + Environment.NewLine +
"#line 2 \"test-path\"" + Environment.NewLine +
"[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]" + Environment.NewLine +
"public PropertyType PropertyName { get; private set; }" + Environment.NewLine + Environment.NewLine +
"#line default" + Environment.NewLine +
- "#line hidden" + Environment.NewLine,
+ "#line hidden" + Environment.NewLine +
+ "#nullable disable" + Environment.NewLine,
context.CodeWriter.GenerateCode());
}
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/InjectTargetExtensionTest.cs b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/InjectTargetExtensionTest.cs
index 71b2ec20ce6..53e7debcf73 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/InjectTargetExtensionTest.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X.Test/InjectTargetExtensionTest.cs
@@ -56,12 +56,14 @@ public void InjectDirectiveTargetExtension_WritesPropertyWithLinePragma_WhenSour
target.WriteInjectProperty(context, node);
// Assert
- Assert.Equal(
+ Assert.Equal(Environment.NewLine +
+ "#nullable restore" + Environment.NewLine +
"#line 2 \"test-path\"" + Environment.NewLine +
"[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]" + Environment.NewLine +
"public PropertyType PropertyName { get; private set; }" + Environment.NewLine + Environment.NewLine +
"#line default" + Environment.NewLine +
- "#line hidden" + Environment.NewLine,
+ "#line hidden" + Environment.NewLine +
+ "#nullable disable" + Environment.NewLine,
context.CodeWriter.GenerateCode());
}
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DesignTimeNodeWriterTest.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DesignTimeNodeWriterTest.cs
index e53ca58eaf9..465aaeaec79 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DesignTimeNodeWriterTest.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/DesignTimeNodeWriterTest.cs
@@ -45,7 +45,7 @@ public void WriteUsingDirective_WithSource_WritesContentWithLinePragmaAndMapping
var context = TestCodeRenderingContext.CreateDesignTime();
var originalSpan = new SourceSpan("test.cshtml", 0, 0, 0, 6);
- var generatedSpan = new SourceSpan(null, 21 + Environment.NewLine.Length, 1, 0, 6);
+ var generatedSpan = new SourceSpan(null, 42 + Environment.NewLine.Length, 3, 0, 6);
var expectedSourceMapping = new SourceMapping(originalSpan, generatedSpan);
var node = new UsingDirectiveIntermediateNode()
{
@@ -61,11 +61,14 @@ public void WriteUsingDirective_WithSource_WritesContentWithLinePragmaAndMapping
Assert.Equal(expectedSourceMapping, mapping);
var csharp = context.CodeWriter.GenerateCode();
Assert.Equal(
-@"#line 1 ""test.cshtml""
+@"
+#nullable restore
+#line 1 ""test.cshtml""
using System;
#line default
#line hidden
+#nullable disable
",
csharp,
ignoreLineEndingDifferences: true);
@@ -122,11 +125,14 @@ public void WriteCSharpExpression_WritesLinePragma_WithSource()
// Assert
var csharp = context.CodeWriter.GenerateCode();
Assert.Equal(
-@"#line 1 ""test.cshtml""
+@"
+#nullable restore
+#line 1 ""test.cshtml""
__o = i++;
#line default
#line hidden
+#nullable disable
",
csharp,
ignoreLineEndingDifferences: true);
@@ -196,12 +202,15 @@ public void WriteCSharpExpression_WithSource_WritesPadding()
// Assert
var csharp = context.CodeWriter.GenerateCode();
Assert.Equal(
-@"#line 1 ""test.cshtml""
+@"
+#nullable restore
+#line 1 ""test.cshtml""
__o = iRender Children
++;
#line default
#line hidden
+#nullable disable
",
csharp,
ignoreLineEndingDifferences: true);
@@ -231,11 +240,14 @@ public void WriteCSharpCode_WhitespaceContentWithSource_WritesContent()
// Assert
var csharp = context.CodeWriter.GenerateCode();
Assert.Equal(
-@"#line 1 ""test.cshtml""
+@"
+#nullable restore
+#line 1 ""test.cshtml""
#line default
#line hidden
+#nullable disable
",
csharp,
ignoreLineEndingDifferences: true);
@@ -292,11 +304,14 @@ public void WriteCSharpCode_WritesLinePragma_WithSource()
// Assert
var csharp = context.CodeWriter.GenerateCode();
Assert.Equal(
-@"#line 1 ""test.cshtml""
+@"
+#nullable restore
+#line 1 ""test.cshtml""
if (true) { }
#line default
#line hidden
+#nullable disable
",
csharp,
ignoreLineEndingDifferences: true);
@@ -326,11 +341,14 @@ public void WriteCSharpCode_WritesPadding_WithSource()
// Assert
var csharp = context.CodeWriter.GenerateCode();
Assert.Equal(
-@"#line 1 ""test.cshtml""
+@"
+#nullable restore
+#line 1 ""test.cshtml""
if (true) { }
#line default
#line hidden
+#nullable disable
",
csharp,
ignoreLineEndingDifferences: true);
@@ -355,11 +373,14 @@ public void WriteCSharpExpressionAttributeValue_RendersCorrectly()
// Assert
var csharp = context.CodeWriter.GenerateCode();
Assert.Equal(
-@"#line 1 ""test.cshtml""
+@"
+#nullable restore
+#line 1 ""test.cshtml""
__o = false;
#line default
#line hidden
+#nullable disable
",
csharp,
ignoreLineEndingDifferences: true);
@@ -383,11 +404,14 @@ public void WriteCSharpCodeAttributeValue_RendersCorrectly()
// Assert
var csharp = context.CodeWriter.GenerateCode();
Assert.Equal(
-@"#line 1 ""test.cshtml""
+@"
+#nullable restore
+#line 1 ""test.cshtml""
if(@true){ }
#line default
#line hidden
+#nullable disable
",
csharp,
ignoreLineEndingDifferences: true);
@@ -411,17 +435,22 @@ public void WriteCSharpCodeAttributeValue_WithExpression_RendersCorrectly()
// Assert
var csharp = context.CodeWriter.GenerateCode();
Assert.Equal(
-@"#line 1 ""test.cshtml""
+@"
+#nullable restore
+#line 1 ""test.cshtml""
if(@true){
#line default
#line hidden
+#nullable disable
Render Children
+#nullable restore
#line 1 ""test.cshtml""
}
#line default
#line hidden
+#nullable disable
",
csharp,
ignoreLineEndingDifferences: true);
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/LiteralRuntimeNodeWriterTest.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/LiteralRuntimeNodeWriterTest.cs
index be55c8e1a89..36267fb658a 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/LiteralRuntimeNodeWriterTest.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/LiteralRuntimeNodeWriterTest.cs
@@ -32,11 +32,14 @@ public void WriteCSharpExpression_UsesWriteLiteral_WritesLinePragma_WithSource()
// Assert
var csharp = context.CodeWriter.GenerateCode();
Assert.Equal(
-@"#line 1 ""test.cshtml""
+@"
+#nullable restore
+#line 1 ""test.cshtml""
WriteLiteral(i++);
#line default
#line hidden
+#nullable disable
",
csharp,
ignoreLineEndingDifferences: true);
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/RuntimeNodeWriterTest.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/RuntimeNodeWriterTest.cs
index ee188581c94..666bdb649bc 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/RuntimeNodeWriterTest.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/RuntimeNodeWriterTest.cs
@@ -57,11 +57,14 @@ public void WriteUsingDirective_WithSource_WritesContentWithLinePragma()
// Assert
var csharp = context.CodeWriter.GenerateCode();
Assert.Equal(
-@"#line 1 ""test.cshtml""
+@"
+#nullable restore
+#line 1 ""test.cshtml""
using System;
#line default
#line hidden
+#nullable disable
",
csharp,
ignoreLineEndingDifferences: true);
@@ -126,11 +129,14 @@ public void WriteCSharpExpression_WritesLinePragma_WithSource()
// Assert
var csharp = context.CodeWriter.GenerateCode();
Assert.Equal(
-@"#line 1 ""test.cshtml""
+@"
+#nullable restore
+#line 1 ""test.cshtml""
Test(i++);
#line default
#line hidden
+#nullable disable
",
csharp,
ignoreLineEndingDifferences: true);
@@ -208,12 +214,15 @@ public void WriteCSharpExpression_WithSource_WritesPadding()
// Assert
var csharp = context.CodeWriter.GenerateCode();
Assert.Equal(
-@"#line 1 ""test.cshtml""
+@"
+#nullable restore
+#line 1 ""test.cshtml""
Test(iRender Children
++);
#line default
#line hidden
+#nullable disable
",
csharp,
ignoreLineEndingDifferences: true);
@@ -296,11 +305,14 @@ public void WriteCSharpCode_WritesLinePragma_WithSource()
// Assert
var csharp = context.CodeWriter.GenerateCode();
Assert.Equal(
-@"#line 1 ""test.cshtml""
+@"
+#nullable restore
+#line 1 ""test.cshtml""
if (true) { }
#line default
#line hidden
+#nullable disable
",
csharp,
ignoreLineEndingDifferences: true);
@@ -331,11 +343,14 @@ public void WriteCSharpCode_WritesPadding_WithSource()
// Assert
var csharp = context.CodeWriter.GenerateCode();
Assert.Equal(
-@"#line 1 ""test.cshtml""
+@"
+#nullable restore
+#line 1 ""test.cshtml""
if (true) { }
#line default
#line hidden
+#nullable disable
",
csharp,
ignoreLineEndingDifferences: true);
@@ -553,11 +568,14 @@ public void WriteCSharpExpressionAttributeValue_RendersCorrectly()
// Assert
var csharp = context.CodeWriter.GenerateCode();
Assert.Equal(
-@"#line 1 ""test.cshtml""
+@"
+#nullable restore
+#line 1 ""test.cshtml""
WriteAttributeValue("" "", 27, false, 28, 6, false);
#line default
#line hidden
+#nullable disable
",
csharp,
ignoreLineEndingDifferences: true);
@@ -585,11 +603,13 @@ public void WriteCSharpCodeAttributeValue_BuffersResult()
Assert.Equal(
@"WriteAttributeValue("" "", 27, new Microsoft.AspNetCore.Mvc.Razor.HelperResult(async(__razor_attribute_value_writer) => {
PushWriter(__razor_attribute_value_writer);
+#nullable restore
#line 1 ""test.cshtml""
if(@true){ }
#line default
#line hidden
+#nullable disable
PopWriter();
}
), 28, 13, false);
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/TagHelperHtmlAttributeRuntimeNodeWriterTest.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/TagHelperHtmlAttributeRuntimeNodeWriterTest.cs
index 103789d1dfa..dc942970d92 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/TagHelperHtmlAttributeRuntimeNodeWriterTest.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/CodeGeneration/TagHelperHtmlAttributeRuntimeNodeWriterTest.cs
@@ -54,11 +54,14 @@ public void WriteCSharpExpressionAttributeValue_RendersCorrectly()
// Assert
var csharp = context.CodeWriter.GenerateCode();
Assert.Equal(
-@"#line 1 ""test.cshtml""
+@"
+#nullable restore
+#line 1 ""test.cshtml""
AddHtmlAttributeValue("" "", 27, false, 28, 6, false);
#line default
#line hidden
+#nullable disable
",
csharp,
ignoreLineEndingDifferences: true);
@@ -85,11 +88,13 @@ public void WriteCSharpCodeAttributeValue_BuffersResult()
Assert.Equal(
@"AddHtmlAttributeValue("" "", 27, new Microsoft.AspNetCore.Mvc.Razor.HelperResult(async(__razor_attribute_value_writer) => {
PushWriter(__razor_attribute_value_writer);
+#nullable restore
#line 1 ""test.cshtml""
if(@true){ }
#line default
#line hidden
+#nullable disable
PopWriter();
}
), 28, 13, false);
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/DefaultTagHelperTargetExtensionTest.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/DefaultTagHelperTargetExtensionTest.cs
index 60cd79f97b3..f8d21edfca9 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/DefaultTagHelperTargetExtensionTest.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/DefaultTagHelperTargetExtensionTest.cs
@@ -546,11 +546,14 @@ public void WriteTagHelperProperty_DesignTime_NonStringProperty_RendersCorrectly
// Assert
var csharp = context.CodeWriter.GenerateCode();
Assert.Equal(
-@"#line 3 ""test.cshtml""
+@"
+#nullable restore
+#line 3 ""test.cshtml""
__InputTagHelper.IntProp = 32;
#line default
#line hidden
+#nullable disable
",
csharp,
ignoreLineEndingDifferences: true);
@@ -675,11 +678,14 @@ public void WriteTagHelperProperty_DesignTime_NonStringIndexer_RendersCorrectly(
// Assert
var csharp = context.CodeWriter.GenerateCode();
Assert.Equal(
-@"#line 3 ""test.cshtml""
+@"
+#nullable restore
+#line 3 ""test.cshtml""
__InputTagHelper.IntIndexer[""bound""] = 32;
#line default
#line hidden
+#nullable disable
",
csharp,
ignoreLineEndingDifferences: true);
@@ -806,11 +812,14 @@ public void WriteTagHelperProperty_Runtime_NonStringProperty_RendersCorrectly()
// Assert
var csharp = context.CodeWriter.GenerateCode();
Assert.Equal(
-@"#line 3 ""test.cshtml""
+@"
+#nullable restore
+#line 3 ""test.cshtml""
__InputTagHelper.IntProp = 32;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute(""bound"", __InputTagHelper.IntProp, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
",
csharp,
@@ -941,11 +950,13 @@ public void WriteTagHelperProperty_Runtime_NonStringIndexer_RendersCorrectly()
{
throw new InvalidOperationException(InvalidTagHelperIndexerAssignment(""foo-bound"", ""InputTagHelper"", ""IntIndexer""));
}
+#nullable restore
#line 3 ""test.cshtml""
__InputTagHelper.IntIndexer[""bound""] = 32;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute(""foo-bound"", __InputTagHelper.IntIndexer[""bound""], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
",
csharp,
@@ -1006,11 +1017,14 @@ public void WriteTagHelperProperty_Runtime_NonStringIndexer_MultipleValues()
// Assert
var csharp = context.CodeWriter.GenerateCode();
Assert.Equal(
-@"#line 3 ""test.cshtml""
+@"
+#nullable restore
+#line 3 ""test.cshtml""
__InputTagHelper.IntIndexer[""bound""] = 32;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute(""foo-bound"", __InputTagHelper.IntIndexer[""bound""], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
",
csharp,
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/DesignTimeDirectiveTargetExtensionTest.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/DesignTimeDirectiveTargetExtensionTest.cs
index d8f65c3d7bb..9dd60c6a4d0 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/DesignTimeDirectiveTargetExtensionTest.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/Extensions/DesignTimeDirectiveTargetExtensionTest.cs
@@ -58,11 +58,13 @@ public void WriteDesignTimeDirective_WithTypeToken_WritesLambda()
@"#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 ""test.cshtml""
System.String __typeHelper = default(System.String);
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -97,11 +99,13 @@ public void WriteDesignTimeDirective_WithNamespaceToken_WritesLambda()
@"#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 ""test.cshtml""
global::System.Object __typeHelper = nameof(System.Collections.Generic);
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -136,11 +140,13 @@ public void WriteDesignTimeDirective_WithMemberToken_WritesLambda()
@"#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 ""test.cshtml""
global::System.Object Foo = null;
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -182,19 +188,23 @@ public void WriteDesignTimeDirective_WithStringToken_WritesLambda()
@"#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 ""test.cshtml""
global::System.Object __typeHelper = ""Value"";
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 1 ""test.cshtml""
global::System.Object __typeHelper = ""Value"";
#line default
#line hidden
+#nullable disable
}
))();
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/ComponentDeclarationIntegrationTest.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/ComponentDeclarationIntegrationTest.cs
index bcf27ee8ef8..0ac00af80f4 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/ComponentDeclarationIntegrationTest.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/IntegrationTests/ComponentDeclarationIntegrationTest.cs
@@ -127,12 +127,14 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTr
{
}
#pragma warning restore 1998
+#nullable restore
#line 1 ""x:\dir\subdir\Test\TestComponent.cshtml""
public StringBuilder Builder { get; set; }
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.codegen.cs
index eb46570f7b1..9f3704669fa 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.codegen.cs
@@ -8,11 +8,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AddTagHelp
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.mappings.txt
index 9b2515042fc..782c5c9d623 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective_DesignTime.mappings.txt
@@ -1,5 +1,5 @@
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AddTagHelperDirective.cshtml)
|"*, TestAssembly"|
-Generated Location: (524:11,37 [17] )
+Generated Location: (543:12,37 [17] )
|"*, TestAssembly"|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_DesignTime.codegen.cs
index dd6d3c27d09..1a6736914bd 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_DesignTime.codegen.cs
@@ -12,11 +12,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_AttributeT
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -32,21 +34,25 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__TestNamespace_InputTagHelper2 = CreateTagHelper();
__TestNamespace_InputTagHelper.Type = "checkbox";
__TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type;
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = true;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
__TestNamespace_InputTagHelper2 = CreateTagHelper();
__TestNamespace_CatchAllTagHelper = CreateTagHelper();
__TestNamespace_InputTagHelper.Type = "checkbox";
__TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type;
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = true;
#line default
#line hidden
+#nullable disable
__TestNamespace_PTagHelper = CreateTagHelper();
}
#pragma warning restore 1998
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_DesignTime.mappings.txt
index 3ddf69115e0..14f76856657 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_DesignTime.mappings.txt
@@ -1,15 +1,15 @@
Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml)
|*, TestAssembly|
-Generated Location: (883:15,38 [15] )
+Generated Location: (902:16,38 [15] )
|*, TestAssembly|
Source Location: (187:5,36 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml)
|true|
-Generated Location: (1862:35,42 [4] )
+Generated Location: (1919:38,42 [4] )
|true|
Source Location: (233:6,36 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml)
|true|
-Generated Location: (2515:45,42 [4] )
+Generated Location: (2610:50,42 [4] )
|true|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_Runtime.codegen.cs
index 99699725018..e1a1e912044 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers_Runtime.codegen.cs
@@ -65,11 +65,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
__TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_1.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = true;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -92,11 +94,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
__TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_1.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/AttributeTargetingTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = true;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.codegen.cs
index 72db8cb3802..850e7d6fae8 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.codegen.cs
@@ -15,88 +15,121 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
__o = await Foo();
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
__o = await Foo();
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
await Foo();
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
__o = await Foo();
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
__o = await;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
__o = await Foo(1, 2);
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 20 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
__o = await Foo.Bar(1, 2);
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 21 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
__o = await Foo("bob", true);
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
await Foo(something, hello: "world");
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 23 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
await Foo.Bar(1, 2)
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
__o = await Foo(boolValue: false);
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 25 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
__o = await ("wrrronggg");
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
public async Task Foo()
@@ -106,6 +139,7 @@ public async Task Foo()
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.mappings.txt
index f16bc10af39..8fd6a5044a4 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_DesignTime.mappings.txt
@@ -1,81 +1,81 @@
Source Location: (192:9,39 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml)
|await Foo()|
-Generated Location: (749:18,39 [11] )
+Generated Location: (768:19,39 [11] )
|await Foo()|
Source Location: (247:10,38 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml)
|await Foo()|
-Generated Location: (914:23,38 [11] )
+Generated Location: (971:26,38 [11] )
|await Foo()|
Source Location: (304:11,39 [14] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml)
| await Foo(); |
-Generated Location: (1080:28,39 [14] )
+Generated Location: (1175:33,39 [14] )
| await Foo(); |
Source Location: (371:12,46 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml)
| |
-Generated Location: (1255:33,46 [1] )
+Generated Location: (1388:40,46 [1] )
| |
Source Location: (376:12,51 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml)
|await Foo()|
-Generated Location: (1422:38,51 [11] )
+Generated Location: (1593:47,51 [11] )
|await Foo()|
Source Location: (391:12,66 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml)
| |
-Generated Location: (1615:43,66 [1] )
+Generated Location: (1824:54,66 [1] )
| |
Source Location: (448:13,49 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml)
|await|
-Generated Location: (1780:48,49 [5] )
+Generated Location: (2027:61,49 [5] )
|await|
Source Location: (578:18,42 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml)
|await Foo(1, 2)|
-Generated Location: (1943:53,42 [15] )
+Generated Location: (2228:68,42 [15] )
|await Foo(1, 2)|
Source Location: (650:19,51 [19] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml)
|await Foo.Bar(1, 2)|
-Generated Location: (2125:58,51 [19] )
+Generated Location: (2448:75,51 [19] )
|await Foo.Bar(1, 2)|
Source Location: (716:20,41 [22] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml)
|await Foo("bob", true)|
-Generated Location: (2301:63,41 [22] )
+Generated Location: (2662:82,41 [22] )
|await Foo("bob", true)|
Source Location: (787:21,42 [39] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml)
| await Foo(something, hello: "world"); |
-Generated Location: (2481:68,42 [39] )
+Generated Location: (2880:89,42 [39] )
| await Foo(something, hello: "world"); |
Source Location: (884:22,51 [21] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml)
| await Foo.Bar(1, 2) |
-Generated Location: (2686:73,51 [21] )
+Generated Location: (3123:96,51 [21] )
| await Foo.Bar(1, 2) |
Source Location: (961:23,49 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml)
| |
-Generated Location: (2871:78,49 [1] )
+Generated Location: (3346:103,49 [1] )
| |
Source Location: (966:23,54 [27] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml)
|await Foo(boolValue: false)|
-Generated Location: (3041:83,54 [27] )
+Generated Location: (3554:110,54 [27] )
|await Foo(boolValue: false)|
Source Location: (997:23,85 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml)
| |
-Generated Location: (3269:88,85 [1] )
+Generated Location: (3820:117,85 [1] )
| |
Source Location: (1057:24,52 [19] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml)
|await ("wrrronggg")|
-Generated Location: (3437:93,52 [19] )
+Generated Location: (4026:124,52 [19] )
|await ("wrrronggg")|
Source Location: (12:0,12 [76] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml)
@@ -85,7 +85,7 @@ Source Location: (12:0,12 [76] TestFiles/IntegrationTests/CodeGenerationIntegrat
return "Bar";
}
|
-Generated Location: (3632:100,12 [76] )
+Generated Location: (4259:133,12 [76] )
|
public async Task Foo()
{
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_Runtime.codegen.cs
index e7c1ed3c550..7eb1804dc5d 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await_Runtime.codegen.cs
@@ -12,84 +12,109 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Await_Runt
public async System.Threading.Tasks.Task ExecuteAsync()
{
WriteLiteral("\r\n\r\n Basic Asynchronous Expression Test \r\n Basic Asynchronous Expression: ");
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
Write(await Foo());
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n Basic Asynchronous Template: ");
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
Write(await Foo());
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n Basic Asynchronous Statement: ");
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
await Foo();
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n Basic Asynchronous Statement Nested: ");
WriteLiteral(" ");
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
Write(await Foo());
#line default
#line hidden
+#nullable disable
WriteLiteral(" ");
WriteLiteral("
\r\n Basic Incomplete Asynchronous Statement: ");
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
Write(await);
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n \r\n\r\n\r\n Advanced Asynchronous Expression Test \r\n Advanced Asynchronous Expression: ");
+#nullable restore
#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
Write(await Foo(1, 2));
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n Advanced Asynchronous Expression Extended: ");
+#nullable restore
#line 20 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
Write(await Foo.Bar(1, 2));
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n Advanced Asynchronous Template: ");
+#nullable restore
#line 21 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
Write(await Foo("bob", true));
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n Advanced Asynchronous Statement: ");
+#nullable restore
#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
await Foo(something, hello: "world");
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n Advanced Asynchronous Statement Extended: ");
+#nullable restore
#line 23 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
await Foo.Bar(1, 2)
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n Advanced Asynchronous Statement Nested: ");
WriteLiteral(" ");
+#nullable restore
#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
Write(await Foo(boolValue: false));
#line default
#line hidden
+#nullable disable
WriteLiteral(" ");
WriteLiteral("
\r\n Advanced Incomplete Asynchronous Statement: ");
+#nullable restore
#line 25 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
Write(await ("wrrronggg"));
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n ");
}
#pragma warning restore 1998
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Await.cshtml"
public async Task Foo()
@@ -99,6 +124,7 @@ public async Task Foo()
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.codegen.cs
index a53cee20527..a3f054b7323 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.codegen.cs
@@ -11,11 +11,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_BasicTagHe
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -29,22 +31,26 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__TestNamespace_PTagHelper = CreateTagHelper();
__TestNamespace_InputTagHelper = CreateTagHelper();
__TestNamespace_InputTagHelper2 = CreateTagHelper();
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml"
__o = ViewBag.DefaultInterval;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper.Type = "text";
__TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type;
__TestNamespace_InputTagHelper = CreateTagHelper();
__TestNamespace_InputTagHelper2 = CreateTagHelper();
__TestNamespace_InputTagHelper.Type = "checkbox";
__TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type;
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = true;
#line default
#line hidden
+#nullable disable
__TestNamespace_PTagHelper = CreateTagHelper();
}
#pragma warning restore 1998
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.mappings.txt
index 3af7b84cfcf..f6395975071 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.mappings.txt
@@ -1,15 +1,15 @@
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml)
|"*, TestAssembly"|
-Generated Location: (764:14,37 [17] )
+Generated Location: (783:15,37 [17] )
|"*, TestAssembly"|
Source Location: (220:5,38 [23] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml)
|ViewBag.DefaultInterval|
-Generated Location: (1561:32,38 [23] )
+Generated Location: (1618:35,38 [23] )
|ViewBag.DefaultInterval|
Source Location: (303:6,40 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml)
|true|
-Generated Location: (2259:43,42 [4] )
+Generated Location: (2354:48,42 [4] )
|true|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_DesignTime.codegen.cs
index 632c5c6da9a..85b8e6f1d98 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_DesignTime.codegen.cs
@@ -11,19 +11,23 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_BasicTagHe
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed.cshtml"
global::System.Object __typeHelper = "THS";
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -38,11 +42,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__TestNamespace_InputTagHelper2 = CreateTagHelper();
__TestNamespace_InputTagHelper.Type = "checkbox";
__TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type;
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed.cshtml"
__TestNamespace_InputTagHelper2.Checked = true;
#line default
#line hidden
+#nullable disable
__TestNamespace_PTagHelper = CreateTagHelper();
}
#pragma warning restore 1998
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_DesignTime.mappings.txt
index e8294fb2f18..3758937b4ce 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_DesignTime.mappings.txt
@@ -1,15 +1,15 @@
Source Location: (17:0,17 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed.cshtml)
|"THS"|
-Generated Location: (782:14,37 [5] )
+Generated Location: (801:15,37 [5] )
|"THS"|
Source Location: (38:1,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed.cshtml)
|"*, TestAssembly"|
-Generated Location: (1018:22,37 [17] )
+Generated Location: (1075:25,37 [17] )
|"*, TestAssembly"|
Source Location: (226:7,43 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed.cshtml)
|true|
-Generated Location: (1886:41,43 [4] )
+Generated Location: (1981:46,43 [4] )
|true|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_Runtime.codegen.cs
index af5da65ec3c..4983c36dd66 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed_Runtime.codegen.cs
@@ -48,11 +48,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
__TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_0.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Prefixed.cshtml"
__TestNamespace_InputTagHelper2.Checked = true;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper_Runtime.codegen.cs
index c60b56f3df2..66850f8043c 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper_Runtime.codegen.cs
@@ -81,11 +81,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
__TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_1.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_RemoveTagHelper.cshtml"
__TestNamespace_InputTagHelper2.Checked = true;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Runtime.codegen.cs
index ed7e3a7cbc6..593460da0eb 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_Runtime.codegen.cs
@@ -63,11 +63,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2);
BeginWriteTagHelperAttribute();
WriteLiteral("2000 + ");
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml"
Write(ViewBag.DefaultInterval);
#line default
#line hidden
+#nullable disable
WriteLiteral(" + 1");
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
__tagHelperExecutionContext.AddHtmlAttribute("data-interval", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
@@ -94,11 +96,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
__TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_2.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = true;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.codegen.cs
index 94c35ebdef5..e4fa8fb5e6d 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.codegen.cs
@@ -15,23 +15,30 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
int i = 1;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
while(i <= 10) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
__o = i;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
i += 1;
@@ -39,18 +46,24 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
if(i == 11) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
}
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
switch(i) {
case 11:
@@ -58,6 +71,8 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
break;
@@ -66,6 +81,8 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
break;
@@ -73,29 +90,39 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 23 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
for(int j = 1; j <= 10; j += 2) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
__o = j;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
}
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 27 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
try {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
} catch(Exception ex) {
@@ -103,34 +130,45 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
__o = ex.Message;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
}
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 33 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
__o = i;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 35 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
lock(new object()) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 36 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
}
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.mappings.txt
index abaf089f36b..111f6a27e61 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_DesignTime.mappings.txt
@@ -2,7 +2,7 @@ Source Location: (2:0,2 [18] TestFiles/IntegrationTests/CodeGenerationIntegratio
|
int i = 1;
|
-Generated Location: (713:18,2 [18] )
+Generated Location: (732:19,2 [18] )
|
int i = 1;
|
@@ -10,20 +10,20 @@ Generated Location: (713:18,2 [18] )
Source Location: (26:4,1 [22] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml)
|while(i <= 10) {
|
-Generated Location: (845:24,1 [22] )
+Generated Location: (902:27,1 [22] )
|while(i <= 10) {
|
Source Location: (69:5,25 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml)
|i|
-Generated Location: (1007:30,25 [1] )
+Generated Location: (1102:35,25 [1] )
|i|
Source Location: (75:5,31 [16] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml)
|
i += 1;
}|
-Generated Location: (1155:35,31 [16] )
+Generated Location: (1288:42,31 [16] )
|
i += 1;
}|
@@ -31,14 +31,14 @@ Generated Location: (1155:35,31 [16] )
Source Location: (96:9,1 [19] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml)
|if(i == 11) {
|
-Generated Location: (1288:42,1 [19] )
+Generated Location: (1459:51,1 [19] )
|if(i == 11) {
|
Source Location: (140:10,29 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml)
|
}|
-Generated Location: (1452:48,29 [3] )
+Generated Location: (1661:59,29 [3] )
|
}|
@@ -46,7 +46,7 @@ Source Location: (148:13,1 [35] TestFiles/IntegrationTests/CodeGenerationIntegra
|switch(i) {
case 11:
|
-Generated Location: (1572:54,1 [35] )
+Generated Location: (1819:67,1 [35] )
|switch(i) {
case 11:
|
@@ -56,7 +56,7 @@ Source Location: (219:15,44 [40] TestFiles/IntegrationTests/CodeGenerationIntegr
break;
default:
|
-Generated Location: (1767:61,44 [40] )
+Generated Location: (2052:76,44 [40] )
|
break;
default:
@@ -66,7 +66,7 @@ Source Location: (288:18,37 [19] TestFiles/IntegrationTests/CodeGenerationIntegr
|
break;
}|
-Generated Location: (1960:69,37 [19] )
+Generated Location: (2283:86,37 [19] )
|
break;
}|
@@ -74,26 +74,26 @@ Generated Location: (1960:69,37 [19] )
Source Location: (312:22,1 [39] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml)
|for(int j = 1; j <= 10; j += 2) {
|
-Generated Location: (2096:76,1 [39] )
+Generated Location: (2457:95,1 [39] )
|for(int j = 1; j <= 10; j += 2) {
|
Source Location: (378:23,31 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml)
|j|
-Generated Location: (2282:82,31 [1] )
+Generated Location: (2681:103,31 [1] )
|j|
Source Location: (384:23,37 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml)
|
}|
-Generated Location: (2437:87,37 [3] )
+Generated Location: (2874:110,37 [3] )
|
}|
Source Location: (392:26,1 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml)
|try {
|
-Generated Location: (2557:93,1 [11] )
+Generated Location: (3032:118,1 [11] )
|try {
|
@@ -101,39 +101,39 @@ Source Location: (438:27,39 [31] TestFiles/IntegrationTests/CodeGenerationIntegr
|
} catch(Exception ex) {
|
-Generated Location: (2723:99,39 [31] )
+Generated Location: (3236:126,39 [31] )
|
} catch(Exception ex) {
|
Source Location: (500:29,35 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml)
|ex.Message|
-Generated Location: (2905:106,35 [10] )
+Generated Location: (3456:135,35 [10] )
|ex.Message|
Source Location: (515:29,50 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml)
|
}|
-Generated Location: (3082:111,50 [3] )
+Generated Location: (3671:142,50 [3] )
|
}|
Source Location: (535:32,13 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml)
|i|
-Generated Location: (3214:117,13 [1] )
+Generated Location: (3841:150,13 [1] )
|i|
Source Location: (545:34,1 [26] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml)
|lock(new object()) {
|
-Generated Location: (3333:122,1 [26] )
+Generated Location: (3998:157,1 [26] )
|lock(new object()) {
|
Source Location: (618:35,51 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml)
|
}|
-Generated Location: (3526:128,51 [3] )
+Generated Location: (4229:165,51 [3] )
|
}|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_Runtime.codegen.cs
index b139b936e70..ce6adeb982b 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_Runtime.codegen.cs
@@ -11,124 +11,162 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Blocks_Run
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
int i = 1;
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
while(i <= 10) {
#line default
#line hidden
+#nullable disable
WriteLiteral(" Hello from C#, #");
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
Write(i);
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n");
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
i += 1;
}
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
if(i == 11) {
#line default
#line hidden
+#nullable disable
WriteLiteral(" We wrote 10 lines!
\r\n");
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
}
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
switch(i) {
case 11:
#line default
#line hidden
+#nullable disable
WriteLiteral(" No really, we wrote 10 lines!
\r\n");
+#nullable restore
#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
break;
default:
#line default
#line hidden
+#nullable disable
WriteLiteral(" Actually, we didn\'t...
\r\n");
+#nullable restore
#line 20 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
break;
}
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 23 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
for(int j = 1; j <= 10; j += 2) {
#line default
#line hidden
+#nullable disable
WriteLiteral(" Hello again from C#, #");
+#nullable restore
#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
Write(j);
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n");
+#nullable restore
#line 25 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
}
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 27 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
try {
#line default
#line hidden
+#nullable disable
WriteLiteral(" That time, we wrote 5 lines!
\r\n");
+#nullable restore
#line 29 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
} catch(Exception ex) {
#line default
#line hidden
+#nullable disable
WriteLiteral(" Oh no! An error occurred: ");
+#nullable restore
#line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
Write(ex.Message);
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n");
+#nullable restore
#line 31 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
}
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\ni is now ");
+#nullable restore
#line 33 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
Write(i);
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n\r\n");
+#nullable restore
#line 35 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
lock(new object()) {
#line default
#line hidden
+#nullable disable
WriteLiteral(" This block is locked, for your security!
\r\n");
+#nullable restore
#line 37 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml"
}
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.codegen.cs
index 84b5e22683f..d72f3f599f8 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.codegen.cs
@@ -15,6 +15,7 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml"
var nameLookup = new Dictionary()
@@ -26,6 +27,8 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml"
@@ -37,6 +40,8 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml"
if (nameLookup.TryGetValue("John Doe", out var entry))
{
@@ -48,16 +53,22 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml"
__o = 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml"
__o = (First: "John", Last: "Doe").First;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 31 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml"
switch (entry.Extra)
{
@@ -74,6 +85,7 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.mappings.txt
index 821eec5170a..ad00d2d80d8 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_DesignTime.mappings.txt
@@ -6,7 +6,7 @@ Source Location: (14:1,6 [187] TestFiles/IntegrationTests/CodeGenerationIntegrat
};
|
-Generated Location: (719:18,6 [187] )
+Generated Location: (738:19,6 [187] )
|
var nameLookup = new Dictionary()
{
@@ -23,7 +23,7 @@ Source Location: (246:7,53 [253] TestFiles/IntegrationTests/CodeGenerationIntegr
double AvogadroConstant = 6.022_140_857_747_474e23;
decimal GoldenRatio = 1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M;
|
-Generated Location: (1075:29,53 [253] )
+Generated Location: (1132:32,53 [253] )
|
int Sixteen = 0b0001_0000;
@@ -40,7 +40,7 @@ Source Location: (509:15,5 [159] TestFiles/IntegrationTests/CodeGenerationIntegr
// Do Something
}
}|
-Generated Location: (1450:40,5 [159] )
+Generated Location: (1545:45,5 [159] )
|if (nameLookup.TryGetValue("John Doe", out var entry))
{
if (entry.Extra is bool alive)
@@ -51,12 +51,12 @@ Generated Location: (1450:40,5 [159] )
Source Location: (718:23,39 [62] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml)
|1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M|
-Generated Location: (1765:51,39 [62] )
+Generated Location: (1898:58,39 [62] )
|1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M|
Source Location: (816:27,10 [34] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml)
|(First: "John", Last: "Doe").First|
-Generated Location: (1955:56,10 [34] )
+Generated Location: (2126:65,10 [34] )
|(First: "John", Last: "Doe").First|
Source Location: (891:30,5 [291] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml)
@@ -72,7 +72,7 @@ Source Location: (891:30,5 [291] TestFiles/IntegrationTests/CodeGenerationIntegr
// Do even more of something
break;
}|
-Generated Location: (2112:61,5 [291] )
+Generated Location: (2321:72,5 [291] )
|switch (entry.Extra)
{
case int age:
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_Runtime.codegen.cs
index 535e7351cef..cf2fd1a3bd4 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7_Runtime.codegen.cs
@@ -12,6 +12,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CSharp7_Ru
public async System.Threading.Tasks.Task ExecuteAsync()
{
WriteLiteral("\r\n");
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml"
var nameLookup = new Dictionary()
@@ -23,6 +24,8 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml"
@@ -34,7 +37,9 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml"
if (nameLookup.TryGetValue("John Doe", out var entry))
{
@@ -46,20 +51,26 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
WriteLiteral(" \r\n Here\'s a very unique number: ");
+#nullable restore
#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml"
Write(1.618_033_988_749_894_848_204_586_834_365_638_117_720_309_179M);
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n
\r\n\r\n \r\n ");
+#nullable restore
#line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml"
Write((First: "John", Last: "Doe").First);
#line default
#line hidden
+#nullable disable
WriteLiteral(" ");
WriteLiteral("\r\n
\r\n\r\n");
+#nullable restore
#line 31 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp7.cshtml"
switch (entry.Extra)
{
@@ -76,6 +87,7 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
WriteLiteral("");
}
#pragma warning restore 1998
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.codegen.cs
index c5dc0832974..fe2814367bc 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.codegen.cs
@@ -3,11 +3,13 @@
namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles
{
#line hidden
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml"
using System.Collections.Generic;
#line default
#line hidden
+#nullable disable
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CSharp8_DesignTime
{
#pragma warning disable 219
@@ -20,6 +22,7 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml"
IAsyncEnumerable GetAsyncEnumerable()
@@ -34,6 +37,8 @@ IAsyncEnumerable GetAsyncEnumerable()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml"
await foreach (var val in GetAsyncEnumerable())
{
@@ -42,6 +47,7 @@ IAsyncEnumerable GetAsyncEnumerable()
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.mappings.txt
index ca8de3c04b8..194ac9b2c8b 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_DesignTime.mappings.txt
@@ -1,6 +1,6 @@
Source Location: (1:0,1 [32] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml)
|using System.Collections.Generic|
-Generated Location: (230:6,0 [32] )
+Generated Location: (249:7,0 [32] )
|using System.Collections.Generic|
Source Location: (39:2,2 [158] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml)
@@ -15,7 +15,7 @@ Source Location: (39:2,2 [158] TestFiles/IntegrationTests/CodeGenerationIntegrat
}
|
-Generated Location: (864:23,2 [158] )
+Generated Location: (921:26,2 [158] )
|
IAsyncEnumerable GetAsyncEnumerable()
{
@@ -33,7 +33,7 @@ Source Location: (203:14,1 [55] TestFiles/IntegrationTests/CodeGenerationIntegra
{
}|
-Generated Location: (1138:37,1 [55] )
+Generated Location: (1233:42,1 [55] )
|await foreach (var val in GetAsyncEnumerable())
{
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_Runtime.codegen.cs
index a51afaa7588..63ed6b6b971 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8_Runtime.codegen.cs
@@ -5,11 +5,13 @@
namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles
{
#line hidden
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml"
using System.Collections.Generic;
#line default
#line hidden
+#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"c864b6d1b325fe7fa9cbc46b476adaf97ea01783", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml")]
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CSharp8_Runtime
{
@@ -17,6 +19,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CSharp8_Ru
public async System.Threading.Tasks.Task ExecuteAsync()
{
WriteLiteral("\r\n");
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml"
IAsyncEnumerable GetAsyncEnumerable()
@@ -31,7 +34,9 @@ IAsyncEnumerable GetAsyncEnumerable()
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CSharp8.cshtml"
await foreach (var val in GetAsyncEnumerable())
{
@@ -40,6 +45,7 @@ IAsyncEnumerable GetAsyncEnumerable()
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.codegen.cs
index b608d967065..3c1f46fb0e2 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.codegen.cs
@@ -15,11 +15,13 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF.cshtml"
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.mappings.txt
index 35a86fcf829..8500fe260a7 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.mappings.txt
@@ -1,5 +1,5 @@
Source Location: (2:0,2 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF.cshtml)
||
-Generated Location: (729:18,2 [0] )
+Generated Location: (748:19,2 [0] )
||
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.codegen.cs
index cf0042aff36..b887486ba18 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.codegen.cs
@@ -15,28 +15,36 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml"
var a = 1;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml"
var b = 1;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml"
__o = a+b;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml"
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.mappings.txt
index 3810200a529..37054161693 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.mappings.txt
@@ -1,26 +1,26 @@
Source Location: (2:0,2 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml)
|
var a = 1; |
-Generated Location: (749:18,2 [17] )
+Generated Location: (768:19,2 [17] )
|
var a = 1; |
Source Location: (35:1,31 [22] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml)
|
var b = 1; |
-Generated Location: (930:24,31 [22] )
+Generated Location: (987:27,31 [22] )
|
var b = 1; |
Source Location: (69:2,29 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml)
|a+b|
-Generated Location: (1123:30,38 [3] )
+Generated Location: (1218:35,38 [3] )
|a+b|
Source Location: (80:2,40 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml)
|
|
-Generated Location: (1309:35,49 [2] )
+Generated Location: (1442:42,49 [2] )
|
|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_Runtime.codegen.cs
index 0bd342205c2..59764e37723 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_Runtime.codegen.cs
@@ -11,25 +11,31 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockW
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml"
var a = 1;
#line default
#line hidden
+#nullable disable
WriteLiteral("foo");
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml"
var b = 1;
#line default
#line hidden
+#nullable disable
WriteLiteral("bar ");
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement.cshtml"
Write(a+b);
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.codegen.cs
index ad75abc7dfc..49483b617e2 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.codegen.cs
@@ -15,6 +15,7 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock.cshtml"
for(int i = 1; i <= 10; i++) {
@@ -23,6 +24,7 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.mappings.txt
index 8d4bb567094..6d4378fb88d 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.mappings.txt
@@ -4,7 +4,7 @@ Source Location: (2:0,2 [115] TestFiles/IntegrationTests/CodeGenerationIntegrati
Output.Write("Hello from C#, #" + i.ToString() + "
");
}
|
-Generated Location: (719:18,2 [115] )
+Generated Location: (738:19,2 [115] )
|
for(int i = 1; i <= 10; i++) {
Output.Write("Hello from C#, #" + i.ToString() + "
");
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_Runtime.codegen.cs
index ccc26703662..d3255c7b036 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_Runtime.codegen.cs
@@ -11,6 +11,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlock_
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock.cshtml"
for(int i = 1; i <= 10; i++) {
@@ -19,6 +20,7 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.codegen.cs
index ec6011df97b..c60c5aac812 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.codegen.cs
@@ -11,11 +11,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ComplexTag
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -26,6 +28,7 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
if (true)
{
@@ -35,12 +38,16 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
__TestNamespace_PTagHelper = CreateTagHelper();
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_PTagHelper.Age = @@(1+2);
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
if (false)
{
@@ -48,11 +55,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
__TestNamespace_InputTagHelper2 = CreateTagHelper();
__TestNamespace_InputTagHelper.Type = "text";
__TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type;
__TestNamespace_PTagHelper = CreateTagHelper();
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
}
@@ -62,162 +71,211 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
__TestNamespace_InputTagHelper2 = CreateTagHelper();
+#nullable restore
#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__o = checkbox;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper.Type = string.Empty;
__TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type;
+#nullable restore
#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = true;
#line default
#line hidden
+#nullable disable
__TestNamespace_PTagHelper = CreateTagHelper();
+#nullable restore
#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
__TestNamespace_InputTagHelper2 = CreateTagHelper();
+#nullable restore
#line 18 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__o = true ? "checkbox" : "anything";
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper.Type = string.Empty;
__TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type;
+#nullable restore
#line 18 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
__TestNamespace_InputTagHelper2 = CreateTagHelper();
+#nullable restore
#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
if(true) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
} else {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
}
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper.Type = string.Empty;
__TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type;
+#nullable restore
#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
}
#line default
#line hidden
+#nullable disable
__TestNamespace_PTagHelper = CreateTagHelper();
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__o = DateTime.Now;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 23 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
var @object = false;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
__TestNamespace_InputTagHelper2 = CreateTagHelper();
+#nullable restore
#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = (@object);
#line default
#line hidden
+#nullable disable
__TestNamespace_PTagHelper = CreateTagHelper();
+#nullable restore
#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_PTagHelper.Age = DateTimeOffset.Now.Year - 1970;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
__TestNamespace_InputTagHelper2 = CreateTagHelper();
+#nullable restore
#line 27 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = (DateTimeOffset.Now.Year > 2014);
#line default
#line hidden
+#nullable disable
__TestNamespace_PTagHelper = CreateTagHelper();
+#nullable restore
#line 26 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_PTagHelper.Age = -1970 + @DateTimeOffset.Now.Year;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
__TestNamespace_InputTagHelper2 = CreateTagHelper();
+#nullable restore
#line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = DateTimeOffset.Now.Year > 2014;
#line default
#line hidden
+#nullable disable
__TestNamespace_PTagHelper = CreateTagHelper();
+#nullable restore
#line 29 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_PTagHelper.Age = DateTimeOffset.Now.Year - 1970;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
__TestNamespace_InputTagHelper2 = CreateTagHelper();
+#nullable restore
#line 33 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = @( DateTimeOffset.Now.Year ) > 2014 ;
#line default
#line hidden
+#nullable disable
__TestNamespace_PTagHelper = CreateTagHelper();
+#nullable restore
#line 32 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_PTagHelper.Age = ("My age is this long.".Length);
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 35 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__o = someMethod(item => new Template(async(__razor_template_writer) => {
__TestNamespace_InputTagHelper = CreateTagHelper();
__TestNamespace_InputTagHelper2 = CreateTagHelper();
+#nullable restore
#line 35 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = checked;
#line default
#line hidden
+#nullable disable
__TestNamespace_PTagHelper = CreateTagHelper();
+#nullable restore
#line 35 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_PTagHelper.Age = 123;
#line default
#line hidden
+#nullable disable
}
));
#line default
#line hidden
+#nullable disable
__TestNamespace_PTagHelper = CreateTagHelper();
+#nullable restore
#line 36 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_PTagHelper.Age = ;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 37 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
}
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.mappings.txt
index 154b6b5cf1e..f3ec2cf8fc5 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.mappings.txt
@@ -1,6 +1,6 @@
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|"*, TestAssembly"|
-Generated Location: (768:14,37 [17] )
+Generated Location: (787:15,37 [17] )
|"*, TestAssembly"|
Source Location: (36:2,1 [52] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
@@ -9,7 +9,7 @@ Source Location: (36:2,1 [52] TestFiles/IntegrationTests/CodeGenerationIntegrati
var checkbox = "checkbox";
|
-Generated Location: (1227:29,1 [52] )
+Generated Location: (1284:32,1 [52] )
|if (true)
{
var checkbox = "checkbox";
@@ -18,39 +18,39 @@ Generated Location: (1227:29,1 [52] )
Source Location: (147:7,16 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|@|
-Generated Location: (1533:39,33 [1] )
+Generated Location: (1628:44,33 [1] )
|@|
Source Location: (149:7,18 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
||
-Generated Location: (1534:39,34 [0] )
+Generated Location: (1629:44,34 [0] )
||
Source Location: (149:7,18 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|@|
-Generated Location: (1534:39,34 [1] )
+Generated Location: (1629:44,34 [1] )
|@|
Source Location: (150:7,19 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|(|
-Generated Location: (1535:39,35 [1] )
+Generated Location: (1630:44,35 [1] )
|(|
Source Location: (151:7,20 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|1+2|
-Generated Location: (1536:39,36 [3] )
+Generated Location: (1631:44,36 [3] )
|1+2|
Source Location: (154:7,23 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|)|
-Generated Location: (1539:39,39 [1] )
+Generated Location: (1634:44,39 [1] )
|)|
Source Location: (273:10,13 [43] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|if (false)
{
|
-Generated Location: (1681:44,13 [43] )
+Generated Location: (1814:51,13 [43] )
|if (false)
{
|
@@ -61,7 +61,7 @@ Source Location: (399:12,99 [66] TestFiles/IntegrationTests/CodeGenerationIntegr
else
{
|
-Generated Location: (2401:56,99 [66] )
+Generated Location: (2572:65,99 [66] )
|
}
else
@@ -70,224 +70,224 @@ Generated Location: (2401:56,99 [66] )
Source Location: (495:16,46 [8] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|checkbox|
-Generated Location: (2848:67,46 [8] )
+Generated Location: (3057:78,46 [8] )
|checkbox|
Source Location: (512:16,63 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|true|
-Generated Location: (3201:74,63 [4] )
+Generated Location: (3448:87,63 [4] )
|true|
Source Location: (523:16,74 [18] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
|
-Generated Location: (3502:80,74 [18] )
+Generated Location: (3787:95,74 [18] )
|
|
Source Location: (556:17,31 [30] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|true ? "checkbox" : "anything"|
-Generated Location: (3886:88,31 [30] )
+Generated Location: (4209:105,31 [30] )
|true ? "checkbox" : "anything"|
Source Location: (591:17,66 [18] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
|
-Generated Location: (4264:95,66 [18] )
+Generated Location: (4625:114,66 [18] )
|
|
Source Location: (623:18,30 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|if(true) { |
-Generated Location: (4647:103,30 [11] )
+Generated Location: (5046:124,30 [11] )
|if(true) { |
Source Location: (655:18,62 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
| } else { |
-Generated Location: (4847:108,62 [10] )
+Generated Location: (5284:131,62 [10] )
| } else { |
Source Location: (686:18,93 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
| }|
-Generated Location: (5077:113,93 [2] )
+Generated Location: (5552:138,93 [2] )
| }|
Source Location: (690:18,97 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
}|
-Generated Location: (5457:120,97 [15] )
+Generated Location: (5970:147,97 [15] )
|
}|
Source Location: (212:8,32 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|DateTime.Now|
-Generated Location: (5725:127,32 [12] )
+Generated Location: (6276:156,32 [12] )
|DateTime.Now|
Source Location: (832:22,14 [21] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
| var @object = false;|
-Generated Location: (5879:132,14 [21] )
+Generated Location: (6468:163,14 [21] )
| var @object = false;|
Source Location: (885:23,29 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|(|
-Generated Location: (6277:139,42 [1] )
+Generated Location: (6904:172,42 [1] )
|(|
Source Location: (886:23,30 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|@object|
-Generated Location: (6278:139,43 [7] )
+Generated Location: (6905:172,43 [7] )
|@object|
Source Location: (893:23,37 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|)|
-Generated Location: (6285:139,50 [1] )
+Generated Location: (6912:172,50 [1] )
|)|
Source Location: (760:21,39 [23] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|DateTimeOffset.Now.Year|
-Generated Location: (6547:145,38 [23] )
+Generated Location: (7212:180,38 [23] )
|DateTimeOffset.Now.Year|
Source Location: (783:21,62 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
| -|
-Generated Location: (6570:145,61 [2] )
+Generated Location: (7235:180,61 [2] )
| -|
Source Location: (785:21,64 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
| 1970|
-Generated Location: (6572:145,63 [5] )
+Generated Location: (7237:180,63 [5] )
| 1970|
Source Location: (1025:26,61 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|(|
-Generated Location: (6973:152,60 [1] )
+Generated Location: (7676:189,60 [1] )
|(|
Source Location: (1026:26,62 [30] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|DateTimeOffset.Now.Year > 2014|
-Generated Location: (6974:152,61 [30] )
+Generated Location: (7677:189,61 [30] )
|DateTimeOffset.Now.Year > 2014|
Source Location: (1056:26,92 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|)|
-Generated Location: (7004:152,91 [1] )
+Generated Location: (7707:189,91 [1] )
|)|
Source Location: (928:25,16 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|-1970|
-Generated Location: (7261:158,33 [5] )
+Generated Location: (8002:197,33 [5] )
|-1970|
Source Location: (933:25,21 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
| +|
-Generated Location: (7266:158,38 [2] )
+Generated Location: (8007:197,38 [2] )
| +|
Source Location: (935:25,23 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
| |
-Generated Location: (7268:158,40 [1] )
+Generated Location: (8009:197,40 [1] )
| |
Source Location: (936:25,24 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|@|
-Generated Location: (7269:158,41 [1] )
+Generated Location: (8010:197,41 [1] )
|@|
Source Location: (937:25,25 [23] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|DateTimeOffset.Now.Year|
-Generated Location: (7270:158,42 [23] )
+Generated Location: (8011:197,42 [23] )
|DateTimeOffset.Now.Year|
Source Location: (1155:29,28 [30] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|DateTimeOffset.Now.Year > 2014|
-Generated Location: (7671:165,42 [30] )
+Generated Location: (8450:206,42 [30] )
|DateTimeOffset.Now.Year > 2014|
Source Location: (1093:28,16 [30] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|DateTimeOffset.Now.Year - 1970|
-Generated Location: (7957:171,33 [30] )
+Generated Location: (8774:214,33 [30] )
|DateTimeOffset.Now.Year - 1970|
Source Location: (1283:32,28 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
| |
-Generated Location: (8365:178,42 [3] )
+Generated Location: (9220:223,42 [3] )
| |
Source Location: (1286:32,31 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|@|
-Generated Location: (8368:178,45 [1] )
+Generated Location: (9223:223,45 [1] )
|@|
Source Location: (1287:32,32 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|(|
-Generated Location: (8369:178,46 [1] )
+Generated Location: (9224:223,46 [1] )
|(|
Source Location: (1288:32,33 [27] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
| DateTimeOffset.Now.Year |
-Generated Location: (8370:178,47 [27] )
+Generated Location: (9225:223,47 [27] )
| DateTimeOffset.Now.Year |
Source Location: (1315:32,60 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|)|
-Generated Location: (8397:178,74 [1] )
+Generated Location: (9252:223,74 [1] )
|)|
Source Location: (1316:32,61 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
| >|
-Generated Location: (8398:178,75 [2] )
+Generated Location: (9253:223,75 [2] )
| >|
Source Location: (1318:32,63 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
| 2014|
-Generated Location: (8400:178,77 [5] )
+Generated Location: (9255:223,77 [5] )
| 2014|
Source Location: (1323:32,68 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
| |
-Generated Location: (8405:178,82 [3] )
+Generated Location: (9260:223,82 [3] )
| |
Source Location: (1220:31,17 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|(|
-Generated Location: (8664:184,33 [1] )
+Generated Location: (9557:231,33 [1] )
|(|
Source Location: (1221:31,18 [29] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|"My age is this long.".Length|
-Generated Location: (8665:184,34 [29] )
+Generated Location: (9558:231,34 [29] )
|"My age is this long.".Length|
Source Location: (1250:31,47 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|)|
-Generated Location: (8694:184,63 [1] )
+Generated Location: (9587:231,63 [1] )
|)|
Source Location: (1355:34,9 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|someMethod(|
-Generated Location: (8832:189,9 [11] )
+Generated Location: (9763:238,9 [11] )
|someMethod(|
Source Location: (1410:34,64 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|checked|
-Generated Location: (9250:193,63 [7] )
+Generated Location: (10200:243,63 [7] )
|checked|
Source Location: (1375:34,29 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|123|
-Generated Location: (9505:199,33 [3] )
+Generated Location: (10493:251,33 [3] )
|123|
Source Location: (1424:34,78 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|)|
-Generated Location: (9546:204,1 [1] )
+Generated Location: (10553:257,1 [1] )
|)|
Source Location: (1469:36,10 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml)
|
}|
-Generated Location: (9941:215,10 [3] )
+Generated Location: (11024:272,10 [3] )
|
}|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_Runtime.codegen.cs
index 41a997a4e20..1ca3b103eef 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_Runtime.codegen.cs
@@ -41,6 +41,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ComplexTag
public async System.Threading.Tasks.Task ExecuteAsync()
{
WriteLiteral("\r\n");
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
if (true)
{
@@ -49,17 +50,20 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
WriteLiteral(" \r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
}
);
__TestNamespace_PTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_PTagHelper);
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_PTagHelper.Age = @@(1+2);
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
BeginWriteTagHelperAttribute();
WriteLiteral("@");
@@ -76,12 +80,14 @@ public async System.Threading.Tasks.Task ExecuteAsync()
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
WriteLiteral("\r\n Set Time: \r\n");
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
if (false)
{
#line default
#line hidden
+#nullable disable
WriteLiteral(" ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
WriteLiteral("New Time: ");
@@ -117,6 +123,7 @@ public async System.Threading.Tasks.Task ExecuteAsync()
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n");
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
}
else
@@ -124,6 +131,7 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
WriteLiteral(" ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
WriteLiteral("Current Time: ");
@@ -135,20 +143,24 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__TestNamespace_InputTagHelper2 = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2);
BeginWriteTagHelperAttribute();
+#nullable restore
#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
WriteLiteral(checkbox);
#line default
#line hidden
+#nullable disable
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
__TestNamespace_InputTagHelper.Type = __tagHelperStringValueBuffer;
__tagHelperExecutionContext.AddTagHelperAttribute("type", __TestNamespace_InputTagHelper.Type, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type;
+#nullable restore
#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = true;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -177,11 +189,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__TestNamespace_InputTagHelper2 = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2);
BeginWriteTagHelperAttribute();
+#nullable restore
#line 18 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
WriteLiteral(true ? "checkbox" : "anything");
#line default
#line hidden
+#nullable disable
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
__TestNamespace_InputTagHelper.Type = __tagHelperStringValueBuffer;
__tagHelperExecutionContext.AddTagHelperAttribute("tYPe", __TestNamespace_InputTagHelper.Type, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.SingleQuotes);
@@ -202,23 +216,29 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__TestNamespace_InputTagHelper2 = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2);
BeginWriteTagHelperAttribute();
+#nullable restore
#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
if(true) {
#line default
#line hidden
+#nullable disable
WriteLiteral("checkbox");
+#nullable restore
#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
} else {
#line default
#line hidden
+#nullable disable
WriteLiteral("anything");
+#nullable restore
#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
}
#line default
#line hidden
+#nullable disable
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
__TestNamespace_InputTagHelper.Type = __tagHelperStringValueBuffer;
__tagHelperExecutionContext.AddTagHelperAttribute("type", __TestNamespace_InputTagHelper.Type, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.SingleQuotes);
@@ -231,11 +251,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n");
+#nullable restore
#line 20 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
}
#line default
#line hidden
+#nullable disable
WriteLiteral(" ");
}
);
@@ -244,11 +266,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "time", 3, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
AddHtmlAttributeValue("", 197, "Current", 197, 7, true);
AddHtmlAttributeValue(" ", 204, "Time:", 205, 6, true);
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
AddHtmlAttributeValue(" ", 210, DateTime.Now, 211, 13, false);
#line default
#line hidden
+#nullable disable
EndAddHtmlAttributeValues(__tagHelperExecutionContext);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -260,11 +284,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
WriteLiteral("\r\n");
+#nullable restore
#line 23 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
var @object = false;
#line default
#line hidden
+#nullable disable
WriteLiteral(" ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagOnly, "test", async() => {
}
@@ -273,11 +299,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper);
__TestNamespace_InputTagHelper2 = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2);
+#nullable restore
#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = (@object);
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("ChecKED", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -292,11 +320,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__TestNamespace_PTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_PTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
+#nullable restore
#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_PTagHelper.Age = DateTimeOffset.Now.Year - 1970;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_4);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
@@ -318,11 +348,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_6);
+#nullable restore
#line 27 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = (DateTimeOffset.Now.Year > 2014);
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -336,11 +368,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
);
__TestNamespace_PTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_PTagHelper);
+#nullable restore
#line 26 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_PTagHelper.Age = -1970 + @DateTimeOffset.Now.Year;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -359,11 +393,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper);
__TestNamespace_InputTagHelper2 = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2);
+#nullable restore
#line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = DateTimeOffset.Now.Year > 2014;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -377,11 +413,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
);
__TestNamespace_PTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_PTagHelper);
+#nullable restore
#line 29 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_PTagHelper.Age = DateTimeOffset.Now.Year - 1970;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -400,11 +438,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper);
__TestNamespace_InputTagHelper2 = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2);
+#nullable restore
#line 33 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = @( DateTimeOffset.Now.Year ) > 2014 ;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -418,11 +458,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
);
__TestNamespace_PTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_PTagHelper);
+#nullable restore
#line 32 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_PTagHelper.Age = ("My age is this long.".Length);
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -432,6 +474,7 @@ public async System.Threading.Tasks.Task ExecuteAsync()
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n ");
+#nullable restore
#line 35 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
Write(someMethod(item => new Template(async(__razor_template_writer) => {
PushWriter(__razor_template_writer);
@@ -443,11 +486,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper);
__TestNamespace_InputTagHelper2 = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2);
+#nullable restore
#line 35 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = checked;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -460,11 +505,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
);
__TestNamespace_PTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_PTagHelper);
+#nullable restore
#line 35 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_PTagHelper.Age = 123;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
@@ -480,17 +527,20 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
}
);
__TestNamespace_PTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_PTagHelper);
+#nullable restore
#line 36 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
__TestNamespace_PTagHelper.Age = ;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -500,11 +550,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n
\r\n");
+#nullable restore
#line 38 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers.cshtml"
}
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.codegen.cs
index f03a6211250..d34404fec1b 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.codegen.cs
@@ -15,6 +15,7 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
var ch = true;
@@ -23,121 +24,164 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
__o = cls;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
__o = cls;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
__o = cls;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
__o = ch;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
__o = ch;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
if(cls != null) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
__o = cls;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
}
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
__o = Url.Content("~/Scripts/jquery-1.6.2.min.js");
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
__o = Url.Content("~/Scripts/modernizr-2.0.6-development-only.js");
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.mappings.txt
index 49fdb956d99..688c94ed168 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_DesignTime.mappings.txt
@@ -3,7 +3,7 @@ Source Location: (2:0,2 [48] TestFiles/IntegrationTests/CodeGenerationIntegratio
var ch = true;
var cls = "bar";
|
-Generated Location: (743:18,2 [48] )
+Generated Location: (762:19,2 [48] )
|
var ch = true;
var cls = "bar";
@@ -12,127 +12,127 @@ Generated Location: (743:18,2 [48] )
Source Location: (66:3,20 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
|
-Generated Location: (941:26,20 [6] )
+Generated Location: (998:29,20 [6] )
|
|
Source Location: (83:4,15 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|cls|
-Generated Location: (1092:32,15 [3] )
+Generated Location: (1187:37,15 [3] )
|cls|
Source Location: (90:4,22 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
|
-Generated Location: (1248:37,22 [6] )
+Generated Location: (1381:44,22 [6] )
|
|
Source Location: (111:5,19 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|cls|
-Generated Location: (1403:43,19 [3] )
+Generated Location: (1574:52,19 [3] )
|cls|
Source Location: (118:5,26 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
|
-Generated Location: (1563:48,26 [6] )
+Generated Location: (1772:59,26 [6] )
|
|
Source Location: (135:6,15 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|cls|
-Generated Location: (1714:54,15 [3] )
+Generated Location: (1961:67,15 [3] )
|cls|
Source Location: (146:6,26 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
|
-Generated Location: (1874:59,26 [6] )
+Generated Location: (2159:74,26 [6] )
|
|
Source Location: (185:7,37 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|ch|
-Generated Location: (2047:65,37 [2] )
+Generated Location: (2370:82,37 [2] )
|ch|
Source Location: (191:7,43 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
|
-Generated Location: (2223:70,43 [6] )
+Generated Location: (2584:89,43 [6] )
|
|
Source Location: (234:8,41 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|ch|
-Generated Location: (2400:76,41 [2] )
+Generated Location: (2799:97,41 [2] )
|ch|
Source Location: (240:8,47 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
|
-Generated Location: (2580:81,47 [6] )
+Generated Location: (3017:104,47 [6] )
|
|
Source Location: (257:9,15 [18] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|if(cls != null) { |
-Generated Location: (2732:87,15 [18] )
+Generated Location: (3207:112,15 [18] )
|if(cls != null) { |
Source Location: (276:9,34 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|cls|
-Generated Location: (2915:92,34 [3] )
+Generated Location: (3428:119,34 [3] )
|cls|
Source Location: (279:9,37 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
| }|
-Generated Location: (3087:97,37 [2] )
+Generated Location: (3638:126,37 [2] )
| }|
Source Location: (285:9,43 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
|
-Generated Location: (3263:102,43 [6] )
+Generated Location: (3852:133,43 [6] )
|
|
Source Location: (309:10,22 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
|
-Generated Location: (3422:108,22 [6] )
+Generated Location: (4049:141,22 [6] )
|
|
Source Location: (329:11,18 [44] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|Url.Content("~/Scripts/jquery-1.6.2.min.js")|
-Generated Location: (3577:114,18 [44] )
+Generated Location: (4242:149,18 [44] )
|Url.Content("~/Scripts/jquery-1.6.2.min.js")|
Source Location: (407:11,96 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
|
-Generated Location: (3849:119,96 [6] )
+Generated Location: (4552:156,96 [6] )
|
|
Source Location: (427:12,18 [60] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|Url.Content("~/Scripts/modernizr-2.0.6-development-only.js")|
-Generated Location: (4004:125,18 [60] )
+Generated Location: (4745:164,18 [60] )
|Url.Content("~/Scripts/modernizr-2.0.6-development-only.js")|
Source Location: (521:12,112 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
|
-Generated Location: (4308:130,112 [6] )
+Generated Location: (5087:171,112 [6] )
|
|
Source Location: (638:13,115 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml)
|
|
-Generated Location: (4560:136,115 [2] )
+Generated Location: (5377:179,115 [2] )
|
|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_Runtime.codegen.cs
index d7a93987f61..af91e920b0a 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes_Runtime.codegen.cs
@@ -11,6 +11,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Conditiona
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
var ch = true;
@@ -18,87 +19,108 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
WriteLiteral(" \r\n
\r\n
\r\n
\r\n \r\n \r\n {
PushWriter(__razor_attribute_value_writer);
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
if(cls != null) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
Write(cls);
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ConditionalAttributes.cshtml"
}
#line default
#line hidden
+#nullable disable
PopWriter();
}
), 256, 25, false);
EndWriteAttribute();
WriteLiteral(" />\r\n \r\n \r\n \r\n \r\n");
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes_Runtime.codegen.cs
index 4eca82aaa60..e2060a3b1f3 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes_Runtime.codegen.cs
@@ -104,11 +104,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper);
BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "href", 3, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
AddHtmlAttributeValue("", 153, "~/", 153, 2, true);
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes.cshtml"
AddHtmlAttributeValue("", 155, false, 155, 6, false);
#line default
#line hidden
+#nullable disable
AddHtmlAttributeValue("", 161, "?hello=world", 161, 12, true);
EndAddHtmlAttributeValues(__tagHelperExecutionContext);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
@@ -127,11 +129,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper);
BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "href", 2, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
AddHtmlAttributeValue("", 234, "~/", 234, 2, true);
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes.cshtml"
AddHtmlAttributeValue("", 236, false, 236, 6, false);
#line default
#line hidden
+#nullable disable
EndAddHtmlAttributeValues(__tagHelperExecutionContext);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -164,11 +168,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper);
BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "href", 2, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.SingleQuotes);
AddHtmlAttributeValue("", 317, "~/?hello=world", 317, 14, true);
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CssSelectorTagHelperAttributes.cshtml"
AddHtmlAttributeValue(" ", 331, false, 332, 6, false);
#line default
#line hidden
+#nullable disable
EndAddHtmlAttributeValues(__tagHelperExecutionContext);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.codegen.cs
index c0ce37ece65..786d7ea756a 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.codegen.cs
@@ -11,11 +11,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DuplicateA
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -34,26 +36,32 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__TestNamespace_InputTagHelper2 = CreateTagHelper();
__TestNamespace_InputTagHelper.Type = "button";
__TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type;
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = true;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
__TestNamespace_InputTagHelper2 = CreateTagHelper();
__TestNamespace_InputTagHelper.Type = "button";
__TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type;
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = true;
#line default
#line hidden
+#nullable disable
__TestNamespace_PTagHelper = CreateTagHelper();
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml"
__TestNamespace_PTagHelper.Age = 3;
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.mappings.txt
index 4e2ad9730bb..0d93eb694d7 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.mappings.txt
@@ -1,20 +1,20 @@
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml)
|"*, TestAssembly"|
-Generated Location: (790:14,37 [17] )
+Generated Location: (809:15,37 [17] )
|"*, TestAssembly"|
Source Location: (146:4,34 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml)
|true|
-Generated Location: (2017:37,42 [4] )
+Generated Location: (2074:40,42 [4] )
|true|
Source Location: (222:5,34 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml)
|true|
-Generated Location: (2559:46,42 [4] )
+Generated Location: (2654:51,42 [4] )
|true|
Source Location: (43:2,8 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml)
|3|
-Generated Location: (2829:52,33 [1] )
+Generated Location: (2962:59,33 [1] )
|3|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_Runtime.codegen.cs
index fd4e90095d6..490f2837673 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_Runtime.codegen.cs
@@ -75,11 +75,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
__TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_0.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = true;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
@@ -102,11 +104,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
__TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_4.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_4);
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = true;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_5);
@@ -124,11 +128,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
);
__TestNamespace_PTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_PTagHelper);
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers.cshtml"
__TestNamespace_PTagHelper.Age = 3;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_7);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_8);
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_DesignTime.codegen.cs
index f9352a839f8..4f58773c89d 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_DesignTime.codegen.cs
@@ -10,11 +10,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DuplicateT
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -29,11 +31,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__TestNamespace_CatchAllTagHelper = CreateTagHelper();
__TestNamespace_InputTagHelper.Type = "checkbox";
__TestNamespace_CatchAllTagHelper.Type = __TestNamespace_InputTagHelper.Type;
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper.cshtml"
__TestNamespace_InputTagHelper.Checked = true;
#line default
#line hidden
+#nullable disable
__TestNamespace_CatchAllTagHelper.Checked = __TestNamespace_InputTagHelper.Checked;
}
#pragma warning restore 1998
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_DesignTime.mappings.txt
index 67262f09dea..a73f5a033a2 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_DesignTime.mappings.txt
@@ -1,10 +1,10 @@
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper.cshtml)
|"*, TestAssembly"|
-Generated Location: (708:13,37 [17] )
+Generated Location: (727:14,37 [17] )
|"*, TestAssembly"|
Source Location: (67:2,32 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper.cshtml)
|true|
-Generated Location: (1580:32,41 [4] )
+Generated Location: (1637:35,41 [4] )
|true|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_Runtime.codegen.cs
index 6746458ed3a..83916da164e 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper_Runtime.codegen.cs
@@ -44,11 +44,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
__TestNamespace_CatchAllTagHelper.Type = (string)__tagHelperAttribute_0.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateTargetTagHelper.cshtml"
__TestNamespace_InputTagHelper.Checked = true;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__TestNamespace_CatchAllTagHelper.Checked = __TestNamespace_InputTagHelper.Checked;
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.codegen.cs
index 2758e4bca9a..ba9c0b7eb91 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.codegen.cs
@@ -9,11 +9,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DynamicAtt
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -25,163 +27,223 @@ private void __RazorDirectiveTokenHelpers__() {
public async System.Threading.Tasks.Task ExecuteAsync()
{
__TestNamespace_InputTagHelper = CreateTagHelper();
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
__o = DateTime.Now;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
if (true) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
__o = string.Empty;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
} else {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
__o = false;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
}
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
__o = DateTime.Now;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper.Bound = string.Empty;
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
__o = DateTime.Now;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
__o = long.MinValue;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
if (true) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
__o = string.Empty;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
} else {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
__o = false;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
}
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
__o = int.MaxValue;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper.Bound = string.Empty;
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
__o = long.MinValue;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
if (true) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
__o = string.Empty;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
} else {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
__o = false;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
}
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
__o = int.MaxValue;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
__o = long.MinValue;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
__o = DateTime.Now;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
__o = int.MaxValue;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
if (true) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
__o = string.Empty;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
} else {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
__o = false;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
}
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.mappings.txt
index f3d53b0651a..fb3faa52044 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.mappings.txt
@@ -1,155 +1,155 @@
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|"*, TestAssembly"|
-Generated Location: (620:12,37 [17] )
+Generated Location: (639:13,37 [17] )
|"*, TestAssembly"|
Source Location: (59:2,24 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|DateTime.Now|
-Generated Location: (1214:28,24 [12] )
+Generated Location: (1271:31,24 [12] )
|DateTime.Now|
Source Location: (96:4,17 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|if (true) { |
-Generated Location: (1482:34,17 [12] )
+Generated Location: (1577:39,17 [12] )
|if (true) { |
Source Location: (109:4,30 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|string.Empty|
-Generated Location: (1659:39,30 [12] )
+Generated Location: (1792:46,30 [12] )
|string.Empty|
Source Location: (121:4,42 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
| } else { |
-Generated Location: (1849:44,42 [10] )
+Generated Location: (2020:53,42 [10] )
| } else { |
Source Location: (132:4,53 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|false|
-Generated Location: (2047:49,53 [5] )
+Generated Location: (2256:60,53 [5] )
|false|
Source Location: (137:4,58 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
| }|
-Generated Location: (2246:54,58 [2] )
+Generated Location: (2493:67,58 [2] )
| }|
Source Location: (176:6,22 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|DateTime.Now|
-Generated Location: (2508:60,22 [12] )
+Generated Location: (2793:75,22 [12] )
|DateTime.Now|
Source Location: (214:6,60 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|DateTime.Now|
-Generated Location: (2782:66,60 [12] )
+Generated Location: (3105:83,60 [12] )
|DateTime.Now|
Source Location: (256:8,15 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|long.MinValue|
-Generated Location: (3048:72,15 [13] )
+Generated Location: (3409:91,15 [13] )
|long.MinValue|
Source Location: (271:8,30 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|if (true) { |
-Generated Location: (3227:77,30 [12] )
+Generated Location: (3626:98,30 [12] )
|if (true) { |
Source Location: (284:8,43 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|string.Empty|
-Generated Location: (3417:82,43 [12] )
+Generated Location: (3854:105,43 [12] )
|string.Empty|
Source Location: (296:8,55 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
| } else { |
-Generated Location: (3620:87,55 [10] )
+Generated Location: (4095:112,55 [10] )
| } else { |
Source Location: (307:8,66 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|false|
-Generated Location: (3831:92,66 [5] )
+Generated Location: (4344:119,66 [5] )
|false|
Source Location: (312:8,71 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
| }|
-Generated Location: (4043:97,71 [2] )
+Generated Location: (4594:126,71 [2] )
| }|
Source Location: (316:8,75 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|int.MaxValue|
-Generated Location: (4255:102,75 [12] )
+Generated Location: (4844:133,75 [12] )
|int.MaxValue|
Source Location: (348:9,17 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|long.MinValue|
-Generated Location: (4487:108,17 [13] )
+Generated Location: (5114:141,17 [13] )
|long.MinValue|
Source Location: (363:9,32 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|if (true) { |
-Generated Location: (4669:113,32 [12] )
+Generated Location: (5334:148,32 [12] )
|if (true) { |
Source Location: (376:9,45 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|string.Empty|
-Generated Location: (4862:118,45 [12] )
+Generated Location: (5565:155,45 [12] )
|string.Empty|
Source Location: (388:9,57 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
| } else { |
-Generated Location: (5068:123,57 [10] )
+Generated Location: (5809:162,57 [10] )
| } else { |
Source Location: (399:9,68 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|false|
-Generated Location: (5282:128,68 [5] )
+Generated Location: (6061:169,68 [5] )
|false|
Source Location: (404:9,73 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
| }|
-Generated Location: (5497:133,73 [2] )
+Generated Location: (6314:176,73 [2] )
| }|
Source Location: (408:9,77 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|int.MaxValue|
-Generated Location: (5712:138,77 [12] )
+Generated Location: (6567:183,77 [12] )
|int.MaxValue|
Source Location: (445:11,17 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|long.MinValue|
-Generated Location: (5981:144,17 [13] )
+Generated Location: (6874:191,17 [13] )
|long.MinValue|
Source Location: (460:11,32 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|DateTime.Now|
-Generated Location: (6163:149,32 [12] )
+Generated Location: (7094:198,32 [12] )
|DateTime.Now|
Source Location: (492:11,64 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|int.MaxValue|
-Generated Location: (6376:154,64 [12] )
+Generated Location: (7345:205,64 [12] )
|int.MaxValue|
Source Location: (529:13,17 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|if (true) { |
-Generated Location: (6645:160,17 [12] )
+Generated Location: (7652:213,17 [12] )
|if (true) { |
Source Location: (542:13,30 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|string.Empty|
-Generated Location: (6823:165,30 [12] )
+Generated Location: (7868:220,30 [12] )
|string.Empty|
Source Location: (554:13,42 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
| } else { |
-Generated Location: (7014:170,42 [10] )
+Generated Location: (8097:227,42 [10] )
| } else { |
Source Location: (565:13,53 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
|false|
-Generated Location: (7213:175,53 [5] )
+Generated Location: (8334:234,53 [5] )
|false|
Source Location: (570:13,58 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml)
| }|
-Generated Location: (7413:180,58 [2] )
+Generated Location: (8572:241,58 [2] )
| }|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_Runtime.codegen.cs
index 4371af84727..a1f0c76bacf 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_Runtime.codegen.cs
@@ -38,11 +38,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper);
BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "unbound", 2, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
AddHtmlAttributeValue("", 51, "prefix", 51, 6, true);
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
AddHtmlAttributeValue(" ", 57, DateTime.Now, 58, 13, false);
#line default
#line hidden
+#nullable disable
EndAddHtmlAttributeValues(__tagHelperExecutionContext);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -60,31 +62,41 @@ public async System.Threading.Tasks.Task ExecuteAsync()
BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "unbound", 2, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
AddHtmlAttributeValue("", 95, new Microsoft.AspNetCore.Mvc.Razor.HelperResult(async(__razor_attribute_value_writer) => {
PushWriter(__razor_attribute_value_writer);
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
if (true) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
Write(string.Empty);
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
} else {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
Write(false);
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
}
#line default
#line hidden
+#nullable disable
PopWriter();
}
), 95, 44, false);
@@ -105,22 +117,26 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper);
BeginWriteTagHelperAttribute();
WriteLiteral("prefix ");
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
WriteLiteral(DateTime.Now);
#line default
#line hidden
+#nullable disable
WriteLiteral(" suffix");
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
__TestNamespace_InputTagHelper.Bound = __tagHelperStringValueBuffer;
__tagHelperExecutionContext.AddTagHelperAttribute("bound", __TestNamespace_InputTagHelper.Bound, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "unbound", 3, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
AddHtmlAttributeValue("", 206, "prefix", 206, 6, true);
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
AddHtmlAttributeValue(" ", 212, DateTime.Now, 213, 13, false);
#line default
#line hidden
+#nullable disable
AddHtmlAttributeValue(" ", 226, "suffix", 227, 7, true);
EndAddHtmlAttributeValues(__tagHelperExecutionContext);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
@@ -137,87 +153,115 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__TestNamespace_InputTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper);
BeginWriteTagHelperAttribute();
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
WriteLiteral(long.MinValue);
#line default
#line hidden
+#nullable disable
WriteLiteral(" ");
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
if (true) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
WriteLiteral(string.Empty);
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
} else {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
WriteLiteral(false);
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
}
#line default
#line hidden
+#nullable disable
WriteLiteral(" ");
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
WriteLiteral(int.MaxValue);
#line default
#line hidden
+#nullable disable
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
__TestNamespace_InputTagHelper.Bound = __tagHelperStringValueBuffer;
__tagHelperExecutionContext.AddTagHelperAttribute("bound", __TestNamespace_InputTagHelper.Bound, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "unbound", 3, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
AddHtmlAttributeValue("", 347, long.MinValue, 347, 14, false);
#line default
#line hidden
+#nullable disable
AddHtmlAttributeValue(" ", 361, new Microsoft.AspNetCore.Mvc.Razor.HelperResult(async(__razor_attribute_value_writer) => {
PushWriter(__razor_attribute_value_writer);
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
if (true) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
Write(string.Empty);
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
} else {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
Write(false);
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
}
#line default
#line hidden
+#nullable disable
PopWriter();
}
), 362, 44, false);
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
AddHtmlAttributeValue(" ", 406, int.MaxValue, 407, 13, false);
#line default
#line hidden
+#nullable disable
EndAddHtmlAttributeValues(__tagHelperExecutionContext);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -233,23 +277,29 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__TestNamespace_InputTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper);
BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "unbound", 5, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
AddHtmlAttributeValue("", 444, long.MinValue, 444, 14, false);
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
AddHtmlAttributeValue(" ", 458, DateTime.Now, 459, 13, false);
#line default
#line hidden
+#nullable disable
AddHtmlAttributeValue(" ", 472, "static", 473, 7, true);
AddHtmlAttributeValue(" ", 479, "content", 483, 11, true);
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
AddHtmlAttributeValue(" ", 490, int.MaxValue, 491, 13, false);
#line default
#line hidden
+#nullable disable
EndAddHtmlAttributeValues(__tagHelperExecutionContext);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -267,31 +317,41 @@ public async System.Threading.Tasks.Task ExecuteAsync()
BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "unbound", 1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
AddHtmlAttributeValue("", 528, new Microsoft.AspNetCore.Mvc.Razor.HelperResult(async(__razor_attribute_value_writer) => {
PushWriter(__razor_attribute_value_writer);
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
if (true) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
Write(string.Empty);
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
} else {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
Write(false);
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers.cshtml"
}
#line default
#line hidden
+#nullable disable
PopWriter();
}
), 528, 44, false);
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.codegen.cs
index 9e39a276aba..34c56f0832f 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.codegen.cs
@@ -11,11 +11,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyAttri
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -30,26 +32,32 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__TestNamespace_InputTagHelper2 = CreateTagHelper();
__TestNamespace_InputTagHelper.Type = "";
__TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type;
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = ;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
__TestNamespace_InputTagHelper2 = CreateTagHelper();
__TestNamespace_InputTagHelper.Type = "";
__TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type;
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = ;
#line default
#line hidden
+#nullable disable
__TestNamespace_PTagHelper = CreateTagHelper();
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml"
__TestNamespace_PTagHelper.Age = ;
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.mappings.txt
index 08d465380f5..d1f300d541e 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.mappings.txt
@@ -1,20 +1,20 @@
Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml)
|*, TestAssembly|
-Generated Location: (783:14,38 [15] )
+Generated Location: (802:15,38 [15] )
|*, TestAssembly|
Source Location: (66:3,26 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml)
||
-Generated Location: (1641:33,42 [0] )
+Generated Location: (1698:36,42 [0] )
||
Source Location: (126:5,30 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml)
||
-Generated Location: (2169:42,42 [0] )
+Generated Location: (2264:47,42 [0] )
||
Source Location: (92:4,12 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml)
||
-Generated Location: (2431:48,33 [0] )
+Generated Location: (2564:55,33 [0] )
||
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_Runtime.codegen.cs
index 8f785ab50e0..4c9ace1134b 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_Runtime.codegen.cs
@@ -46,11 +46,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
__TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_0.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = ;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
@@ -74,11 +76,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
__TestNamespace_InputTagHelper2.Type = (string)__tagHelperAttribute_0.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = ;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
@@ -93,11 +97,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
);
__TestNamespace_PTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_PTagHelper);
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers.cshtml"
__TestNamespace_PTagHelper.Age = ;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.SingleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.codegen.cs
index c0c4004a57a..147fb7b23a7 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.codegen.cs
@@ -15,11 +15,13 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock.cshtml"
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.mappings.txt
index 7e37fe345d0..c2efdcaf76b 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock_DesignTime.mappings.txt
@@ -1,5 +1,5 @@
Source Location: (20:2,2 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyCodeBlock.cshtml)
||
-Generated Location: (729:18,2 [0] )
+Generated Location: (748:19,2 [0] )
||
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.codegen.cs
index 15b5dea6555..a4e69564773 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.codegen.cs
@@ -15,11 +15,13 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression.cshtml"
__o = ;
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.mappings.txt
index 47eec8be512..3f7d10ade39 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_DesignTime.mappings.txt
@@ -1,5 +1,5 @@
Source Location: (20:2,2 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression.cshtml)
||
-Generated Location: (751:18,6 [0] )
+Generated Location: (770:19,6 [0] )
||
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_Runtime.codegen.cs
index 35d2af98431..60274099a97 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression_Runtime.codegen.cs
@@ -12,11 +12,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyExpli
public async System.Threading.Tasks.Task ExecuteAsync()
{
WriteLiteral("This is markup\r\n\r\n");
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyExplicitExpression.cshtml"
Write();
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.codegen.cs
index b288005187d..eaaeed80bcb 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.codegen.cs
@@ -15,22 +15,28 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml"
__o = ;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml"
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.mappings.txt
index 37e96b1d2d9..9ba6343fc12 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_DesignTime.mappings.txt
@@ -1,19 +1,19 @@
Source Location: (2:0,2 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml)
|
|
-Generated Location: (759:18,2 [6] )
+Generated Location: (778:19,2 [6] )
|
|
Source Location: (9:1,5 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml)
||
-Generated Location: (909:24,6 [0] )
+Generated Location: (966:27,6 [0] )
||
Source Location: (9:1,5 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml)
|
|
-Generated Location: (1053:29,5 [2] )
+Generated Location: (1148:34,5 [2] )
|
|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_Runtime.codegen.cs
index b8d77907e71..fb302c26768 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode_Runtime.codegen.cs
@@ -11,11 +11,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImpli
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpressionInCode.cshtml"
Write();
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.codegen.cs
index 971dd6bb45d..cccfe56121f 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.codegen.cs
@@ -15,11 +15,13 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression.cshtml"
__o = ;
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.mappings.txt
index 356a4ebe7ae..d3539655ec8 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_DesignTime.mappings.txt
@@ -1,5 +1,5 @@
Source Location: (19:2,1 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression.cshtml)
||
-Generated Location: (751:18,6 [0] )
+Generated Location: (770:19,6 [0] )
||
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_Runtime.codegen.cs
index 9b4be095720..9506f47a3ea 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression_Runtime.codegen.cs
@@ -12,11 +12,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyImpli
public async System.Threading.Tasks.Task ExecuteAsync()
{
WriteLiteral("This is markup\r\n\r\n");
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyImplicitExpression.cshtml"
Write();
#line default
#line hidden
+#nullable disable
WriteLiteral("!");
}
#pragma warning restore 1998
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_DesignTime.codegen.cs
index 1e3baec7846..44a0cfabe65 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_DesignTime.codegen.cs
@@ -10,11 +10,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EnumTagHel
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -25,57 +27,73 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml"
var enumValue = MyEnum.MyValue;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
__TestNamespace_CatchAllTagHelper = CreateTagHelper();
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml"
__TestNamespace_InputTagHelper.Value = MyEnum.MyValue;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
__TestNamespace_CatchAllTagHelper = CreateTagHelper();
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml"
__o = MyEnum.MySecondValue;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
__TestNamespace_CatchAllTagHelper = CreateTagHelper();
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml"
__TestNamespace_InputTagHelper.Value = global::Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestTagHelperDescriptors.MyEnum.MyValue;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
__TestNamespace_CatchAllTagHelper = CreateTagHelper();
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml"
__TestNamespace_InputTagHelper.Value = global::Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestTagHelperDescriptors.MyEnum.MySecondValue;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml"
__TestNamespace_CatchAllTagHelper.CatchAll = global::Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestTagHelperDescriptors.MyEnum.MyValue;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
__TestNamespace_CatchAllTagHelper = CreateTagHelper();
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml"
__TestNamespace_InputTagHelper.Value = enumValue;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml"
__TestNamespace_CatchAllTagHelper.CatchAll = enumValue;
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_DesignTime.mappings.txt
index f2c51bc5a43..2c8365b953f 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_DesignTime.mappings.txt
@@ -1,49 +1,49 @@
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml)
|"*, TestAssembly"|
-Generated Location: (688:13,37 [17] )
+Generated Location: (707:14,37 [17] )
|"*, TestAssembly"|
Source Location: (37:2,2 [39] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml)
|
var enumValue = MyEnum.MyValue;
|
-Generated Location: (1145:28,2 [39] )
+Generated Location: (1202:31,2 [39] )
|
var enumValue = MyEnum.MyValue;
|
Source Location: (96:6,15 [14] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml)
|MyEnum.MyValue|
-Generated Location: (1556:36,39 [14] )
+Generated Location: (1651:41,39 [14] )
|MyEnum.MyValue|
Source Location: (131:7,15 [20] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml)
|MyEnum.MySecondValue|
-Generated Location: (1921:43,15 [20] )
+Generated Location: (2054:50,15 [20] )
|MyEnum.MySecondValue|
Source Location: (171:8,14 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml)
|MyValue|
-Generated Location: (2409:50,132 [7] )
+Generated Location: (2580:59,132 [7] )
|MyValue|
Source Location: (198:9,14 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml)
|MySecondValue|
-Generated Location: (2885:57,132 [13] )
+Generated Location: (3094:68,132 [13] )
|MySecondValue|
Source Location: (224:9,40 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml)
|MyValue|
-Generated Location: (3161:62,138 [7] )
+Generated Location: (3408:75,138 [7] )
|MyValue|
Source Location: (251:10,15 [9] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml)
|enumValue|
-Generated Location: (3544:69,39 [9] )
+Generated Location: (3829:84,39 [9] )
|enumValue|
Source Location: (274:10,38 [9] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml)
|enumValue|
-Generated Location: (3723:74,45 [9] )
+Generated Location: (4046:91,45 [9] )
|enumValue|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_Runtime.codegen.cs
index 47d1c911085..264b4af2484 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers_Runtime.codegen.cs
@@ -32,12 +32,14 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EnumTagHel
public async System.Threading.Tasks.Task ExecuteAsync()
{
WriteLiteral("\r\n");
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml"
var enumValue = MyEnum.MyValue;
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => {
}
@@ -46,11 +48,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper);
__TestNamespace_CatchAllTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper);
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml"
__TestNamespace_InputTagHelper.Value = MyEnum.MyValue;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("value", __TestNamespace_InputTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -68,11 +72,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__TestNamespace_CatchAllTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper);
BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "class", 1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml"
AddHtmlAttributeValue("", 130, MyEnum.MySecondValue, 130, 21, false);
#line default
#line hidden
+#nullable disable
EndAddHtmlAttributeValues(__tagHelperExecutionContext);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -89,11 +95,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper);
__TestNamespace_CatchAllTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper);
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml"
__TestNamespace_InputTagHelper.Value = global::Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestTagHelperDescriptors.MyEnum.MyValue;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("value", __TestNamespace_InputTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -110,17 +118,21 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper);
__TestNamespace_CatchAllTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper);
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml"
__TestNamespace_InputTagHelper.Value = global::Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestTagHelperDescriptors.MyEnum.MySecondValue;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("value", __TestNamespace_InputTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml"
__TestNamespace_CatchAllTagHelper.CatchAll = global::Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestTagHelperDescriptors.MyEnum.MyValue;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("catch-all", __TestNamespace_CatchAllTagHelper.CatchAll, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -137,17 +149,21 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper);
__TestNamespace_CatchAllTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_CatchAllTagHelper);
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml"
__TestNamespace_InputTagHelper.Value = enumValue;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("value", __TestNamespace_InputTagHelper.Value, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EnumTagHelpers.cshtml"
__TestNamespace_CatchAllTagHelper.CatchAll = enumValue;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("catch-all", __TestNamespace_CatchAllTagHelper.CatchAll, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_DesignTime.codegen.cs
index c07ab803f0a..d0907fd0990 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_DesignTime.codegen.cs
@@ -10,11 +10,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EscapedTag
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -25,25 +27,31 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml"
__o = DateTime.Now;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
__TestNamespace_InputTagHelper2 = CreateTagHelper();
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml"
__o = DateTime.Now;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper.Type = string.Empty;
__TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type;
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = true;
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_DesignTime.mappings.txt
index 3ab1bf87606..716a9799a47 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_DesignTime.mappings.txt
@@ -1,20 +1,20 @@
Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml)
|*, TestAssembly|
-Generated Location: (691:13,38 [15] )
+Generated Location: (710:14,38 [15] )
|*, TestAssembly|
Source Location: (106:3,29 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml)
|DateTime.Now|
-Generated Location: (1177:28,29 [12] )
+Generated Location: (1234:31,29 [12] )
|DateTime.Now|
Source Location: (204:5,51 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml)
|DateTime.Now|
-Generated Location: (1575:35,51 [12] )
+Generated Location: (1670:40,51 [12] )
|DateTime.Now|
Source Location: (227:5,74 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml)
|true|
-Generated Location: (1942:42,74 [4] )
+Generated Location: (2075:49,74 [4] )
|true|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_Runtime.codegen.cs
index 74ba222d6cf..06a2adfcde8 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers_Runtime.codegen.cs
@@ -34,11 +34,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
WriteLiteral("\r\n<");
WriteLiteral("div class=\"randomNonTagHelperAttribute\">\r\n <");
WriteLiteral("p class=\"Hello World\" ");
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml"
Write(DateTime.Now);
#line default
#line hidden
+#nullable disable
WriteLiteral(">\r\n <");
WriteLiteral("input type=\"text\" />\r\n <");
WriteLiteral("em>Not a TagHelper: ");
@@ -51,20 +53,24 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__TestNamespace_InputTagHelper2 = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2);
BeginWriteTagHelperAttribute();
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml"
WriteLiteral(DateTime.Now);
#line default
#line hidden
+#nullable disable
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
__TestNamespace_InputTagHelper.Type = __tagHelperStringValueBuffer;
__tagHelperExecutionContext.AddTagHelperAttribute("type", __TestNamespace_InputTagHelper.Type, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type;
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EscapedTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = true;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("checked", __TestNamespace_InputTagHelper2.Checked, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.codegen.cs
index 3774cb88484..07bdbbe86b7 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.codegen.cs
@@ -15,11 +15,13 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF.cshtml"
__o = ;
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.mappings.txt
index 5567e88c008..a4208a7ee25 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_DesignTime.mappings.txt
@@ -1,5 +1,5 @@
Source Location: (20:2,2 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF.cshtml)
||
-Generated Location: (751:18,6 [0] )
+Generated Location: (770:19,6 [0] )
||
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_Runtime.codegen.cs
index 2339c30ff98..d3d9989be53 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF_Runtime.codegen.cs
@@ -12,11 +12,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitEx
public async System.Threading.Tasks.Task ExecuteAsync()
{
WriteLiteral("This is markup\r\n\r\n");
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionAtEOF.cshtml"
Write();
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.codegen.cs
index e74c42e5cd5..2cc76e8ce52 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.codegen.cs
@@ -15,6 +15,7 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup.cshtml"
__o = item => new Template(async(__razor_template_writer) => {
}
@@ -22,6 +23,7 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.mappings.txt
index 228b0d53df3..62cc1306279 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_DesignTime.mappings.txt
@@ -1,5 +1,5 @@
Source Location: (14:0,14 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup.cshtml)
||
-Generated Location: (825:20,1 [0] )
+Generated Location: (844:21,1 [0] )
||
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_Runtime.codegen.cs
index 7a1de2419bb..fcdf711df53 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup_Runtime.codegen.cs
@@ -12,6 +12,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitEx
public async System.Threading.Tasks.Task ExecuteAsync()
{
WriteLiteral("");
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpressionWithMarkup.cshtml"
Write(item => new Template(async(__razor_template_writer) => {
PushWriter(__razor_template_writer);
@@ -22,6 +23,7 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.codegen.cs
index 0dd6f9a38eb..7b344876fdb 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.codegen.cs
@@ -15,11 +15,13 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression.cshtml"
__o = 1+1;
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.mappings.txt
index 22ed244ef67..e4720d06609 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_DesignTime.mappings.txt
@@ -1,5 +1,5 @@
Source Location: (10:0,10 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression.cshtml)
|1+1|
-Generated Location: (745:18,10 [3] )
+Generated Location: (764:19,10 [3] )
|1+1|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_Runtime.codegen.cs
index 3f95cd0d285..8f6c52477ef 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression_Runtime.codegen.cs
@@ -12,11 +12,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExplicitEx
public async System.Threading.Tasks.Task ExecuteAsync()
{
WriteLiteral("1 + 1 = ");
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExplicitExpression.cshtml"
Write(1+1);
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.codegen.cs
index 29d0e484601..d0cd34cc747 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.codegen.cs
@@ -15,6 +15,7 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml"
object foo = null;
@@ -22,17 +23,23 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml"
if(foo != null) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml"
__o = foo;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml"
} else {
@@ -40,29 +47,38 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml"
}
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml"
if(!String.IsNullOrEmpty(bar)) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml"
__o = bar.Replace("F", "B");
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml"
}
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.mappings.txt
index 5928a833f22..0db37968267 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_DesignTime.mappings.txt
@@ -3,7 +3,7 @@ Source Location: (2:0,2 [51] TestFiles/IntegrationTests/CodeGenerationIntegratio
object foo = null;
string bar = "Foo";
|
-Generated Location: (735:18,2 [51] )
+Generated Location: (754:19,2 [51] )
|
object foo = null;
string bar = "Foo";
@@ -12,20 +12,20 @@ Generated Location: (735:18,2 [51] )
Source Location: (59:5,1 [23] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml)
|if(foo != null) {
|
-Generated Location: (911:25,1 [23] )
+Generated Location: (968:28,1 [23] )
|if(foo != null) {
|
Source Location: (83:6,5 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml)
|foo|
-Generated Location: (1066:31,6 [3] )
+Generated Location: (1161:36,6 [3] )
|foo|
Source Location: (86:6,8 [16] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml)
|
} else {
|
-Generated Location: (1204:36,8 [16] )
+Generated Location: (1337:43,8 [16] )
|
} else {
|
@@ -33,26 +33,26 @@ Generated Location: (1204:36,8 [16] )
Source Location: (121:8,23 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml)
|
}|
-Generated Location: (1369:43,23 [3] )
+Generated Location: (1540:52,23 [3] )
|
}|
Source Location: (134:12,1 [38] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml)
|if(!String.IsNullOrEmpty(bar)) {
|
-Generated Location: (1500:49,1 [38] )
+Generated Location: (1709:60,1 [38] )
|if(!String.IsNullOrEmpty(bar)) {
|
Source Location: (174:13,6 [21] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml)
|bar.Replace("F", "B")|
-Generated Location: (1671:55,6 [21] )
+Generated Location: (1918:68,6 [21] )
|bar.Replace("F", "B")|
Source Location: (196:13,28 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml)
|
}|
-Generated Location: (1848:60,28 [3] )
+Generated Location: (2133:75,28 [3] )
|
}|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_Runtime.codegen.cs
index 0196ab0af99..f5c181ecb92 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_Runtime.codegen.cs
@@ -11,6 +11,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Expression
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml"
object foo = null;
@@ -18,48 +19,63 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml"
if(foo != null) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml"
Write(foo);
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml"
} else {
#line default
#line hidden
+#nullable disable
WriteLiteral("
Foo is Null!
\r\n");
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml"
}
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n
\r\n");
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml"
if(!String.IsNullOrEmpty(bar)) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml"
Write(bar.Replace("F", "B"));
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml"
}
#line default
#line hidden
+#nullable disable
WriteLiteral("
");
}
#pragma warning restore 1998
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.codegen.cs
index 11a32e14eaa..6447c907bb9 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.codegen.cs
@@ -17,6 +17,7 @@ public async System.Threading.Tasks.Task ExecuteAsync()
{
}
#pragma warning restore 1998
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal.cshtml"
string foo(string input) {
@@ -25,6 +26,7 @@ string foo(string input) {
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.mappings.txt
index b5c82b85e4a..e09fcdf23ff 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.mappings.txt
@@ -4,7 +4,7 @@ string foo(string input) {
return input + "!";
}
|
-Generated Location: (805:20,15 [55] )
+Generated Location: (824:21,15 [55] )
|
string foo(string input) {
return input + "!";
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_Runtime.codegen.cs
index ebaea72b8d0..9dd9ba4e533 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_Runtime.codegen.cs
@@ -14,6 +14,7 @@ public async System.Threading.Tasks.Task ExecuteAsync()
WriteLiteral("\r\n\r\n");
}
#pragma warning restore 1998
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal.cshtml"
string foo(string input) {
@@ -22,6 +23,7 @@ string foo(string input) {
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.codegen.cs
index 36ff974c056..762e0b2a010 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.codegen.cs
@@ -15,19 +15,24 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock.cshtml"
__o = RandomInt();
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock.cshtml"
Random _rand = new Random();
@@ -37,6 +42,7 @@ private int RandomInt() {
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.mappings.txt
index 262325f0cbc..d2d85221635 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.mappings.txt
@@ -1,13 +1,13 @@
Source Location: (167:11,25 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock.cshtml)
|RandomInt()|
-Generated Location: (753:18,25 [11] )
+Generated Location: (772:19,25 [11] )
|RandomInt()|
Source Location: (12:0,12 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock.cshtml)
|
|
-Generated Location: (949:25,12 [4] )
+Generated Location: (1006:28,12 [4] )
|
|
@@ -19,7 +19,7 @@ Source Location: (33:4,12 [104] TestFiles/IntegrationTests/CodeGenerationIntegra
return _rand.Next();
}
|
-Generated Location: (1086:31,12 [104] )
+Generated Location: (1181:36,12 [104] )
|
Random _rand = new Random();
private int RandomInt() {
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_Runtime.codegen.cs
index 06b4c1f0d28..f005acdd93a 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_Runtime.codegen.cs
@@ -13,13 +13,16 @@ public async System.Threading.Tasks.Task ExecuteAsync()
{
WriteLiteral("\r\n");
WriteLiteral("\r\nHere\'s a random number: ");
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock.cshtml"
Write(RandomInt());
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock.cshtml"
Random _rand = new Random();
@@ -29,6 +32,7 @@ private int RandomInt() {
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.codegen.cs
index 1b8baa00647..7e2f26e97e7 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.codegen.cs
@@ -15,17 +15,21 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode.cshtml"
@Da
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.mappings.txt
index 80b903cc648..b073a2350b8 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.mappings.txt
@@ -1,14 +1,14 @@
Source Location: (2:0,2 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode.cshtml)
|
|
-Generated Location: (735:18,2 [6] )
+Generated Location: (754:19,2 [6] )
|
|
Source Location: (9:1,5 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode.cshtml)
|@Da
|
-Generated Location: (872:24,5 [5] )
+Generated Location: (929:27,5 [5] )
|@Da
|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_Runtime.codegen.cs
index 11ba8f037b2..a39b51584d0 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_Runtime.codegen.cs
@@ -11,11 +11,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HiddenSpan
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode.cshtml"
@Da
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.codegen.cs
index f23955428b9..9fe4c8123d6 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.codegen.cs
@@ -8,11 +8,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Implements
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements.cshtml"
IDisposable __typeHelper = default(IDisposable);
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -25,12 +27,14 @@ public async System.Threading.Tasks.Task ExecuteAsync()
{
}
#pragma warning restore 1998
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements.cshtml"
void IDisposable.Dispose() { }
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.mappings.txt
index cbd5047e5f2..8b369c12498 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_DesignTime.mappings.txt
@@ -1,13 +1,13 @@
Source Location: (12:0,12 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements.cshtml)
|IDisposable|
-Generated Location: (479:11,0 [11] )
+Generated Location: (498:12,0 [11] )
|IDisposable|
Source Location: (39:2,12 [38] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements.cshtml)
|
void IDisposable.Dispose() { }
|
-Generated Location: (1021:28,12 [38] )
+Generated Location: (1078:31,12 [38] )
|
void IDisposable.Dispose() { }
|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_Runtime.codegen.cs
index 084d52f34c5..0cab554528e 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements_Runtime.codegen.cs
@@ -14,12 +14,14 @@ public async System.Threading.Tasks.Task ExecuteAsync()
WriteLiteral("\r\n");
}
#pragma warning restore 1998
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Implements.cshtml"
void IDisposable.Dispose() { }
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.codegen.cs
index 256186f0572..24e93434523 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.codegen.cs
@@ -15,11 +15,13 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF.cshtml"
__o = ;
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.mappings.txt
index 9f93c42b2d8..2fb787f40e7 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.mappings.txt
@@ -1,5 +1,5 @@
Source Location: (19:2,1 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF.cshtml)
||
-Generated Location: (751:18,6 [0] )
+Generated Location: (770:19,6 [0] )
||
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_Runtime.codegen.cs
index 5c6798e2de8..09e806ccbc0 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_Runtime.codegen.cs
@@ -12,11 +12,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ImplicitEx
public async System.Threading.Tasks.Task ExecuteAsync()
{
WriteLiteral("This is markup\r\n\r\n");
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF.cshtml"
Write();
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.codegen.cs
index 80dc9a12e44..2f981797ebb 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.codegen.cs
@@ -15,23 +15,29 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml"
for(int i = 1; i <= 10; i++) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml"
__o = i;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml"
}
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.mappings.txt
index 8593cab0830..b0b0d935f5d 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.mappings.txt
@@ -1,19 +1,19 @@
Source Location: (1:0,1 [36] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml)
|for(int i = 1; i <= 10; i++) {
|
-Generated Location: (736:18,1 [36] )
+Generated Location: (755:19,1 [36] )
|for(int i = 1; i <= 10; i++) {
|
Source Location: (55:1,22 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml)
|i|
-Generated Location: (921:24,22 [1] )
+Generated Location: (978:27,22 [1] )
|i|
Source Location: (60:1,27 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml)
|
}|
-Generated Location: (1077:29,27 [3] )
+Generated Location: (1172:34,27 [3] )
|
}|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_Runtime.codegen.cs
index 6a4191069ae..1cc29a9c8c2 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_Runtime.codegen.cs
@@ -11,23 +11,29 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ImplicitEx
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml"
for(int i = 1; i <= 10; i++) {
#line default
#line hidden
+#nullable disable
WriteLiteral("
This is item #");
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml"
Write(i);
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n");
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml"
}
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.cs
index 2a7a7aa9bb4..3e7ab835c73 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.codegen.cs
@@ -8,107 +8,133 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Incomplete
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"
global::System.Object __typeHelper = "";
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"
global::System.Object __typeHelper = "";
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"
global::System.Object __typeHelper = ";
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"
global::System.Object __typeHelper = "";
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"
global::System.Object __typeHelper = "";
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"
global::System.Object __typeHelper = ";
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"
global::System.Object __typeHelper = "";
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"
global::System.Object __typeHelper = "";
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"
global::System.Object __typeHelper = ";
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 21 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -119,11 +145,13 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 25 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml"
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.mappings.txt
index df4f7c974a6..4859dfc0ea4 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives_DesignTime.mappings.txt
@@ -1,70 +1,70 @@
Source Location: (100:2,13 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
||
-Generated Location: (523:11,38 [0] )
+Generated Location: (542:12,38 [0] )
||
Source Location: (116:3,14 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
||
-Generated Location: (752:19,38 [0] )
+Generated Location: (809:22,38 [0] )
||
Source Location: (132:4,14 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
|"|
-Generated Location: (980:27,37 [1] )
+Generated Location: (1075:32,37 [1] )
|"|
Source Location: (153:6,16 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
||
-Generated Location: (1209:35,38 [0] )
+Generated Location: (1342:42,38 [0] )
||
Source Location: (172:7,17 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
||
-Generated Location: (1438:43,38 [0] )
+Generated Location: (1609:52,38 [0] )
||
Source Location: (191:8,17 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
|"|
-Generated Location: (1666:51,37 [1] )
+Generated Location: (1875:62,37 [1] )
|"|
Source Location: (212:10,16 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
||
-Generated Location: (1896:59,38 [0] )
+Generated Location: (2143:72,38 [0] )
||
Source Location: (231:11,17 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
||
-Generated Location: (2126:67,38 [0] )
+Generated Location: (2411:82,38 [0] )
||
Source Location: (250:12,17 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
|"|
-Generated Location: (2355:75,37 [1] )
+Generated Location: (2678:92,37 [1] )
|"|
Source Location: (264:14,9 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
||
-Generated Location: (2547:83,0 [0] )
+Generated Location: (2908:102,0 [0] )
||
Source Location: (276:15,10 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
||
-Generated Location: (2738:91,0 [0] )
+Generated Location: (3137:112,0 [0] )
||
Source Location: (315:20,8 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
||
-Generated Location: (2929:99,0 [0] )
+Generated Location: (3366:122,0 [0] )
||
Source Location: (326:21,9 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
||
-Generated Location: (3120:107,0 [0] )
+Generated Location: (3595:132,0 [0] )
||
Source Location: (354:24,12 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteDirectives.cshtml)
||
-Generated Location: (3577:122,12 [0] )
+Generated Location: (4090:149,12 [0] )
||
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_DesignTime.codegen.cs
index c41bad1d6de..9c30af42dff 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_DesignTime.codegen.cs
@@ -9,11 +9,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Incomplete
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_DesignTime.mappings.txt
index 712b3e20a2e..864eba25d46 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_DesignTime.mappings.txt
@@ -1,5 +1,5 @@
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper.cshtml)
|"*, TestAssembly"|
-Generated Location: (598:12,37 [17] )
+Generated Location: (617:13,37 [17] )
|"*, TestAssembly"|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_DesignTime.codegen.cs
index 6601497a124..223bbf70bde 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_DesignTime.codegen.cs
@@ -8,11 +8,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Inherits_D
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits.cshtml"
foo.bar
>.boz __typeHelper = default(foo.bar>.boz);
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -23,11 +25,13 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits.cshtml"
__o = foo();
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_DesignTime.mappings.txt
index 01b6682fe7e..1e74b715cac 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_DesignTime.mappings.txt
@@ -1,10 +1,10 @@
Source Location: (10:0,10 [21] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits.cshtml)
|foo.bar>.boz|
-Generated Location: (485:11,0 [21] )
+Generated Location: (504:12,0 [21] )
|foo.bar>.boz|
Source Location: (36:2,1 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits.cshtml)
|foo()|
-Generated Location: (990:26,6 [5] )
+Generated Location: (1047:29,6 [5] )
|foo()|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_Runtime.codegen.cs
index 5ca5961c659..588146111f3 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_Runtime.codegen.cs
@@ -12,11 +12,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Inherits_R
public async System.Threading.Tasks.Task ExecuteAsync()
{
WriteLiteral("\r\n");
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits.cshtml"
Write(foo());
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_DesignTime.codegen.cs
index 2f0457a5789..a2a699b7ca0 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_DesignTime.codegen.cs
@@ -8,11 +8,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_InlineBloc
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks.cshtml"
global::System.Object Link = null;
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -23,26 +25,34 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks.cshtml"
if(link != null) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks.cshtml"
__o = link;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks.cshtml"
} else {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks.cshtml"
}
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_DesignTime.mappings.txt
index 0a768ff0999..513fd9f639b 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_DesignTime.mappings.txt
@@ -1,25 +1,25 @@
Source Location: (9:0,9 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks.cshtml)
|Link|
-Generated Location: (491:11,22 [4] )
+Generated Location: (510:12,22 [4] )
|Link|
Source Location: (44:1,14 [19] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks.cshtml)
|if(link != null) { |
-Generated Location: (952:26,14 [19] )
+Generated Location: (1009:29,14 [19] )
|if(link != null) { |
Source Location: (64:1,34 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks.cshtml)
|link|
-Generated Location: (1126:31,34 [4] )
+Generated Location: (1221:36,34 [4] )
|link|
Source Location: (68:1,38 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks.cshtml)
| } else { |
-Generated Location: (1290:36,38 [10] )
+Generated Location: (1423:43,38 [10] )
| } else { |
Source Location: (92:1,62 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks.cshtml)
| }|
-Generated Location: (1483:41,62 [2] )
+Generated Location: (1654:50,62 [2] )
| }|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_Runtime.codegen.cs
index e588d26d67d..373edd4f9b0 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks_Runtime.codegen.cs
@@ -15,27 +15,35 @@ public async System.Threading.Tasks.Task ExecuteAsync()
BeginWriteAttribute("href", " href=\"", 36, "\"", 94, 1);
WriteAttributeValue("", 43, new Microsoft.AspNetCore.Mvc.Razor.HelperResult(async(__razor_attribute_value_writer) => {
PushWriter(__razor_attribute_value_writer);
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks.cshtml"
if(link != null) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks.cshtml"
Write(link);
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks.cshtml"
} else {
#line default
#line hidden
+#nullable disable
WriteLiteral("#");
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/InlineBlocks.cshtml"
}
#line default
#line hidden
+#nullable disable
PopWriter();
}
), 43, 51, false);
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.codegen.cs
index d9c39802a70..554c75fbc5d 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.codegen.cs
@@ -15,6 +15,7 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
int i = 1;
@@ -22,36 +23,48 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
item => new Template(async(__razor_template_writer) => {
}
)
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
while(i <= 10) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
__o = i;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
i += 1;
@@ -59,18 +72,24 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
if(i == 11) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
}
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
switch(i) {
case 11:
@@ -78,6 +97,8 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
break;
@@ -86,6 +107,8 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
break;
@@ -93,29 +116,39 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 26 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
for(int j = 1; j <= 10; j += 2) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 27 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
__o = j;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 27 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
}
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
try {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 31 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
} catch(Exception ex) {
@@ -123,29 +156,38 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 33 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
__o = ex.Message;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 33 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
}
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 36 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
lock(new object()) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 37 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
}
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.mappings.txt
index 2a622f48086..250678a2689 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_DesignTime.mappings.txt
@@ -2,7 +2,7 @@ Source Location: (2:0,2 [32] TestFiles/IntegrationTests/CodeGenerationIntegratio
|
int i = 1;
var foo = |
-Generated Location: (725:18,2 [32] )
+Generated Location: (744:19,2 [32] )
|
int i = 1;
var foo = |
@@ -10,39 +10,39 @@ Generated Location: (725:18,2 [32] )
Source Location: (45:2,25 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml)
|;
|
-Generated Location: (1003:28,25 [7] )
+Generated Location: (1060:31,25 [7] )
|;
|
Source Location: (68:4,0 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml)
| |
-Generated Location: (1131:34,0 [4] )
+Generated Location: (1226:39,0 [4] )
| |
Source Location: (91:4,23 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml)
|
|
-Generated Location: (1279:39,23 [2] )
+Generated Location: (1412:46,23 [2] )
|
|
Source Location: (99:7,1 [22] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml)
|while(i <= 10) {
|
-Generated Location: (1401:44,1 [22] )
+Generated Location: (1572:53,1 [22] )
|while(i <= 10) {
|
Source Location: (142:8,25 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml)
|i|
-Generated Location: (1569:50,25 [1] )
+Generated Location: (1778:61,25 [1] )
|i|
Source Location: (148:8,31 [16] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml)
|
i += 1;
}|
-Generated Location: (1723:55,31 [16] )
+Generated Location: (1970:68,31 [16] )
|
i += 1;
}|
@@ -50,14 +50,14 @@ Generated Location: (1723:55,31 [16] )
Source Location: (169:12,1 [19] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml)
|if(i == 11) {
|
-Generated Location: (1862:62,1 [19] )
+Generated Location: (2147:77,1 [19] )
|if(i == 11) {
|
Source Location: (213:13,29 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml)
|
}|
-Generated Location: (2032:68,29 [3] )
+Generated Location: (2355:85,29 [3] )
|
}|
@@ -65,7 +65,7 @@ Source Location: (221:16,1 [35] TestFiles/IntegrationTests/CodeGenerationIntegra
|switch(i) {
case 11:
|
-Generated Location: (2158:74,1 [35] )
+Generated Location: (2519:93,1 [35] )
|switch(i) {
case 11:
|
@@ -75,7 +75,7 @@ Source Location: (292:18,44 [40] TestFiles/IntegrationTests/CodeGenerationIntegr
break;
default:
|
-Generated Location: (2359:81,44 [40] )
+Generated Location: (2758:102,44 [40] )
|
break;
default:
@@ -85,7 +85,7 @@ Source Location: (361:21,37 [19] TestFiles/IntegrationTests/CodeGenerationIntegr
|
break;
}|
-Generated Location: (2558:89,37 [19] )
+Generated Location: (2995:112,37 [19] )
|
break;
}|
@@ -93,26 +93,26 @@ Generated Location: (2558:89,37 [19] )
Source Location: (385:25,1 [39] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml)
|for(int j = 1; j <= 10; j += 2) {
|
-Generated Location: (2700:96,1 [39] )
+Generated Location: (3175:121,1 [39] )
|for(int j = 1; j <= 10; j += 2) {
|
Source Location: (451:26,31 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml)
|j|
-Generated Location: (2892:102,31 [1] )
+Generated Location: (3405:129,31 [1] )
|j|
Source Location: (457:26,37 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml)
|
}|
-Generated Location: (3053:107,37 [3] )
+Generated Location: (3604:136,37 [3] )
|
}|
Source Location: (465:29,1 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml)
|try {
|
-Generated Location: (3179:113,1 [11] )
+Generated Location: (3768:144,1 [11] )
|try {
|
@@ -120,34 +120,34 @@ Source Location: (511:30,39 [31] TestFiles/IntegrationTests/CodeGenerationIntegr
|
} catch(Exception ex) {
|
-Generated Location: (3351:119,39 [31] )
+Generated Location: (3978:152,39 [31] )
|
} catch(Exception ex) {
|
Source Location: (573:32,35 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml)
|ex.Message|
-Generated Location: (3539:126,35 [10] )
+Generated Location: (4204:161,35 [10] )
|ex.Message|
Source Location: (588:32,50 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml)
|
}|
-Generated Location: (3722:131,50 [3] )
+Generated Location: (4425:168,50 [3] )
|
}|
Source Location: (596:35,1 [26] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml)
|lock(new object()) {
|
-Generated Location: (3848:137,1 [26] )
+Generated Location: (4589:176,1 [26] )
|lock(new object()) {
|
Source Location: (669:36,51 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml)
|
}|
-Generated Location: (4047:143,51 [3] )
+Generated Location: (4826:184,51 [3] )
|
}|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_Runtime.codegen.cs
index 9b7421b0de6..4ece1be3bd6 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_Runtime.codegen.cs
@@ -11,6 +11,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Instrument
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
int i = 1;
@@ -18,125 +19,162 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
item => new Template(async(__razor_template_writer) => {
PushWriter(__razor_template_writer);
WriteLiteral("Bar
");
PopWriter();
}
)
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
;
#line default
#line hidden
+#nullable disable
WriteLiteral(" ");
WriteLiteral("Hello, World\r\n Hello, World
\r\n");
WriteLiteral("\r\n");
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
while(i <= 10) {
#line default
#line hidden
+#nullable disable
WriteLiteral(" Hello from C#, #");
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
Write(i);
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n");
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
i += 1;
}
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
if(i == 11) {
#line default
#line hidden
+#nullable disable
WriteLiteral(" We wrote 10 lines!
\r\n");
+#nullable restore
#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
}
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
switch(i) {
case 11:
#line default
#line hidden
+#nullable disable
WriteLiteral(" No really, we wrote 10 lines!
\r\n");
+#nullable restore
#line 20 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
break;
default:
#line default
#line hidden
+#nullable disable
WriteLiteral(" Actually, we didn\'t...
\r\n");
+#nullable restore
#line 23 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
break;
}
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 26 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
for(int j = 1; j <= 10; j += 2) {
#line default
#line hidden
+#nullable disable
WriteLiteral(" Hello again from C#, #");
+#nullable restore
#line 27 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
Write(j);
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n");
+#nullable restore
#line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
}
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
try {
#line default
#line hidden
+#nullable disable
WriteLiteral(" That time, we wrote 5 lines!
\r\n");
+#nullable restore
#line 32 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
} catch(Exception ex) {
#line default
#line hidden
+#nullable disable
WriteLiteral(" Oh no! An error occurred: ");
+#nullable restore
#line 33 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
Write(ex.Message);
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n");
+#nullable restore
#line 34 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
}
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 36 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
lock(new object()) {
#line default
#line hidden
+#nullable disable
WriteLiteral(" This block is locked, for your security!
\r\n");
+#nullable restore
#line 38 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml"
}
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.codegen.cs
index e4c9a94c7d1..cdf9ba33346 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.codegen.cs
@@ -15,6 +15,7 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml"
for(int i = 1; i <= 10; i++) {
@@ -22,17 +23,22 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml"
__o = i.ToString();
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml"
}
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.mappings.txt
index 2abd44edf54..f88beb53f44 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.mappings.txt
@@ -2,21 +2,21 @@ Source Location: (2:0,2 [46] TestFiles/IntegrationTests/CodeGenerationIntegratio
|
for(int i = 1; i <= 10; i++) {
|
-Generated Location: (735:18,2 [46] )
+Generated Location: (754:19,2 [46] )
|
for(int i = 1; i <= 10; i++) {
|
Source Location: (69:2,29 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml)
|i.ToString()|
-Generated Location: (936:25,29 [12] )
+Generated Location: (993:28,29 [12] )
|i.ToString()|
Source Location: (86:2,46 [9] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml)
|
}
|
-Generated Location: (1121:30,46 [9] )
+Generated Location: (1216:35,46 [9] )
|
}
|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_Runtime.codegen.cs
index 7a2b0aaf538..a578762a041 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_Runtime.codegen.cs
@@ -11,24 +11,30 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MarkupInCo
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml"
for(int i = 1; i <= 10; i++) {
#line default
#line hidden
+#nullable disable
WriteLiteral(" Hello from C#, #");
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml"
Write(i.ToString());
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n");
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml"
}
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_DesignTime.codegen.cs
index 9803f306bcf..fd06ee3e257 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_DesignTime.codegen.cs
@@ -9,11 +9,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Markup_InC
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -24,6 +26,7 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
var people = new Person[]
@@ -37,30 +40,40 @@ void PrintName(Person person)
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
__o = person.Name;
#line default
#line hidden
+#nullable disable
__DivTagHelper = CreateTagHelper();
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
}
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
PrintName(people[0]);
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
await AnnounceBirthday(people[0]);
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
+#nullable restore
#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
Task AnnounceBirthday(Person person)
@@ -70,12 +83,16 @@ Task AnnounceBirthday(Person person)
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
__o = formatted;
#line default
#line hidden
+#nullable disable
__DivTagHelper = CreateTagHelper();
+#nullable restore
#line 23 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
@@ -83,6 +100,8 @@ Task AnnounceBirthday(Person person)
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 26 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
for (var i = 0; i < person.Age / 10; i++)
{
@@ -90,17 +109,23 @@ Task AnnounceBirthday(Person person)
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
__o = i;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
}
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
@@ -113,6 +138,8 @@ Task AnnounceBirthday(Person person)
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 37 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
return Task.CompletedTask;
@@ -127,6 +154,7 @@ class Person
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_DesignTime.mappings.txt
index 584e5163cd7..19c772b5047 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_DesignTime.mappings.txt
@@ -1,6 +1,6 @@
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml)
|"*, TestAssembly"|
-Generated Location: (600:12,37 [17] )
+Generated Location: (619:13,37 [17] )
|"*, TestAssembly"|
Source Location: (35:1,2 [154] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml)
@@ -13,7 +13,7 @@ Source Location: (35:1,2 [154] TestFiles/IntegrationTests/CodeGenerationIntegrat
void PrintName(Person person)
{
|
-Generated Location: (1075:27,2 [154] )
+Generated Location: (1132:30,2 [154] )
|
var people = new Person[]
{
@@ -26,26 +26,26 @@ Generated Location: (1075:27,2 [154] )
Source Location: (195:9,14 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml)
|person.Name|
-Generated Location: (1385:40,14 [11] )
+Generated Location: (1480:45,14 [11] )
|person.Name|
Source Location: (212:9,31 [9] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml)
|
}
|
-Generated Location: (1641:46,31 [9] )
+Generated Location: (1774:53,31 [9] )
|
}
|
Source Location: (228:13,2 [23] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml)
| PrintName(people[0]); |
-Generated Location: (1792:52,2 [23] )
+Generated Location: (1963:61,2 [23] )
| PrintName(people[0]); |
Source Location: (256:14,2 [36] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml)
| await AnnounceBirthday(people[0]); |
-Generated Location: (1959:57,2 [36] )
+Generated Location: (2168:68,2 [36] )
| await AnnounceBirthday(people[0]); |
Source Location: (309:16,12 [106] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml)
@@ -54,7 +54,7 @@ Source Location: (309:16,12 [106] TestFiles/IntegrationTests/CodeGenerationInteg
{
var formatted = $"Mr. {person.Name}";
|
-Generated Location: (2198:64,12 [106] )
+Generated Location: (2445:77,12 [106] )
|
Task AnnounceBirthday(Person person)
{
@@ -63,14 +63,14 @@ Generated Location: (2198:64,12 [106] )
Source Location: (455:21,33 [9] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml)
|formatted|
-Generated Location: (2479:73,33 [9] )
+Generated Location: (2764:88,33 [9] )
|formatted|
Source Location: (487:22,14 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml)
|
|
-Generated Location: (2712:79,14 [12] )
+Generated Location: (3035:96,14 [12] )
|
|
@@ -79,20 +79,20 @@ Source Location: (514:25,9 [66] TestFiles/IntegrationTests/CodeGenerationIntegra
|for (var i = 0; i < person.Age / 10; i++)
{
|
-Generated Location: (2875:86,9 [66] )
+Generated Location: (3236:105,9 [66] )
|for (var i = 0; i < person.Age / 10; i++)
{
|
Source Location: (586:27,18 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml)
|i|
-Generated Location: (3101:93,18 [1] )
+Generated Location: (3500:114,18 [1] )
|i|
Source Location: (609:27,41 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml)
|
}|
-Generated Location: (3286:98,41 [11] )
+Generated Location: (3723:121,41 [11] )
|
}|
@@ -105,7 +105,7 @@ Source Location: (635:29,13 [106] TestFiles/IntegrationTests/CodeGenerationInteg
}
|
-Generated Location: (3452:104,13 [106] )
+Generated Location: (3927:129,13 [106] )
|
if (person.Age < 20)
@@ -127,7 +127,7 @@ Source Location: (764:36,31 [161] TestFiles/IntegrationTests/CodeGenerationInteg
public int Age { get; set; }
}
|
-Generated Location: (3731:116,31 [161] )
+Generated Location: (4244:143,31 [161] )
|
return Task.CompletedTask;
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_Runtime.codegen.cs
index e5aec651f3c..e47522dc58c 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper_Runtime.codegen.cs
@@ -30,6 +30,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Markup_InC
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
var people = new Person[]
@@ -42,13 +43,16 @@ void PrintName(Person person)
#line default
#line hidden
+#nullable disable
WriteLiteral(" ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
Write(person.Name);
#line default
#line hidden
+#nullable disable
}
);
__DivTagHelper = CreateTagHelper();
@@ -61,25 +65,32 @@ void PrintName(Person person)
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n");
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
}
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
PrintName(people[0]);
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
await AnnounceBirthday(people[0]);
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
}
#pragma warning restore 1998
+#nullable restore
#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
Task AnnounceBirthday(Person person)
@@ -88,14 +99,17 @@ Task AnnounceBirthday(Person person)
#line default
#line hidden
+#nullable disable
WriteLiteral(" ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
WriteLiteral("\r\n Happy birthday ");
+#nullable restore
#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
Write(formatted);
#line default
#line hidden
+#nullable disable
WriteLiteral("! \r\n ");
}
);
@@ -110,25 +124,32 @@ Task AnnounceBirthday(Person person)
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n");
WriteLiteral(" \r\n");
+#nullable restore
#line 26 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
for (var i = 0; i < person.Age / 10; i++)
{
#line default
#line hidden
+#nullable disable
WriteLiteral(" ");
+#nullable restore
#line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
Write(i);
#line default
#line hidden
+#nullable disable
WriteLiteral(" Happy birthday! \r\n");
+#nullable restore
#line 29 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
}
#line default
#line hidden
+#nullable disable
WriteLiteral(" \r\n");
+#nullable restore
#line 31 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
if (person.Age < 20)
@@ -139,7 +160,9 @@ Task AnnounceBirthday(Person person)
#line default
#line hidden
+#nullable disable
WriteLiteral(" Secret message \r\n");
+#nullable restore
#line 38 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocksWithTagHelper.cshtml"
return Task.CompletedTask;
}
@@ -153,6 +176,7 @@ class Person
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.codegen.cs
index 5c317cc7d25..1c7c4784f63 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.codegen.cs
@@ -15,6 +15,7 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
var people = new Person[]
@@ -28,29 +29,39 @@ void PrintName(Person person)
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
__o = person.Name;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
}
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
PrintName(people[0])
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
AnnounceBirthday(people[0]);
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
+#nullable restore
#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
void AnnounceBirthday(Person person)
@@ -60,11 +71,15 @@ void AnnounceBirthday(Person person)
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
__o = formatted;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 23 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
@@ -72,6 +87,8 @@ void AnnounceBirthday(Person person)
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 26 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
for (var i = 0; i < person.Age / 10; i++)
{
@@ -79,17 +96,23 @@ void AnnounceBirthday(Person person)
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
__o = i;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
}
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
@@ -102,6 +125,8 @@ void AnnounceBirthday(Person person)
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 37 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
}
@@ -114,6 +139,7 @@ class Person
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.mappings.txt
index 4a268e8924b..de5fb0e1d3d 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_DesignTime.mappings.txt
@@ -8,7 +8,7 @@ Source Location: (4:1,2 [153] TestFiles/IntegrationTests/CodeGenerationIntegrati
void PrintName(Person person)
{
|
-Generated Location: (739:18,2 [153] )
+Generated Location: (758:19,2 [153] )
|
var people = new Person[]
{
@@ -21,26 +21,26 @@ Generated Location: (739:18,2 [153] )
Source Location: (163:9,14 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml)
|person.Name|
-Generated Location: (1035:31,14 [11] )
+Generated Location: (1092:34,14 [11] )
|person.Name|
Source Location: (180:9,31 [9] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml)
|
}
|
-Generated Location: (1207:36,31 [9] )
+Generated Location: (1302:41,31 [9] )
|
}
|
Source Location: (196:13,2 [22] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml)
| PrintName(people[0]) |
-Generated Location: (1345:42,2 [22] )
+Generated Location: (1478:49,2 [22] )
| PrintName(people[0]) |
Source Location: (223:14,2 [30] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml)
| AnnounceBirthday(people[0]); |
-Generated Location: (1498:47,2 [30] )
+Generated Location: (1669:56,2 [30] )
| AnnounceBirthday(people[0]); |
Source Location: (270:16,12 [106] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml)
@@ -49,7 +49,7 @@ Source Location: (270:16,12 [106] TestFiles/IntegrationTests/CodeGenerationInteg
{
var formatted = $"Mr. {person.Name}";
|
-Generated Location: (1718:54,12 [106] )
+Generated Location: (1927:65,12 [106] )
|
void AnnounceBirthday(Person person)
{
@@ -58,14 +58,14 @@ Generated Location: (1718:54,12 [106] )
Source Location: (416:21,33 [9] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml)
|formatted|
-Generated Location: (1986:63,33 [9] )
+Generated Location: (2233:76,33 [9] )
|formatted|
Source Location: (448:22,14 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml)
|
|
-Generated Location: (2139:68,14 [12] )
+Generated Location: (2424:83,14 [12] )
|
|
@@ -74,20 +74,20 @@ Source Location: (475:25,9 [66] TestFiles/IntegrationTests/CodeGenerationIntegra
|for (var i = 0; i < person.Age / 10; i++)
{
|
-Generated Location: (2289:75,9 [66] )
+Generated Location: (2612:92,9 [66] )
|for (var i = 0; i < person.Age / 10; i++)
{
|
Source Location: (547:27,18 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml)
|i|
-Generated Location: (2502:82,18 [1] )
+Generated Location: (2863:101,18 [1] )
|i|
Source Location: (570:27,41 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml)
|
}|
-Generated Location: (2674:87,41 [11] )
+Generated Location: (3073:108,41 [11] )
|
}|
@@ -100,7 +100,7 @@ Source Location: (596:29,13 [87] TestFiles/IntegrationTests/CodeGenerationIntegr
}
|
-Generated Location: (2827:93,13 [87] )
+Generated Location: (3264:116,13 [87] )
|
if (person.Age < 20)
@@ -120,7 +120,7 @@ Source Location: (706:36,31 [123] TestFiles/IntegrationTests/CodeGenerationInteg
public int Age { get; set; }
}
|
-Generated Location: (3074:105,31 [123] )
+Generated Location: (3549:130,31 [123] )
|
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_Runtime.codegen.cs
index ee065a94f57..bf58bbc6f8b 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks_Runtime.codegen.cs
@@ -12,6 +12,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Markup_InC
public async System.Threading.Tasks.Task ExecuteAsync()
{
WriteLiteral("\r\n");
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
var people = new Person[]
@@ -24,32 +25,42 @@ void PrintName(Person person)
#line default
#line hidden
+#nullable disable
WriteLiteral(" ");
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
Write(person.Name);
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n");
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
}
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
PrintName(people[0])
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
AnnounceBirthday(people[0]);
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
}
#pragma warning restore 1998
+#nullable restore
#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
void AnnounceBirthday(Person person)
@@ -58,33 +69,43 @@ void AnnounceBirthday(Person person)
#line default
#line hidden
+#nullable disable
WriteLiteral(" \r\n
Happy birthday ");
+#nullable restore
#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
Write(formatted);
#line default
#line hidden
+#nullable disable
WriteLiteral("! \r\n \r\n");
WriteLiteral(" \r\n");
+#nullable restore
#line 26 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
for (var i = 0; i < person.Age / 10; i++)
{
#line default
#line hidden
+#nullable disable
WriteLiteral(" ");
+#nullable restore
#line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
Write(i);
#line default
#line hidden
+#nullable disable
WriteLiteral(" Happy birthday! \r\n");
+#nullable restore
#line 29 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
}
#line default
#line hidden
+#nullable disable
WriteLiteral(" \r\n");
+#nullable restore
#line 31 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
if (person.Age < 20)
@@ -95,7 +116,9 @@ void AnnounceBirthday(Person person)
#line default
#line hidden
+#nullable disable
WriteLiteral(" Secret message \r\n");
+#nullable restore
#line 38 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Markup_InCodeBlocks.cshtml"
}
@@ -107,6 +130,7 @@ class Person
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.codegen.cs
index fa57dea3a86..a7f71679e97 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.codegen.cs
@@ -11,11 +11,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MinimizedT
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.mappings.txt
index 0de418c09e3..e8d92fb65c9 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.mappings.txt
@@ -1,5 +1,5 @@
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers.cshtml)
|"*, TestAssembly"|
-Generated Location: (752:14,37 [17] )
+Generated Location: (771:15,37 [17] )
|"*, TestAssembly"|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.codegen.cs
index 763d09cac37..1b08e1e505a 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.codegen.cs
@@ -15,12 +15,15 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml"
foreach (var result in (dynamic)Url)
{
@@ -28,22 +31,29 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml"
__o = result.SomeValue;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml"
}
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml"
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.mappings.txt
index d07593ae24f..b58d527b046 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.mappings.txt
@@ -1,7 +1,7 @@
Source Location: (2:0,2 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml)
|
|
-Generated Location: (725:18,2 [6] )
+Generated Location: (744:19,2 [6] )
|
|
@@ -9,27 +9,27 @@ Source Location: (9:1,5 [53] TestFiles/IntegrationTests/CodeGenerationIntegratio
|foreach (var result in (dynamic)Url)
{
|
-Generated Location: (857:24,5 [53] )
+Generated Location: (914:27,5 [53] )
|foreach (var result in (dynamic)Url)
{
|
Source Location: (82:4,13 [16] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml)
|result.SomeValue|
-Generated Location: (1044:31,13 [16] )
+Generated Location: (1139:36,13 [16] )
|result.SomeValue|
Source Location: (115:5,14 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml)
|
}|
-Generated Location: (1196:36,14 [7] )
+Generated Location: (1329:43,14 [7] )
|
}|
Source Location: (122:6,5 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml)
|
|
-Generated Location: (1329:42,5 [2] )
+Generated Location: (1500:51,5 [2] )
|
|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_Runtime.codegen.cs
index 1e7b008c952..26ba12432c9 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_Runtime.codegen.cs
@@ -11,24 +11,30 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCSha
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml"
foreach (var result in (dynamic)Url)
{
#line default
#line hidden
+#nullable disable
WriteLiteral(" \r\n ");
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml"
Write(result.SomeValue);
#line default
#line hidden
+#nullable disable
WriteLiteral(".\r\n
\r\n");
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp.cshtml"
}
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.codegen.cs
index b3eafcdc006..59b64e36823 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.codegen.cs
@@ -15,24 +15,30 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml"
if(foo) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml"
if(bar) {
}
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml"
}
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.mappings.txt
index 36e85f3de33..55d683f4e59 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_DesignTime.mappings.txt
@@ -1,21 +1,21 @@
Source Location: (1:0,1 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml)
|if(foo) {
|
-Generated Location: (732:18,1 [15] )
+Generated Location: (751:19,1 [15] )
|if(foo) {
|
Source Location: (17:1,5 [16] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml)
|if(bar) {
}|
-Generated Location: (877:24,5 [16] )
+Generated Location: (934:27,5 [16] )
|if(bar) {
}|
Source Location: (33:2,5 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml)
|
}|
-Generated Location: (1023:30,5 [3] )
+Generated Location: (1118:35,5 [3] )
|
}|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_Runtime.codegen.cs
index 7ee3dbc7cff..af6d6d502b6 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks_Runtime.codegen.cs
@@ -11,24 +11,30 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCode
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml"
if(foo) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml"
if(bar) {
}
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCodeBlocks.cshtml"
}
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_DesignTime.codegen.cs
index 7062693c307..d1f6fecd40d 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_DesignTime.codegen.cs
@@ -11,11 +11,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedScri
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -26,32 +28,40 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml"
for(var i = 0; i < 5; i++) {
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
__TestNamespace_InputTagHelper2 = CreateTagHelper();
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml"
__o = ViewBag.DefaultInterval;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper.Type = "text";
__TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type;
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml"
__TestNamespace_InputTagHelper2.Checked = true;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml"
}
#line default
#line hidden
+#nullable disable
__TestNamespace_PTagHelper = CreateTagHelper();
}
#pragma warning restore 1998
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_DesignTime.mappings.txt
index 4237e35905d..1c67db87bfa 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_DesignTime.mappings.txt
@@ -1,29 +1,29 @@
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml)
|"*, TestAssembly"|
-Generated Location: (784:14,37 [17] )
+Generated Location: (803:15,37 [17] )
|"*, TestAssembly"|
Source Location: (195:5,13 [46] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml)
|for(var i = 0; i < 5; i++) {
|
-Generated Location: (1263:29,13 [46] )
+Generated Location: (1320:32,13 [46] )
|for(var i = 0; i < 5; i++) {
|
Source Location: (339:7,50 [23] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml)
|ViewBag.DefaultInterval|
-Generated Location: (1701:37,50 [23] )
+Generated Location: (1796:42,50 [23] )
|ViewBag.DefaultInterval|
Source Location: (389:7,100 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml)
|true|
-Generated Location: (2107:44,100 [4] )
+Generated Location: (2240:51,100 [4] )
|true|
Source Location: (422:8,25 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml)
|
}|
-Generated Location: (2271:49,25 [15] )
+Generated Location: (2442:58,25 [15] )
|
}|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_Runtime.codegen.cs
index 2d45fcf415f..0be73652e6d 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers_Runtime.codegen.cs
@@ -38,11 +38,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
WriteLiteral("\r\n\r\n");
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedScriptTagTagHelpers.cshtml"
}
#line default
#line hidden
+#nullable disable
WriteLiteral(" \r\n ");
}
);
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_DesignTime.codegen.cs
index dc07e6a077a..1d152816894 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_DesignTime.codegen.cs
@@ -11,11 +11,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedTagH
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_DesignTime.mappings.txt
index f4933d814c8..049fa3812bb 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers_DesignTime.mappings.txt
@@ -1,5 +1,5 @@
Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedTagHelpers.cshtml)
|*, TestAssembly|
-Generated Location: (683:14,38 [15] )
+Generated Location: (702:15,38 [15] )
|*, TestAssembly|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.codegen.cs
index 9e127a7992c..b1d0ce40749 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.codegen.cs
@@ -15,23 +15,30 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
int i = 1;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
while(i <= 10) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
__o = i;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
i += 1;
@@ -39,18 +46,24 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
if(i == 11) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
}
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
switch(i) {
case 11:
@@ -58,6 +71,8 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
break;
@@ -66,6 +81,8 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
break;
@@ -73,29 +90,39 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 23 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
for(int j = 1; j <= 10; j += 2) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
__o = j;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
}
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 27 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
try {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
} catch(Exception ex) {
@@ -103,11 +130,15 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
__o = ex.Message;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
}
@@ -115,28 +146,37 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 33 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 34 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
__o = i;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 36 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
lock(new object()) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 37 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
}
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.mappings.txt
index e0965c94528..1ba876db626 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_DesignTime.mappings.txt
@@ -2,7 +2,7 @@ Source Location: (2:0,2 [18] TestFiles/IntegrationTests/CodeGenerationIntegratio
|
int i = 1;
|
-Generated Location: (727:18,2 [18] )
+Generated Location: (746:19,2 [18] )
|
int i = 1;
|
@@ -10,20 +10,20 @@ Generated Location: (727:18,2 [18] )
Source Location: (26:4,1 [22] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml)
|while(i <= 10) {
|
-Generated Location: (866:24,1 [22] )
+Generated Location: (923:27,1 [22] )
|while(i <= 10) {
|
Source Location: (69:5,25 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml)
|i|
-Generated Location: (1035:30,25 [1] )
+Generated Location: (1130:35,25 [1] )
|i|
Source Location: (75:5,31 [16] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml)
|
i += 1;
}|
-Generated Location: (1190:35,31 [16] )
+Generated Location: (1323:42,31 [16] )
|
i += 1;
}|
@@ -31,14 +31,14 @@ Generated Location: (1190:35,31 [16] )
Source Location: (96:9,1 [19] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml)
|if(i == 11) {
|
-Generated Location: (1330:42,1 [19] )
+Generated Location: (1501:51,1 [19] )
|if(i == 11) {
|
Source Location: (140:10,29 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml)
|
}|
-Generated Location: (1501:48,29 [3] )
+Generated Location: (1710:59,29 [3] )
|
}|
@@ -46,7 +46,7 @@ Source Location: (148:13,1 [35] TestFiles/IntegrationTests/CodeGenerationIntegra
|switch(i) {
case 11:
|
-Generated Location: (1628:54,1 [35] )
+Generated Location: (1875:67,1 [35] )
|switch(i) {
case 11:
|
@@ -56,7 +56,7 @@ Source Location: (219:15,44 [40] TestFiles/IntegrationTests/CodeGenerationIntegr
break;
default:
|
-Generated Location: (1830:61,44 [40] )
+Generated Location: (2115:76,44 [40] )
|
break;
default:
@@ -66,7 +66,7 @@ Source Location: (288:18,37 [19] TestFiles/IntegrationTests/CodeGenerationIntegr
|
break;
}|
-Generated Location: (2030:69,37 [19] )
+Generated Location: (2353:86,37 [19] )
|
break;
}|
@@ -74,26 +74,26 @@ Generated Location: (2030:69,37 [19] )
Source Location: (312:22,1 [39] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml)
|for(int j = 1; j <= 10; j += 2) {
|
-Generated Location: (2173:76,1 [39] )
+Generated Location: (2534:95,1 [39] )
|for(int j = 1; j <= 10; j += 2) {
|
Source Location: (378:23,31 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml)
|j|
-Generated Location: (2366:82,31 [1] )
+Generated Location: (2765:103,31 [1] )
|j|
Source Location: (384:23,37 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml)
|
}|
-Generated Location: (2528:87,37 [3] )
+Generated Location: (2965:110,37 [3] )
|
}|
Source Location: (392:26,1 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml)
|try {
|
-Generated Location: (2655:93,1 [11] )
+Generated Location: (3130:118,1 [11] )
|try {
|
@@ -101,14 +101,14 @@ Source Location: (438:27,39 [31] TestFiles/IntegrationTests/CodeGenerationIntegr
|
} catch(Exception ex) {
|
-Generated Location: (2828:99,39 [31] )
+Generated Location: (3341:126,39 [31] )
|
} catch(Exception ex) {
|
Source Location: (500:29,35 [10] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml)
|ex.Message|
-Generated Location: (3017:106,35 [10] )
+Generated Location: (3568:135,35 [10] )
|ex.Message|
Source Location: (515:29,50 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml)
@@ -116,7 +116,7 @@ Source Location: (515:29,50 [7] TestFiles/IntegrationTests/CodeGenerationIntegra
}
|
-Generated Location: (3201:111,50 [7] )
+Generated Location: (3790:142,50 [7] )
|
}
@@ -124,25 +124,25 @@ Generated Location: (3201:111,50 [7] )
Source Location: (556:32,34 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml)
||
-Generated Location: (3363:118,34 [0] )
+Generated Location: (3990:151,34 [0] )
||
Source Location: (571:33,13 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml)
|i|
-Generated Location: (3499:123,13 [1] )
+Generated Location: (4164:158,13 [1] )
|i|
Source Location: (581:35,1 [26] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml)
|lock(new object()) {
|
-Generated Location: (3625:128,1 [26] )
+Generated Location: (4328:165,1 [26] )
|lock(new object()) {
|
Source Location: (654:36,51 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml)
|
}|
-Generated Location: (3825:134,51 [3] )
+Generated Location: (4566:173,51 [3] )
|
}|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_Runtime.codegen.cs
index 81891b57b79..c923c0ece84 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_Runtime.codegen.cs
@@ -11,125 +11,163 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NoLinePrag
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
int i = 1;
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
while(i <= 10) {
#line default
#line hidden
+#nullable disable
WriteLiteral(" Hello from C#, #");
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
Write(i);
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n");
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
i += 1;
}
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
if(i == 11) {
#line default
#line hidden
+#nullable disable
WriteLiteral(" We wrote 10 lines!
\r\n");
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
}
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
switch(i) {
case 11:
#line default
#line hidden
+#nullable disable
WriteLiteral(" No really, we wrote 10 lines!
\r\n");
+#nullable restore
#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
break;
default:
#line default
#line hidden
+#nullable disable
WriteLiteral(" Actually, we didn\'t...
\r\n");
+#nullable restore
#line 20 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
break;
}
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 23 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
for(int j = 1; j <= 10; j += 2) {
#line default
#line hidden
+#nullable disable
WriteLiteral(" Hello again from C#, #");
+#nullable restore
#line 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
Write(j);
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n");
+#nullable restore
#line 25 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
}
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 27 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
try {
#line default
#line hidden
+#nullable disable
WriteLiteral(" That time, we wrote 5 lines!
\r\n");
+#nullable restore
#line 29 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
} catch(Exception ex) {
#line default
#line hidden
+#nullable disable
WriteLiteral(" Oh no! An error occurred: ");
+#nullable restore
#line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
Write(ex.Message);
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n");
+#nullable restore
#line 31 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
}
#line default
#line hidden
+#nullable disable
WriteLiteral("i is now ");
+#nullable restore
#line 34 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
Write(i);
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n\r\n");
+#nullable restore
#line 36 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
lock(new object()) {
#line default
#line hidden
+#nullable disable
WriteLiteral(" This block is locked, for your security!
\r\n");
+#nullable restore
#line 38 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml"
}
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.codegen.cs
index ce0052fdd8f..d12445b4652 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.codegen.cs
@@ -15,75 +15,101 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml"
__o = ViewBag?.Data;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml"
__o = ViewBag.IntIndexer?[0];
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml"
__o = ViewBag.StrIndexer?["key"];
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml"
__o = ViewBag?.Method(Value?[23]?.More)?["key"];
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml"
__o = ViewBag?.Data;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml"
__o = ViewBag.IntIndexer?[0];
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml"
__o = ViewBag.StrIndexer?["key"];
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml"
__o = ViewBag?.Method(Value?[23]?.More)?["key"];
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.mappings.txt
index 1811d93f1f7..c71bc3fa1ab 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.mappings.txt
@@ -1,75 +1,75 @@
Source Location: (2:0,2 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml)
|
|
-Generated Location: (753:18,2 [6] )
+Generated Location: (772:19,2 [6] )
|
|
Source Location: (9:1,5 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml)
|ViewBag?.Data|
-Generated Location: (900:24,6 [13] )
+Generated Location: (957:27,6 [13] )
|ViewBag?.Data|
Source Location: (22:1,18 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml)
|
|
-Generated Location: (1067:29,18 [6] )
+Generated Location: (1162:34,18 [6] )
|
|
Source Location: (29:2,5 [22] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml)
|ViewBag.IntIndexer?[0]|
-Generated Location: (1214:35,6 [22] )
+Generated Location: (1347:42,6 [22] )
|ViewBag.IntIndexer?[0]|
Source Location: (51:2,27 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml)
|
|
-Generated Location: (1399:40,27 [6] )
+Generated Location: (1570:49,27 [6] )
|
|
Source Location: (58:3,5 [26] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml)
|ViewBag.StrIndexer?["key"]|
-Generated Location: (1546:46,6 [26] )
+Generated Location: (1755:57,6 [26] )
|ViewBag.StrIndexer?["key"]|
Source Location: (84:3,31 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml)
|
|
-Generated Location: (1739:51,31 [6] )
+Generated Location: (1986:64,31 [6] )
|
|
Source Location: (91:4,5 [41] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml)
|ViewBag?.Method(Value?[23]?.More)?["key"]|
-Generated Location: (1886:57,6 [41] )
+Generated Location: (2171:72,6 [41] )
|ViewBag?.Method(Value?[23]?.More)?["key"]|
Source Location: (132:4,46 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml)
|
|
-Generated Location: (2109:62,46 [2] )
+Generated Location: (2432:79,46 [2] )
|
|
Source Location: (140:7,1 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml)
|ViewBag?.Data|
-Generated Location: (2250:67,6 [13] )
+Generated Location: (2611:86,6 [13] )
|ViewBag?.Data|
Source Location: (156:8,1 [22] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml)
|ViewBag.IntIndexer?[0]|
-Generated Location: (2405:72,6 [22] )
+Generated Location: (2804:93,6 [22] )
|ViewBag.IntIndexer?[0]|
Source Location: (181:9,1 [26] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml)
|ViewBag.StrIndexer?["key"]|
-Generated Location: (2570:77,6 [26] )
+Generated Location: (3007:100,6 [26] )
|ViewBag.StrIndexer?["key"]|
Source Location: (210:10,1 [41] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml)
|ViewBag?.Method(Value?[23]?.More)?["key"]|
-Generated Location: (2739:82,6 [41] )
+Generated Location: (3214:107,6 [41] )
|ViewBag?.Method(Value?[23]?.More)?["key"]|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_Runtime.codegen.cs
index eb8bd3a54ed..5ed8813cb21 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_Runtime.codegen.cs
@@ -11,50 +11,66 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NullCondit
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml"
Write(ViewBag?.Data);
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml"
Write(ViewBag.IntIndexer?[0]);
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml"
Write(ViewBag.StrIndexer?["key"]);
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml"
Write(ViewBag?.Method(Value?[23]?.More)?["key"]);
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml"
Write(ViewBag?.Data);
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml"
Write(ViewBag.IntIndexer?[0]);
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml"
Write(ViewBag.StrIndexer?["key"]);
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions.cshtml"
Write(ViewBag?.Method(Value?[23]?.More)?["key"]);
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.codegen.cs
index 40f50f1e8bc..90493863864 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.codegen.cs
@@ -15,21 +15,27 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml"
if (true) {
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml"
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.mappings.txt
index 96e7303e2bd..bf39975d37a 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.mappings.txt
@@ -1,19 +1,19 @@
Source Location: (17:2,1 [14] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml)
|if (true) {
|
-Generated Location: (716:18,1 [14] )
+Generated Location: (735:19,1 [14] )
|if (true) {
|
Source Location: (38:3,7 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml)
|
|
-Generated Location: (852:23,7 [2] )
+Generated Location: (909:26,7 [2] )
|
|
Source Location: (47:4,7 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml)
||
-Generated Location: (976:28,7 [0] )
+Generated Location: (1071:33,7 [0] )
||
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_Runtime.codegen.cs
index bbf190f2220..5b6c2d401df 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_Runtime.codegen.cs
@@ -12,11 +12,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_OpenedIf_R
public async System.Threading.Tasks.Task ExecuteAsync()
{
WriteLiteral("\r\n\r\n");
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml"
if (true) {
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
}
#pragma warning restore 1998
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.codegen.cs
index 10aa94d8a5d..e6b9eddd159 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.codegen.cs
@@ -15,6 +15,7 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError.cshtml"
/*
@@ -24,6 +25,7 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.mappings.txt
index 4056c77df2c..c3a898b88ee 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_DesignTime.mappings.txt
@@ -4,7 +4,7 @@ Source Location: (2:0,2 [31] TestFiles/IntegrationTests/CodeGenerationIntegratio
int i =10;
int j =20;
}|
-Generated Location: (723:18,2 [31] )
+Generated Location: (742:19,2 [31] )
|
/*
int i =10;
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_Runtime.codegen.cs
index 002c92b63ed..27528c0e76c 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError_Runtime.codegen.cs
@@ -11,6 +11,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ParserErro
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ParserError.cshtml"
/*
@@ -20,6 +21,7 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_DesignTime.codegen.cs
index 7b5af6a7b83..15438555bee 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_DesignTime.codegen.cs
@@ -10,11 +10,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_PrefixedAt
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -25,6 +27,7 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml"
var literate = "or illiterate";
@@ -39,78 +42,99 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper1 = CreateTagHelper();
__TestNamespace_InputTagHelper2 = CreateTagHelper();
+#nullable restore
#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper1.IntDictionaryProperty = intDictionary;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper2.IntDictionaryProperty = __TestNamespace_InputTagHelper1.IntDictionaryProperty;
+#nullable restore
#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper1.StringDictionaryProperty = stringDictionary;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper2.StringDictionaryProperty = __TestNamespace_InputTagHelper1.StringDictionaryProperty;
__TestNamespace_InputTagHelper1 = CreateTagHelper();
__TestNamespace_InputTagHelper2 = CreateTagHelper();
+#nullable restore
#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper1.IntDictionaryProperty = intDictionary;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper2.IntDictionaryProperty = __TestNamespace_InputTagHelper1.IntDictionaryProperty;
+#nullable restore
#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper1.IntDictionaryProperty["garlic"] = 37;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper2.IntDictionaryProperty["garlic"] = __TestNamespace_InputTagHelper1.IntDictionaryProperty["garlic"];
+#nullable restore
#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper1.IntProperty = 42;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper2.IntDictionaryProperty["grabber"] = __TestNamespace_InputTagHelper1.IntProperty;
__TestNamespace_InputTagHelper1 = CreateTagHelper();
__TestNamespace_InputTagHelper2 = CreateTagHelper();
+#nullable restore
#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper1.IntProperty = 42;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper2.IntDictionaryProperty["grabber"] = __TestNamespace_InputTagHelper1.IntProperty;
+#nullable restore
#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper1.IntDictionaryProperty["salt"] = 37;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper2.IntDictionaryProperty["salt"] = __TestNamespace_InputTagHelper1.IntDictionaryProperty["salt"];
+#nullable restore
#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper1.IntDictionaryProperty["pepper"] = 98;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper2.IntDictionaryProperty["pepper"] = __TestNamespace_InputTagHelper1.IntDictionaryProperty["pepper"];
__TestNamespace_InputTagHelper1.StringProperty = "string";
__TestNamespace_InputTagHelper2.StringDictionaryProperty["grabber"] = __TestNamespace_InputTagHelper1.StringProperty;
__TestNamespace_InputTagHelper1.StringDictionaryProperty["paprika"] = "another string";
__TestNamespace_InputTagHelper2.StringDictionaryProperty["paprika"] = __TestNamespace_InputTagHelper1.StringDictionaryProperty["paprika"];
+#nullable restore
#line 21 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml"
__o = literate;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper1.StringDictionaryProperty["cumin"] = string.Empty;
__TestNamespace_InputTagHelper2.StringDictionaryProperty["cumin"] = __TestNamespace_InputTagHelper1.StringDictionaryProperty["cumin"];
__TestNamespace_InputTagHelper1 = CreateTagHelper();
__TestNamespace_InputTagHelper2 = CreateTagHelper();
+#nullable restore
#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper1.IntDictionaryProperty["value"] = 37;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper2.IntDictionaryProperty["value"] = __TestNamespace_InputTagHelper1.IntDictionaryProperty["value"];
__TestNamespace_InputTagHelper1.StringDictionaryProperty["thyme"] = "string";
__TestNamespace_InputTagHelper2.StringDictionaryProperty["thyme"] = __TestNamespace_InputTagHelper1.StringDictionaryProperty["thyme"];
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_DesignTime.mappings.txt
index ea1b6c005f4..240afcc5dfa 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_DesignTime.mappings.txt
@@ -1,6 +1,6 @@
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml)
|"*, TestAssembly"|
-Generated Location: (712:13,37 [17] )
+Generated Location: (731:14,37 [17] )
|"*, TestAssembly"|
Source Location: (37:2,2 [242] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml)
@@ -15,7 +15,7 @@ Source Location: (37:2,2 [242] TestFiles/IntegrationTests/CodeGenerationIntegrat
{ "name", "value" },
};
|
-Generated Location: (1182:28,2 [242] )
+Generated Location: (1239:31,2 [242] )
|
var literate = "or illiterate";
var intDictionary = new Dictionary
@@ -30,51 +30,51 @@ Generated Location: (1182:28,2 [242] )
Source Location: (370:15,43 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml)
|intDictionary|
-Generated Location: (1825:44,56 [13] )
+Generated Location: (1920:49,56 [13] )
|intDictionary|
Source Location: (404:15,77 [16] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml)
|stringDictionary|
-Generated Location: (2177:50,77 [16] )
+Generated Location: (2310:57,77 [16] )
|stringDictionary|
Source Location: (468:16,43 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml)
|intDictionary|
-Generated Location: (2727:58,56 [13] )
+Generated Location: (2898:67,56 [13] )
|intDictionary|
Source Location: (502:16,77 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml)
|37|
-Generated Location: (3079:64,77 [2] )
+Generated Location: (3288:75,77 [2] )
|37|
Source Location: (526:16,101 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml)
|42|
-Generated Location: (3464:70,101 [2] )
+Generated Location: (3711:83,101 [2] )
|42|
Source Location: (590:18,31 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml)
|42|
-Generated Location: (3985:78,46 [2] )
+Generated Location: (4270:93,46 [2] )
|42|
Source Location: (611:18,52 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml)
|37|
-Generated Location: (4314:84,64 [2] )
+Generated Location: (4637:101,64 [2] )
|37|
Source Location: (634:18,75 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml)
|98|
-Generated Location: (4669:90,75 [2] )
+Generated Location: (5030:109,75 [2] )
|98|
Source Location: (783:20,42 [8] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml)
|literate|
-Generated Location: (5451:100,42 [8] )
+Generated Location: (5850:121,42 [8] )
|literate|
Source Location: (826:21,29 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml)
|37|
-Generated Location: (6115:109,65 [2] )
+Generated Location: (6552:132,65 [2] )
|37|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_Runtime.codegen.cs
index 8a6d41c7508..08a94f8f445 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers_Runtime.codegen.cs
@@ -39,6 +39,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_PrefixedAt
public async System.Threading.Tasks.Task ExecuteAsync()
{
WriteLiteral("\r\n");
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml"
var literate = "or illiterate";
@@ -53,6 +54,7 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => {
}
@@ -62,18 +64,22 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__TestNamespace_InputTagHelper2 = CreateTagHelper
();
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
+#nullable restore
#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper1.IntDictionaryProperty = intDictionary;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("int-dictionary", __TestNamespace_InputTagHelper1.IntDictionaryProperty, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__TestNamespace_InputTagHelper2.IntDictionaryProperty = __TestNamespace_InputTagHelper1.IntDictionaryProperty;
+#nullable restore
#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper1.StringDictionaryProperty = stringDictionary;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("string-dictionary", __TestNamespace_InputTagHelper1.StringDictionaryProperty, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__TestNamespace_InputTagHelper2.StringDictionaryProperty = __TestNamespace_InputTagHelper1.StringDictionaryProperty;
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
@@ -92,33 +98,39 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__TestNamespace_InputTagHelper2 = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
+#nullable restore
#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper1.IntDictionaryProperty = intDictionary;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("int-dictionary", __TestNamespace_InputTagHelper1.IntDictionaryProperty, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__TestNamespace_InputTagHelper2.IntDictionaryProperty = __TestNamespace_InputTagHelper1.IntDictionaryProperty;
if (__TestNamespace_InputTagHelper1.IntDictionaryProperty == null)
{
throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("int-prefix-garlic", "TestNamespace.InputTagHelper1", "IntDictionaryProperty"));
}
+#nullable restore
#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper1.IntDictionaryProperty["garlic"] = 37;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("int-prefix-garlic", __TestNamespace_InputTagHelper1.IntDictionaryProperty["garlic"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
if (__TestNamespace_InputTagHelper2.IntDictionaryProperty == null)
{
throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("int-prefix-garlic", "TestNamespace.InputTagHelper2", "IntDictionaryProperty"));
}
__TestNamespace_InputTagHelper2.IntDictionaryProperty["garlic"] = __TestNamespace_InputTagHelper1.IntDictionaryProperty["garlic"];
+#nullable restore
#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper1.IntProperty = 42;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("int-prefix-grabber", __TestNamespace_InputTagHelper1.IntProperty, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__TestNamespace_InputTagHelper2.IntDictionaryProperty["grabber"] = __TestNamespace_InputTagHelper1.IntProperty;
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
@@ -137,11 +149,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__TestNamespace_InputTagHelper2 = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_InputTagHelper2);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
+#nullable restore
#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper1.IntProperty = 42;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("int-prefix-grabber", __TestNamespace_InputTagHelper1.IntProperty, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
if (__TestNamespace_InputTagHelper2.IntDictionaryProperty == null)
{
@@ -152,18 +166,22 @@ public async System.Threading.Tasks.Task ExecuteAsync()
{
throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("int-prefix-salt", "TestNamespace.InputTagHelper1", "IntDictionaryProperty"));
}
+#nullable restore
#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper1.IntDictionaryProperty["salt"] = 37;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("int-prefix-salt", __TestNamespace_InputTagHelper1.IntDictionaryProperty["salt"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__TestNamespace_InputTagHelper2.IntDictionaryProperty["salt"] = __TestNamespace_InputTagHelper1.IntDictionaryProperty["salt"];
+#nullable restore
#line 19 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper1.IntDictionaryProperty["pepper"] = 98;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("int-prefix-pepper", __TestNamespace_InputTagHelper1.IntDictionaryProperty["pepper"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__TestNamespace_InputTagHelper2.IntDictionaryProperty["pepper"] = __TestNamespace_InputTagHelper1.IntDictionaryProperty["pepper"];
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
@@ -189,11 +207,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
}
BeginWriteTagHelperAttribute();
WriteLiteral("literate ");
+#nullable restore
#line 21 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml"
WriteLiteral(literate);
#line default
#line hidden
+#nullable disable
WriteLiteral("?");
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
__TestNamespace_InputTagHelper1.StringDictionaryProperty["cumin"] = __tagHelperStringValueBuffer;
@@ -222,11 +242,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
{
throw new InvalidOperationException(InvalidTagHelperIndexerAssignment("int-prefix-value", "TestNamespace.InputTagHelper1", "IntDictionaryProperty"));
}
+#nullable restore
#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/PrefixedAttributeTagHelpers.cshtml"
__TestNamespace_InputTagHelper1.IntDictionaryProperty["value"] = 37;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("int-prefix-value", __TestNamespace_InputTagHelper1.IntDictionaryProperty["value"], global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
if (__TestNamespace_InputTagHelper2.IntDictionaryProperty == null)
{
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.codegen.cs
index de5d6f8ac66..d4fb4049abb 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.codegen.cs
@@ -15,18 +15,23 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml"
Exception foo =
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml"
null;
if(foo != null) {
@@ -35,21 +40,28 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml"
var bar = "@* bar *@";
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml"
__o = bar;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml"
__o = ab;
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.mappings.txt
index 3357a58b2f5..3ad7eb8bbd9 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_DesignTime.mappings.txt
@@ -1,14 +1,14 @@
Source Location: (81:3,2 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml)
|
|
-Generated Location: (727:18,2 [6] )
+Generated Location: (746:19,2 [6] )
|
|
Source Location: (122:4,39 [22] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml)
|
Exception foo = |
-Generated Location: (894:24,39 [22] )
+Generated Location: (951:27,39 [22] )
|
Exception foo = |
@@ -18,7 +18,7 @@ Source Location: (173:5,49 [58] TestFiles/IntegrationTests/CodeGenerationIntegra
throw foo;
}
|
-Generated Location: (1087:30,49 [58] )
+Generated Location: (1182:35,49 [58] )
| null;
if(foo != null) {
throw foo;
@@ -27,21 +27,21 @@ Generated Location: (1087:30,49 [58] )
Source Location: (238:11,2 [24] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml)
| var bar = "@* bar *@"; |
-Generated Location: (1268:38,2 [24] )
+Generated Location: (1401:45,2 [24] )
| var bar = "@* bar *@"; |
Source Location: (310:12,45 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml)
|bar|
-Generated Location: (1460:43,45 [3] )
+Generated Location: (1631:52,45 [3] )
|bar|
Source Location: (323:14,2 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml)
|a|
-Generated Location: (1593:48,6 [1] )
+Generated Location: (1802:59,6 [1] )
|a|
Source Location: (328:14,7 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml)
|b|
-Generated Location: (1594:48,7 [1] )
+Generated Location: (1803:59,7 [1] )
|b|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_Runtime.codegen.cs
index 03ba3c9e41d..b833277cf41 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments_Runtime.codegen.cs
@@ -13,12 +13,15 @@ public async System.Threading.Tasks.Task ExecuteAsync()
{
WriteLiteral("This should ");
WriteLiteral(" be shown
\r\n\r\n");
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml"
Exception foo =
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml"
null;
if(foo != null) {
@@ -27,24 +30,31 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml"
var bar = "@* bar *@";
#line default
#line hidden
+#nullable disable
WriteLiteral("But this should show the comment syntax: ");
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml"
Write(bar);
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\n\r\n");
+#nullable restore
#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorComments.cshtml"
Write(ab);
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n\r\n \r\n \r\n");
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.codegen.cs
index 997aecf7179..8a96ffc8404 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.codegen.cs
@@ -8,11 +8,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RemoveTagH
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.mappings.txt
index eb3dd0052cc..a607226eb22 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective_DesignTime.mappings.txt
@@ -1,5 +1,5 @@
Source Location: (17:0,17 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RemoveTagHelperDirective.cshtml)
|*, TestAssembly|
-Generated Location: (531:11,38 [15] )
+Generated Location: (550:12,38 [15] )
|*, TestAssembly|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.codegen.cs
index fa69badba2e..4a9f4368962 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.codegen.cs
@@ -8,27 +8,33 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Sections_D
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml"
global::System.Object Section2 = null;
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml"
global::System.Object Section1 = null;
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml"
global::System.Object NestedDelegates = null;
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -39,42 +45,52 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml"
Layout = "_SectionTestLayout.cshtml"
#line default
#line hidden
+#nullable disable
DefineSection("Section2", async(__razor_section_writer) => {
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml"
__o = thing;
#line default
#line hidden
+#nullable disable
}
);
DefineSection("Section1", async(__razor_section_writer) => {
}
);
DefineSection("NestedDelegates", async(__razor_section_writer) => {
+#nullable restore
#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml"
Func f =
#line default
#line hidden
+#nullable disable
item => new Template(async(__razor_template_writer) => {
+#nullable restore
#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml"
__o = item;
#line default
#line hidden
+#nullable disable
}
)
+#nullable restore
#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml"
;
#line default
#line hidden
+#nullable disable
}
);
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.mappings.txt
index f1bbd3c6c69..fe0db2092f0 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_DesignTime.mappings.txt
@@ -1,44 +1,44 @@
Source Location: (89:6,9 [8] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml)
|Section2|
-Generated Location: (483:11,22 [8] )
+Generated Location: (502:12,22 [8] )
|Section2|
Source Location: (172:10,9 [8] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml)
|Section1|
-Generated Location: (699:19,22 [8] )
+Generated Location: (756:22,22 [8] )
|Section1|
Source Location: (235:14,9 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml)
|NestedDelegates|
-Generated Location: (915:27,22 [15] )
+Generated Location: (1010:32,22 [15] )
|NestedDelegates|
Source Location: (2:0,2 [44] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml)
|
Layout = "_SectionTestLayout.cshtml"
|
-Generated Location: (1371:42,2 [44] )
+Generated Location: (1504:49,2 [44] )
|
Layout = "_SectionTestLayout.cshtml"
|
Source Location: (123:7,22 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml)
|thing|
-Generated Location: (1626:49,22 [5] )
+Generated Location: (1797:58,22 [5] )
|thing|
Source Location: (260:15,6 [27] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml)
| Func f = |
-Generated Location: (1973:60,6 [27] )
+Generated Location: (2182:71,6 [27] )
| Func f = |
Source Location: (295:15,41 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml)
|item|
-Generated Location: (2233:66,41 [4] )
+Generated Location: (2480:79,41 [4] )
|item|
Source Location: (306:15,52 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml)
|; |
-Generated Location: (2446:73,52 [2] )
+Generated Location: (2731:88,52 [2] )
|; |
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_Runtime.codegen.cs
index 3e6af4799b4..f73b2141c16 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections_Runtime.codegen.cs
@@ -11,22 +11,26 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Sections_R
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml"
Layout = "_SectionTestLayout.cshtml"
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\nThis is in the Body>\r\n\r\n");
DefineSection("Section2", async() => {
WriteLiteral("\r\n
This is in Section 2
\r\n");
}
@@ -39,28 +43,34 @@ public async System.Threading.Tasks.Task ExecuteAsync()
WriteLiteral("\r\n");
DefineSection("NestedDelegates", async() => {
WriteLiteral("\r\n");
+#nullable restore
#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml"
Func
f =
#line default
#line hidden
+#nullable disable
item => new Template(async(__razor_template_writer) => {
PushWriter(__razor_template_writer);
WriteLiteral("");
+#nullable restore
#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml"
Write(item);
#line default
#line hidden
+#nullable disable
WriteLiteral(" ");
PopWriter();
}
)
+#nullable restore
#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Sections.cshtml"
;
#line default
#line hidden
+#nullable disable
}
);
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_DesignTime.codegen.cs
index 74ba99e03fb..1ad3a7830da 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_DesignTime.codegen.cs
@@ -9,11 +9,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SimpleTagH
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_DesignTime.mappings.txt
index b2c300d6276..9593c67dea2 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers_DesignTime.mappings.txt
@@ -1,5 +1,5 @@
Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleTagHelpers.cshtml)
|*, TestAssembly|
-Generated Location: (573:12,38 [15] )
+Generated Location: (592:13,38 [15] )
|*, TestAssembly|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.codegen.cs
index 0c8f87aa051..6f0947cdd62 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.codegen.cs
@@ -15,6 +15,7 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf.cshtml"
if (true)
{
@@ -22,12 +23,15 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf.cshtml"
}
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.mappings.txt
index 77c880477a7..b49f243de1e 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_DesignTime.mappings.txt
@@ -2,7 +2,7 @@ Source Location: (1:0,1 [15] TestFiles/IntegrationTests/CodeGenerationIntegratio
|if (true)
{
|
-Generated Location: (732:18,1 [15] )
+Generated Location: (751:19,1 [15] )
|if (true)
{
|
@@ -10,7 +10,7 @@ Generated Location: (732:18,1 [15] )
Source Location: (27:2,12 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf.cshtml)
|
}|
-Generated Location: (887:25,15 [3] )
+Generated Location: (944:28,15 [3] )
|
}|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_Runtime.codegen.cs
index d3af840b593..d9a41093550 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf_Runtime.codegen.cs
@@ -11,18 +11,22 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SimpleUnsp
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf.cshtml"
if (true)
{
#line default
#line hidden
+#nullable disable
WriteLiteral("\t
\r\n");
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SimpleUnspacedIf.cshtml"
}
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_DesignTime.codegen.cs
index eff8546b1d9..0935d3a6e23 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_DesignTime.codegen.cs
@@ -9,11 +9,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SingleTagH
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -25,11 +27,13 @@ private void __RazorDirectiveTokenHelpers__() {
public async System.Threading.Tasks.Task ExecuteAsync()
{
__TestNamespace_PTagHelper = CreateTagHelper();
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes.cshtml"
__TestNamespace_PTagHelper.Age = 1337;
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_DesignTime.mappings.txt
index 038c4de2c6c..10a7afd1c96 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_DesignTime.mappings.txt
@@ -1,10 +1,10 @@
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes.cshtml)
|"*, TestAssembly"|
-Generated Location: (644:12,37 [17] )
+Generated Location: (663:13,37 [17] )
|"*, TestAssembly"|
Source Location: (67:3,28 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes.cshtml)
|1337|
-Generated Location: (1255:28,33 [4] )
+Generated Location: (1312:31,33 [4] )
|1337|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_Runtime.codegen.cs
index e2e751c0abc..2a91ccf6431 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes_Runtime.codegen.cs
@@ -39,11 +39,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__TestNamespace_PTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_PTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelperWithNewlineBeforeAttributes.cshtml"
__TestNamespace_PTagHelper.Age = 1337;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_DesignTime.codegen.cs
index 8cb3c83fd56..2217a4f90f6 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_DesignTime.codegen.cs
@@ -9,11 +9,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SingleTagH
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -25,11 +27,13 @@ private void __RazorDirectiveTokenHelpers__() {
public async System.Threading.Tasks.Task ExecuteAsync()
{
__TestNamespace_PTagHelper = CreateTagHelper();
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper.cshtml"
__TestNamespace_PTagHelper.Age = 1337;
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_DesignTime.mappings.txt
index 7504fcd0f3c..4fc0cd4c8e8 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_DesignTime.mappings.txt
@@ -1,10 +1,10 @@
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper.cshtml)
|"*, TestAssembly"|
-Generated Location: (590:12,37 [17] )
+Generated Location: (609:13,37 [17] )
|"*, TestAssembly"|
Source Location: (63:2,28 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper.cshtml)
|1337|
-Generated Location: (1174:28,33 [4] )
+Generated Location: (1231:31,33 [4] )
|1337|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_Runtime.codegen.cs
index ff77e842d5a..ac037abbb1a 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper_Runtime.codegen.cs
@@ -39,11 +39,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__TestNamespace_PTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_PTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SingleTagHelper.cshtml"
__TestNamespace_PTagHelper.Age = 1337;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.codegen.cs
index e71879b612b..27ab1b0a1b0 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.codegen.cs
@@ -8,19 +8,23 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_StringLite
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 86 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals.cshtml"
global::System.Object WriteLiteralsToInHere = null;
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 206 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals.cshtml"
global::System.Object WriteLiteralsToInHereAlso = null;
#line default
#line hidden
+#nullable disable
}
))();
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.mappings.txt
index c8aab8c0086..dd997dde626 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals_DesignTime.mappings.txt
@@ -1,10 +1,10 @@
Source Location: (2022:85,9 [21] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals.cshtml)
|WriteLiteralsToInHere|
-Generated Location: (496:11,22 [21] )
+Generated Location: (515:12,22 [21] )
|WriteLiteralsToInHere|
Source Location: (5701:205,9 [25] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/StringLiterals.cshtml)
|WriteLiteralsToInHereAlso|
-Generated Location: (732:19,22 [25] )
+Generated Location: (789:22,22 [25] )
|WriteLiteralsToInHereAlso|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.codegen.cs
index 245dc4718fd..2175a523ab8 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.codegen.cs
@@ -9,11 +9,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_SymbolBoun
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -25,29 +27,37 @@ private void __RazorDirectiveTokenHelpers__() {
public async System.Threading.Tasks.Task ExecuteAsync()
{
__TestNamespace_CatchAllTagHelper = CreateTagHelper();
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml"
__TestNamespace_CatchAllTagHelper.ListItems = items;
#line default
#line hidden
+#nullable disable
__TestNamespace_CatchAllTagHelper = CreateTagHelper();
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml"
__TestNamespace_CatchAllTagHelper.ArrayItems = items;
#line default
#line hidden
+#nullable disable
__TestNamespace_CatchAllTagHelper = CreateTagHelper();
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml"
__TestNamespace_CatchAllTagHelper.Event1 = doSomething();
#line default
#line hidden
+#nullable disable
__TestNamespace_CatchAllTagHelper = CreateTagHelper();
+#nullable restore
#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml"
__TestNamespace_CatchAllTagHelper.Event2 = doSomething();
#line default
#line hidden
+#nullable disable
__TestNamespace_CatchAllTagHelper = CreateTagHelper();
__TestNamespace_CatchAllTagHelper.StringProperty1 = "value";
__TestNamespace_CatchAllTagHelper = CreateTagHelper();
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.mappings.txt
index dca44c7efe9..37301c43022 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_DesignTime.mappings.txt
@@ -1,25 +1,25 @@
Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml)
|*, TestAssembly|
-Generated Location: (617:12,38 [15] )
+Generated Location: (636:13,38 [15] )
|*, TestAssembly|
Source Location: (302:11,18 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml)
|items|
-Generated Location: (1234:28,46 [5] )
+Generated Location: (1291:31,46 [5] )
|items|
Source Location: (351:12,20 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml)
|items|
-Generated Location: (1527:34,47 [5] )
+Generated Location: (1622:39,47 [5] )
|items|
Source Location: (405:13,23 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml)
|doSomething()|
-Generated Location: (1816:40,43 [13] )
+Generated Location: (1949:47,43 [13] )
|doSomething()|
Source Location: (487:14,24 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml)
|doSomething()|
-Generated Location: (2113:46,43 [13] )
+Generated Location: (2284:55,43 [13] )
|doSomething()|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_Runtime.codegen.cs
index bac695f3eaf..187ebaa6a63 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes_Runtime.codegen.cs
@@ -47,11 +47,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
BeginWriteTagHelperAttribute();
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
__tagHelperExecutionContext.AddHtmlAttribute("bound", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized);
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml"
__TestNamespace_CatchAllTagHelper.ListItems = items;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("[item]", __TestNamespace_CatchAllTagHelper.ListItems, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
@@ -70,11 +72,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
BeginWriteTagHelperAttribute();
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
__tagHelperExecutionContext.AddHtmlAttribute("bound", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized);
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml"
__TestNamespace_CatchAllTagHelper.ArrayItems = items;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("[(item)]", __TestNamespace_CatchAllTagHelper.ArrayItems, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_1);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
@@ -94,11 +98,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
BeginWriteTagHelperAttribute();
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
__tagHelperExecutionContext.AddHtmlAttribute("bound", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized);
+#nullable restore
#line 14 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml"
__TestNamespace_CatchAllTagHelper.Event1 = doSomething();
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("(click)", __TestNamespace_CatchAllTagHelper.Event1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_2);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
@@ -118,11 +124,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
BeginWriteTagHelperAttribute();
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
__tagHelperExecutionContext.AddHtmlAttribute("bound", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.Minimized);
+#nullable restore
#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/SymbolBoundAttributes.cshtml"
__TestNamespace_CatchAllTagHelper.Event2 = doSomething();
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("(^click)", __TestNamespace_CatchAllTagHelper.Event2, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_DesignTime.codegen.cs
index cf886274e99..7c12b772e5e 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_DesignTime.codegen.cs
@@ -10,27 +10,33 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpers
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml"
global::System.Object MySection = null;
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml"
global::System.Object nestedsection = null;
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -41,31 +47,39 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml"
var code = "some code";
#line default
#line hidden
+#nullable disable
DefineSection("MySection", async(__razor_section_writer) => {
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml"
__o = code;
#line default
#line hidden
+#nullable disable
__TestNamespace_NestedTagHelper = CreateTagHelper();
__TestNamespace_MyTagHelper = CreateTagHelper();
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml"
__o = DateTime.Now;
#line default
#line hidden
+#nullable disable
__TestNamespace_MyTagHelper.BoundProperty = string.Empty;
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml"
__o = DateTime.Now;
#line default
#line hidden
+#nullable disable
__TestNamespace_NestedTagHelper = CreateTagHelper();
}
);
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_DesignTime.mappings.txt
index 076667f5633..c22fb1f9dd5 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_DesignTime.mappings.txt
@@ -1,39 +1,39 @@
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml)
|"*, TestAssembly"|
-Generated Location: (688:13,37 [17] )
+Generated Location: (707:14,37 [17] )
|"*, TestAssembly"|
Source Location: (82:6,9 [9] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml)
|MySection|
-Generated Location: (916:21,22 [9] )
+Generated Location: (973:24,22 [9] )
|MySection|
Source Location: (388:14,13 [13] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml)
|nestedsection|
-Generated Location: (1144:29,22 [13] )
+Generated Location: (1239:34,22 [13] )
|nestedsection|
Source Location: (37:2,2 [31] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml)
|
var code = "some code";
|
-Generated Location: (1609:44,2 [31] )
+Generated Location: (1742:51,2 [31] )
|
var code = "some code";
|
Source Location: (313:10,56 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml)
|code|
-Generated Location: (1898:51,56 [4] )
+Generated Location: (2069:60,56 [4] )
|code|
Source Location: (157:8,51 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml)
|DateTime.Now|
-Generated Location: (2292:58,51 [12] )
+Generated Location: (2501:69,51 [12] )
|DateTime.Now|
Source Location: (203:8,97 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml)
|DateTime.Now|
-Generated Location: (2605:64,97 [12] )
+Generated Location: (2852:77,97 [12] )
|DateTime.Now|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_Runtime.codegen.cs
index fe276fcbea1..4ec7e5dd25c 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection_Runtime.codegen.cs
@@ -32,12 +32,14 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpers
public async System.Threading.Tasks.Task ExecuteAsync()
{
WriteLiteral("\r\n");
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml"
var code = "some code";
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
DefineSection("MySection", async() => {
WriteLiteral("\r\n \r\n ");
@@ -45,11 +47,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
WriteLiteral("\r\n In None ContentBehavior.\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("nestedtaghelper", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
WriteLiteral("Some buffered values with ");
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml"
Write(code);
#line default
#line hidden
+#nullable disable
}
);
__TestNamespace_NestedTagHelper = CreateTagHelper
();
@@ -68,22 +72,26 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.Add(__TestNamespace_MyTagHelper);
BeginWriteTagHelperAttribute();
WriteLiteral("Current Time: ");
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml"
WriteLiteral(DateTime.Now);
#line default
#line hidden
+#nullable disable
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
__TestNamespace_MyTagHelper.BoundProperty = __tagHelperStringValueBuffer;
__tagHelperExecutionContext.AddTagHelperAttribute("boundproperty", __TestNamespace_MyTagHelper.BoundProperty, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "unboundproperty", 3, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
AddHtmlAttributeValue("", 188, "Current", 188, 7, true);
AddHtmlAttributeValue(" ", 195, "Time:", 196, 6, true);
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersInSection.cshtml"
AddHtmlAttributeValue(" ", 201, DateTime.Now, 202, 13, false);
#line default
#line hidden
+#nullable disable
EndAddHtmlAttributeValues(__tagHelperExecutionContext);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_DesignTime.codegen.cs
index 316e5938a76..346627dfdf8 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_DesignTime.codegen.cs
@@ -9,11 +9,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpers
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -25,11 +27,13 @@ private void __RazorDirectiveTokenHelpers__() {
public async System.Threading.Tasks.Task ExecuteAsync()
{
__InputTagHelper = CreateTagHelper();
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes.cshtml"
__o = Hello;
#line default
#line hidden
+#nullable disable
__InputTagHelper.BoundProp = string.Empty;
}
#pragma warning restore 1998
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_DesignTime.mappings.txt
index 8996c532bdc..d9fa738e43a 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_DesignTime.mappings.txt
@@ -1,10 +1,10 @@
Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes.cshtml)
|*, TestAssembly|
-Generated Location: (599:12,38 [15] )
+Generated Location: (618:13,38 [15] )
|*, TestAssembly|
Source Location: (57:2,18 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes.cshtml)
|Hello|
-Generated Location: (1161:28,18 [5] )
+Generated Location: (1218:31,18 [5] )
|Hello|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_Runtime.codegen.cs
index acaa25cdb06..20611de088c 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes_Runtime.codegen.cs
@@ -38,11 +38,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__InputTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__InputTagHelper);
BeginWriteTagHelperAttribute();
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithBoundAttributes.cshtml"
WriteLiteral(Hello);
#line default
#line hidden
+#nullable disable
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
__InputTagHelper.BoundProp = __tagHelperStringValueBuffer;
__tagHelperExecutionContext.AddTagHelperAttribute("bound", __InputTagHelper.BoundProp, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_DesignTime.codegen.cs
index 2bf7aca9c76..2c6b661cbb9 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_DesignTime.codegen.cs
@@ -10,11 +10,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpers
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -28,21 +30,27 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__InputTagHelper = CreateTagHelper();
__InputTagHelper.BoundProp = "hello";
__DivTagHelper = CreateTagHelper();
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml"
__o = foo;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml"
__o = bar;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml"
__o = foo;
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_DesignTime.mappings.txt
index 634c5ee5602..bfce5601567 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_DesignTime.mappings.txt
@@ -1,20 +1,20 @@
Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml)
|*, TestAssembly|
-Generated Location: (659:13,38 [15] )
+Generated Location: (678:14,38 [15] )
|*, TestAssembly|
Source Location: (111:3,15 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml)
|foo|
-Generated Location: (1343:31,15 [3] )
+Generated Location: (1400:34,15 [3] )
|foo|
Source Location: (126:3,30 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml)
|bar|
-Generated Location: (1518:36,30 [3] )
+Generated Location: (1613:41,30 [3] )
|bar|
Source Location: (225:4,61 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml)
|foo|
-Generated Location: (1724:41,61 [3] )
+Generated Location: (1857:48,61 [3] )
|foo|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_Runtime.codegen.cs
index 321883db17a..4de77bd981b 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes_Runtime.codegen.cs
@@ -61,19 +61,23 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__DivTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__DivTagHelper);
BeginWriteTagHelperAttribute();
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml"
Write(foo);
#line default
#line hidden
+#nullable disable
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
__tagHelperExecutionContext.AddHtmlAttribute("data-one", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
BeginWriteTagHelperAttribute();
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml"
Write(bar);
#line default
#line hidden
+#nullable disable
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
__tagHelperExecutionContext.AddHtmlAttribute("data-two", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
@@ -89,11 +93,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
BeginWriteAttribute("attr", " attr=\"", 166, "\"", 173, 0);
EndWriteAttribute();
WriteLiteral(" data-one=\"\" data-two= data-three=hello data-four=");
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithDataDashAttributes.cshtml"
Write(foo);
#line default
#line hidden
+#nullable disable
WriteLiteral(">\r\n");
}
#pragma warning restore 1998
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_DesignTime.codegen.cs
index d578f477fc1..67b895feb89 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_DesignTime.codegen.cs
@@ -9,19 +9,23 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpers
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
((System.Action)(() => {
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml"
global::System.Object __typeHelper = "cool:";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -33,11 +37,13 @@ private void __RazorDirectiveTokenHelpers__() {
public async System.Threading.Tasks.Task ExecuteAsync()
{
__InputTagHelper = CreateTagHelper();
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml"
__o = Hello;
#line default
#line hidden
+#nullable disable
__InputTagHelper.BoundProp = string.Empty;
}
#pragma warning restore 1998
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_DesignTime.mappings.txt
index 1635962c6a6..e8d9aa5ec45 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_DesignTime.mappings.txt
@@ -1,15 +1,15 @@
Source Location: (14:0,14 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml)
|*, TestAssembly|
-Generated Location: (581:12,38 [15] )
+Generated Location: (600:13,38 [15] )
|*, TestAssembly|
Source Location: (48:1,17 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml)
|cool:|
-Generated Location: (825:20,38 [5] )
+Generated Location: (882:23,38 [5] )
|cool:|
Source Location: (86:3,23 [5] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml)
|Hello|
-Generated Location: (1373:36,23 [5] )
+Generated Location: (1468:41,23 [5] )
|Hello|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_Runtime.codegen.cs
index a12f078f296..433ab5477b7 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix_Runtime.codegen.cs
@@ -38,11 +38,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__InputTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__InputTagHelper);
BeginWriteTagHelperAttribute();
+#nullable restore
#line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithPrefix.cshtml"
WriteLiteral(Hello);
#line default
#line hidden
+#nullable disable
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
__InputTagHelper.BoundProp = __tagHelperStringValueBuffer;
__tagHelperExecutionContext.AddTagHelperAttribute("bound", __InputTagHelper.BoundProp, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_DesignTime.codegen.cs
index 431dc241e9a..c92d670f37b 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_DesignTime.codegen.cs
@@ -10,11 +10,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpers
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -25,6 +27,7 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml"
RenderTemplate(
@@ -33,25 +36,31 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
item => new Template(async(__razor_template_writer) => {
+#nullable restore
#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml"
__o = item;
#line default
#line hidden
+#nullable disable
__InputTagHelper = CreateTagHelper();
__DivTagHelper = CreateTagHelper();
}
)
+#nullable restore
#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml"
);
#line default
#line hidden
+#nullable disable
__DivTagHelper = CreateTagHelper();
}
#pragma warning restore 1998
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml"
public void RenderTemplate(string title, Func template)
@@ -63,6 +72,7 @@ public void RenderTemplate(string title, Func template)
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_DesignTime.mappings.txt
index 7c9c00360a8..bb29992ce21 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_DesignTime.mappings.txt
@@ -1,6 +1,6 @@
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml)
|"*, TestAssembly"|
-Generated Location: (638:13,37 [17] )
+Generated Location: (657:14,37 [17] )
|"*, TestAssembly"|
Source Location: (333:12,6 [66] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml)
@@ -8,7 +8,7 @@ Source Location: (333:12,6 [66] TestFiles/IntegrationTests/CodeGenerationIntegra
RenderTemplate(
"Template: ",
|
-Generated Location: (1108:28,6 [66] )
+Generated Location: (1165:31,6 [66] )
|
RenderTemplate(
"Template: ",
@@ -16,13 +16,13 @@ Generated Location: (1108:28,6 [66] )
Source Location: (427:15,40 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml)
|item|
-Generated Location: (1416:37,40 [4] )
+Generated Location: (1511:42,40 [4] )
|item|
Source Location: (482:15,95 [8] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml)
|);
|
-Generated Location: (1832:46,95 [8] )
+Generated Location: (1965:53,95 [8] )
|);
|
@@ -35,7 +35,7 @@ Source Location: (47:2,12 [268] TestFiles/IntegrationTests/CodeGenerationIntegra
helperResult.WriteTo(Output, HtmlEncoder);
}
|
-Generated Location: (2103:55,12 [268] )
+Generated Location: (2274:64,12 [268] )
|
public void RenderTemplate(string title, Func template)
{
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_Runtime.codegen.cs
index a8f6cbf9804..e27d68d83b7 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate_Runtime.codegen.cs
@@ -38,6 +38,7 @@ public async System.Threading.Tasks.Task ExecuteAsync()
WriteLiteral("\r\n");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
WriteLiteral("\r\n");
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml"
RenderTemplate(
@@ -46,15 +47,18 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
item => new Template(async(__razor_template_writer) => {
PushWriter(__razor_template_writer);
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
WriteLiteral("");
+#nullable restore
#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml"
Write(item);
#line default
#line hidden
+#nullable disable
WriteLiteral(" ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "test", async() => {
}
@@ -85,12 +89,14 @@ public async System.Threading.Tasks.Task ExecuteAsync()
PopWriter();
}
)
+#nullable restore
#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml"
);
#line default
#line hidden
+#nullable disable
}
);
__DivTagHelper = CreateTagHelper();
@@ -105,6 +111,7 @@ public async System.Threading.Tasks.Task ExecuteAsync()
WriteLiteral("\r\n\r\n");
}
#pragma warning restore 1998
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithTemplate.cshtml"
public void RenderTemplate(string title, Func template)
@@ -116,6 +123,7 @@ public void RenderTemplate(string title, Func template)
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_DesignTime.codegen.cs
index a9bf4e007ce..5c20aac0f06 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_DesignTime.codegen.cs
@@ -11,11 +11,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_TagHelpers
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -27,26 +29,32 @@ private void __RazorDirectiveTokenHelpers__() {
public async System.Threading.Tasks.Task ExecuteAsync()
{
__TestNamespace_PTagHelper = CreateTagHelper();
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml"
__TestNamespace_PTagHelper.Age = 1337;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml"
__o = true;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
__TestNamespace_InputTagHelper2 = CreateTagHelper();
__TestNamespace_InputTagHelper.Type = "text";
__TestNamespace_InputTagHelper2.Type = __TestNamespace_InputTagHelper.Type;
__TestNamespace_PTagHelper = CreateTagHelper();
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml"
__TestNamespace_PTagHelper.Age = 1234;
#line default
#line hidden
+#nullable disable
__TestNamespace_InputTagHelper = CreateTagHelper();
__TestNamespace_InputTagHelper2 = CreateTagHelper();
__TestNamespace_InputTagHelper.Type = "password";
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_DesignTime.mappings.txt
index 30d75597028..ecd160b96cc 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_DesignTime.mappings.txt
@@ -1,20 +1,20 @@
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml)
|"*, TestAssembly"|
-Generated Location: (808:14,37 [17] )
+Generated Location: (827:15,37 [17] )
|"*, TestAssembly"|
Source Location: (74:5,21 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml)
|1337|
-Generated Location: (1414:30,33 [4] )
+Generated Location: (1471:33,33 [4] )
|1337|
Source Location: (99:6,19 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml)
|true|
-Generated Location: (1584:35,19 [4] )
+Generated Location: (1679:40,19 [4] )
|true|
Source Location: (186:10,11 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml)
|1234|
-Generated Location: (2220:45,33 [4] )
+Generated Location: (2353:52,33 [4] )
|1234|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_Runtime.codegen.cs
index 9a0be1c8e23..f0d4d3d1ac7 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes_Runtime.codegen.cs
@@ -46,18 +46,22 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__TestNamespace_PTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_PTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml"
__TestNamespace_PTagHelper.Age = 1337;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
BeginWriteTagHelperAttribute();
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml"
Write(true);
#line default
#line hidden
+#nullable disable
__tagHelperStringValueBuffer = EndWriteTagHelperAttribute();
__tagHelperExecutionContext.AddHtmlAttribute("data-content", Html.Raw(__tagHelperStringValueBuffer), global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
@@ -93,11 +97,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
);
__TestNamespace_PTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_PTagHelper);
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TagHelpersWithWeirdlySpacedAttributes.cshtml"
__TestNamespace_PTagHelper.Age = 1234;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_3);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.codegen.cs
index 80ff2ac1d2a..06f63d1b3d1 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.codegen.cs
@@ -15,22 +15,28 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml"
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.mappings.txt
index 1a2504ef276..046f3128e63 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags_DesignTime.mappings.txt
@@ -1,19 +1,19 @@
Source Location: (2:0,2 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml)
|
|
-Generated Location: (709:18,2 [6] )
+Generated Location: (728:19,2 [6] )
|
|
Source Location: (41:1,37 [0] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml)
||
-Generated Location: (865:24,37 [0] )
+Generated Location: (922:27,37 [0] )
||
Source Location: (59:1,55 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Tags.cshtml)
|
|
-Generated Location: (1033:29,55 [2] )
+Generated Location: (1128:34,55 [2] )
|
|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.codegen.cs
index f1b77b164cc..e9338fa173a 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.codegen.cs
@@ -15,136 +15,179 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
Func foo =
#line default
#line hidden
+#nullable disable
item => new Template(async(__razor_template_writer) => {
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
__o = item;
#line default
#line hidden
+#nullable disable
}
)
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
__o = foo("");
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
Func bar =
#line default
#line hidden
+#nullable disable
item => new Template(async(__razor_template_writer) => {
+#nullable restore
#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
__o = item;
#line default
#line hidden
+#nullable disable
}
)
+#nullable restore
#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 18 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
__o = bar("myclass");
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 18 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
__o = Repeat(10, item => new Template(async(__razor_template_writer) => {
+#nullable restore
#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
__o = item;
#line default
#line hidden
+#nullable disable
}
));
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 26 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
__o = Repeat(10,
item => new Template(async(__razor_template_writer) => {
+#nullable restore
#line 27 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
__o = item;
#line default
#line hidden
+#nullable disable
}
));
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 32 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
__o = Repeat(10,
item => new Template(async(__razor_template_writer) => {
+#nullable restore
#line 33 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
__o = item;
#line default
#line hidden
+#nullable disable
}
));
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 38 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
__o = Repeat(10,
item => new Template(async(__razor_template_writer) => {
+#nullable restore
#line 39 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
__o = item;
#line default
#line hidden
+#nullable disable
}
));
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 45 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
__o = Repeat(10, item => new Template(async(__razor_template_writer) => {
+#nullable restore
#line 46 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
__o = item;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 47 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
var parent = item;
#line default
#line hidden
+#nullable disable
}
));
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
public HelperResult Repeat(int times, Func template) {
@@ -157,6 +200,7 @@ public HelperResult Repeat(int times, Func template) {
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.mappings.txt
index 6f779cac979..4c67be5de0f 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_DesignTime.mappings.txt
@@ -1,149 +1,149 @@
Source Location: (284:10,2 [34] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|
Func foo = |
-Generated Location: (720:18,2 [34] )
+Generated Location: (739:19,2 [34] )
|
Func foo = |
Source Location: (337:11,51 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|item|
-Generated Location: (994:25,51 [4] )
+Generated Location: (1051:28,51 [4] )
|item|
Source Location: (349:11,63 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|;
|
-Generated Location: (1211:32,63 [7] )
+Generated Location: (1306:37,63 [7] )
|;
|
Source Location: (357:12,5 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|foo("")|
-Generated Location: (1343:38,6 [7] )
+Generated Location: (1476:45,6 [7] )
|foo("")|
Source Location: (364:12,12 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|
|
-Generated Location: (1482:43,12 [2] )
+Generated Location: (1653:52,12 [2] )
|
|
Source Location: (373:15,2 [35] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|
Func bar = |
-Generated Location: (1603:48,2 [35] )
+Generated Location: (1812:59,2 [35] )
|
Func bar = |
Source Location: (420:16,44 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|item|
-Generated Location: (1871:55,44 [4] )
+Generated Location: (2118:68,44 [4] )
|item|
Source Location: (435:16,59 [7] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|;
|
-Generated Location: (2084:62,59 [7] )
+Generated Location: (2369:77,59 [7] )
|;
|
Source Location: (443:17,5 [14] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|bar("myclass")|
-Generated Location: (2216:68,6 [14] )
+Generated Location: (2539:85,6 [14] )
|bar("myclass")|
Source Location: (457:17,19 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|
|
-Generated Location: (2369:73,19 [2] )
+Generated Location: (2730:92,19 [2] )
|
|
Source Location: (472:21,2 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|Repeat(10, |
-Generated Location: (2494:78,6 [11] )
+Generated Location: (2893:99,6 [11] )
|Repeat(10, |
Source Location: (495:21,25 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|item|
-Generated Location: (2674:80,25 [4] )
+Generated Location: (3092:102,25 [4] )
|item|
Source Location: (504:21,34 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|)|
-Generated Location: (2716:85,1 [1] )
+Generated Location: (3153:108,1 [1] )
|)|
Source Location: (523:25,1 [16] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|Repeat(10,
|
-Generated Location: (2843:90,6 [16] )
+Generated Location: (3318:115,6 [16] )
|Repeat(10,
|
Source Location: (556:26,21 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|item|
-Generated Location: (3024:93,21 [4] )
+Generated Location: (3518:119,21 [4] )
|item|
Source Location: (577:27,0 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|)|
-Generated Location: (3066:98,1 [1] )
+Generated Location: (3579:125,1 [1] )
|)|
Source Location: (594:31,1 [16] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|Repeat(10,
|
-Generated Location: (3193:103,6 [16] )
+Generated Location: (3744:132,6 [16] )
|Repeat(10,
|
Source Location: (628:32,22 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|item|
-Generated Location: (3375:106,22 [4] )
+Generated Location: (3945:136,22 [4] )
|item|
Source Location: (650:33,0 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|)|
-Generated Location: (3417:111,1 [1] )
+Generated Location: (4006:142,1 [1] )
|)|
Source Location: (667:37,1 [16] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|Repeat(10,
|
-Generated Location: (3544:116,6 [16] )
+Generated Location: (4171:149,6 [16] )
|Repeat(10,
|
Source Location: (702:38,23 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|item|
-Generated Location: (3727:119,23 [4] )
+Generated Location: (4373:153,23 [4] )
|item|
Source Location: (724:39,0 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|)|
-Generated Location: (3769:124,1 [1] )
+Generated Location: (4434:159,1 [1] )
|)|
Source Location: (748:44,5 [11] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|Repeat(10, |
-Generated Location: (3896:129,6 [11] )
+Generated Location: (4599:166,6 [11] )
|Repeat(10, |
Source Location: (781:45,15 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|item|
-Generated Location: (4066:131,15 [4] )
+Generated Location: (4788:169,15 [4] )
|item|
Source Location: (797:46,10 [18] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|var parent = item;|
-Generated Location: (4200:136,10 [18] )
+Generated Location: (4960:176,10 [18] )
|var parent = item;|
Source Location: (956:51,9 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
|)|
-Generated Location: (4255:141,1 [1] )
+Generated Location: (5034:182,1 [1] )
|)|
Source Location: (12:0,12 [265] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml)
@@ -156,7 +156,7 @@ Source Location: (12:0,12 [265] TestFiles/IntegrationTests/CodeGenerationIntegra
});
}
|
-Generated Location: (4436:148,12 [265] )
+Generated Location: (5253:191,12 [265] )
|
public HelperResult Repeat(int times, Func template) {
return new HelperResult((writer) => {
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_Runtime.codegen.cs
index 050a2efb189..8dccc5c2669 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates_Runtime.codegen.cs
@@ -12,77 +12,96 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Templates_
public async System.Threading.Tasks.Task ExecuteAsync()
{
WriteLiteral("\r\n");
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
Func foo =
#line default
#line hidden
+#nullable disable
item => new Template(async(__razor_template_writer) => {
PushWriter(__razor_template_writer);
WriteLiteral("This works ");
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
Write(item);
#line default
#line hidden
+#nullable disable
WriteLiteral("!");
PopWriter();
}
)
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
Write(foo(""));
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 16 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
Func bar =
#line default
#line hidden
+#nullable disable
item => new Template(async(__razor_template_writer) => {
PushWriter(__razor_template_writer);
WriteLiteral("Hello
");
PopWriter();
}
)
+#nullable restore
#line 17 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 18 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
Write(bar("myclass"));
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n\r\n");
+#nullable restore
#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
Write(Repeat(10, item => new Template(async(__razor_template_writer) => {
PushWriter(__razor_template_writer);
WriteLiteral("Item #");
+#nullable restore
#line 22 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
Write(item);
#line default
#line hidden
+#nullable disable
WriteLiteral(" ");
PopWriter();
}
@@ -90,17 +109,21 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n \r\n\r\n\r\n");
+#nullable restore
#line 26 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
Write(Repeat(10,
item => new Template(async(__razor_template_writer) => {
PushWriter(__razor_template_writer);
WriteLiteral(" This is line#");
+#nullable restore
#line 27 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
Write(item);
#line default
#line hidden
+#nullable disable
WriteLiteral(" of markup \r\n");
PopWriter();
}
@@ -108,17 +131,21 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n
\r\n\r\n\r\n");
+#nullable restore
#line 32 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
Write(Repeat(10,
item => new Template(async(__razor_template_writer) => {
PushWriter(__razor_template_writer);
WriteLiteral(": This is line#");
+#nullable restore
#line 33 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
Write(item);
#line default
#line hidden
+#nullable disable
WriteLiteral(" of markup \r\n");
PopWriter();
}
@@ -126,17 +153,21 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n
\r\n\r\n\r\n");
+#nullable restore
#line 38 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
Write(Repeat(10,
item => new Template(async(__razor_template_writer) => {
PushWriter(__razor_template_writer);
WriteLiteral(":: This is line#");
+#nullable restore
#line 39 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
Write(item);
#line default
#line hidden
+#nullable disable
WriteLiteral(" of markup \r\n");
PopWriter();
}
@@ -144,22 +175,28 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n
\r\n\r\n\r\n\r\n ");
+#nullable restore
#line 45 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
Write(Repeat(10, item => new Template(async(__razor_template_writer) => {
PushWriter(__razor_template_writer);
WriteLiteral("\r\n Item #");
+#nullable restore
#line 46 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
Write(item);
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
+#nullable restore
#line 47 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
var parent = item;
#line default
#line hidden
+#nullable disable
WriteLiteral(" \r\n Child Items... ? \r\n");
WriteLiteral(" \r\n ");
PopWriter();
@@ -168,9 +205,11 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n ");
}
#pragma warning restore 1998
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Templates.cshtml"
public HelperResult Repeat(int times, Func template) {
@@ -183,6 +222,7 @@ public HelperResult Repeat(int times, Func template) {
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_DesignTime.codegen.cs
index 0ad5da86f63..cf1f4ecedb6 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_DesignTime.codegen.cs
@@ -9,11 +9,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Transition
#pragma warning disable 219
private void __RazorDirectiveTokenHelpers__() {
((System.Action)(() => {
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml"
global::System.Object __typeHelper = "*, TestAssembly";
#line default
#line hidden
+#nullable disable
}
))();
}
@@ -24,6 +26,7 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml"
var @class = "container-fluid";
@@ -31,52 +34,69 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
__TestNamespace_PTagHelper = CreateTagHelper();
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml"
__TestNamespace_PTagHelper.Age = 1337;
#line default
#line hidden
+#nullable disable
__TestNamespace_PTagHelper = CreateTagHelper();
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml"
__o = @class;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml"
__TestNamespace_PTagHelper.Age = 42;
#line default
#line hidden
+#nullable disable
__TestNamespace_PTagHelper = CreateTagHelper();
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml"
__TestNamespace_PTagHelper.Age = 42 + @int;
#line default
#line hidden
+#nullable disable
__TestNamespace_PTagHelper = CreateTagHelper();
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml"
__TestNamespace_PTagHelper.Age = int;
#line default
#line hidden
+#nullable disable
__TestNamespace_PTagHelper = CreateTagHelper();
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml"
__TestNamespace_PTagHelper.Age = (@int);
#line default
#line hidden
+#nullable disable
__TestNamespace_PTagHelper = CreateTagHelper();
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml"
__o = @class;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml"
__TestNamespace_PTagHelper.Age = 4 * @(@int + 2);
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_DesignTime.mappings.txt
index 83a0f021c39..9bd891b1a54 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_DesignTime.mappings.txt
@@ -1,6 +1,6 @@
Source Location: (14:0,14 [17] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|"*, TestAssembly"|
-Generated Location: (624:12,37 [17] )
+Generated Location: (643:13,37 [17] )
|"*, TestAssembly"|
Source Location: (35:1,2 [59] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
@@ -8,7 +8,7 @@ Source Location: (35:1,2 [59] TestFiles/IntegrationTests/CodeGenerationIntegrati
var @class = "container-fluid";
var @int = 1;
|
-Generated Location: (1099:27,2 [59] )
+Generated Location: (1156:30,2 [59] )
|
var @class = "container-fluid";
var @int = 1;
@@ -16,101 +16,101 @@ Generated Location: (1099:27,2 [59] )
Source Location: (122:6,23 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|1337|
-Generated Location: (1425:35,33 [4] )
+Generated Location: (1520:40,33 [4] )
|1337|
Source Location: (157:7,12 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|@class|
-Generated Location: (1678:41,12 [6] )
+Generated Location: (1811:48,12 [6] )
|@class|
Source Location: (171:7,26 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|42|
-Generated Location: (1859:46,33 [2] )
+Generated Location: (2030:55,33 [2] )
|42|
Source Location: (202:8,21 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|42|
-Generated Location: (2131:52,33 [2] )
+Generated Location: (2340:63,33 [2] )
|42|
Source Location: (204:8,23 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
| +|
-Generated Location: (2133:52,35 [2] )
+Generated Location: (2342:63,35 [2] )
| +|
Source Location: (206:8,25 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
| |
-Generated Location: (2135:52,37 [1] )
+Generated Location: (2344:63,37 [1] )
| |
Source Location: (207:8,26 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|@|
-Generated Location: (2136:52,38 [1] )
+Generated Location: (2345:63,38 [1] )
|@|
Source Location: (208:8,27 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|int|
-Generated Location: (2137:52,39 [3] )
+Generated Location: (2346:63,39 [3] )
|int|
Source Location: (241:9,22 [3] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|int|
-Generated Location: (2411:58,33 [3] )
+Generated Location: (2658:71,33 [3] )
|int|
Source Location: (274:10,22 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|(|
-Generated Location: (2685:64,33 [1] )
+Generated Location: (2970:79,33 [1] )
|(|
Source Location: (275:10,23 [4] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|@int|
-Generated Location: (2686:64,34 [4] )
+Generated Location: (2971:79,34 [4] )
|@int|
Source Location: (279:10,27 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|)|
-Generated Location: (2690:64,38 [1] )
+Generated Location: (2975:79,38 [1] )
|)|
Source Location: (307:11,19 [6] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|@class|
-Generated Location: (2948:70,19 [6] )
+Generated Location: (3271:87,19 [6] )
|@class|
Source Location: (321:11,33 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|4|
-Generated Location: (3130:75,33 [1] )
+Generated Location: (3491:94,33 [1] )
|4|
Source Location: (322:11,34 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
| *|
-Generated Location: (3131:75,34 [2] )
+Generated Location: (3492:94,34 [2] )
| *|
Source Location: (324:11,36 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
| |
-Generated Location: (3133:75,36 [1] )
+Generated Location: (3494:94,36 [1] )
| |
Source Location: (325:11,37 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|@|
-Generated Location: (3134:75,37 [1] )
+Generated Location: (3495:94,37 [1] )
|@|
Source Location: (326:11,38 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|(|
-Generated Location: (3135:75,38 [1] )
+Generated Location: (3496:94,38 [1] )
|(|
Source Location: (327:11,39 [8] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|@int + 2|
-Generated Location: (3136:75,39 [8] )
+Generated Location: (3497:94,39 [8] )
|@int + 2|
Source Location: (335:11,47 [1] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml)
|)|
-Generated Location: (3144:75,47 [1] )
+Generated Location: (3505:94,47 [1] )
|)|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_Runtime.codegen.cs
index 998715b4785..92f6922618f 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes_Runtime.codegen.cs
@@ -31,6 +31,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Transition
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml"
var @class = "container-fluid";
@@ -38,6 +39,7 @@ public async System.Threading.Tasks.Task ExecuteAsync()
#line default
#line hidden
+#nullable disable
WriteLiteral("\r\n");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("p", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
WriteLiteral("Body of Tag");
@@ -52,11 +54,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
}
), 109, 6, false);
EndAddHtmlAttributeValues(__tagHelperExecutionContext);
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml"
__TestNamespace_PTagHelper.Age = 1337;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -72,17 +76,21 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__TestNamespace_PTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_PTagHelper);
BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "class", 1, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml"
AddHtmlAttributeValue("", 155, @class, 155, 9, false);
#line default
#line hidden
+#nullable disable
EndAddHtmlAttributeValues(__tagHelperExecutionContext);
+#nullable restore
#line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml"
__TestNamespace_PTagHelper.Age = 42;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -98,11 +106,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__TestNamespace_PTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_PTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml"
__TestNamespace_PTagHelper.Age = 42 + @int;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -118,11 +128,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__TestNamespace_PTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_PTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml"
__TestNamespace_PTagHelper.Age = int;
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -138,11 +150,13 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__TestNamespace_PTagHelper = CreateTagHelper();
__tagHelperExecutionContext.Add(__TestNamespace_PTagHelper);
__tagHelperExecutionContext.AddHtmlAttribute(__tagHelperAttribute_0);
+#nullable restore
#line 11 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml"
__TestNamespace_PTagHelper.Age = (@int);
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
@@ -159,17 +173,21 @@ public async System.Threading.Tasks.Task ExecuteAsync()
__tagHelperExecutionContext.Add(__TestNamespace_PTagHelper);
BeginAddHtmlAttributeValues(__tagHelperExecutionContext, "class", 2, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
AddHtmlAttributeValue("", 298, "custom-", 298, 7, true);
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml"
AddHtmlAttributeValue("", 305, @class, 305, 9, false);
#line default
#line hidden
+#nullable disable
EndAddHtmlAttributeValues(__tagHelperExecutionContext);
+#nullable restore
#line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/TransitionsInTagHelperAttributes.cshtml"
__TestNamespace_PTagHelper.Age = 4 * @(@int + 2);
#line default
#line hidden
+#nullable disable
__tagHelperExecutionContext.AddTagHelperAttribute("age", __TestNamespace_PTagHelper.Age, global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_DesignTime.codegen.cs
index 67dcb7e986f..40784c2dc11 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_DesignTime.codegen.cs
@@ -15,21 +15,27 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode.cshtml"
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode.cshtml"
__o = DateTime.;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode.cshtml"
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_DesignTime.mappings.txt
index b3394a56b80..09ed0f1ab48 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_DesignTime.mappings.txt
@@ -1,19 +1,19 @@
Source Location: (2:0,2 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode.cshtml)
|
|
-Generated Location: (753:18,2 [2] )
+Generated Location: (772:19,2 [2] )
|
|
Source Location: (5:1,1 [9] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode.cshtml)
|DateTime.|
-Generated Location: (894:23,6 [9] )
+Generated Location: (951:26,6 [9] )
|DateTime.|
Source Location: (14:1,10 [2] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode.cshtml)
|
|
-Generated Location: (1049:28,10 [2] )
+Generated Location: (1144:33,10 [2] )
|
|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_Runtime.codegen.cs
index f7141f41235..b93722e23a2 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode_Runtime.codegen.cs
@@ -11,11 +11,13 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Unfinished
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/UnfinishedExpressionInCode.cshtml"
Write(DateTime.);
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_DesignTime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_DesignTime.codegen.cs
index 998ffa4d033..28d7da7c0d9 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_DesignTime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_DesignTime.codegen.cs
@@ -3,36 +3,48 @@
namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles
{
#line hidden
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
using System.IO;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
using Foo = System.Text.Encoding;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
using System;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
using static System;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
using static System.Console;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
using static global::System.Text.Encoding;
#line default
#line hidden
+#nullable disable
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Usings_DesignTime
{
#pragma warning disable 219
@@ -45,16 +57,20 @@ private void __RazorDirectiveTokenHelpers__() {
#pragma warning disable 1998
public async System.Threading.Tasks.Task ExecuteAsync()
{
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
__o = typeof(Path).FullName;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
__o = typeof(Foo).FullName;
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
}
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_DesignTime.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_DesignTime.mappings.txt
index 3002ee4d8f9..888841c6e82 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_DesignTime.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_DesignTime.mappings.txt
@@ -1,40 +1,40 @@
Source Location: (1:0,1 [15] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml)
|using System.IO|
-Generated Location: (229:6,0 [15] )
+Generated Location: (248:7,0 [15] )
|using System.IO|
Source Location: (19:1,1 [32] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml)
|using Foo = System.Text.Encoding|
-Generated Location: (360:11,0 [32] )
+Generated Location: (417:14,0 [32] )
|using Foo = System.Text.Encoding|
Source Location: (54:2,1 [12] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml)
|using System|
-Generated Location: (508:16,0 [12] )
+Generated Location: (603:21,0 [12] )
|using System|
Source Location: (71:4,1 [19] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml)
|using static System|
-Generated Location: (636:21,0 [19] )
+Generated Location: (769:28,0 [19] )
|using static System|
Source Location: (93:5,1 [27] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml)
|using static System.Console|
-Generated Location: (771:26,0 [27] )
+Generated Location: (942:35,0 [27] )
|using static System.Console|
Source Location: (123:6,1 [41] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml)
|using static global::System.Text.Encoding|
-Generated Location: (914:31,0 [41] )
+Generated Location: (1123:42,0 [41] )
|using static global::System.Text.Encoding|
Source Location: (197:8,29 [21] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml)
|typeof(Path).FullName|
-Generated Location: (1582:48,29 [21] )
+Generated Location: (1829:61,29 [21] )
|typeof(Path).FullName|
Source Location: (259:9,35 [20] TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml)
|typeof(Foo).FullName|
-Generated Location: (1755:53,35 [20] )
+Generated Location: (2040:68,35 [20] )
|typeof(Foo).FullName|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_Runtime.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_Runtime.codegen.cs
index e5260b12251..cba8d811267 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_Runtime.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings_Runtime.codegen.cs
@@ -5,36 +5,48 @@
namespace Microsoft.AspNetCore.Razor.Language.IntegrationTests.TestFiles
{
#line hidden
+#nullable restore
#line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
using System.IO;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
using Foo = System.Text.Encoding;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
using System;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
using static System;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
using static System.Console;
#line default
#line hidden
+#nullable disable
+#nullable restore
#line 7 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
using static global::System.Text.Encoding;
#line default
#line hidden
+#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"6728cb5a1a2e5cec8b292fc113ea456ed9043ddc", @"/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml")]
public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Usings_Runtime
{
@@ -43,17 +55,21 @@ public async System.Threading.Tasks.Task ExecuteAsync()
{
WriteLiteral("\r\n");
WriteLiteral("\r\nPath\'s full type name is ");
+#nullable restore
#line 9 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
Write(typeof(Path).FullName);
#line default
#line hidden
+#nullable disable
WriteLiteral("
\r\nFoo\'s actual full type name is ");
+#nullable restore
#line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Usings.cshtml"
Write(typeof(Foo).FullName);
#line default
#line hidden
+#nullable disable
WriteLiteral("
");
}
#pragma warning restore 1998
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.codegen.cs
index 85e8fd416d1..91a25009036 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.codegen.cs
@@ -7,11 +7,13 @@ namespace Test
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Components;
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using System.Threading.Tasks;
#line default
#line hidden
+#nullable disable
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
{
#pragma warning disable 219
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.mappings.txt
index b97e7aa5a7d..84c9f53bb8d 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_Lambda/TestComponent.mappings.txt
@@ -1,5 +1,5 @@
Source Location: (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml)
|using System.Threading.Tasks|
-Generated Location: (266:10,0 [28] )
+Generated Location: (285:11,0 [28] )
|using System.Threading.Tasks|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.codegen.cs
index ee7168e53fe..1ec448d6667 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.codegen.cs
@@ -7,11 +7,13 @@ namespace Test
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Components;
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using System.Threading.Tasks;
#line default
#line hidden
+#nullable disable
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
{
#pragma warning disable 219
@@ -28,6 +30,7 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTr
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, OnClick);
}
#pragma warning restore 1998
+#nullable restore
#line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
Task OnClick(UIMouseEventArgs e)
@@ -37,6 +40,7 @@ Task OnClick(UIMouseEventArgs e)
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.mappings.txt
index 24907b42921..e4008cd3cf4 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_ActionEventArgs_MethodGroup/TestComponent.mappings.txt
@@ -1,11 +1,11 @@
Source Location: (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml)
|using System.Threading.Tasks|
-Generated Location: (266:10,0 [28] )
+Generated Location: (285:11,0 [28] )
|using System.Threading.Tasks|
Source Location: (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|OnClick|
-Generated Location: (1030:27,135 [7] )
+Generated Location: (1068:29,135 [7] )
|OnClick|
Source Location: (73:2,12 [91] x:\dir\subdir\Test\TestComponent.cshtml)
@@ -15,7 +15,7 @@ Source Location: (73:2,12 [91] x:\dir\subdir\Test\TestComponent.cshtml)
return Task.CompletedTask;
}
|
-Generated Location: (1153:31,12 [91] )
+Generated Location: (1210:34,12 [91] )
|
Task OnClick(UIMouseEventArgs e)
{
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.codegen.cs
index 85e8fd416d1..91a25009036 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.codegen.cs
@@ -7,11 +7,13 @@ namespace Test
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Components;
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using System.Threading.Tasks;
#line default
#line hidden
+#nullable disable
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
{
#pragma warning disable 219
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.mappings.txt
index b97e7aa5a7d..84c9f53bb8d 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_Lambda/TestComponent.mappings.txt
@@ -1,5 +1,5 @@
Source Location: (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml)
|using System.Threading.Tasks|
-Generated Location: (266:10,0 [28] )
+Generated Location: (285:11,0 [28] )
|using System.Threading.Tasks|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.codegen.cs
index 9ffd8c42c86..6edadfb18c8 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.codegen.cs
@@ -7,11 +7,13 @@ namespace Test
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Components;
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
using System.Threading.Tasks;
#line default
#line hidden
+#nullable disable
public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase
{
#pragma warning disable 219
@@ -28,6 +30,7 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTr
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, OnClick);
}
#pragma warning restore 1998
+#nullable restore
#line 3 "x:\dir\subdir\Test\TestComponent.cshtml"
Task OnClick()
@@ -37,6 +40,7 @@ Task OnClick()
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.mappings.txt
index 4de5346de55..0cbe6934845 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/AsyncEventHandler_OnElement_Action_MethodGroup/TestComponent.mappings.txt
@@ -1,11 +1,11 @@
Source Location: (1:0,1 [28] x:\dir\subdir\Test\TestComponent.cshtml)
|using System.Threading.Tasks|
-Generated Location: (266:10,0 [28] )
+Generated Location: (285:11,0 [28] )
|using System.Threading.Tasks|
Source Location: (48:1,17 [7] x:\dir\subdir\Test\TestComponent.cshtml)
|OnClick|
-Generated Location: (1030:27,135 [7] )
+Generated Location: (1068:29,135 [7] )
|OnClick|
Source Location: (73:2,12 [73] x:\dir\subdir\Test\TestComponent.cshtml)
@@ -15,7 +15,7 @@ Source Location: (73:2,12 [73] x:\dir\subdir\Test\TestComponent.cshtml)
return Task.CompletedTask;
}
|
-Generated Location: (1153:31,12 [73] )
+Generated Location: (1210:34,12 [73] )
|
Task OnClick()
{
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.codegen.cs
index ab0a982d851..04787cf9c8e 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.codegen.cs
@@ -22,11 +22,13 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTr
{
base.BuildRenderTree(builder);
__o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck(Microsoft.AspNetCore.Components.BindMethods.GetValue(
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
ParentValue
#line default
#line hidden
+#nullable disable
));
__o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this,
Microsoft.AspNetCore.Components.EventCallback.Factory.CreateInferred(this, __value => ParentValue = __value, ParentValue)));
@@ -34,19 +36,23 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTr
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
}
));
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = typeof(MyComponent);
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
+#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public int ParentValue { get; set; } = 42;
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.mappings.txt
index 86c851672d4..715ea62c5e0 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.mappings.txt
@@ -1,13 +1,13 @@
Source Location: (25:0,25 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
-Generated Location: (1037:25,25 [11] )
+Generated Location: (1056:26,25 [11] )
|ParentValue|
Source Location: (54:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
-Generated Location: (1987:44,12 [50] )
+Generated Location: (2082:49,12 [50] )
|
public int ParentValue { get; set; } = 42;
|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.codegen.cs
index 50546b9d76e..881ec468467 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.codegen.cs
@@ -22,26 +22,32 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTr
{
base.BuildRenderTree(builder);
__Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(builder, -1, -1, Microsoft.AspNetCore.Components.BindMethods.GetValue(
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
ParentValue
#line default
#line hidden
+#nullable disable
), -1, Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this,
Microsoft.AspNetCore.Components.EventCallback.Factory.CreateInferred(this, __value => ParentValue = __value, ParentValue)), -1, () => ParentValue);
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = typeof(MyComponent<>);
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
+#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public DateTime ParentValue { get; set; } = DateTime.Now;
#line default
#line hidden
+#nullable disable
}
}
namespace __Blazor.Test.TestComponent
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt
index 7287e545163..1b30d924565 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt
@@ -1,13 +1,13 @@
Source Location: (29:0,29 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
-Generated Location: (1043:25,29 [11] )
+Generated Location: (1062:26,29 [11] )
|ParentValue|
Source Location: (58:1,12 [65] x:\dir\subdir\Test\TestComponent.cshtml)
|
public DateTime ParentValue { get; set; } = DateTime.Now;
|
-Generated Location: (1560:39,12 [65] )
+Generated Location: (1655:44,12 [65] )
|
public DateTime ParentValue { get; set; } = DateTime.Now;
|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs
index 181865286a5..cedd1c61c51 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs
@@ -22,30 +22,36 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTr
{
base.BuildRenderTree(builder);
__o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck(Microsoft.AspNetCore.Components.BindMethods.GetValue(
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
ParentValue
#line default
#line hidden
+#nullable disable
));
__o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this,
Microsoft.AspNetCore.Components.EventCallback.Factory.CreateInferred(this, __value => ParentValue = __value, ParentValue)));
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
}
));
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = typeof(MyComponent);
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
+#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public int ParentValue { get; set; } = 42;
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt
index 6f18600f1ae..5539c1bf14d 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt
@@ -1,13 +1,13 @@
Source Location: (25:0,25 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
-Generated Location: (1037:25,25 [11] )
+Generated Location: (1056:26,25 [11] )
|ParentValue|
Source Location: (54:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
-Generated Location: (1828:43,12 [50] )
+Generated Location: (1923:48,12 [50] )
|
public int ParentValue { get; set; } = 42;
|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs
index d0b19bc1164..6ba5c382c3a 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs
@@ -22,30 +22,36 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTr
{
base.BuildRenderTree(builder);
__o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck(Microsoft.AspNetCore.Components.BindMethods.GetValue(
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
ParentValue
#line default
#line hidden
+#nullable disable
));
__o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck>(Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this,
Microsoft.AspNetCore.Components.EventCallback.Factory.CreateInferred(this, __value => ParentValue = __value, ParentValue)));
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
}
));
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = typeof(MyComponent);
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
+#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public string ParentValue { get; set; } = "42";
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt
index 3de349ee9bb..723d815a8ea 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt
@@ -1,13 +1,13 @@
Source Location: (25:0,25 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
-Generated Location: (1037:25,25 [11] )
+Generated Location: (1056:26,25 [11] )
|ParentValue|
Source Location: (54:1,12 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
public string ParentValue { get; set; } = "42";
|
-Generated Location: (1828:43,12 [55] )
+Generated Location: (1923:48,12 [55] )
|
public string ParentValue { get; set; } = "42";
|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs
index f0c50c03478..950671edfd6 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs
@@ -22,30 +22,36 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTr
{
base.BuildRenderTree(builder);
__o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck(Microsoft.AspNetCore.Components.BindMethods.GetValue(
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
ParentValue
#line default
#line hidden
+#nullable disable
));
__o = new System.Action(
__value => ParentValue = __value);
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
}
));
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = typeof(MyComponent);
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
+#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public int ParentValue { get; set; } = 42;
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt
index 5ebb08b796e..a3e67891d78 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt
@@ -1,13 +1,13 @@
Source Location: (35:0,35 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
-Generated Location: (1047:25,35 [11] )
+Generated Location: (1066:26,35 [11] )
|ParentValue|
Source Location: (64:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
-Generated Location: (1581:43,12 [50] )
+Generated Location: (1676:48,12 [50] )
|
public int ParentValue { get; set; } = 42;
|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.codegen.cs
index c0867917015..31d2dc3cbc5 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.codegen.cs
@@ -22,29 +22,35 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTr
{
base.BuildRenderTree(builder);
__o = Microsoft.AspNetCore.Components.BindMethods.GetValue(
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
ParentValue
#line default
#line hidden
+#nullable disable
);
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value, ParentValue);
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
}
));
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = typeof(MyComponent);
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
+#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public int ParentValue { get; set; } = 42;
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt
index 7f21fdb05c7..32de999315c 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt
@@ -1,13 +1,13 @@
Source Location: (35:0,35 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
-Generated Location: (976:25,35 [11] )
+Generated Location: (995:26,35 [11] )
|ParentValue|
Source Location: (64:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
-Generated Location: (1549:42,12 [50] )
+Generated Location: (1644:47,12 [50] )
|
public int ParentValue { get; set; } = 42;
|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.codegen.cs
index 66e7953b27c..e15e1c49345 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.codegen.cs
@@ -22,11 +22,13 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTr
{
base.BuildRenderTree(builder);
__o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck(Microsoft.AspNetCore.Components.BindMethods.GetValue(
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
ParentValue
#line default
#line hidden
+#nullable disable
));
__o = new System.Action(
__value => ParentValue = __value);
@@ -34,19 +36,23 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTr
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
}
));
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = typeof(MyComponent);
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
+#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public int ParentValue { get; set; } = 42;
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.mappings.txt
index 43105a82229..feeb05db03e 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.mappings.txt
@@ -1,13 +1,13 @@
Source Location: (25:0,25 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
-Generated Location: (1037:25,25 [11] )
+Generated Location: (1056:26,25 [11] )
|ParentValue|
Source Location: (54:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
-Generated Location: (1730:44,12 [50] )
+Generated Location: (1825:49,12 [50] )
|
public int ParentValue { get; set; } = 42;
|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.codegen.cs
index e2b49d474af..4257651aa73 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.codegen.cs
@@ -22,26 +22,32 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTr
{
base.BuildRenderTree(builder);
__Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(builder, -1, -1, Microsoft.AspNetCore.Components.BindMethods.GetValue(
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
ParentValue
#line default
#line hidden
+#nullable disable
), -1,
__value => ParentValue = __value, -1, () => ParentValue);
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = typeof(MyComponent<>);
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
+#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public DateTime ParentValue { get; set; } = DateTime.Now;
#line default
#line hidden
+#nullable disable
}
}
namespace __Blazor.Test.TestComponent
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt
index 656c36e14c4..0f899a414ba 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt
@@ -1,13 +1,13 @@
Source Location: (29:0,29 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
-Generated Location: (1043:25,29 [11] )
+Generated Location: (1062:26,29 [11] )
|ParentValue|
Source Location: (58:1,12 [65] x:\dir\subdir\Test\TestComponent.cshtml)
|
public DateTime ParentValue { get; set; } = DateTime.Now;
|
-Generated Location: (1403:39,12 [65] )
+Generated Location: (1498:44,12 [65] )
|
public DateTime ParentValue { get; set; } = DateTime.Now;
|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs
index d08f2f2586e..dada775e9a4 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.codegen.cs
@@ -22,30 +22,36 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTr
{
base.BuildRenderTree(builder);
__o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck(Microsoft.AspNetCore.Components.BindMethods.GetValue(
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
ParentValue
#line default
#line hidden
+#nullable disable
));
__o = new System.Action(
__value => ParentValue = __value);
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
}
));
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = typeof(MyComponent);
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
+#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public int ParentValue { get; set; } = 42;
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt
index 37a66a99420..fa7539d0726 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt
@@ -1,13 +1,13 @@
Source Location: (25:0,25 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
-Generated Location: (1037:25,25 [11] )
+Generated Location: (1056:26,25 [11] )
|ParentValue|
Source Location: (54:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
-Generated Location: (1571:43,12 [50] )
+Generated Location: (1666:48,12 [50] )
|
public int ParentValue { get; set; } = 42;
|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.codegen.cs
index 8f477ba1c4b..0d622ba313b 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.codegen.cs
@@ -22,29 +22,35 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTr
{
base.BuildRenderTree(builder);
__o = Microsoft.AspNetCore.Components.BindMethods.GetValue(
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
ParentValue
#line default
#line hidden
+#nullable disable
);
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value, ParentValue);
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
}
));
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = typeof(MyComponent);
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
+#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public int ParentValue { get; set; } = 42;
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.mappings.txt
index a0af85601e1..5f7583ab704 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.mappings.txt
@@ -1,13 +1,13 @@
Source Location: (25:0,25 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
-Generated Location: (966:25,25 [11] )
+Generated Location: (985:26,25 [11] )
|ParentValue|
Source Location: (54:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
-Generated Location: (1539:42,12 [50] )
+Generated Location: (1634:47,12 [50] )
|
public int ParentValue { get; set; } = 42;
|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs
index bfbbb4267d8..fbf1154391c 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.codegen.cs
@@ -22,30 +22,36 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTr
{
base.BuildRenderTree(builder);
__o = Microsoft.AspNetCore.Components.RuntimeHelpers.TypeCheck(Microsoft.AspNetCore.Components.BindMethods.GetValue(
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
ParentValue
#line default
#line hidden
+#nullable disable
));
__o = new System.Action(
__value => ParentValue = __value);
builder.AddAttribute(-1, "ChildContent", (Microsoft.AspNetCore.Components.RenderFragment)((builder2) => {
}
));
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = typeof(MyComponent);
#line default
#line hidden
+#nullable disable
}
#pragma warning restore 1998
+#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public string ParentValue { get; set; } = "42";
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt
index d9d0a6db378..b610573cfb4 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt
@@ -1,13 +1,13 @@
Source Location: (25:0,25 [11] x:\dir\subdir\Test\TestComponent.cshtml)
|ParentValue|
-Generated Location: (1037:25,25 [11] )
+Generated Location: (1056:26,25 [11] )
|ParentValue|
Source Location: (54:1,12 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
public string ParentValue { get; set; } = "42";
|
-Generated Location: (1571:43,12 [55] )
+Generated Location: (1666:48,12 [55] )
|
public string ParentValue { get; set; } = "42";
|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.codegen.cs
index e37263004af..92a07d2006f 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.codegen.cs
@@ -25,12 +25,14 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTr
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => CurrentDate = __value, CurrentDate, "MM/dd");
}
#pragma warning restore 1998
+#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.mappings.txt
index 5ee2f467c26..d4551181f54 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WithFormat_WritesAttributes/TestComponent.mappings.txt
@@ -7,7 +7,7 @@ Source Location: (91:1,12 [77] x:\dir\subdir\Test\TestComponent.cshtml)
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
|
-Generated Location: (1173:28,12 [77] )
+Generated Location: (1192:29,12 [77] )
|
public DateTime CurrentDate { get; set; } = new DateTime(2018, 1, 1);
|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.codegen.cs
index 2ddc7f2a506..c9413dde51d 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.codegen.cs
@@ -25,12 +25,14 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTr
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value, ParentValue);
}
#pragma warning restore 1998
+#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public int ParentValue { get; set; } = 42;
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.mappings.txt
index 7633d73cfc4..53ac9407fab 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementFallback_WritesAttributes/TestComponent.mappings.txt
@@ -7,7 +7,7 @@ Source Location: (70:1,12 [50] x:\dir\subdir\Test\TestComponent.cshtml)
|
public int ParentValue { get; set; } = 42;
|
-Generated Location: (1155:28,12 [50] )
+Generated Location: (1174:29,12 [50] )
|
public int ParentValue { get; set; } = 42;
|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.codegen.cs
index a8133d4267d..1303d9e7100 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.codegen.cs
@@ -25,12 +25,14 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTr
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value, ParentValue);
}
#pragma warning restore 1998
+#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public string ParentValue { get; set; } = "hi";
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.mappings.txt
index c8fbaf0efb5..cf23fe780c8 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElementWithSuffix_WritesAttributes/TestComponent.mappings.txt
@@ -7,7 +7,7 @@ Source Location: (47:1,12 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
public string ParentValue { get; set; } = "hi";
|
-Generated Location: (1155:28,12 [55] )
+Generated Location: (1174:29,12 [55] )
|
public string ParentValue { get; set; } = "hi";
|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.codegen.cs
index a8133d4267d..1303d9e7100 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.codegen.cs
@@ -25,12 +25,14 @@ protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTr
__o = Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => ParentValue = __value, ParentValue);
}
#pragma warning restore 1998
+#nullable restore
#line 2 "x:\dir\subdir\Test\TestComponent.cshtml"
public string ParentValue { get; set; } = "hi";
#line default
#line hidden
+#nullable disable
}
}
#pragma warning restore 1591
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.mappings.txt b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.mappings.txt
index 482950ad1bf..25f0e21c0d4 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.mappings.txt
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WritesAttributes/TestComponent.mappings.txt
@@ -7,7 +7,7 @@ Source Location: (41:1,12 [55] x:\dir\subdir\Test\TestComponent.cshtml)
|
public string ParentValue { get; set; } = "hi";
|
-Generated Location: (1155:28,12 [55] )
+Generated Location: (1174:29,12 [55] )
|
public string ParentValue { get; set; } = "hi";
|
diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.codegen.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.codegen.cs
index b6e987e2ac1..f359dde73b4 100644
--- a/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.codegen.cs
+++ b/src/Razor/test/Microsoft.AspNetCore.Razor.Language.Test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.codegen.cs
@@ -21,38 +21,48 @@ private void __RazorDirectiveTokenHelpers__() {
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder)
{
base.BuildRenderTree(builder);
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
RenderFragment header = (context) =>
#line default
#line hidden
+#nullable disable
(builder2) => {
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
__o = context.ToLowerInvariant();
#line default
#line hidden
+#nullable disable
}
+#nullable restore
#line 1 "x:\dir\subdir\Test\TestComponent.cshtml"
;
#line default
#line hidden
+#nullable disable
__o = new Microsoft.AspNetCore.Components.RenderFragment