From bc347d736ff897c36be9c974307fd7d6ace94a97 Mon Sep 17 00:00:00 2001
From: Ajay Bhargav Baaskaran Basic Asynchronous Expression:
CSharpExpression - (192:9,39 [11] Await.cshtml)
@@ -18,14 +23,17 @@ Document -
CSharpExpression - (247:10,38 [11] Await.cshtml)
RazorIRToken - (247:10,38 [11] Await.cshtml) - CSharp - await Foo()
HtmlContent - (259:10,50 [43] Await.cshtml) - Basic Asynchronous Statement:
- CSharpStatement - (304:11,39 [14] Await.cshtml) - await Foo();
+ CSharpStatement - (304:11,39 [14] Await.cshtml)
+ RazorIRToken - (304:11,39 [14] Await.cshtml) - CSharp - await Foo();
HtmlContent - (319:11,54 [50] Await.cshtml) - Basic Asynchronous Statement Nested:
- CSharpStatement - (371:12,46 [1] Await.cshtml) -
+ CSharpStatement - (371:12,46 [1] Await.cshtml)
+ RazorIRToken - (371:12,46 [1] Await.cshtml) - CSharp -
HtmlContent - (372:12,47 [3] Await.cshtml) -
CSharpExpression - (376:12,51 [11] Await.cshtml)
RazorIRToken - (376:12,51 [11] Await.cshtml) - CSharp - await Foo()
HtmlContent - (387:12,62 [4] Await.cshtml) -
- CSharpStatement - (391:12,66 [1] Await.cshtml) -
+ CSharpStatement - (391:12,66 [1] Await.cshtml)
+ RazorIRToken - (391:12,66 [1] Await.cshtml) - CSharp -
HtmlContent - (393:12,68 [54] Await.cshtml) - Basic Incomplete Asynchronous Statement:
CSharpExpression - (448:13,49 [5] Await.cshtml)
RazorIRToken - (448:13,49 [5] Await.cshtml) - CSharp - await
@@ -39,18 +47,23 @@ Document -
CSharpExpression - (716:20,41 [22] Await.cshtml)
RazorIRToken - (716:20,41 [22] Await.cshtml) - CSharp - await Foo("bob", true)
HtmlContent - (739:20,64 [46] Await.cshtml) - Advanced Asynchronous Statement:
- CSharpStatement - (787:21,42 [39] Await.cshtml) - await Foo(something, hello: "world");
+ CSharpStatement - (787:21,42 [39] Await.cshtml)
+ RazorIRToken - (787:21,42 [39] Await.cshtml) - CSharp - await Foo(something, hello: "world");
HtmlContent - (827:21,82 [55] Await.cshtml) - Advanced Asynchronous Statement Extended:
- CSharpStatement - (884:22,51 [21] Await.cshtml) - await Foo.Bar(1, 2)
+ CSharpStatement - (884:22,51 [21] Await.cshtml)
+ RazorIRToken - (884:22,51 [21] Await.cshtml) - CSharp - await Foo.Bar(1, 2)
HtmlContent - (906:22,73 [53] Await.cshtml) - Advanced Asynchronous Statement Nested:
- CSharpStatement - (961:23,49 [1] Await.cshtml) -
+ CSharpStatement - (961:23,49 [1] Await.cshtml)
+ RazorIRToken - (961:23,49 [1] Await.cshtml) - CSharp -
HtmlContent - (962:23,50 [3] Await.cshtml) -
CSharpExpression - (966:23,54 [27] Await.cshtml)
RazorIRToken - (966:23,54 [27] Await.cshtml) - CSharp - await Foo(boolValue: false)
HtmlContent - (993:23,81 [4] Await.cshtml) -
- CSharpStatement - (997:23,85 [1] Await.cshtml) -
+ CSharpStatement - (997:23,85 [1] Await.cshtml)
+ RazorIRToken - (997:23,85 [1] Await.cshtml) - CSharp -
HtmlContent - (999:23,87 [57] Await.cshtml) - Advanced Incomplete Asynchronous Statement:
CSharpExpression - (1057:24,52 [19] Await.cshtml)
RazorIRToken - (1057:24,52 [19] Await.cshtml) - CSharp - await ("wrrronggg")
HtmlContent - (1076:24,71 [16] Await.cshtml) - Basic Asynchronous Expression Test
\n
Basic Asynchronous Statement: - CSharpStatement - (304:11,39 [14] Await.cshtml) - await Foo(); + CSharpStatement - (304:11,39 [14] Await.cshtml) + RazorIRToken - (304:11,39 [14] Await.cshtml) - CSharp - await Foo(); HtmlContent - (319:11,54 [50] Await.cshtml) -
\nBasic Asynchronous Statement Nested: HtmlContent - (371:12,46 [4] Await.cshtml) - CSharpExpression - (376:12,51 [11] Await.cshtml) RazorIRToken - (376:12,51 [11] Await.cshtml) - CSharp - await Foo() HtmlContent - (387:12,62 [5] Await.cshtml) - - CSharpStatement - (392:12,67 [0] Await.cshtml) - + CSharpStatement - (392:12,67 [0] Await.cshtml) + RazorIRToken - (392:12,67 [0] Await.cshtml) - CSharp - HtmlContent - (393:12,68 [54] Await.cshtml) -
\nBasic Incomplete Asynchronous Statement: CSharpExpression - (448:13,49 [5] Await.cshtml) RazorIRToken - (448:13,49 [5] Await.cshtml) - CSharp - await @@ -32,17 +34,21 @@ Document - CSharpExpression - (716:20,41 [22] Await.cshtml) RazorIRToken - (716:20,41 [22] Await.cshtml) - CSharp - await Foo("bob", true) HtmlContent - (739:20,64 [46] Await.cshtml) -
\nAdvanced Asynchronous Statement: - CSharpStatement - (787:21,42 [39] Await.cshtml) - await Foo(something, hello: "world"); + CSharpStatement - (787:21,42 [39] Await.cshtml) + RazorIRToken - (787:21,42 [39] Await.cshtml) - CSharp - await Foo(something, hello: "world"); HtmlContent - (827:21,82 [55] Await.cshtml) -
\nAdvanced Asynchronous Statement Extended: - CSharpStatement - (884:22,51 [21] Await.cshtml) - await Foo.Bar(1, 2) + CSharpStatement - (884:22,51 [21] Await.cshtml) + RazorIRToken - (884:22,51 [21] Await.cshtml) - CSharp - await Foo.Bar(1, 2) HtmlContent - (906:22,73 [53] Await.cshtml) -
\nAdvanced Asynchronous Statement Nested: HtmlContent - (961:23,49 [4] Await.cshtml) - CSharpExpression - (966:23,54 [27] Await.cshtml) RazorIRToken - (966:23,54 [27] Await.cshtml) - CSharp - await Foo(boolValue: false) HtmlContent - (993:23,81 [5] Await.cshtml) - - CSharpStatement - (998:23,86 [0] Await.cshtml) - + CSharpStatement - (998:23,86 [0] Await.cshtml) + RazorIRToken - (998:23,86 [0] Await.cshtml) - CSharp - HtmlContent - (999:23,87 [57] Await.cshtml) -
\nAdvanced Incomplete Asynchronous Statement: CSharpExpression - (1057:24,52 [19] Await.cshtml) RazorIRToken - (1057:24,52 [19] Await.cshtml) - CSharp - await ("wrrronggg") HtmlContent - (1076:24,71 [16] Await.cshtml) -
\n - CSharpStatement - (12:0,12 [76] Await.cshtml) - \n public async TaskHi there!
\n diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.ir.txt index a9435751d2..a544a6f94d 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/BasicTagHelpers_DesignTime.ir.txt @@ -5,12 +5,17 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_BasicTagHelpers_DesignTime - - DirectiveTokenHelper - - CSharpStatement - - #pragma warning disable 219 - CSharpStatement - - private void __RazorDirectiveTokenHelpers__() { + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning disable 219 + CSharpStatement - + RazorIRToken - - CSharp - private void __RazorDirectiveTokenHelpers__() { DirectiveToken - (14:0,14 [17] BasicTagHelpers.cshtml) - "*, TestAssembly" - CSharpStatement - - } - CSharpStatement - - #pragma warning restore 219 - CSharpStatement - - private static System.Object __o = null; + CSharpStatement - + RazorIRToken - - CSharp - } + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning restore 219 + CSharpStatement - + RazorIRToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [73] BasicTagHelpers.cshtml) - \n\nHello from C#, # CSharpExpression - (69:5,25 [1] Blocks.cshtml) RazorIRToken - (69:5,25 [1] Blocks.cshtml) - CSharp - i HtmlContent - (71:5,27 [4] Blocks.cshtml) -
- CSharpStatement - (75:5,31 [16] Blocks.cshtml) - \n i += 1;\n} + CSharpStatement - (75:5,31 [16] Blocks.cshtml) + RazorIRToken - (75:5,31 [16] Blocks.cshtml) - CSharp - \n i += 1;\n} HtmlContent - (91:7,1 [4] Blocks.cshtml) - \n\n - CSharpStatement - (96:9,1 [19] Blocks.cshtml) - if(i == 11) {\n + CSharpStatement - (96:9,1 [19] Blocks.cshtml) + RazorIRToken - (96:9,1 [19] Blocks.cshtml) - CSharp - if(i == 11) {\n HtmlContent - (115:10,4 [25] Blocks.cshtml) -We wrote 10 lines!
- CSharpStatement - (140:10,29 [3] Blocks.cshtml) - \n} + CSharpStatement - (140:10,29 [3] Blocks.cshtml) + RazorIRToken - (140:10,29 [3] Blocks.cshtml) - CSharp - \n} HtmlContent - (143:11,1 [4] Blocks.cshtml) - \n\n - CSharpStatement - (148:13,1 [35] Blocks.cshtml) - switch(i) {\n case 11:\n + CSharpStatement - (148:13,1 [35] Blocks.cshtml) + RazorIRToken - (148:13,1 [35] Blocks.cshtml) - CSharp - switch(i) {\n case 11:\n HtmlContent - (183:15,8 [36] Blocks.cshtml) -No really, we wrote 10 lines!
- CSharpStatement - (219:15,44 [40] Blocks.cshtml) - \n break;\n default:\n + CSharpStatement - (219:15,44 [40] Blocks.cshtml) + RazorIRToken - (219:15,44 [40] Blocks.cshtml) - CSharp - \n break;\n default:\n HtmlContent - (259:18,8 [29] Blocks.cshtml) -Actually, we didn't...
- CSharpStatement - (288:18,37 [19] Blocks.cshtml) - \n break;\n} + CSharpStatement - (288:18,37 [19] Blocks.cshtml) + RazorIRToken - (288:18,37 [19] Blocks.cshtml) - CSharp - \n break;\n} HtmlContent - (307:20,1 [4] Blocks.cshtml) - \n\n - CSharpStatement - (312:22,1 [39] Blocks.cshtml) - for(int j = 1; j <= 10; j += 2) {\n + CSharpStatement - (312:22,1 [39] Blocks.cshtml) + RazorIRToken - (312:22,1 [39] Blocks.cshtml) - CSharp - for(int j = 1; j <= 10; j += 2) {\n HtmlContent - (351:23,4 [25] Blocks.cshtml) -Hello again from C#, # CSharpExpression - (378:23,31 [1] Blocks.cshtml) RazorIRToken - (378:23,31 [1] Blocks.cshtml) - CSharp - j HtmlContent - (380:23,33 [4] Blocks.cshtml) -
- CSharpStatement - (384:23,37 [3] Blocks.cshtml) - \n} + CSharpStatement - (384:23,37 [3] Blocks.cshtml) + RazorIRToken - (384:23,37 [3] Blocks.cshtml) - CSharp - \n} HtmlContent - (387:24,1 [4] Blocks.cshtml) - \n\n - CSharpStatement - (392:26,1 [11] Blocks.cshtml) - try {\n + CSharpStatement - (392:26,1 [11] Blocks.cshtml) + RazorIRToken - (392:26,1 [11] Blocks.cshtml) - CSharp - try {\n HtmlContent - (403:27,4 [35] Blocks.cshtml) -That time, we wrote 5 lines!
- CSharpStatement - (438:27,39 [31] Blocks.cshtml) - \n} catch(Exception ex) {\n + CSharpStatement - (438:27,39 [31] Blocks.cshtml) + RazorIRToken - (438:27,39 [31] Blocks.cshtml) - CSharp - \n} catch(Exception ex) {\n HtmlContent - (469:29,4 [29] Blocks.cshtml) -Oh no! An error occurred: CSharpExpression - (500:29,35 [10] Blocks.cshtml) RazorIRToken - (500:29,35 [10] Blocks.cshtml) - CSharp - ex.Message HtmlContent - (511:29,46 [4] Blocks.cshtml) -
- CSharpStatement - (515:29,50 [3] Blocks.cshtml) - \n} + CSharpStatement - (515:29,50 [3] Blocks.cshtml) + RazorIRToken - (515:29,50 [3] Blocks.cshtml) - CSharp - \n} HtmlContent - (518:30,1 [16] Blocks.cshtml) - \n\ni is now CSharpExpression - (535:32,13 [1] Blocks.cshtml) RazorIRToken - (535:32,13 [1] Blocks.cshtml) - CSharp - i HtmlContent - (536:32,14 [8] Blocks.cshtml) -
\n\n - CSharpStatement - (545:34,1 [26] Blocks.cshtml) - lock(new object()) {\n + CSharpStatement - (545:34,1 [26] Blocks.cshtml) + RazorIRToken - (545:34,1 [26] Blocks.cshtml) - CSharp - lock(new object()) {\n HtmlContent - (571:35,4 [47] Blocks.cshtml) -This block is locked, for your security!
- CSharpStatement - (618:35,51 [3] Blocks.cshtml) - \n} + CSharpStatement - (618:35,51 [3] Blocks.cshtml) + RazorIRToken - (618:35,51 [3] Blocks.cshtml) - CSharp - \n} diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_Runtime.codegen.cs b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_Runtime.codegen.cs index 7ebecb26ee..f009784a36 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_Runtime.codegen.cs +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_Runtime.codegen.cs @@ -13,14 +13,12 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles int i = 1; - #line default #line hidden WriteLiteral("\r\n"); #line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" while(i <= 10) { - #line default #line hidden WriteLiteral("Hello from C#, #"); @@ -34,21 +32,18 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles i += 1; } - #line default #line hidden WriteLiteral("\r\n"); #line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" if(i == 11) { - #line default #line hidden WriteLiteral("
We wrote 10 lines!
\r\n"); #line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" } - #line default #line hidden WriteLiteral("\r\n"); @@ -56,7 +51,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles switch(i) { case 11: - #line default #line hidden WriteLiteral("No really, we wrote 10 lines!
\r\n"); @@ -64,7 +58,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles break; default: - #line default #line hidden WriteLiteral("Actually, we didn\'t...
\r\n"); @@ -72,14 +65,12 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles break; } - #line default #line hidden WriteLiteral("\r\n"); #line 23 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" for(int j = 1; j <= 10; j += 2) { - #line default #line hidden WriteLiteral("Hello again from C#, #"); @@ -92,21 +83,18 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles #line 25 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" } - #line default #line hidden WriteLiteral("\r\n"); #line 27 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" try { - #line default #line hidden WriteLiteral("
That time, we wrote 5 lines!
\r\n"); #line 29 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" } catch(Exception ex) { - #line default #line hidden WriteLiteral("Oh no! An error occurred: "); @@ -119,7 +107,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles #line 31 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" } - #line default #line hidden WriteLiteral("\r\n
i is now "); @@ -132,7 +119,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles #line 35 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks.cshtml" lock(new object()) { - #line default #line hidden WriteLiteral("
This block is locked, for your security!
\r\n"); diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_Runtime.ir.txt index 244bbd6356..070ca771e4 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Blocks_Runtime.ir.txt @@ -5,44 +5,59 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Blocks_Runtime - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync - CSharpStatement - (2:0,2 [18] Blocks.cshtml) - \n int i = 1;\n + CSharpStatement - (2:0,2 [18] Blocks.cshtml) + RazorIRToken - (2:0,2 [18] Blocks.cshtml) - CSharp - \n int i = 1;\n HtmlContent - (23:3,0 [2] Blocks.cshtml) - \n - CSharpStatement - (26:4,1 [18] Blocks.cshtml) - while(i <= 10) {\n + CSharpStatement - (26:4,1 [18] Blocks.cshtml) + RazorIRToken - (26:4,1 [18] Blocks.cshtml) - CSharp - while(i <= 10) {\n HtmlContent - (44:5,0 [23] Blocks.cshtml) -Hello from C#, # CSharpExpression - (69:5,25 [1] Blocks.cshtml) RazorIRToken - (69:5,25 [1] Blocks.cshtml) - CSharp - i HtmlContent - (71:5,27 [6] Blocks.cshtml) -
\n - CSharpStatement - (77:6,0 [16] Blocks.cshtml) - i += 1;\n}\n + CSharpStatement - (77:6,0 [16] Blocks.cshtml) + RazorIRToken - (77:6,0 [16] Blocks.cshtml) - CSharp - i += 1;\n}\n HtmlContent - (93:8,0 [2] Blocks.cshtml) - \n - CSharpStatement - (96:9,1 [15] Blocks.cshtml) - if(i == 11) {\n + CSharpStatement - (96:9,1 [15] Blocks.cshtml) + RazorIRToken - (96:9,1 [15] Blocks.cshtml) - CSharp - if(i == 11) {\n HtmlContent - (111:10,0 [31] Blocks.cshtml) -We wrote 10 lines!
\n - CSharpStatement - (142:11,0 [3] Blocks.cshtml) - }\n + CSharpStatement - (142:11,0 [3] Blocks.cshtml) + RazorIRToken - (142:11,0 [3] Blocks.cshtml) - CSharp - }\n HtmlContent - (145:12,0 [2] Blocks.cshtml) - \n - CSharpStatement - (148:13,1 [27] Blocks.cshtml) - switch(i) {\n case 11:\n + CSharpStatement - (148:13,1 [27] Blocks.cshtml) + RazorIRToken - (148:13,1 [27] Blocks.cshtml) - CSharp - switch(i) {\n case 11:\n HtmlContent - (175:15,0 [46] Blocks.cshtml) -No really, we wrote 10 lines!
\n - CSharpStatement - (221:16,0 [30] Blocks.cshtml) - break;\n default:\n + CSharpStatement - (221:16,0 [30] Blocks.cshtml) + RazorIRToken - (221:16,0 [30] Blocks.cshtml) - CSharp - break;\n default:\n HtmlContent - (251:18,0 [39] Blocks.cshtml) -Actually, we didn't...
\n - CSharpStatement - (290:19,0 [19] Blocks.cshtml) - break;\n}\n + CSharpStatement - (290:19,0 [19] Blocks.cshtml) + RazorIRToken - (290:19,0 [19] Blocks.cshtml) - CSharp - break;\n}\n HtmlContent - (309:21,0 [2] Blocks.cshtml) - \n - CSharpStatement - (312:22,1 [35] Blocks.cshtml) - for(int j = 1; j <= 10; j += 2) {\n + CSharpStatement - (312:22,1 [35] Blocks.cshtml) + RazorIRToken - (312:22,1 [35] Blocks.cshtml) - CSharp - for(int j = 1; j <= 10; j += 2) {\n HtmlContent - (347:23,0 [29] Blocks.cshtml) -Hello again from C#, # CSharpExpression - (378:23,31 [1] Blocks.cshtml) RazorIRToken - (378:23,31 [1] Blocks.cshtml) - CSharp - j HtmlContent - (380:23,33 [6] Blocks.cshtml) -
\n - CSharpStatement - (386:24,0 [3] Blocks.cshtml) - }\n + CSharpStatement - (386:24,0 [3] Blocks.cshtml) + RazorIRToken - (386:24,0 [3] Blocks.cshtml) - CSharp - }\n HtmlContent - (389:25,0 [2] Blocks.cshtml) - \n - CSharpStatement - (392:26,1 [7] Blocks.cshtml) - try {\n + CSharpStatement - (392:26,1 [7] Blocks.cshtml) + RazorIRToken - (392:26,1 [7] Blocks.cshtml) - CSharp - try {\n HtmlContent - (399:27,0 [41] Blocks.cshtml) -That time, we wrote 5 lines!
\n - CSharpStatement - (440:28,0 [25] Blocks.cshtml) - } catch(Exception ex) {\n + CSharpStatement - (440:28,0 [25] Blocks.cshtml) + RazorIRToken - (440:28,0 [25] Blocks.cshtml) - CSharp - } catch(Exception ex) {\n HtmlContent - (465:29,0 [33] Blocks.cshtml) -Oh no! An error occurred: CSharpExpression - (500:29,35 [10] Blocks.cshtml) RazorIRToken - (500:29,35 [10] Blocks.cshtml) - CSharp - ex.Message HtmlContent - (511:29,46 [6] Blocks.cshtml) -
\n - CSharpStatement - (517:30,0 [3] Blocks.cshtml) - }\n + CSharpStatement - (517:30,0 [3] Blocks.cshtml) + RazorIRToken - (517:30,0 [3] Blocks.cshtml) - CSharp - }\n HtmlContent - (520:31,0 [14] Blocks.cshtml) - \ni is now CSharpExpression - (535:32,13 [1] Blocks.cshtml) RazorIRToken - (535:32,13 [1] Blocks.cshtml) - CSharp - i HtmlContent - (536:32,14 [8] Blocks.cshtml) -
\n\n - CSharpStatement - (545:34,1 [22] Blocks.cshtml) - lock(new object()) {\n + CSharpStatement - (545:34,1 [22] Blocks.cshtml) + RazorIRToken - (545:34,1 [22] Blocks.cshtml) - CSharp - lock(new object()) {\n HtmlContent - (567:35,0 [53] Blocks.cshtml) -This block is locked, for your security!
\n - CSharpStatement - (620:36,0 [1] Blocks.cshtml) - } + CSharpStatement - (620:36,0 [1] Blocks.cshtml) + RazorIRToken - (620:36,0 [1] Blocks.cshtml) - CSharp - } diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.ir.txt index 4b9984ea33..fb7f4d3b38 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_DesignTime.ir.txt @@ -5,10 +5,16 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockAtEOF_DesignTime - - DirectiveTokenHelper - - CSharpStatement - - #pragma warning disable 219 - CSharpStatement - - private void __RazorDirectiveTokenHelpers__() { - CSharpStatement - - } - CSharpStatement - - #pragma warning restore 219 - CSharpStatement - - private static System.Object __o = null; + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning disable 219 + CSharpStatement - + RazorIRToken - - CSharp - private void __RazorDirectiveTokenHelpers__() { + CSharpStatement - + RazorIRToken - - CSharp - } + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning restore 219 + CSharpStatement - + RazorIRToken - - CSharp - private static System.Object __o = null; RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync - CSharpStatement - (2:0,2 [0] CodeBlockAtEOF.cshtml) - + CSharpStatement - (2:0,2 [0] CodeBlockAtEOF.cshtml) + RazorIRToken - (2:0,2 [0] CodeBlockAtEOF.cshtml) - CSharp - diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_Runtime.ir.txt index cf3793138f..0ec59a9aca 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockAtEOF_Runtime.ir.txt @@ -5,4 +5,5 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockAtEOF_Runtime - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync - CSharpStatement - (2:0,2 [0] CodeBlockAtEOF.cshtml) - + CSharpStatement - (2:0,2 [0] CodeBlockAtEOF.cshtml) + RazorIRToken - (2:0,2 [0] CodeBlockAtEOF.cshtml) - CSharp - diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.ir.txt index 49b10b06ed..f92e1ca4b2 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_DesignTime.ir.txt @@ -5,16 +5,24 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockWithTextElement_DesignTime - - DirectiveTokenHelper - - CSharpStatement - - #pragma warning disable 219 - CSharpStatement - - private void __RazorDirectiveTokenHelpers__() { - CSharpStatement - - } - CSharpStatement - - #pragma warning restore 219 - CSharpStatement - - private static System.Object __o = null; + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning disable 219 + CSharpStatement - + RazorIRToken - - CSharp - private void __RazorDirectiveTokenHelpers__() { + CSharpStatement - + RazorIRToken - - CSharp - } + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning restore 219 + CSharpStatement - + RazorIRToken - - CSharp - private static System.Object __o = null; RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync - CSharpStatement - (2:0,2 [17] CodeBlockWithTextElement.cshtml) - \n var a = 1; + CSharpStatement - (2:0,2 [17] CodeBlockWithTextElement.cshtml) + RazorIRToken - (2:0,2 [17] CodeBlockWithTextElement.cshtml) - CSharp - \n var a = 1; HtmlContent - (25:1,21 [3] CodeBlockWithTextElement.cshtml) - foo - CSharpStatement - (35:1,31 [22] CodeBlockWithTextElement.cshtml) - \n var b = 1; + CSharpStatement - (35:1,31 [22] CodeBlockWithTextElement.cshtml) + RazorIRToken - (35:1,31 [22] CodeBlockWithTextElement.cshtml) - CSharp - \n var b = 1; HtmlContent - (63:2,23 [4] CodeBlockWithTextElement.cshtml) - bar CSharpExpression - (69:2,29 [3] CodeBlockWithTextElement.cshtml) RazorIRToken - (69:2,29 [3] CodeBlockWithTextElement.cshtml) - CSharp - a+b - CSharpStatement - (80:2,40 [2] CodeBlockWithTextElement.cshtml) - \n + CSharpStatement - (80:2,40 [2] CodeBlockWithTextElement.cshtml) + RazorIRToken - (80:2,40 [2] CodeBlockWithTextElement.cshtml) - CSharp - \n diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_Runtime.ir.txt index 40e9d95146..89080d6d41 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlockWithTextElement_Runtime.ir.txt @@ -5,10 +5,13 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlockWithTextElement_Runtime - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync - CSharpStatement - (2:0,2 [16] CodeBlockWithTextElement.cshtml) - \n var a = 1; + CSharpStatement - (2:0,2 [16] CodeBlockWithTextElement.cshtml) + RazorIRToken - (2:0,2 [16] CodeBlockWithTextElement.cshtml) - CSharp - \n var a = 1; HtmlContent - (25:1,21 [3] CodeBlockWithTextElement.cshtml) - foo - CSharpStatement - (35:1,31 [19] CodeBlockWithTextElement.cshtml) - \n var b = 1; + CSharpStatement - (35:1,31 [19] CodeBlockWithTextElement.cshtml) + RazorIRToken - (35:1,31 [19] CodeBlockWithTextElement.cshtml) - CSharp - \n var b = 1; HtmlContent - (63:2,23 [4] CodeBlockWithTextElement.cshtml) - bar CSharpExpression - (69:2,29 [3] CodeBlockWithTextElement.cshtml) RazorIRToken - (69:2,29 [3] CodeBlockWithTextElement.cshtml) - CSharp - a+b - CSharpStatement - (80:2,40 [2] CodeBlockWithTextElement.cshtml) - \n + CSharpStatement - (80:2,40 [2] CodeBlockWithTextElement.cshtml) + RazorIRToken - (80:2,40 [2] CodeBlockWithTextElement.cshtml) - CSharp - \n diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.ir.txt index 503efb0152..55d72bb33b 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_DesignTime.ir.txt @@ -5,10 +5,16 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlock_DesignTime - - DirectiveTokenHelper - - CSharpStatement - - #pragma warning disable 219 - CSharpStatement - - private void __RazorDirectiveTokenHelpers__() { - CSharpStatement - - } - CSharpStatement - - #pragma warning restore 219 - CSharpStatement - - private static System.Object __o = null; + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning disable 219 + CSharpStatement - + RazorIRToken - - CSharp - private void __RazorDirectiveTokenHelpers__() { + CSharpStatement - + RazorIRToken - - CSharp - } + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning restore 219 + CSharpStatement - + RazorIRToken - - CSharp - private static System.Object __o = null; RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync - CSharpStatement - (2:0,2 [115] CodeBlock.cshtml) - \n for(int i = 1; i <= 10; i++) {\n Output.Write("Hello from C#, #" + i.ToString() + "
");\n }\n + CSharpStatement - (2:0,2 [115] CodeBlock.cshtml) + RazorIRToken - (2:0,2 [115] CodeBlock.cshtml) - CSharp - \n for(int i = 1; i <= 10; i++) {\n Output.Write("Hello from C#, #" + i.ToString() + "
");\n }\n diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_Runtime.codegen.cs b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_Runtime.codegen.cs index f0a975184d..68c18cd479 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_Runtime.codegen.cs +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_Runtime.codegen.cs @@ -15,7 +15,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles Output.Write("Hello from C#, #" + i.ToString() + "
"); } - #line default #line hidden } diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_Runtime.ir.txt index 99285aeace..ceb43e7433 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/CodeBlock_Runtime.ir.txt @@ -5,4 +5,5 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_CodeBlock_Runtime - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync - CSharpStatement - (2:0,2 [115] CodeBlock.cshtml) - \n for(int i = 1; i <= 10; i++) {\n Output.Write("Hello from C#, #" + i.ToString() + "
");\n }\n + CSharpStatement - (2:0,2 [115] CodeBlock.cshtml) + RazorIRToken - (2:0,2 [115] CodeBlock.cshtml) - CSharp - \n for(int i = 1; i <= 10; i++) {\n Output.Write("Hello from C#, #" + i.ToString() + "
");\n }\n diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.ir.txt index e09296d519..736045ec50 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ComplexTagHelpers_DesignTime.ir.txt @@ -5,21 +5,28 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ComplexTagHelpers_DesignTime - - DirectiveTokenHelper - - CSharpStatement - - #pragma warning disable 219 - CSharpStatement - - private void __RazorDirectiveTokenHelpers__() { + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning disable 219 + CSharpStatement - + RazorIRToken - - CSharp - private void __RazorDirectiveTokenHelpers__() { DirectiveToken - (14:0,14 [17] ComplexTagHelpers.cshtml) - "*, TestAssembly" - CSharpStatement - - } - CSharpStatement - - #pragma warning restore 219 - CSharpStatement - - private static System.Object __o = null; + CSharpStatement - + RazorIRToken - - CSharp - } + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning restore 219 + CSharpStatement - + RazorIRToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] ComplexTagHelpers.cshtml) - \n\n - CSharpStatement - (36:2,1 [52] ComplexTagHelpers.cshtml) - if (true)\n{\n var checkbox = "checkbox";\n\n + CSharpStatement - (36:2,1 [52] ComplexTagHelpers.cshtml) + RazorIRToken - (36:2,1 [52] ComplexTagHelpers.cshtml) - CSharp - if (true)\n{\n var checkbox = "checkbox";\n\n HtmlContent - (88:6,4 [51] ComplexTagHelpers.cshtml) -This is item # CSharpExpression - (74:2,22 [1] DesignTime.cshtml) RazorIRToken - (74:2,22 [1] DesignTime.cshtml) - CSharp - i HtmlContent - (75:2,23 [4] DesignTime.cshtml) -
- CSharpStatement - (79:2,27 [15] DesignTime.cshtml) - \n } + CSharpStatement - (79:2,27 [15] DesignTime.cshtml) + RazorIRToken - (79:2,27 [15] DesignTime.cshtml) - CSharp - \n } HtmlContent - (94:3,13 [17] DesignTime.cshtml) - \n\n CSharpExpression - (113:7,2 [12] DesignTime.cshtml) RazorIRToken - (113:7,2 [12] DesignTime.cshtml) - CSharp - Foo(Bar.Baz) @@ -32,9 +39,11 @@ Document - HtmlContent - (145:8,17 [8] DesignTime.cshtml) - Biz
RazorIRToken - (153:8,25 [1] DesignTime.cshtml) - CSharp - ) HtmlContent - (154:8,26 [10] DesignTime.cshtml) - \n\n\n - CSharpStatement - - DefineSection("Footer", async (__razor_section_writer) => { + CSharpStatement - + RazorIRToken - - CSharp - DefineSection("Footer", async (__razor_section_writer) => { HtmlContent - (181:11,17 [22] DesignTime.cshtml) - \nFoo
\n CSharpExpression - (204:13,5 [3] DesignTime.cshtml) RazorIRToken - (204:13,5 [3] DesignTime.cshtml) - CSharp - bar HtmlContent - (207:13,8 [2] DesignTime.cshtml) - \n - CSharpStatement - - }); + CSharpStatement - + RazorIRToken - - CSharp - }); diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.ir.txt index fafb04234d..73fc6d2d3c 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DuplicateAttributeTagHelpers_DesignTime.ir.txt @@ -5,12 +5,17 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DuplicateAttributeTagHelpers_DesignTime - - DirectiveTokenHelper - - CSharpStatement - - #pragma warning disable 219 - CSharpStatement - - private void __RazorDirectiveTokenHelpers__() { + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning disable 219 + CSharpStatement - + RazorIRToken - - CSharp - private void __RazorDirectiveTokenHelpers__() { DirectiveToken - (14:0,14 [17] DuplicateAttributeTagHelpers.cshtml) - "*, TestAssembly" - CSharpStatement - - } - CSharpStatement - - #pragma warning restore 219 - CSharpStatement - - private static System.Object __o = null; + CSharpStatement - + RazorIRToken - - CSharp - } + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning restore 219 + CSharpStatement - + RazorIRToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.PTagHelper - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] DuplicateAttributeTagHelpers.cshtml) - \n\n diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.ir.txt index 13ec2715ce..cad45e2ee6 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_DesignTime.ir.txt @@ -5,12 +5,17 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_DynamicAttributeTagHelpers_DesignTime - - DirectiveTokenHelper - - CSharpStatement - - #pragma warning disable 219 - CSharpStatement - - private void __RazorDirectiveTokenHelpers__() { + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning disable 219 + CSharpStatement - + RazorIRToken - - CSharp - private void __RazorDirectiveTokenHelpers__() { DirectiveToken - (14:0,14 [17] DynamicAttributeTagHelpers.cshtml) - "*, TestAssembly" - CSharpStatement - - } - CSharpStatement - - #pragma warning restore 219 - CSharpStatement - - private static System.Object __o = null; + CSharpStatement - + RazorIRToken - - CSharp - } + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning restore 219 + CSharpStatement - + RazorIRToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.InputTagHelper RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] DynamicAttributeTagHelpers.cshtml) - \n\n @@ -29,13 +34,16 @@ Document - CreateTagHelper - - TestNamespace.InputTagHelper AddTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes CSharpAttributeValue - (95:4,16 [44] DynamicAttributeTagHelpers.cshtml) - - CSharpStatement - (96:4,17 [12] DynamicAttributeTagHelpers.cshtml) - if (true) { + CSharpStatement - (96:4,17 [12] DynamicAttributeTagHelpers.cshtml) + RazorIRToken - (96:4,17 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { CSharpExpression - (109:4,30 [12] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (109:4,30 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty - CSharpStatement - (121:4,42 [10] DynamicAttributeTagHelpers.cshtml) - } else { + CSharpStatement - (121:4,42 [10] DynamicAttributeTagHelpers.cshtml) + RazorIRToken - (121:4,42 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { CSharpExpression - (132:4,53 [5] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (132:4,53 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false - CSharpStatement - (137:4,58 [2] DynamicAttributeTagHelpers.cshtml) - } + CSharpStatement - (137:4,58 [2] DynamicAttributeTagHelpers.cshtml) + RazorIRToken - (137:4,58 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } HtmlAttributeValue - (139:4,60 [7] DynamicAttributeTagHelpers.cshtml) - - suffix ExecuteTagHelpers - HtmlContent - (150:4,71 [4] DynamicAttributeTagHelpers.cshtml) - \n\n @@ -62,13 +70,16 @@ Document - CSharpExpression - (256:8,15 [13] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (256:8,15 [13] DynamicAttributeTagHelpers.cshtml) - CSharp - long.MinValue HtmlContent - (269:8,28 [1] DynamicAttributeTagHelpers.cshtml) - - CSharpStatement - (271:8,30 [12] DynamicAttributeTagHelpers.cshtml) - if (true) { + CSharpStatement - (271:8,30 [12] DynamicAttributeTagHelpers.cshtml) + RazorIRToken - (271:8,30 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { CSharpExpression - (284:8,43 [12] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (284:8,43 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty - CSharpStatement - (296:8,55 [10] DynamicAttributeTagHelpers.cshtml) - } else { + CSharpStatement - (296:8,55 [10] DynamicAttributeTagHelpers.cshtml) + RazorIRToken - (296:8,55 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { CSharpExpression - (307:8,66 [5] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (307:8,66 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false - CSharpStatement - (312:8,71 [2] DynamicAttributeTagHelpers.cshtml) - } + CSharpStatement - (312:8,71 [2] DynamicAttributeTagHelpers.cshtml) + RazorIRToken - (312:8,71 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } HtmlContent - (314:8,73 [1] DynamicAttributeTagHelpers.cshtml) - CSharpExpression - (316:8,75 [12] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (316:8,75 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - int.MaxValue @@ -77,13 +88,16 @@ Document - CSharpExpression - (348:9,17 [13] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (348:9,17 [13] DynamicAttributeTagHelpers.cshtml) - CSharp - long.MinValue CSharpAttributeValue - (361:9,30 [45] DynamicAttributeTagHelpers.cshtml) - - CSharpStatement - (363:9,32 [12] DynamicAttributeTagHelpers.cshtml) - if (true) { + CSharpStatement - (363:9,32 [12] DynamicAttributeTagHelpers.cshtml) + RazorIRToken - (363:9,32 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { CSharpExpression - (376:9,45 [12] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (376:9,45 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty - CSharpStatement - (388:9,57 [10] DynamicAttributeTagHelpers.cshtml) - } else { + CSharpStatement - (388:9,57 [10] DynamicAttributeTagHelpers.cshtml) + RazorIRToken - (388:9,57 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { CSharpExpression - (399:9,68 [5] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (399:9,68 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false - CSharpStatement - (404:9,73 [2] DynamicAttributeTagHelpers.cshtml) - } + CSharpStatement - (404:9,73 [2] DynamicAttributeTagHelpers.cshtml) + RazorIRToken - (404:9,73 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } CSharpAttributeValue - (406:9,75 [14] DynamicAttributeTagHelpers.cshtml) - CSharpExpression - (408:9,77 [12] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (408:9,77 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - int.MaxValue @@ -111,11 +125,14 @@ Document - CreateTagHelper - - TestNamespace.InputTagHelper AddTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes CSharpAttributeValue - (528:13,16 [44] DynamicAttributeTagHelpers.cshtml) - - CSharpStatement - (529:13,17 [12] DynamicAttributeTagHelpers.cshtml) - if (true) { + CSharpStatement - (529:13,17 [12] DynamicAttributeTagHelpers.cshtml) + RazorIRToken - (529:13,17 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { CSharpExpression - (542:13,30 [12] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (542:13,30 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty - CSharpStatement - (554:13,42 [10] DynamicAttributeTagHelpers.cshtml) - } else { + CSharpStatement - (554:13,42 [10] DynamicAttributeTagHelpers.cshtml) + RazorIRToken - (554:13,42 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { CSharpExpression - (565:13,53 [5] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (565:13,53 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false - CSharpStatement - (570:13,58 [2] DynamicAttributeTagHelpers.cshtml) - } + CSharpStatement - (570:13,58 [2] DynamicAttributeTagHelpers.cshtml) + RazorIRToken - (570:13,58 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } ExecuteTagHelpers - diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_Runtime.ir.txt index 87c159166a..dda15c8fc7 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/DynamicAttributeTagHelpers_Runtime.ir.txt @@ -22,13 +22,16 @@ Document - CreateTagHelper - - TestNamespace.InputTagHelper AddTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes CSharpAttributeValue - (95:4,16 [44] DynamicAttributeTagHelpers.cshtml) - - CSharpStatement - (96:4,17 [12] DynamicAttributeTagHelpers.cshtml) - if (true) { + CSharpStatement - (96:4,17 [12] DynamicAttributeTagHelpers.cshtml) + RazorIRToken - (96:4,17 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { CSharpExpression - (109:4,30 [12] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (109:4,30 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty - CSharpStatement - (121:4,42 [10] DynamicAttributeTagHelpers.cshtml) - } else { + CSharpStatement - (121:4,42 [10] DynamicAttributeTagHelpers.cshtml) + RazorIRToken - (121:4,42 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { CSharpExpression - (132:4,53 [5] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (132:4,53 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false - CSharpStatement - (137:4,58 [2] DynamicAttributeTagHelpers.cshtml) - } + CSharpStatement - (137:4,58 [2] DynamicAttributeTagHelpers.cshtml) + RazorIRToken - (137:4,58 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } HtmlAttributeValue - (139:4,60 [7] DynamicAttributeTagHelpers.cshtml) - - suffix ExecuteTagHelpers - HtmlContent - (150:4,71 [4] DynamicAttributeTagHelpers.cshtml) - \n\n @@ -55,13 +58,16 @@ Document - CSharpExpression - (256:8,15 [13] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (256:8,15 [13] DynamicAttributeTagHelpers.cshtml) - CSharp - long.MinValue HtmlContent - (269:8,28 [1] DynamicAttributeTagHelpers.cshtml) - - CSharpStatement - (271:8,30 [12] DynamicAttributeTagHelpers.cshtml) - if (true) { + CSharpStatement - (271:8,30 [12] DynamicAttributeTagHelpers.cshtml) + RazorIRToken - (271:8,30 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { CSharpExpression - (284:8,43 [12] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (284:8,43 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty - CSharpStatement - (296:8,55 [10] DynamicAttributeTagHelpers.cshtml) - } else { + CSharpStatement - (296:8,55 [10] DynamicAttributeTagHelpers.cshtml) + RazorIRToken - (296:8,55 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { CSharpExpression - (307:8,66 [5] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (307:8,66 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false - CSharpStatement - (312:8,71 [2] DynamicAttributeTagHelpers.cshtml) - } + CSharpStatement - (312:8,71 [2] DynamicAttributeTagHelpers.cshtml) + RazorIRToken - (312:8,71 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } HtmlContent - (314:8,73 [1] DynamicAttributeTagHelpers.cshtml) - CSharpExpression - (316:8,75 [12] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (316:8,75 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - int.MaxValue @@ -70,13 +76,16 @@ Document - CSharpExpression - (348:9,17 [13] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (348:9,17 [13] DynamicAttributeTagHelpers.cshtml) - CSharp - long.MinValue CSharpAttributeValue - (361:9,30 [45] DynamicAttributeTagHelpers.cshtml) - - CSharpStatement - (363:9,32 [12] DynamicAttributeTagHelpers.cshtml) - if (true) { + CSharpStatement - (363:9,32 [12] DynamicAttributeTagHelpers.cshtml) + RazorIRToken - (363:9,32 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { CSharpExpression - (376:9,45 [12] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (376:9,45 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty - CSharpStatement - (388:9,57 [10] DynamicAttributeTagHelpers.cshtml) - } else { + CSharpStatement - (388:9,57 [10] DynamicAttributeTagHelpers.cshtml) + RazorIRToken - (388:9,57 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { CSharpExpression - (399:9,68 [5] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (399:9,68 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false - CSharpStatement - (404:9,73 [2] DynamicAttributeTagHelpers.cshtml) - } + CSharpStatement - (404:9,73 [2] DynamicAttributeTagHelpers.cshtml) + RazorIRToken - (404:9,73 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } CSharpAttributeValue - (406:9,75 [14] DynamicAttributeTagHelpers.cshtml) - CSharpExpression - (408:9,77 [12] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (408:9,77 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - int.MaxValue @@ -104,11 +113,14 @@ Document - CreateTagHelper - - TestNamespace.InputTagHelper AddTagHelperHtmlAttribute - - unbound - HtmlAttributeValueStyle.DoubleQuotes CSharpAttributeValue - (528:13,16 [44] DynamicAttributeTagHelpers.cshtml) - - CSharpStatement - (529:13,17 [12] DynamicAttributeTagHelpers.cshtml) - if (true) { + CSharpStatement - (529:13,17 [12] DynamicAttributeTagHelpers.cshtml) + RazorIRToken - (529:13,17 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - if (true) { CSharpExpression - (542:13,30 [12] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (542:13,30 [12] DynamicAttributeTagHelpers.cshtml) - CSharp - string.Empty - CSharpStatement - (554:13,42 [10] DynamicAttributeTagHelpers.cshtml) - } else { + CSharpStatement - (554:13,42 [10] DynamicAttributeTagHelpers.cshtml) + RazorIRToken - (554:13,42 [10] DynamicAttributeTagHelpers.cshtml) - CSharp - } else { CSharpExpression - (565:13,53 [5] DynamicAttributeTagHelpers.cshtml) RazorIRToken - (565:13,53 [5] DynamicAttributeTagHelpers.cshtml) - CSharp - false - CSharpStatement - (570:13,58 [2] DynamicAttributeTagHelpers.cshtml) - } + CSharpStatement - (570:13,58 [2] DynamicAttributeTagHelpers.cshtml) + RazorIRToken - (570:13,58 [2] DynamicAttributeTagHelpers.cshtml) - CSharp - } ExecuteTagHelpers - diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.ir.txt index 9e8455b262..3e96ecc8ef 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/EmptyAttributeTagHelpers_DesignTime.ir.txt @@ -5,12 +5,17 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_EmptyAttributeTagHelpers_DesignTime - - DirectiveTokenHelper - - CSharpStatement - - #pragma warning disable 219 - CSharpStatement - - private void __RazorDirectiveTokenHelpers__() { + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning disable 219 + CSharpStatement - + RazorIRToken - - CSharp - private void __RazorDirectiveTokenHelpers__() { DirectiveToken - (14:0,14 [15] EmptyAttributeTagHelpers.cshtml) - *, TestAssembly - CSharpStatement - - } - CSharpStatement - - #pragma warning restore 219 - CSharpStatement - - private static System.Object __o = null; + CSharpStatement - + RazorIRToken - - CSharp - } + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning restore 219 + CSharpStatement - + RazorIRToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.InputTagHelper - TestNamespace.InputTagHelper2 - TestNamespace.PTagHelper RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (29:0,29 [15] EmptyAttributeTagHelpers.cshtml) - \n\nFoo is Null!
- CSharpStatement - (121:8,23 [3] ExpressionsInCode.cshtml) - \n} + CSharpStatement - (121:8,23 [3] ExpressionsInCode.cshtml) + RazorIRToken - (121:8,23 [3] ExpressionsInCode.cshtml) - CSharp - \n} HtmlContent - (124:9,1 [9] ExpressionsInCode.cshtml) - \n\n\n - CSharpStatement - (134:12,1 [38] ExpressionsInCode.cshtml) - if(!String.IsNullOrEmpty(bar)) {\n + CSharpStatement - (134:12,1 [38] ExpressionsInCode.cshtml) + RazorIRToken - (134:12,1 [38] ExpressionsInCode.cshtml) - CSharp - if(!String.IsNullOrEmpty(bar)) {\n CSharpExpression - (174:13,6 [21] ExpressionsInCode.cshtml) RazorIRToken - (174:13,6 [21] ExpressionsInCode.cshtml) - CSharp - bar.Replace("F", "B") - CSharpStatement - (196:13,28 [3] ExpressionsInCode.cshtml) - \n} + CSharpStatement - (196:13,28 [3] ExpressionsInCode.cshtml) + RazorIRToken - (196:13,28 [3] ExpressionsInCode.cshtml) - CSharp - \n} HtmlContent - (199:14,1 [6] ExpressionsInCode.cshtml) - \n
diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_Runtime.codegen.cs b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_Runtime.codegen.cs index 4d6ad557fd..48ada699ca 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_Runtime.codegen.cs +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_Runtime.codegen.cs @@ -14,7 +14,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles object foo = null; string bar = "Foo"; - #line default #line hidden WriteLiteral("\r\n"); @@ -33,14 +32,12 @@ Write(foo); } else { - #line default #line hidden WriteLiteral("Foo is Null!
\r\n"); #line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode.cshtml" } - #line default #line hidden WriteLiteral("\r\n\r\n"); @@ -59,7 +56,6 @@ Write(bar.Replace("F", "B")); } - #line default #line hidden WriteLiteral("
"); diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_Runtime.ir.txt index 415c756ff0..6d030af8fd 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ExpressionsInCode_Runtime.ir.txt @@ -5,17 +5,23 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ExpressionsInCode_Runtime - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync - CSharpStatement - (2:0,2 [51] ExpressionsInCode.cshtml) - \n object foo = null;\n string bar = "Foo";\n + CSharpStatement - (2:0,2 [51] ExpressionsInCode.cshtml) + RazorIRToken - (2:0,2 [51] ExpressionsInCode.cshtml) - CSharp - \n object foo = null;\n string bar = "Foo";\n HtmlContent - (56:4,0 [2] ExpressionsInCode.cshtml) - \n - CSharpStatement - (59:5,1 [23] ExpressionsInCode.cshtml) - if(foo != null) {\n + CSharpStatement - (59:5,1 [23] ExpressionsInCode.cshtml) + RazorIRToken - (59:5,1 [23] ExpressionsInCode.cshtml) - CSharp - if(foo != null) {\n CSharpExpression - (83:6,5 [3] ExpressionsInCode.cshtml) RazorIRToken - (83:6,5 [3] ExpressionsInCode.cshtml) - CSharp - foo - CSharpStatement - (86:6,8 [12] ExpressionsInCode.cshtml) - \n} else {\n + CSharpStatement - (86:6,8 [12] ExpressionsInCode.cshtml) + RazorIRToken - (86:6,8 [12] ExpressionsInCode.cshtml) - CSharp - \n} else {\n HtmlContent - (98:8,0 [25] ExpressionsInCode.cshtml) -Foo is Null!
\n - CSharpStatement - (123:9,0 [3] ExpressionsInCode.cshtml) - }\n + CSharpStatement - (123:9,0 [3] ExpressionsInCode.cshtml) + RazorIRToken - (123:9,0 [3] ExpressionsInCode.cshtml) - CSharp - }\n HtmlContent - (126:10,0 [7] ExpressionsInCode.cshtml) - \n\n - CSharpStatement - (134:12,1 [38] ExpressionsInCode.cshtml) - if(!String.IsNullOrEmpty(bar)) {\n + CSharpStatement - (134:12,1 [38] ExpressionsInCode.cshtml) + RazorIRToken - (134:12,1 [38] ExpressionsInCode.cshtml) - CSharp - if(!String.IsNullOrEmpty(bar)) {\n CSharpExpression - (174:13,6 [21] ExpressionsInCode.cshtml) RazorIRToken - (174:13,6 [21] ExpressionsInCode.cshtml) - CSharp - bar.Replace("F", "B") - CSharpStatement - (196:13,28 [5] ExpressionsInCode.cshtml) - \n}\n + CSharpStatement - (196:13,28 [5] ExpressionsInCode.cshtml) + RazorIRToken - (196:13,28 [5] ExpressionsInCode.cshtml) - CSharp - \n}\n HtmlContent - (201:15,0 [4] ExpressionsInCode.cshtml) -
diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.ir.txt index f7d710452c..d9bf8c7489 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_DesignTime.ir.txt @@ -5,11 +5,17 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlockMinimal_DesignTime - - DirectiveTokenHelper - - CSharpStatement - - #pragma warning disable 219 - CSharpStatement - - private void __RazorDirectiveTokenHelpers__() { - CSharpStatement - - } - CSharpStatement - - #pragma warning restore 219 - CSharpStatement - - private static System.Object __o = null; + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning disable 219 + CSharpStatement - + RazorIRToken - - CSharp - private void __RazorDirectiveTokenHelpers__() { + CSharpStatement - + RazorIRToken - - CSharp - } + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning restore 219 + CSharpStatement - + RazorIRToken - - CSharp - private static System.Object __o = null; RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [5] FunctionsBlockMinimal.cshtml) - \n\n - CSharpStatement - (16:2,12 [55] FunctionsBlockMinimal.cshtml) - \nstring foo(string input) {\n return input + "!";\n}\n + CSharpStatement - (16:2,12 [55] FunctionsBlockMinimal.cshtml) + RazorIRToken - (16:2,12 [55] FunctionsBlockMinimal.cshtml) - CSharp - \nstring foo(string input) {\n return input + "!";\n}\n diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_Runtime.codegen.cs b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_Runtime.codegen.cs index fab5b13e6a..9dc6bdae2c 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_Runtime.codegen.cs +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_Runtime.codegen.cs @@ -18,7 +18,6 @@ string foo(string input) { return input + "!"; } - #line default #line hidden } diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_Runtime.ir.txt index bcfde47569..5b139bd43a 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlockMinimal_Runtime.ir.txt @@ -6,5 +6,7 @@ Document - ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlockMinimal_Runtime - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [4] FunctionsBlockMinimal.cshtml) - \n\n - CSharpStatement - (4:2,0 [1] FunctionsBlockMinimal.cshtml) - - CSharpStatement - (16:2,12 [55] FunctionsBlockMinimal.cshtml) - \nstring foo(string input) {\n return input + "!";\n}\n + CSharpStatement - (4:2,0 [1] FunctionsBlockMinimal.cshtml) + RazorIRToken - (4:2,0 [1] FunctionsBlockMinimal.cshtml) - CSharp - + CSharpStatement - (16:2,12 [55] FunctionsBlockMinimal.cshtml) + RazorIRToken - (16:2,12 [55] FunctionsBlockMinimal.cshtml) - CSharp - \nstring foo(string input) {\n return input + "!";\n}\n diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.ir.txt index 32d14adb1c..6f819739f9 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_DesignTime.ir.txt @@ -5,15 +5,22 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_FunctionsBlock_DesignTime - - DirectiveTokenHelper - - CSharpStatement - - #pragma warning disable 219 - CSharpStatement - - private void __RazorDirectiveTokenHelpers__() { - CSharpStatement - - } - CSharpStatement - - #pragma warning restore 219 - CSharpStatement - - private static System.Object __o = null; + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning disable 219 + CSharpStatement - + RazorIRToken - - CSharp - private void __RazorDirectiveTokenHelpers__() { + CSharpStatement - + RazorIRToken - - CSharp - } + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning restore 219 + CSharpStatement - + RazorIRToken - - CSharp - private static System.Object __o = null; RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (17:2,1 [4] FunctionsBlock.cshtml) - \n\n HtmlContent - (138:9,1 [28] FunctionsBlock.cshtml) - \n\nHere's a random number: CSharpExpression - (167:11,25 [11] FunctionsBlock.cshtml) RazorIRToken - (167:11,25 [11] FunctionsBlock.cshtml) - CSharp - RandomInt() - CSharpStatement - (12:0,12 [4] FunctionsBlock.cshtml) - \n\n - CSharpStatement - (33:4,12 [104] FunctionsBlock.cshtml) - \n Random _rand = new Random();\n private int RandomInt() {\n return _rand.Next();\n }\n + CSharpStatement - (12:0,12 [4] FunctionsBlock.cshtml) + RazorIRToken - (12:0,12 [4] FunctionsBlock.cshtml) - CSharp - \n\n + CSharpStatement - (33:4,12 [104] FunctionsBlock.cshtml) + RazorIRToken - (33:4,12 [104] FunctionsBlock.cshtml) - CSharp - \n Random _rand = new Random();\n private int RandomInt() {\n return _rand.Next();\n }\n diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_Runtime.codegen.cs b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_Runtime.codegen.cs index fb3f88cd3b..9621fcd53a 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_Runtime.codegen.cs +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_Runtime.codegen.cs @@ -25,7 +25,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles return _rand.Next(); } - #line default #line hidden } diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_Runtime.ir.txt index cb7f6c5a74..6e4d833808 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/FunctionsBlock_Runtime.ir.txt @@ -9,5 +9,7 @@ Document - HtmlContent - (140:10,0 [26] FunctionsBlock.cshtml) - \nHere's a random number: CSharpExpression - (167:11,25 [11] FunctionsBlock.cshtml) RazorIRToken - (167:11,25 [11] FunctionsBlock.cshtml) - CSharp - RandomInt() - CSharpStatement - (12:0,12 [4] FunctionsBlock.cshtml) - \n\n - CSharpStatement - (33:4,12 [104] FunctionsBlock.cshtml) - \n Random _rand = new Random();\n private int RandomInt() {\n return _rand.Next();\n }\n + CSharpStatement - (12:0,12 [4] FunctionsBlock.cshtml) + RazorIRToken - (12:0,12 [4] FunctionsBlock.cshtml) - CSharp - \n\n + CSharpStatement - (33:4,12 [104] FunctionsBlock.cshtml) + RazorIRToken - (33:4,12 [104] FunctionsBlock.cshtml) - CSharp - \n Random _rand = new Random();\n private int RandomInt() {\n return _rand.Next();\n }\n diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.ir.txt index c5d358d58d..8f4db5e1f1 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_DesignTime.ir.txt @@ -5,11 +5,18 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HiddenSpansInCode_DesignTime - - DirectiveTokenHelper - - CSharpStatement - - #pragma warning disable 219 - CSharpStatement - - private void __RazorDirectiveTokenHelpers__() { - CSharpStatement - - } - CSharpStatement - - #pragma warning restore 219 - CSharpStatement - - private static System.Object __o = null; + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning disable 219 + CSharpStatement - + RazorIRToken - - CSharp - private void __RazorDirectiveTokenHelpers__() { + CSharpStatement - + RazorIRToken - - CSharp - } + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning restore 219 + CSharpStatement - + RazorIRToken - - CSharp - private static System.Object __o = null; RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync - CSharpStatement - (2:0,2 [6] HiddenSpansInCode.cshtml) - \n - CSharpStatement - (9:1,5 [5] HiddenSpansInCode.cshtml) - @Da\n + CSharpStatement - (2:0,2 [6] HiddenSpansInCode.cshtml) + RazorIRToken - (2:0,2 [6] HiddenSpansInCode.cshtml) - CSharp - \n + CSharpStatement - (9:1,5 [5] HiddenSpansInCode.cshtml) + RazorIRToken - (9:1,5 [5] HiddenSpansInCode.cshtml) - CSharp - @Da\n diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_Runtime.codegen.cs b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_Runtime.codegen.cs index ba64b3bca7..b849c9277e 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_Runtime.codegen.cs +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_Runtime.codegen.cs @@ -12,7 +12,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles #line 2 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode.cshtml" @Da - #line default #line hidden } diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_Runtime.ir.txt index 423722eded..7027e32736 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HiddenSpansInCode_Runtime.ir.txt @@ -5,5 +5,7 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HiddenSpansInCode_Runtime - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync - CSharpStatement - (2:0,2 [6] HiddenSpansInCode.cshtml) - \n - CSharpStatement - (9:1,5 [5] HiddenSpansInCode.cshtml) - @Da\n + CSharpStatement - (2:0,2 [6] HiddenSpansInCode.cshtml) + RazorIRToken - (2:0,2 [6] HiddenSpansInCode.cshtml) - CSharp - \n + CSharpStatement - (9:1,5 [5] HiddenSpansInCode.cshtml) + RazorIRToken - (9:1,5 [5] HiddenSpansInCode.cshtml) - CSharp - @Da\n diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_DesignTime.ir.txt index 9a03df7edd..cdd98e4849 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Double_DesignTime.ir.txt @@ -5,10 +5,15 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Double_DesignTime - - DirectiveTokenHelper - - CSharpStatement - - #pragma warning disable 219 - CSharpStatement - - private void __RazorDirectiveTokenHelpers__() { - CSharpStatement - - } - CSharpStatement - - #pragma warning restore 219 - CSharpStatement - - private static System.Object __o = null; + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning disable 219 + CSharpStatement - + RazorIRToken - - CSharp - private void __RazorDirectiveTokenHelpers__() { + CSharpStatement - + RazorIRToken - - CSharp - } + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning restore 219 + CSharpStatement - + RazorIRToken - - CSharp - private static System.Object __o = null; RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [45] HtmlCommentWithQuote_Double.cshtml) - \n
diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_DesignTime.ir.txt
index 0d16265367..fb5d0414bd 100644
--- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_DesignTime.ir.txt
+++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/HtmlCommentWithQuote_Single_DesignTime.ir.txt
@@ -5,10 +5,15 @@ Document -
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_HtmlCommentWithQuote_Single_DesignTime - -
DirectiveTokenHelper -
- CSharpStatement - - #pragma warning disable 219
- CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
- CSharpStatement - - }
- CSharpStatement - - #pragma warning restore 219
- CSharpStatement - - private static System.Object __o = null;
+ CSharpStatement -
+ RazorIRToken - - CSharp - #pragma warning disable 219
+ CSharpStatement -
+ RazorIRToken - - CSharp - private void __RazorDirectiveTokenHelpers__() {
+ CSharpStatement -
+ RazorIRToken - - CSharp - }
+ CSharpStatement -
+ RazorIRToken - - CSharp - #pragma warning restore 219
+ CSharpStatement -
+ RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [45] HtmlCommentWithQuote_Single.cshtml) - \n
diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.ir.txt
index 48704ef099..b19b703b54 100644
--- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.ir.txt
+++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpressionAtEOF_DesignTime.ir.txt
@@ -5,11 +5,16 @@ Document -
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ImplicitExpressionAtEOF_DesignTime - -
DirectiveTokenHelper -
- CSharpStatement - - #pragma warning disable 219
- CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
- CSharpStatement - - }
- CSharpStatement - - #pragma warning restore 219
- CSharpStatement - - private static System.Object __o = null;
+ CSharpStatement -
+ RazorIRToken - - CSharp - #pragma warning disable 219
+ CSharpStatement -
+ RazorIRToken - - CSharp - private void __RazorDirectiveTokenHelpers__() {
+ CSharpStatement -
+ RazorIRToken - - CSharp - }
+ CSharpStatement -
+ RazorIRToken - - CSharp - #pragma warning restore 219
+ CSharpStatement -
+ RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
HtmlContent - (0:0,0 [18] ImplicitExpressionAtEOF.cshtml) - This is markup\n\n
CSharpExpression -
diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.ir.txt
index afc66511fd..5d703fac3a 100644
--- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.ir.txt
+++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_DesignTime.ir.txt
@@ -5,15 +5,22 @@ Document -
UsingStatement - - System.Threading.Tasks
ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ImplicitExpression_DesignTime - -
DirectiveTokenHelper -
- CSharpStatement - - #pragma warning disable 219
- CSharpStatement - - private void __RazorDirectiveTokenHelpers__() {
- CSharpStatement - - }
- CSharpStatement - - #pragma warning restore 219
- CSharpStatement - - private static System.Object __o = null;
+ CSharpStatement -
+ RazorIRToken - - CSharp - #pragma warning disable 219
+ CSharpStatement -
+ RazorIRToken - - CSharp - private void __RazorDirectiveTokenHelpers__() {
+ CSharpStatement -
+ RazorIRToken - - CSharp - }
+ CSharpStatement -
+ RazorIRToken - - CSharp - #pragma warning restore 219
+ CSharpStatement -
+ RazorIRToken - - CSharp - private static System.Object __o = null;
RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync
- CSharpStatement - (1:0,1 [36] ImplicitExpression.cshtml) - for(int i = 1; i <= 10; i++) {\n
+ CSharpStatement - (1:0,1 [36] ImplicitExpression.cshtml)
+ RazorIRToken - (1:0,1 [36] ImplicitExpression.cshtml) - CSharp - for(int i = 1; i <= 10; i++) {\n
HtmlContent - (37:1,4 [17] ImplicitExpression.cshtml) - This is item # CSharpExpression - (55:1,22 [1] ImplicitExpression.cshtml) RazorIRToken - (55:1,22 [1] ImplicitExpression.cshtml) - CSharp - i HtmlContent - (56:1,23 [4] ImplicitExpression.cshtml) -
- CSharpStatement - (60:1,27 [3] ImplicitExpression.cshtml) - \n} + CSharpStatement - (60:1,27 [3] ImplicitExpression.cshtml) + RazorIRToken - (60:1,27 [3] ImplicitExpression.cshtml) - CSharp - \n} diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_Runtime.codegen.cs b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_Runtime.codegen.cs index a2da126220..a4f32d3c87 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_Runtime.codegen.cs +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_Runtime.codegen.cs @@ -12,7 +12,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles #line 1 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression.cshtml" for(int i = 1; i <= 10; i++) { - #line default #line hidden WriteLiteral("This is item #"); diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_Runtime.ir.txt index 8f26f8b34b..d1cfc00836 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/ImplicitExpression_Runtime.ir.txt @@ -5,9 +5,11 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_ImplicitExpression_Runtime - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync - CSharpStatement - (1:0,1 [32] ImplicitExpression.cshtml) - for(int i = 1; i <= 10; i++) {\n + CSharpStatement - (1:0,1 [32] ImplicitExpression.cshtml) + RazorIRToken - (1:0,1 [32] ImplicitExpression.cshtml) - CSharp - for(int i = 1; i <= 10; i++) {\n HtmlContent - (33:1,0 [21] ImplicitExpression.cshtml) -
This is item # CSharpExpression - (55:1,22 [1] ImplicitExpression.cshtml) RazorIRToken - (55:1,22 [1] ImplicitExpression.cshtml) - CSharp - i HtmlContent - (56:1,23 [6] ImplicitExpression.cshtml) -
\n - CSharpStatement - (62:2,0 [1] ImplicitExpression.cshtml) - } + CSharpStatement - (62:2,0 [1] ImplicitExpression.cshtml) + RazorIRToken - (62:2,0 [1] ImplicitExpression.cshtml) - CSharp - } diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_DesignTime.ir.txt index 5af0d4f0dd..fc9f07924b 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/IncompleteTagHelper_DesignTime.ir.txt @@ -5,12 +5,17 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_IncompleteTagHelper_DesignTime - - DirectiveTokenHelper - - CSharpStatement - - #pragma warning disable 219 - CSharpStatement - - private void __RazorDirectiveTokenHelpers__() { + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning disable 219 + CSharpStatement - + RazorIRToken - - CSharp - private void __RazorDirectiveTokenHelpers__() { DirectiveToken - (14:0,14 [17] IncompleteTagHelper.cshtml) - "*, TestAssembly" - CSharpStatement - - } - CSharpStatement - - #pragma warning restore 219 - CSharpStatement - - private static System.Object __o = null; + CSharpStatement - + RazorIRToken - - CSharp - } + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning restore 219 + CSharpStatement - + RazorIRToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.PTagHelper RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] IncompleteTagHelper.cshtml) - \n\n diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_DesignTime.ir.txt index 83bb815eb8..341b7b67d1 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Inherits_DesignTime.ir.txt @@ -5,12 +5,17 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Inherits_DesignTime - foo.barBar
- CSharpStatement - (45:2,25 [7] Instrumented.cshtml) - ;\n + CSharpStatement - (45:2,25 [7] Instrumented.cshtml) + RazorIRToken - (45:2,25 [7] Instrumented.cshtml) - CSharp - ;\n HtmlContent - (54:3,6 [14] Instrumented.cshtml) - Hello, World\n - CSharpStatement - (68:4,0 [4] Instrumented.cshtml) - + CSharpStatement - (68:4,0 [4] Instrumented.cshtml) + RazorIRToken - (68:4,0 [4] Instrumented.cshtml) - CSharp - HtmlContent - (72:4,4 [19] Instrumented.cshtml) -Hello, World
- CSharpStatement - (91:4,23 [2] Instrumented.cshtml) - \n + CSharpStatement - (91:4,23 [2] Instrumented.cshtml) + RazorIRToken - (91:4,23 [2] Instrumented.cshtml) - CSharp - \n HtmlContent - (96:6,0 [2] Instrumented.cshtml) - \n - CSharpStatement - (99:7,1 [22] Instrumented.cshtml) - while(i <= 10) {\n + CSharpStatement - (99:7,1 [22] Instrumented.cshtml) + RazorIRToken - (99:7,1 [22] Instrumented.cshtml) - CSharp - while(i <= 10) {\n HtmlContent - (121:8,4 [19] Instrumented.cshtml) -Hello from C#, # CSharpExpression - (142:8,25 [1] Instrumented.cshtml) RazorIRToken - (142:8,25 [1] Instrumented.cshtml) - CSharp - i HtmlContent - (144:8,27 [4] Instrumented.cshtml) -
- CSharpStatement - (148:8,31 [16] Instrumented.cshtml) - \n i += 1;\n} + CSharpStatement - (148:8,31 [16] Instrumented.cshtml) + RazorIRToken - (148:8,31 [16] Instrumented.cshtml) - CSharp - \n i += 1;\n} HtmlContent - (164:10,1 [4] Instrumented.cshtml) - \n\n - CSharpStatement - (169:12,1 [19] Instrumented.cshtml) - if(i == 11) {\n + CSharpStatement - (169:12,1 [19] Instrumented.cshtml) + RazorIRToken - (169:12,1 [19] Instrumented.cshtml) - CSharp - if(i == 11) {\n HtmlContent - (188:13,4 [25] Instrumented.cshtml) -We wrote 10 lines!
- CSharpStatement - (213:13,29 [3] Instrumented.cshtml) - \n} + CSharpStatement - (213:13,29 [3] Instrumented.cshtml) + RazorIRToken - (213:13,29 [3] Instrumented.cshtml) - CSharp - \n} HtmlContent - (216:14,1 [4] Instrumented.cshtml) - \n\n - CSharpStatement - (221:16,1 [35] Instrumented.cshtml) - switch(i) {\n case 11:\n + CSharpStatement - (221:16,1 [35] Instrumented.cshtml) + RazorIRToken - (221:16,1 [35] Instrumented.cshtml) - CSharp - switch(i) {\n case 11:\n HtmlContent - (256:18,8 [36] Instrumented.cshtml) -No really, we wrote 10 lines!
- CSharpStatement - (292:18,44 [40] Instrumented.cshtml) - \n break;\n default:\n + CSharpStatement - (292:18,44 [40] Instrumented.cshtml) + RazorIRToken - (292:18,44 [40] Instrumented.cshtml) - CSharp - \n break;\n default:\n HtmlContent - (332:21,8 [29] Instrumented.cshtml) -Actually, we didn't...
- CSharpStatement - (361:21,37 [19] Instrumented.cshtml) - \n break;\n} + CSharpStatement - (361:21,37 [19] Instrumented.cshtml) + RazorIRToken - (361:21,37 [19] Instrumented.cshtml) - CSharp - \n break;\n} HtmlContent - (380:23,1 [4] Instrumented.cshtml) - \n\n - CSharpStatement - (385:25,1 [39] Instrumented.cshtml) - for(int j = 1; j <= 10; j += 2) {\n + CSharpStatement - (385:25,1 [39] Instrumented.cshtml) + RazorIRToken - (385:25,1 [39] Instrumented.cshtml) - CSharp - for(int j = 1; j <= 10; j += 2) {\n HtmlContent - (424:26,4 [25] Instrumented.cshtml) -Hello again from C#, # CSharpExpression - (451:26,31 [1] Instrumented.cshtml) RazorIRToken - (451:26,31 [1] Instrumented.cshtml) - CSharp - j HtmlContent - (453:26,33 [4] Instrumented.cshtml) -
- CSharpStatement - (457:26,37 [3] Instrumented.cshtml) - \n} + CSharpStatement - (457:26,37 [3] Instrumented.cshtml) + RazorIRToken - (457:26,37 [3] Instrumented.cshtml) - CSharp - \n} HtmlContent - (460:27,1 [4] Instrumented.cshtml) - \n\n - CSharpStatement - (465:29,1 [11] Instrumented.cshtml) - try {\n + CSharpStatement - (465:29,1 [11] Instrumented.cshtml) + RazorIRToken - (465:29,1 [11] Instrumented.cshtml) - CSharp - try {\n HtmlContent - (476:30,4 [35] Instrumented.cshtml) -That time, we wrote 5 lines!
- CSharpStatement - (511:30,39 [31] Instrumented.cshtml) - \n} catch(Exception ex) {\n + CSharpStatement - (511:30,39 [31] Instrumented.cshtml) + RazorIRToken - (511:30,39 [31] Instrumented.cshtml) - CSharp - \n} catch(Exception ex) {\n HtmlContent - (542:32,4 [29] Instrumented.cshtml) -Oh no! An error occurred: CSharpExpression - (573:32,35 [10] Instrumented.cshtml) RazorIRToken - (573:32,35 [10] Instrumented.cshtml) - CSharp - ex.Message HtmlContent - (584:32,46 [4] Instrumented.cshtml) -
- CSharpStatement - (588:32,50 [3] Instrumented.cshtml) - \n} + CSharpStatement - (588:32,50 [3] Instrumented.cshtml) + RazorIRToken - (588:32,50 [3] Instrumented.cshtml) - CSharp - \n} HtmlContent - (591:33,1 [4] Instrumented.cshtml) - \n\n - CSharpStatement - (596:35,1 [26] Instrumented.cshtml) - lock(new object()) {\n + CSharpStatement - (596:35,1 [26] Instrumented.cshtml) + RazorIRToken - (596:35,1 [26] Instrumented.cshtml) - CSharp - lock(new object()) {\n HtmlContent - (622:36,4 [47] Instrumented.cshtml) -This block is locked, for your security!
- CSharpStatement - (669:36,51 [3] Instrumented.cshtml) - \n} + CSharpStatement - (669:36,51 [3] Instrumented.cshtml) + RazorIRToken - (669:36,51 [3] Instrumented.cshtml) - CSharp - \n} diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_Runtime.codegen.cs b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_Runtime.codegen.cs index 9fb4d00ade..36efc36c31 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_Runtime.codegen.cs +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_Runtime.codegen.cs @@ -23,7 +23,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles #line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" ; - #line default #line hidden WriteLiteral(" "); @@ -32,7 +31,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles #line 8 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" while(i <= 10) { - #line default #line hidden WriteLiteral("Hello from C#, #"); @@ -46,21 +44,18 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles i += 1; } - #line default #line hidden WriteLiteral("\r\n"); #line 13 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" if(i == 11) { - #line default #line hidden WriteLiteral("
We wrote 10 lines!
\r\n"); #line 15 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" } - #line default #line hidden WriteLiteral("\r\n"); @@ -68,7 +63,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles switch(i) { case 11: - #line default #line hidden WriteLiteral("No really, we wrote 10 lines!
\r\n"); @@ -76,7 +70,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles break; default: - #line default #line hidden WriteLiteral("Actually, we didn\'t...
\r\n"); @@ -84,14 +77,12 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles break; } - #line default #line hidden WriteLiteral("\r\n"); #line 26 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" for(int j = 1; j <= 10; j += 2) { - #line default #line hidden WriteLiteral("Hello again from C#, #"); @@ -104,21 +95,18 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles #line 28 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" } - #line default #line hidden WriteLiteral("\r\n"); #line 30 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" try { - #line default #line hidden WriteLiteral("
That time, we wrote 5 lines!
\r\n"); #line 32 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" } catch(Exception ex) { - #line default #line hidden WriteLiteral("Oh no! An error occurred: "); @@ -131,14 +119,12 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles #line 34 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" } - #line default #line hidden WriteLiteral("\r\n"); #line 36 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented.cshtml" lock(new object()) { - #line default #line hidden WriteLiteral("
This block is locked, for your security!
\r\n"); diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_Runtime.ir.txt index 943603fca8..7a1078dfea 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/Instrumented_Runtime.ir.txt @@ -5,47 +5,64 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_Instrumented_Runtime - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync - CSharpStatement - (2:0,2 [32] Instrumented.cshtml) - \n int i = 1;\n var foo = + CSharpStatement - (2:0,2 [32] Instrumented.cshtml) + RazorIRToken - (2:0,2 [32] Instrumented.cshtml) - CSharp - \n int i = 1;\n var foo = Template - (35:2,15 [10] Instrumented.cshtml) HtmlContent - (35:2,15 [10] Instrumented.cshtml) -Bar
- CSharpStatement - (45:2,25 [3] Instrumented.cshtml) - ;\n + CSharpStatement - (45:2,25 [3] Instrumented.cshtml) + RazorIRToken - (45:2,25 [3] Instrumented.cshtml) - CSharp - ;\n HtmlContent - (48:3,0 [4] Instrumented.cshtml) - HtmlContent - (54:3,6 [39] Instrumented.cshtml) - Hello, World\nHello, World
\n - CSharpStatement - (93:5,0 [0] Instrumented.cshtml) - + CSharpStatement - (93:5,0 [0] Instrumented.cshtml) + RazorIRToken - (93:5,0 [0] Instrumented.cshtml) - CSharp - HtmlContent - (96:6,0 [2] Instrumented.cshtml) - \n - CSharpStatement - (99:7,1 [18] Instrumented.cshtml) - while(i <= 10) {\n + CSharpStatement - (99:7,1 [18] Instrumented.cshtml) + RazorIRToken - (99:7,1 [18] Instrumented.cshtml) - CSharp - while(i <= 10) {\n HtmlContent - (117:8,0 [23] Instrumented.cshtml) -Hello from C#, # CSharpExpression - (142:8,25 [1] Instrumented.cshtml) RazorIRToken - (142:8,25 [1] Instrumented.cshtml) - CSharp - i HtmlContent - (144:8,27 [6] Instrumented.cshtml) -
\n - CSharpStatement - (150:9,0 [16] Instrumented.cshtml) - i += 1;\n}\n + CSharpStatement - (150:9,0 [16] Instrumented.cshtml) + RazorIRToken - (150:9,0 [16] Instrumented.cshtml) - CSharp - i += 1;\n}\n HtmlContent - (166:11,0 [2] Instrumented.cshtml) - \n - CSharpStatement - (169:12,1 [15] Instrumented.cshtml) - if(i == 11) {\n + CSharpStatement - (169:12,1 [15] Instrumented.cshtml) + RazorIRToken - (169:12,1 [15] Instrumented.cshtml) - CSharp - if(i == 11) {\n HtmlContent - (184:13,0 [31] Instrumented.cshtml) -We wrote 10 lines!
\n - CSharpStatement - (215:14,0 [3] Instrumented.cshtml) - }\n + CSharpStatement - (215:14,0 [3] Instrumented.cshtml) + RazorIRToken - (215:14,0 [3] Instrumented.cshtml) - CSharp - }\n HtmlContent - (218:15,0 [2] Instrumented.cshtml) - \n - CSharpStatement - (221:16,1 [27] Instrumented.cshtml) - switch(i) {\n case 11:\n + CSharpStatement - (221:16,1 [27] Instrumented.cshtml) + RazorIRToken - (221:16,1 [27] Instrumented.cshtml) - CSharp - switch(i) {\n case 11:\n HtmlContent - (248:18,0 [46] Instrumented.cshtml) -No really, we wrote 10 lines!
\n - CSharpStatement - (294:19,0 [30] Instrumented.cshtml) - break;\n default:\n + CSharpStatement - (294:19,0 [30] Instrumented.cshtml) + RazorIRToken - (294:19,0 [30] Instrumented.cshtml) - CSharp - break;\n default:\n HtmlContent - (324:21,0 [39] Instrumented.cshtml) -Actually, we didn't...
\n - CSharpStatement - (363:22,0 [19] Instrumented.cshtml) - break;\n}\n + CSharpStatement - (363:22,0 [19] Instrumented.cshtml) + RazorIRToken - (363:22,0 [19] Instrumented.cshtml) - CSharp - break;\n}\n HtmlContent - (382:24,0 [2] Instrumented.cshtml) - \n - CSharpStatement - (385:25,1 [35] Instrumented.cshtml) - for(int j = 1; j <= 10; j += 2) {\n + CSharpStatement - (385:25,1 [35] Instrumented.cshtml) + RazorIRToken - (385:25,1 [35] Instrumented.cshtml) - CSharp - for(int j = 1; j <= 10; j += 2) {\n HtmlContent - (420:26,0 [29] Instrumented.cshtml) -Hello again from C#, # CSharpExpression - (451:26,31 [1] Instrumented.cshtml) RazorIRToken - (451:26,31 [1] Instrumented.cshtml) - CSharp - j HtmlContent - (453:26,33 [6] Instrumented.cshtml) -
\n - CSharpStatement - (459:27,0 [3] Instrumented.cshtml) - }\n + CSharpStatement - (459:27,0 [3] Instrumented.cshtml) + RazorIRToken - (459:27,0 [3] Instrumented.cshtml) - CSharp - }\n HtmlContent - (462:28,0 [2] Instrumented.cshtml) - \n - CSharpStatement - (465:29,1 [7] Instrumented.cshtml) - try {\n + CSharpStatement - (465:29,1 [7] Instrumented.cshtml) + RazorIRToken - (465:29,1 [7] Instrumented.cshtml) - CSharp - try {\n HtmlContent - (472:30,0 [41] Instrumented.cshtml) -That time, we wrote 5 lines!
\n - CSharpStatement - (513:31,0 [25] Instrumented.cshtml) - } catch(Exception ex) {\n + CSharpStatement - (513:31,0 [25] Instrumented.cshtml) + RazorIRToken - (513:31,0 [25] Instrumented.cshtml) - CSharp - } catch(Exception ex) {\n HtmlContent - (538:32,0 [33] Instrumented.cshtml) -Oh no! An error occurred: CSharpExpression - (573:32,35 [10] Instrumented.cshtml) RazorIRToken - (573:32,35 [10] Instrumented.cshtml) - CSharp - ex.Message HtmlContent - (584:32,46 [6] Instrumented.cshtml) -
\n - CSharpStatement - (590:33,0 [3] Instrumented.cshtml) - }\n + CSharpStatement - (590:33,0 [3] Instrumented.cshtml) + RazorIRToken - (590:33,0 [3] Instrumented.cshtml) - CSharp - }\n HtmlContent - (593:34,0 [2] Instrumented.cshtml) - \n - CSharpStatement - (596:35,1 [22] Instrumented.cshtml) - lock(new object()) {\n + CSharpStatement - (596:35,1 [22] Instrumented.cshtml) + RazorIRToken - (596:35,1 [22] Instrumented.cshtml) - CSharp - lock(new object()) {\n HtmlContent - (618:36,0 [53] Instrumented.cshtml) -This block is locked, for your security!
\n - CSharpStatement - (671:37,0 [1] Instrumented.cshtml) - } + CSharpStatement - (671:37,0 [1] Instrumented.cshtml) + RazorIRToken - (671:37,0 [1] Instrumented.cshtml) - CSharp - } diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.ir.txt index a1a460012a..d18089929a 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_DesignTime.ir.txt @@ -5,15 +5,22 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MarkupInCodeBlock_DesignTime - - DirectiveTokenHelper - - CSharpStatement - - #pragma warning disable 219 - CSharpStatement - - private void __RazorDirectiveTokenHelpers__() { - CSharpStatement - - } - CSharpStatement - - #pragma warning restore 219 - CSharpStatement - - private static System.Object __o = null; + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning disable 219 + CSharpStatement - + RazorIRToken - - CSharp - private void __RazorDirectiveTokenHelpers__() { + CSharpStatement - + RazorIRToken - - CSharp - } + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning restore 219 + CSharpStatement - + RazorIRToken - - CSharp - private static System.Object __o = null; RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync - CSharpStatement - (2:0,2 [46] MarkupInCodeBlock.cshtml) - \n for(int i = 1; i <= 10; i++) {\n + CSharpStatement - (2:0,2 [46] MarkupInCodeBlock.cshtml) + RazorIRToken - (2:0,2 [46] MarkupInCodeBlock.cshtml) - CSharp - \n for(int i = 1; i <= 10; i++) {\n HtmlContent - (48:2,8 [19] MarkupInCodeBlock.cshtml) -Hello from C#, # CSharpExpression - (69:2,29 [12] MarkupInCodeBlock.cshtml) RazorIRToken - (69:2,29 [12] MarkupInCodeBlock.cshtml) - CSharp - i.ToString() HtmlContent - (82:2,42 [4] MarkupInCodeBlock.cshtml) -
- CSharpStatement - (86:2,46 [9] MarkupInCodeBlock.cshtml) - \n }\n + CSharpStatement - (86:2,46 [9] MarkupInCodeBlock.cshtml) + RazorIRToken - (86:2,46 [9] MarkupInCodeBlock.cshtml) - CSharp - \n }\n diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_Runtime.codegen.cs b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_Runtime.codegen.cs index 8afd9c864e..41c165fc76 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_Runtime.codegen.cs +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_Runtime.codegen.cs @@ -13,7 +13,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles for(int i = 1; i <= 10; i++) { - #line default #line hidden WriteLiteral("Hello from C#, #"); @@ -26,7 +25,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles #line 4 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock.cshtml" } - #line default #line hidden } diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_Runtime.ir.txt index e9c7602979..68c797c972 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MarkupInCodeBlock_Runtime.ir.txt @@ -5,9 +5,11 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MarkupInCodeBlock_Runtime - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync - CSharpStatement - (2:0,2 [38] MarkupInCodeBlock.cshtml) - \n for(int i = 1; i <= 10; i++) {\n + CSharpStatement - (2:0,2 [38] MarkupInCodeBlock.cshtml) + RazorIRToken - (2:0,2 [38] MarkupInCodeBlock.cshtml) - CSharp - \n for(int i = 1; i <= 10; i++) {\n HtmlContent - (40:2,0 [27] MarkupInCodeBlock.cshtml) -
Hello from C#, # CSharpExpression - (69:2,29 [12] MarkupInCodeBlock.cshtml) RazorIRToken - (69:2,29 [12] MarkupInCodeBlock.cshtml) - CSharp - i.ToString() HtmlContent - (82:2,42 [6] MarkupInCodeBlock.cshtml) -
\n - CSharpStatement - (88:3,0 [7] MarkupInCodeBlock.cshtml) - }\n + CSharpStatement - (88:3,0 [7] MarkupInCodeBlock.cshtml) + RazorIRToken - (88:3,0 [7] MarkupInCodeBlock.cshtml) - CSharp - }\n diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.ir.txt index b83b585622..e20f1426f7 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/MinimizedTagHelpers_DesignTime.ir.txt @@ -5,12 +5,17 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_MinimizedTagHelpers_DesignTime - - DirectiveTokenHelper - - CSharpStatement - - #pragma warning disable 219 - CSharpStatement - - private void __RazorDirectiveTokenHelpers__() { + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning disable 219 + CSharpStatement - + RazorIRToken - - CSharp - private void __RazorDirectiveTokenHelpers__() { DirectiveToken - (14:0,14 [17] MinimizedTagHelpers.cshtml) - "*, TestAssembly" - CSharpStatement - - } - CSharpStatement - - #pragma warning restore 219 - CSharpStatement - - private static System.Object __o = null; + CSharpStatement - + RazorIRToken - - CSharp - } + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning restore 219 + CSharpStatement - + RazorIRToken - - CSharp - private static System.Object __o = null; DeclareTagHelperFields - - TestNamespace.CatchAllTagHelper - TestNamespace.InputTagHelper RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (31:0,31 [4] MinimizedTagHelpers.cshtml) - \n\n diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.ir.txt index ab48043faa..733f699225 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NestedCSharp_DesignTime.ir.txt @@ -5,17 +5,26 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NestedCSharp_DesignTime - - DirectiveTokenHelper - - CSharpStatement - - #pragma warning disable 219 - CSharpStatement - - private void __RazorDirectiveTokenHelpers__() { - CSharpStatement - - } - CSharpStatement - - #pragma warning restore 219 - CSharpStatement - - private static System.Object __o = null; + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning disable 219 + CSharpStatement - + RazorIRToken - - CSharp - private void __RazorDirectiveTokenHelpers__() { + CSharpStatement - + RazorIRToken - - CSharp - } + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning restore 219 + CSharpStatement - + RazorIRToken - - CSharp - private static System.Object __o = null; RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync - CSharpStatement - (2:0,2 [6] NestedCSharp.cshtml) - \n - CSharpStatement - (9:1,5 [53] NestedCSharp.cshtml) - foreach (var result in (dynamic)Url)\n {\n + CSharpStatement - (2:0,2 [6] NestedCSharp.cshtml) + RazorIRToken - (2:0,2 [6] NestedCSharp.cshtml) - CSharp - \n + CSharpStatement - (9:1,5 [53] NestedCSharp.cshtml) + RazorIRToken - (9:1,5 [53] NestedCSharp.cshtml) - CSharp - foreach (var result in (dynamic)Url)\n {\n HtmlContent - (62:3,8 [19] NestedCSharp.cshtml) -Hello from C#, # CSharpExpression - (69:5,25 [1] NoLinePragmas.cshtml) RazorIRToken - (69:5,25 [1] NoLinePragmas.cshtml) - CSharp - i HtmlContent - (71:5,27 [4] NoLinePragmas.cshtml) -
- CSharpStatement - (75:5,31 [16] NoLinePragmas.cshtml) - \n i += 1;\n} + CSharpStatement - (75:5,31 [16] NoLinePragmas.cshtml) + RazorIRToken - (75:5,31 [16] NoLinePragmas.cshtml) - CSharp - \n i += 1;\n} HtmlContent - (91:7,1 [4] NoLinePragmas.cshtml) - \n\n - CSharpStatement - (96:9,1 [19] NoLinePragmas.cshtml) - if(i == 11) {\n + CSharpStatement - (96:9,1 [19] NoLinePragmas.cshtml) + RazorIRToken - (96:9,1 [19] NoLinePragmas.cshtml) - CSharp - if(i == 11) {\n HtmlContent - (115:10,4 [25] NoLinePragmas.cshtml) -We wrote 10 lines!
- CSharpStatement - (140:10,29 [3] NoLinePragmas.cshtml) - \n} + CSharpStatement - (140:10,29 [3] NoLinePragmas.cshtml) + RazorIRToken - (140:10,29 [3] NoLinePragmas.cshtml) - CSharp - \n} HtmlContent - (143:11,1 [4] NoLinePragmas.cshtml) - \n\n - CSharpStatement - (148:13,1 [35] NoLinePragmas.cshtml) - switch(i) {\n case 11:\n + CSharpStatement - (148:13,1 [35] NoLinePragmas.cshtml) + RazorIRToken - (148:13,1 [35] NoLinePragmas.cshtml) - CSharp - switch(i) {\n case 11:\n HtmlContent - (183:15,8 [36] NoLinePragmas.cshtml) -No really, we wrote 10 lines!
- CSharpStatement - (219:15,44 [40] NoLinePragmas.cshtml) - \n break;\n default:\n + CSharpStatement - (219:15,44 [40] NoLinePragmas.cshtml) + RazorIRToken - (219:15,44 [40] NoLinePragmas.cshtml) - CSharp - \n break;\n default:\n HtmlContent - (259:18,8 [29] NoLinePragmas.cshtml) -Actually, we didn't...
- CSharpStatement - (288:18,37 [19] NoLinePragmas.cshtml) - \n break;\n} + CSharpStatement - (288:18,37 [19] NoLinePragmas.cshtml) + RazorIRToken - (288:18,37 [19] NoLinePragmas.cshtml) - CSharp - \n break;\n} HtmlContent - (307:20,1 [4] NoLinePragmas.cshtml) - \n\n - CSharpStatement - (312:22,1 [39] NoLinePragmas.cshtml) - for(int j = 1; j <= 10; j += 2) {\n + CSharpStatement - (312:22,1 [39] NoLinePragmas.cshtml) + RazorIRToken - (312:22,1 [39] NoLinePragmas.cshtml) - CSharp - for(int j = 1; j <= 10; j += 2) {\n HtmlContent - (351:23,4 [25] NoLinePragmas.cshtml) -Hello again from C#, # CSharpExpression - (378:23,31 [1] NoLinePragmas.cshtml) RazorIRToken - (378:23,31 [1] NoLinePragmas.cshtml) - CSharp - j HtmlContent - (380:23,33 [4] NoLinePragmas.cshtml) -
- CSharpStatement - (384:23,37 [3] NoLinePragmas.cshtml) - \n} + CSharpStatement - (384:23,37 [3] NoLinePragmas.cshtml) + RazorIRToken - (384:23,37 [3] NoLinePragmas.cshtml) - CSharp - \n} HtmlContent - (387:24,1 [4] NoLinePragmas.cshtml) - \n\n - CSharpStatement - (392:26,1 [11] NoLinePragmas.cshtml) - try {\n + CSharpStatement - (392:26,1 [11] NoLinePragmas.cshtml) + RazorIRToken - (392:26,1 [11] NoLinePragmas.cshtml) - CSharp - try {\n HtmlContent - (403:27,4 [35] NoLinePragmas.cshtml) -That time, we wrote 5 lines!
- CSharpStatement - (438:27,39 [31] NoLinePragmas.cshtml) - \n} catch(Exception ex) {\n + CSharpStatement - (438:27,39 [31] NoLinePragmas.cshtml) + RazorIRToken - (438:27,39 [31] NoLinePragmas.cshtml) - CSharp - \n} catch(Exception ex) {\n HtmlContent - (469:29,4 [29] NoLinePragmas.cshtml) -Oh no! An error occurred: CSharpExpression - (500:29,35 [10] NoLinePragmas.cshtml) RazorIRToken - (500:29,35 [10] NoLinePragmas.cshtml) - CSharp - ex.Message HtmlContent - (511:29,46 [4] NoLinePragmas.cshtml) -
- CSharpStatement - (515:29,50 [7] NoLinePragmas.cshtml) - \n}\n\n - CSharpStatement - (556:32,34 [0] NoLinePragmas.cshtml) - + CSharpStatement - (515:29,50 [7] NoLinePragmas.cshtml) + RazorIRToken - (515:29,50 [7] NoLinePragmas.cshtml) - CSharp - \n}\n\n + CSharpStatement - (556:32,34 [0] NoLinePragmas.cshtml) + RazorIRToken - (556:32,34 [0] NoLinePragmas.cshtml) - CSharp - HtmlContent - (556:32,34 [14] NoLinePragmas.cshtml) - \ni is now CSharpExpression - (571:33,13 [1] NoLinePragmas.cshtml) RazorIRToken - (571:33,13 [1] NoLinePragmas.cshtml) - CSharp - i HtmlContent - (572:33,14 [8] NoLinePragmas.cshtml) -
\n\n - CSharpStatement - (581:35,1 [26] NoLinePragmas.cshtml) - lock(new object()) {\n + CSharpStatement - (581:35,1 [26] NoLinePragmas.cshtml) + RazorIRToken - (581:35,1 [26] NoLinePragmas.cshtml) - CSharp - lock(new object()) {\n HtmlContent - (607:36,4 [47] NoLinePragmas.cshtml) -This block is locked, for your security!
- CSharpStatement - (654:36,51 [3] NoLinePragmas.cshtml) - \n} + CSharpStatement - (654:36,51 [3] NoLinePragmas.cshtml) + RazorIRToken - (654:36,51 [3] NoLinePragmas.cshtml) - CSharp - \n} diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_Runtime.codegen.cs b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_Runtime.codegen.cs index 3e01a1782b..23489d920f 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_Runtime.codegen.cs +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_Runtime.codegen.cs @@ -13,14 +13,12 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles int i = 1; - #line default #line hidden WriteLiteral("\r\n"); #line 5 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" while(i <= 10) { - #line default #line hidden WriteLiteral("Hello from C#, #"); @@ -34,21 +32,18 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles i += 1; } - #line default #line hidden WriteLiteral("\r\n"); #line 10 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" if(i == 11) { - #line default #line hidden WriteLiteral("
We wrote 10 lines!
\r\n"); #line 12 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" } - #line default #line hidden WriteLiteral("\r\n"); @@ -56,7 +51,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles switch(i) { case 11: - #line default #line hidden WriteLiteral("No really, we wrote 10 lines!
\r\n"); @@ -64,7 +58,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles break; default: - #line default #line hidden WriteLiteral("Actually, we didn\'t...
\r\n"); @@ -72,14 +65,12 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles break; } - #line default #line hidden WriteLiteral("\r\n"); #line 23 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" for(int j = 1; j <= 10; j += 2) { - #line default #line hidden WriteLiteral("Hello again from C#, #"); @@ -92,21 +83,18 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles #line 25 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" } - #line default #line hidden WriteLiteral("\r\n"); #line 27 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" try { - #line default #line hidden WriteLiteral("
That time, we wrote 5 lines!
\r\n"); #line 29 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" } catch(Exception ex) { - #line default #line hidden WriteLiteral("Oh no! An error occurred: "); @@ -120,7 +108,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles } - #line default #line hidden WriteLiteral("
i is now "); @@ -133,7 +120,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles #line 36 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas.cshtml" lock(new object()) { - #line default #line hidden WriteLiteral("
This block is locked, for your security!
\r\n"); diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_Runtime.ir.txt index f81a404a97..4de23018cf 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NoLinePragmas_Runtime.ir.txt @@ -5,45 +5,61 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NoLinePragmas_Runtime - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync - CSharpStatement - (2:0,2 [18] NoLinePragmas.cshtml) - \n int i = 1;\n + CSharpStatement - (2:0,2 [18] NoLinePragmas.cshtml) + RazorIRToken - (2:0,2 [18] NoLinePragmas.cshtml) - CSharp - \n int i = 1;\n HtmlContent - (23:3,0 [2] NoLinePragmas.cshtml) - \n - CSharpStatement - (26:4,1 [18] NoLinePragmas.cshtml) - while(i <= 10) {\n + CSharpStatement - (26:4,1 [18] NoLinePragmas.cshtml) + RazorIRToken - (26:4,1 [18] NoLinePragmas.cshtml) - CSharp - while(i <= 10) {\n HtmlContent - (44:5,0 [23] NoLinePragmas.cshtml) -Hello from C#, # CSharpExpression - (69:5,25 [1] NoLinePragmas.cshtml) RazorIRToken - (69:5,25 [1] NoLinePragmas.cshtml) - CSharp - i HtmlContent - (71:5,27 [6] NoLinePragmas.cshtml) -
\n - CSharpStatement - (77:6,0 [16] NoLinePragmas.cshtml) - i += 1;\n}\n + CSharpStatement - (77:6,0 [16] NoLinePragmas.cshtml) + RazorIRToken - (77:6,0 [16] NoLinePragmas.cshtml) - CSharp - i += 1;\n}\n HtmlContent - (93:8,0 [2] NoLinePragmas.cshtml) - \n - CSharpStatement - (96:9,1 [15] NoLinePragmas.cshtml) - if(i == 11) {\n + CSharpStatement - (96:9,1 [15] NoLinePragmas.cshtml) + RazorIRToken - (96:9,1 [15] NoLinePragmas.cshtml) - CSharp - if(i == 11) {\n HtmlContent - (111:10,0 [31] NoLinePragmas.cshtml) -We wrote 10 lines!
\n - CSharpStatement - (142:11,0 [3] NoLinePragmas.cshtml) - }\n + CSharpStatement - (142:11,0 [3] NoLinePragmas.cshtml) + RazorIRToken - (142:11,0 [3] NoLinePragmas.cshtml) - CSharp - }\n HtmlContent - (145:12,0 [2] NoLinePragmas.cshtml) - \n - CSharpStatement - (148:13,1 [27] NoLinePragmas.cshtml) - switch(i) {\n case 11:\n + CSharpStatement - (148:13,1 [27] NoLinePragmas.cshtml) + RazorIRToken - (148:13,1 [27] NoLinePragmas.cshtml) - CSharp - switch(i) {\n case 11:\n HtmlContent - (175:15,0 [46] NoLinePragmas.cshtml) -No really, we wrote 10 lines!
\n - CSharpStatement - (221:16,0 [30] NoLinePragmas.cshtml) - break;\n default:\n + CSharpStatement - (221:16,0 [30] NoLinePragmas.cshtml) + RazorIRToken - (221:16,0 [30] NoLinePragmas.cshtml) - CSharp - break;\n default:\n HtmlContent - (251:18,0 [39] NoLinePragmas.cshtml) -Actually, we didn't...
\n - CSharpStatement - (290:19,0 [19] NoLinePragmas.cshtml) - break;\n}\n + CSharpStatement - (290:19,0 [19] NoLinePragmas.cshtml) + RazorIRToken - (290:19,0 [19] NoLinePragmas.cshtml) - CSharp - break;\n}\n HtmlContent - (309:21,0 [2] NoLinePragmas.cshtml) - \n - CSharpStatement - (312:22,1 [35] NoLinePragmas.cshtml) - for(int j = 1; j <= 10; j += 2) {\n + CSharpStatement - (312:22,1 [35] NoLinePragmas.cshtml) + RazorIRToken - (312:22,1 [35] NoLinePragmas.cshtml) - CSharp - for(int j = 1; j <= 10; j += 2) {\n HtmlContent - (347:23,0 [29] NoLinePragmas.cshtml) -Hello again from C#, # CSharpExpression - (378:23,31 [1] NoLinePragmas.cshtml) RazorIRToken - (378:23,31 [1] NoLinePragmas.cshtml) - CSharp - j HtmlContent - (380:23,33 [6] NoLinePragmas.cshtml) -
\n - CSharpStatement - (386:24,0 [3] NoLinePragmas.cshtml) - }\n + CSharpStatement - (386:24,0 [3] NoLinePragmas.cshtml) + RazorIRToken - (386:24,0 [3] NoLinePragmas.cshtml) - CSharp - }\n HtmlContent - (389:25,0 [2] NoLinePragmas.cshtml) - \n - CSharpStatement - (392:26,1 [7] NoLinePragmas.cshtml) - try {\n + CSharpStatement - (392:26,1 [7] NoLinePragmas.cshtml) + RazorIRToken - (392:26,1 [7] NoLinePragmas.cshtml) - CSharp - try {\n HtmlContent - (399:27,0 [41] NoLinePragmas.cshtml) -That time, we wrote 5 lines!
\n - CSharpStatement - (440:28,0 [25] NoLinePragmas.cshtml) - } catch(Exception ex) {\n + CSharpStatement - (440:28,0 [25] NoLinePragmas.cshtml) + RazorIRToken - (440:28,0 [25] NoLinePragmas.cshtml) - CSharp - } catch(Exception ex) {\n HtmlContent - (465:29,0 [33] NoLinePragmas.cshtml) -Oh no! An error occurred: CSharpExpression - (500:29,35 [10] NoLinePragmas.cshtml) RazorIRToken - (500:29,35 [10] NoLinePragmas.cshtml) - CSharp - ex.Message HtmlContent - (511:29,46 [6] NoLinePragmas.cshtml) -
\n - CSharpStatement - (517:30,0 [5] NoLinePragmas.cshtml) - }\n\n - CSharpStatement - (556:32,34 [2] NoLinePragmas.cshtml) - \n + CSharpStatement - (517:30,0 [5] NoLinePragmas.cshtml) + RazorIRToken - (517:30,0 [5] NoLinePragmas.cshtml) - CSharp - }\n\n + CSharpStatement - (556:32,34 [2] NoLinePragmas.cshtml) + RazorIRToken - (556:32,34 [2] NoLinePragmas.cshtml) - CSharp - \n HtmlContent - (558:33,0 [12] NoLinePragmas.cshtml) -i is now CSharpExpression - (571:33,13 [1] NoLinePragmas.cshtml) RazorIRToken - (571:33,13 [1] NoLinePragmas.cshtml) - CSharp - i HtmlContent - (572:33,14 [8] NoLinePragmas.cshtml) -
\n\n - CSharpStatement - (581:35,1 [22] NoLinePragmas.cshtml) - lock(new object()) {\n + CSharpStatement - (581:35,1 [22] NoLinePragmas.cshtml) + RazorIRToken - (581:35,1 [22] NoLinePragmas.cshtml) - CSharp - lock(new object()) {\n HtmlContent - (603:36,0 [53] NoLinePragmas.cshtml) -This block is locked, for your security!
\n - CSharpStatement - (656:37,0 [1] NoLinePragmas.cshtml) - } + CSharpStatement - (656:37,0 [1] NoLinePragmas.cshtml) + RazorIRToken - (656:37,0 [1] NoLinePragmas.cshtml) - CSharp - } diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.ir.txt index e871619c52..9a2c04a7a9 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_DesignTime.ir.txt @@ -5,25 +5,35 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NullConditionalExpressions_DesignTime - - DirectiveTokenHelper - - CSharpStatement - - #pragma warning disable 219 - CSharpStatement - - private void __RazorDirectiveTokenHelpers__() { - CSharpStatement - - } - CSharpStatement - - #pragma warning restore 219 - CSharpStatement - - private static System.Object __o = null; + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning disable 219 + CSharpStatement - + RazorIRToken - - CSharp - private void __RazorDirectiveTokenHelpers__() { + CSharpStatement - + RazorIRToken - - CSharp - } + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning restore 219 + CSharpStatement - + RazorIRToken - - CSharp - private static System.Object __o = null; RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync - CSharpStatement - (2:0,2 [6] NullConditionalExpressions.cshtml) - \n + CSharpStatement - (2:0,2 [6] NullConditionalExpressions.cshtml) + RazorIRToken - (2:0,2 [6] NullConditionalExpressions.cshtml) - CSharp - \n CSharpExpression - (9:1,5 [13] NullConditionalExpressions.cshtml) RazorIRToken - (9:1,5 [13] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Data - CSharpStatement - (22:1,18 [6] NullConditionalExpressions.cshtml) - \n + CSharpStatement - (22:1,18 [6] NullConditionalExpressions.cshtml) + RazorIRToken - (22:1,18 [6] NullConditionalExpressions.cshtml) - CSharp - \n CSharpExpression - (29:2,5 [22] NullConditionalExpressions.cshtml) RazorIRToken - (29:2,5 [22] NullConditionalExpressions.cshtml) - CSharp - ViewBag.IntIndexer?[0] - CSharpStatement - (51:2,27 [6] NullConditionalExpressions.cshtml) - \n + CSharpStatement - (51:2,27 [6] NullConditionalExpressions.cshtml) + RazorIRToken - (51:2,27 [6] NullConditionalExpressions.cshtml) - CSharp - \n CSharpExpression - (58:3,5 [26] NullConditionalExpressions.cshtml) RazorIRToken - (58:3,5 [26] NullConditionalExpressions.cshtml) - CSharp - ViewBag.StrIndexer?["key"] - CSharpStatement - (84:3,31 [6] NullConditionalExpressions.cshtml) - \n + CSharpStatement - (84:3,31 [6] NullConditionalExpressions.cshtml) + RazorIRToken - (84:3,31 [6] NullConditionalExpressions.cshtml) - CSharp - \n CSharpExpression - (91:4,5 [41] NullConditionalExpressions.cshtml) RazorIRToken - (91:4,5 [41] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Method(Value?[23]?.More)?["key"] - CSharpStatement - (132:4,46 [2] NullConditionalExpressions.cshtml) - \n + CSharpStatement - (132:4,46 [2] NullConditionalExpressions.cshtml) + RazorIRToken - (132:4,46 [2] NullConditionalExpressions.cshtml) - CSharp - \n HtmlContent - (137:6,0 [2] NullConditionalExpressions.cshtml) - \n CSharpExpression - (140:7,1 [13] NullConditionalExpressions.cshtml) RazorIRToken - (140:7,1 [13] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Data diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_Runtime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_Runtime.ir.txt index efdb734e26..11c75c675e 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_Runtime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/NullConditionalExpressions_Runtime.ir.txt @@ -5,19 +5,24 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_NullConditionalExpressions_Runtime - - RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync - CSharpStatement - (2:0,2 [6] NullConditionalExpressions.cshtml) - \n + CSharpStatement - (2:0,2 [6] NullConditionalExpressions.cshtml) + RazorIRToken - (2:0,2 [6] NullConditionalExpressions.cshtml) - CSharp - \n CSharpExpression - (9:1,5 [13] NullConditionalExpressions.cshtml) RazorIRToken - (9:1,5 [13] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Data - CSharpStatement - (22:1,18 [6] NullConditionalExpressions.cshtml) - \n + CSharpStatement - (22:1,18 [6] NullConditionalExpressions.cshtml) + RazorIRToken - (22:1,18 [6] NullConditionalExpressions.cshtml) - CSharp - \n CSharpExpression - (29:2,5 [22] NullConditionalExpressions.cshtml) RazorIRToken - (29:2,5 [22] NullConditionalExpressions.cshtml) - CSharp - ViewBag.IntIndexer?[0] - CSharpStatement - (51:2,27 [6] NullConditionalExpressions.cshtml) - \n + CSharpStatement - (51:2,27 [6] NullConditionalExpressions.cshtml) + RazorIRToken - (51:2,27 [6] NullConditionalExpressions.cshtml) - CSharp - \n CSharpExpression - (58:3,5 [26] NullConditionalExpressions.cshtml) RazorIRToken - (58:3,5 [26] NullConditionalExpressions.cshtml) - CSharp - ViewBag.StrIndexer?["key"] - CSharpStatement - (84:3,31 [6] NullConditionalExpressions.cshtml) - \n + CSharpStatement - (84:3,31 [6] NullConditionalExpressions.cshtml) + RazorIRToken - (84:3,31 [6] NullConditionalExpressions.cshtml) - CSharp - \n CSharpExpression - (91:4,5 [41] NullConditionalExpressions.cshtml) RazorIRToken - (91:4,5 [41] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Method(Value?[23]?.More)?["key"] - CSharpStatement - (132:4,46 [2] NullConditionalExpressions.cshtml) - \n + CSharpStatement - (132:4,46 [2] NullConditionalExpressions.cshtml) + RazorIRToken - (132:4,46 [2] NullConditionalExpressions.cshtml) - CSharp - \n HtmlContent - (137:6,0 [2] NullConditionalExpressions.cshtml) - \n CSharpExpression - (140:7,1 [13] NullConditionalExpressions.cshtml) RazorIRToken - (140:7,1 [13] NullConditionalExpressions.cshtml) - CSharp - ViewBag?.Data diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.ir.txt b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.ir.txt index eaef5fcb2f..f27432b4cf 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.ir.txt +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_DesignTime.ir.txt @@ -5,15 +5,23 @@ Document - UsingStatement - - System.Threading.Tasks ClassDeclaration - - public - TestFiles_IntegrationTests_CodeGenerationIntegrationTest_OpenedIf_DesignTime - - DirectiveTokenHelper - - CSharpStatement - - #pragma warning disable 219 - CSharpStatement - - private void __RazorDirectiveTokenHelpers__() { - CSharpStatement - - } - CSharpStatement - - #pragma warning restore 219 - CSharpStatement - - private static System.Object __o = null; + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning disable 219 + CSharpStatement - + RazorIRToken - - CSharp - private void __RazorDirectiveTokenHelpers__() { + CSharpStatement - + RazorIRToken - - CSharp - } + CSharpStatement - + RazorIRToken - - CSharp - #pragma warning restore 219 + CSharpStatement - + RazorIRToken - - CSharp - private static System.Object __o = null; RazorMethodDeclaration - - public - async - System.Threading.Tasks.Task - ExecuteAsync HtmlContent - (0:0,0 [16] OpenedIf.cshtml) - \n\n - CSharpStatement - (17:2,1 [14] OpenedIf.cshtml) - if (true) { \n + CSharpStatement - (17:2,1 [14] OpenedIf.cshtml) + RazorIRToken - (17:2,1 [14] OpenedIf.cshtml) - CSharp - if (true) { \n HtmlContent - (31:3,0 [7] OpenedIf.cshtml) - - CSharpStatement - (38:3,7 [2] OpenedIf.cshtml) - \n + CSharpStatement - (38:3,7 [2] OpenedIf.cshtml) + RazorIRToken - (38:3,7 [2] OpenedIf.cshtml) - CSharp - \n HtmlContent - (40:4,0 [7] OpenedIf.cshtml) - - CSharpStatement - (47:4,7 [0] OpenedIf.cshtml) - + CSharpStatement - (47:4,7 [0] OpenedIf.cshtml) + RazorIRToken - (47:4,7 [0] OpenedIf.cshtml) - CSharp - diff --git a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_Runtime.codegen.cs b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_Runtime.codegen.cs index 2a43374e20..e88a7894ab 100644 --- a/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_Runtime.codegen.cs +++ b/test/Microsoft.AspNetCore.Razor.Evolution.Test/TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf_Runtime.codegen.cs @@ -13,7 +13,6 @@ namespace Microsoft.AspNetCore.Razor.Evolution.IntegrationTests.TestFiles #line 3 "TestFiles/IntegrationTests/CodeGenerationIntegrationTest/OpenedIf.cshtml" if (true) { - #line default #line hidden WriteLiteral("