Skip to content

Commit cc26732

Browse files
authored
Revert line directive character index change (#9363)
Fixes #9359.
1 parent 8de0938 commit cc26732

File tree

140 files changed

+478
-264
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+478
-264
lines changed

src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions.Version2_X/test/TestFiles/IntegrationTests/InstrumentationPassIntegrationTest/BasicTest.codegen.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class TestFiles_IntegrationTests_InstrumentationPassIntegrationTest_Basic
5151
EndContext();
5252
BeginContext(61, 7, false);
5353
BeginContext(61, 7, false);
54-
#line (3,2)-(3,9) 6 "TestFiles/IntegrationTests/InstrumentationPassIntegrationTest/BasicTest.cshtml"
54+
#line (3,3)-(3,10) 6 "TestFiles/IntegrationTests/InstrumentationPassIntegrationTest/BasicTest.cshtml"
5555
Write("Hello");
5656

5757
#line default
@@ -127,7 +127,7 @@ public class TestFiles_IntegrationTests_InstrumentationPassIntegrationTest_Basic
127127
EndContext();
128128
BeginContext(217, 29, false);
129129
BeginContext(217, 29, false);
130-
#line (9,1)-(9,5) 6 "TestFiles/IntegrationTests/InstrumentationPassIntegrationTest/BasicTest.cshtml"
130+
#line (9,2)-(9,6) 6 "TestFiles/IntegrationTests/InstrumentationPassIntegrationTest/BasicTest.cshtml"
131131
Write(Foo(item => new global::Microsoft.AspNetCore.Mvc.Razor.HelperResult(async(__razor_template_writer) => {
132132
PushWriter(__razor_template_writer);
133133
BeginContext(222, 24, true);

src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent_Runtime.codegen.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.
2626
);
2727
__builder.AddMarkupContent(2, "\r\n Hello world\r\n ");
2828
#nullable restore
29-
#line (4,5)-(4,34) 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent.cshtml"
29+
#line (4,6)-(4,35) 24 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicComponent.cshtml"
3030
__builder.AddContent(3, string.Format("{0}", "Hello"));
3131

3232
#line default

src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic_Runtime.codegen.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Basic : gl
2525
WriteLiteral("<div");
2626
BeginWriteAttribute("class", " class=\"", 4, "\"", 28, 1);
2727
#nullable restore
28-
#line (1,12)-(1,28) 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml"
28+
#line (1,13)-(1,29) 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml"
2929
WriteAttributeValue("", 12, this.ToString(), 12, 16, false);
3030

3131
#line default
@@ -34,7 +34,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Basic : gl
3434
EndWriteAttribute();
3535
WriteLiteral(">\r\n Hello world\r\n ");
3636
#nullable restore
37-
#line (3,5)-(3,34) 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml"
37+
#line (3,6)-(3,35) 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml"
3838
Write(string.Format("{0}", "Hello"));
3939

4040
#line default
@@ -61,7 +61,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Basic : gl
6161
#line hidden
6262
#nullable disable
6363
#nullable restore
64-
#line (8,30)-(8,33) 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml"
64+
#line (8,31)-(8,34) 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Basic.cshtml"
6565
Write(cls);
6666

6767
#line default

src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate_Runtime.codegen.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPages
3434
WriteLiteral("\r\n");
3535
WriteLiteral("\r\n<h1>New Customer ");
3636
#nullable restore
37-
#line (13,18)-(13,28) 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate.cshtml"
37+
#line (13,19)-(13,29) 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithRouteTemplate.cshtml"
3838
Write(Model.Name);
3939

4040
#line default

src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel_Runtime.codegen.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPages
7474
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
7575
WriteLiteral("\r\n <label class=\"col-md-2 control-label\">");
7676
#nullable restore
77-
#line (25,47)-(25,51) 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel.cshtml"
77+
#line (25,48)-(25,52) 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPagesWithoutModel.cshtml"
7878
Write(Name);
7979

8080
#line default

src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages_Runtime.codegen.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_RazorPages
7474
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("div", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "test", async() => {
7575
WriteLiteral("\r\n <label class=\"col-md-2 control-label\">");
7676
#nullable restore
77-
#line (29,47)-(29,57) 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages.cshtml"
77+
#line (29,48)-(29,58) 6 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorPages.cshtml"
7878
Write(Model.Name);
7979

8080
#line default

src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorView_Layout_WithCssScope.codegen.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_test : glo
2424
{
2525
WriteLiteral("\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n <meta charset=\"utf-8\" />\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\r\n <title>");
2626
#nullable restore
27-
#line (7,12)-(7,29) 6 "TestFiles\IntegrationTests\CodeGenerationIntegrationTest\test.cshtml"
27+
#line (7,13)-(7,30) 6 "TestFiles\IntegrationTests\CodeGenerationIntegrationTest\test.cshtml"
2828
Write(ViewData["Title"]);
2929

3030
#line default

src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorView_WithNonNullableModel_NullableContextEnabled.codegen.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_test : glo
3232
WriteLiteral("\r\n");
3333
WriteLiteral("\r\n<h1>");
3434
#nullable restore
35-
#line (5,5)-(5,15) 6 "TestFiles\IntegrationTests\CodeGenerationIntegrationTest\test.cshtml"
35+
#line (5,6)-(5,16) 6 "TestFiles\IntegrationTests\CodeGenerationIntegrationTest\test.cshtml"
3636
Write(Model.Name);
3737

3838
#line default
3939
#line hidden
4040
#nullable disable
4141
WriteLiteral("</h1>\r\n\r\n<h2>");
4242
#nullable restore
43-
#line (7,5)-(7,18) 6 "TestFiles\IntegrationTests\CodeGenerationIntegrationTest\test.cshtml"
43+
#line (7,6)-(7,19) 6 "TestFiles\IntegrationTests\CodeGenerationIntegrationTest\test.cshtml"
4444
Write(Model.Address);
4545

4646
#line default

src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorView_WithNullableBaseType_NullableContexEnabled.codegen.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_test : MyB
3232
WriteLiteral("\r\n");
3333
WriteLiteral("\r\n<h1>");
3434
#nullable restore
35-
#line (5,5)-(5,16) 6 "TestFiles\IntegrationTests\CodeGenerationIntegrationTest\test.cshtml"
35+
#line (5,6)-(5,17) 6 "TestFiles\IntegrationTests\CodeGenerationIntegrationTest\test.cshtml"
3636
Write(Model?.Name);
3737

3838
#line default
3939
#line hidden
4040
#nullable disable
4141
WriteLiteral("</h1>\r\n\r\n<h2>");
4242
#nullable restore
43-
#line (7,5)-(7,19) 6 "TestFiles\IntegrationTests\CodeGenerationIntegrationTest\test.cshtml"
43+
#line (7,6)-(7,20) 6 "TestFiles\IntegrationTests\CodeGenerationIntegrationTest\test.cshtml"
4444
Write(Model?.Address);
4545

4646
#line default

src/Compiler/Microsoft.AspNetCore.Mvc.Razor.Extensions/test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/RazorView_WithNullableModel_NullableContextEnabled.codegen.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ public class TestFiles_IntegrationTests_CodeGenerationIntegrationTest_test : glo
3232
WriteLiteral("\r\n");
3333
WriteLiteral("\r\n<h1>");
3434
#nullable restore
35-
#line (5,5)-(5,16) 6 "TestFiles\IntegrationTests\CodeGenerationIntegrationTest\test.cshtml"
35+
#line (5,6)-(5,17) 6 "TestFiles\IntegrationTests\CodeGenerationIntegrationTest\test.cshtml"
3636
Write(Model?.Name);
3737

3838
#line default
3939
#line hidden
4040
#nullable disable
4141
WriteLiteral("</h1>\r\n\r\n<h2>");
4242
#nullable restore
43-
#line (7,5)-(7,19) 6 "TestFiles\IntegrationTests\CodeGenerationIntegrationTest\test.cshtml"
43+
#line (7,6)-(7,20) 6 "TestFiles\IntegrationTests\CodeGenerationIntegrationTest\test.cshtml"
4444
Write(Model?.Address);
4545

4646
#line default

0 commit comments

Comments
 (0)