From 99bef6d1d66ab23e02d2d836f76c46774d6a77a8 Mon Sep 17 00:00:00 2001 From: jacalvar Date: Mon, 14 Mar 2022 18:41:49 +0100 Subject: [PATCH] Fix baselines --- .../TestComponent.codegen.cs | 56 ---------------- .../TestComponent.ir.txt | 27 -------- .../TestComponent.mappings.txt | 14 ---- .../TestComponent.codegen.cs | 55 --------------- .../TestComponent.ir.txt | 29 -------- .../TestComponent.mappings.txt | 14 ---- .../TestComponent.codegen.cs | 57 ---------------- .../TestComponent.ir.txt | 30 --------- .../TestComponent.mappings.txt | 14 ---- .../TestComponent.codegen.cs | 67 ------------------- .../TestComponent.ir.txt | 33 --------- .../TestComponent.mappings.txt | 14 ---- .../TestComponent.ir.txt | 4 +- .../TestComponent.ir.txt | 4 +- .../TestComponent.codegen.cs | 56 ---------------- .../TestComponent.ir.txt | 27 -------- .../TestComponent.mappings.txt | 14 ---- .../TestComponent.codegen.cs | 55 --------------- .../TestComponent.ir.txt | 29 -------- .../TestComponent.mappings.txt | 14 ---- .../TestComponent.codegen.cs | 37 ---------- .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 21 ------ .../TestComponent.mappings.txt | 13 ---- .../TestComponent.codegen.cs | 37 ---------- .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 23 ------- .../TestComponent.mappings.txt | 13 ---- .../TestComponent.codegen.cs | 50 -------------- .../TestComponent.ir.txt | 35 ---------- .../TestComponent.mappings.txt | 24 ------- .../TestComponent.codegen.cs | 50 -------------- .../TestComponent.ir.txt | 35 ---------- .../TestComponent.mappings.txt | 24 ------- .../TestComponent.codegen.cs | 53 --------------- .../TestComponent.ir.txt | 34 ---------- .../TestComponent.mappings.txt | 19 ------ .../TestComponent.codegen.cs | 40 ----------- .../TestComponent.ir.txt | 18 ----- .../TestComponent.mappings.txt | 9 --- .../TestComponent.codegen.cs | 40 ----------- .../TestComponent.ir.txt | 20 ------ .../TestComponent.mappings.txt | 9 --- .../TestComponent.codegen.cs | 41 ------------ .../TestComponent.ir.txt | 21 ------ .../TestComponent.mappings.txt | 9 --- .../TestComponent.codegen.cs | 52 -------------- .../TestComponent.ir.txt | 24 ------- .../TestComponent.mappings.txt | 9 --- .../TestComponent.ir.txt | 4 +- .../TestComponent.codegen.cs | 42 ------------ .../TestComponent.ir.txt | 18 ----- .../TestComponent.mappings.txt | 13 ---- .../TestComponent.ir.txt | 4 +- .../TestComponent.codegen.cs | 40 ----------- .../TestComponent.ir.txt | 18 ----- .../TestComponent.mappings.txt | 9 --- .../TestComponent.codegen.cs | 40 ----------- .../TestComponent.ir.txt | 20 ------ .../TestComponent.mappings.txt | 9 --- .../TestComponent.codegen.cs | 32 --------- .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 12 ---- .../TestComponent.mappings.txt | 13 ---- .../TestComponent.codegen.cs | 32 --------- .../TestComponent.diagnostics.txt | 1 - .../TestComponent.ir.txt | 14 ---- .../TestComponent.mappings.txt | 13 ---- .../TestComponent.mappings.txt | 9 --- .../TestComponent.codegen.cs | 46 ------------- .../TestComponent.ir.txt | 24 ------- .../TestComponent.mappings.txt | 19 ------ .../TestComponent.codegen.cs | 46 ------------- .../TestComponent.ir.txt | 24 ------- .../TestComponent.mappings.txt | 19 ------ .../TestComponent.codegen.cs | 43 ------------ .../TestComponent.ir.txt | 24 ------- .../TestComponent.mappings.txt | 29 -------- 78 files changed, 12 insertions(+), 1981 deletions(-) delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndChangeEvent_WithMatchingProperties/TestComponent.ir.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndChangeEvent_WithoutMatchingProperties/TestComponent.codegen.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndExpression/TestComponent.codegen.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndExpression/TestComponent.ir.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndExpression/TestComponent.mappings.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndExpression_Generic/TestComponent.codegen.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndExpression_Generic/TestComponent.ir.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndExpression_Generic/TestComponent.mappings.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithMatchingProperties/TestComponent.codegen.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithMatchingProperties/TestComponent.ir.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithMatchingProperties/TestComponent.mappings.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithoutMatchingProperties/TestComponent.codegen.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithoutMatchingProperties/TestComponent.ir.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithoutMatchingProperties/TestComponent.mappings.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.codegen.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.diagnostics.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.ir.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.mappings.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.codegen.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.diagnostics.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.ir.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.mappings.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithBindAfter/TestComponent.codegen.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithBindAfter/TestComponent.ir.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithBindAfter/TestComponent.mappings.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithGetSet/TestComponent.codegen.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithGetSet/TestComponent.ir.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithGetSet/TestComponent.mappings.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplatImplictExpression/TestComponent.codegen.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplatImplictExpression/TestComponent.ir.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplatImplictExpression/TestComponent.mappings.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndChangeEvent_WithMatchingProperties/TestComponent.ir.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndChangeEvent_WithoutMatchingProperties/TestComponent.codegen.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndExpression/TestComponent.codegen.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndExpression/TestComponent.ir.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndExpression/TestComponent.mappings.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndExpression_Generic/TestComponent.codegen.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndExpression_Generic/TestComponent.ir.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndExpression_Generic/TestComponent.mappings.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithGetSet_TaskReturningDelegate/TestComponent.codegen.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithGetSet_TaskReturningDelegate/TestComponent.ir.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithGetSet_TaskReturningDelegate/TestComponent.mappings.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithMatchingProperties/TestComponent.codegen.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithMatchingProperties/TestComponent.ir.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithMatchingProperties/TestComponent.mappings.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithoutMatchingProperties/TestComponent.codegen.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithoutMatchingProperties/TestComponent.ir.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithoutMatchingProperties/TestComponent.mappings.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.codegen.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.diagnostics.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.ir.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.mappings.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.codegen.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.diagnostics.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.ir.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.mappings.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_StartEndTag/TestComponent.mappings.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithBindAfter/TestComponent.codegen.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithBindAfter/TestComponent.ir.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithBindAfter/TestComponent.mappings.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithGetSet/TestComponent.codegen.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithGetSet/TestComponent.ir.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithGetSet/TestComponent.mappings.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithGetSetAndAfter_Lambda/TestComponent.codegen.cs delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithGetSetAndAfter_Lambda/TestComponent.ir.txt delete mode 100644 src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithGetSetAndAfter_Lambda/TestComponent.mappings.txt diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs deleted file mode 100644 index 52d5bf35e..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) - { - __o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - ParentValue - -#line default -#line hidden -#nullable disable - ); - __o = new global::System.Action( - __value => ParentValue = __value); - __builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => { - } - )); -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" -__o = typeof(global::Test.MyComponent); - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 -#nullable restore -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndChangeEvent_WithMatchingProperties/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndChangeEvent_WithMatchingProperties/TestComponent.ir.txt deleted file mode 100644 index 5c709a8e2..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndChangeEvent_WithMatchingProperties/TestComponent.ir.txt +++ /dev/null @@ -1,27 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - Component - (0:0,0 [71] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Value - Value - AttributeStructure.DoubleQuotes - CSharpExpression - - LazyIntermediateToken - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - OnChanged - OnChanged - AttributeStructure.DoubleQuotes - CSharpExpression - - IntermediateToken - - CSharp - __value => ParentValue = __value - HtmlContent - (71:0,71 [2] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (71:0,71 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt deleted file mode 100644 index 5208407a4..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt +++ /dev/null @@ -1,14 +0,0 @@ -Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|ParentValue| -Generated Location: (1018:25,26 [11] ) -|ParentValue| - -Source Location: (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1655:47,7 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndChangeEvent_WithoutMatchingProperties/TestComponent.codegen.cs b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndChangeEvent_WithoutMatchingProperties/TestComponent.codegen.cs deleted file mode 100644 index ed3118fdf..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndChangeEvent_WithoutMatchingProperties/TestComponent.codegen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) - { - __o = -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - ParentValue - -#line default -#line hidden -#nullable disable - ; - __o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue); - __builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => { - } - )); -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" -__o = typeof(global::Test.MyComponent); - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 -#nullable restore -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt deleted file mode 100644 index f9795bb61..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt +++ /dev/null @@ -1,29 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - Component - (0:0,0 [71] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Value - - AttributeStructure.DoubleQuotes - CSharpExpression - - LazyIntermediateToken - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - OnChanged - - AttributeStructure.DoubleQuotes - CSharpExpression - - IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, - IntermediateToken - - CSharp - __value => ParentValue = __value - IntermediateToken - - CSharp - , ParentValue) - HtmlContent - (71:0,71 [2] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (71:0,71 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt deleted file mode 100644 index 710f8fe2b..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt +++ /dev/null @@ -1,14 +0,0 @@ -Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|ParentValue| -Generated Location: (914:25,26 [11] ) -|ParentValue| - -Source Location: (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1615:46,7 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndExpression/TestComponent.codegen.cs b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndExpression/TestComponent.codegen.cs deleted file mode 100644 index 703d98997..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndExpression/TestComponent.codegen.cs +++ /dev/null @@ -1,57 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) - { - __o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - ParentValue - -#line default -#line hidden -#nullable disable - ); - __o = new global::System.Action( - __value => ParentValue = __value); - __o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck>>(() => ParentValue); - __builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => { - } - )); -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" -__o = typeof(global::Test.MyComponent); - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 -#nullable restore -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndExpression/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndExpression/TestComponent.ir.txt deleted file mode 100644 index b6fa4be64..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndExpression/TestComponent.ir.txt +++ /dev/null @@ -1,30 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - Component - (0:0,0 [41] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Value - Value - AttributeStructure.DoubleQuotes - CSharpExpression - - LazyIntermediateToken - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueChanged - ValueChanged - AttributeStructure.DoubleQuotes - CSharpExpression - - IntermediateToken - - CSharp - __value => ParentValue = __value - ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueExpression - ValueExpression - AttributeStructure.DoubleQuotes - CSharpExpression - - IntermediateToken - - CSharp - () => ParentValue - HtmlContent - (41:0,41 [2] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (41:0,41 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndExpression/TestComponent.mappings.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndExpression/TestComponent.mappings.txt deleted file mode 100644 index 640c8fb20..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndExpression/TestComponent.mappings.txt +++ /dev/null @@ -1,14 +0,0 @@ -Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|ParentValue| -Generated Location: (1018:25,26 [11] ) -|ParentValue| - -Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1847:48,7 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndExpression_Generic/TestComponent.codegen.cs b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndExpression_Generic/TestComponent.codegen.cs deleted file mode 100644 index fac8e0b08..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndExpression_Generic/TestComponent.codegen.cs +++ /dev/null @@ -1,67 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) - { - global::__Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(__builder, -1, -1, -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - ParentValue - -#line default -#line hidden -#nullable disable - , -1, - __value => ParentValue = __value, -1, () => ParentValue); -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" -__o = typeof(global::Test.MyComponent<>); - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 -#nullable restore -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - public DateTime ParentValue { get; set; } = DateTime.Now; - -#line default -#line hidden -#nullable disable - } -} -namespace __Blazor.Test.TestComponent -{ - #line hidden - internal static class TypeInference - { - public static void CreateMyComponent_0(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, T __arg0, int __seq1, global::System.Action __arg1, int __seq2, global::System.Linq.Expressions.Expression> __arg2) - { - __builder.OpenComponent>(seq); - __builder.AddAttribute(__seq0, "SomeParam", __arg0); - __builder.AddAttribute(__seq1, "SomeParamChanged", __arg1); - __builder.AddAttribute(__seq2, "SomeParamExpression", __arg2); - __builder.CloseComponent(); - } - } -} -#pragma warning restore 1591 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndExpression_Generic/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndExpression_Generic/TestComponent.ir.txt deleted file mode 100644 index af9805417..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndExpression_Generic/TestComponent.ir.txt +++ /dev/null @@ -1,33 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - Component - (0:0,0 [45] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - ComponentAttribute - (30:0,30 [11] x:\dir\subdir\Test\TestComponent.cshtml) - SomeParam - SomeParam - AttributeStructure.DoubleQuotes - CSharpExpression - - LazyIntermediateToken - (30:0,30 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - ComponentAttribute - (30:0,30 [11] x:\dir\subdir\Test\TestComponent.cshtml) - SomeParamChanged - SomeParamChanged - AttributeStructure.DoubleQuotes - CSharpExpression - - IntermediateToken - - CSharp - __value => ParentValue = __value - ComponentAttribute - (30:0,30 [11] x:\dir\subdir\Test\TestComponent.cshtml) - SomeParamExpression - SomeParamExpression - AttributeStructure.DoubleQuotes - CSharpExpression - - IntermediateToken - - CSharp - () => ParentValue - HtmlContent - (45:0,45 [2] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (45:0,45 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (54:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (54:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime ParentValue { get; set; } = DateTime.Now;\n - NamespaceDeclaration - - __Blazor.Test.TestComponent - ClassDeclaration - - internal static - TypeInference - - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndExpression_Generic/TestComponent.mappings.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndExpression_Generic/TestComponent.mappings.txt deleted file mode 100644 index 332ceba9c..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponentAndExpression_Generic/TestComponent.mappings.txt +++ /dev/null @@ -1,14 +0,0 @@ -Source Location: (30:0,30 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|ParentValue| -Generated Location: (1001:25,30 [11] ) -|ParentValue| - -Source Location: (54:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml) -| - public DateTime ParentValue { get; set; } = DateTime.Now; -| -Generated Location: (1444:43,7 [65] ) -| - public DateTime ParentValue { get; set; } = DateTime.Now; -| - diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt index c08cd6a1a..f9795bb61 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt +++ b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt @@ -20,7 +20,9 @@ Document - LazyIntermediateToken - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - OnChanged - - AttributeStructure.DoubleQuotes CSharpExpression - - IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue) + IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, + IntermediateToken - - CSharp - __value => ParentValue = __value + IntermediateToken - - CSharp - , ParentValue) HtmlContent - (71:0,71 [2] x:\dir\subdir\Test\TestComponent.cshtml) LazyIntermediateToken - (71:0,71 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n CSharpCode - (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.ir.txt index 2a38c699b..9068e3bc8 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.ir.txt +++ b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.ir.txt @@ -20,7 +20,9 @@ Document - LazyIntermediateToken - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueChanged - - AttributeStructure.DoubleQuotes CSharpExpression - - IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue) + IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, + IntermediateToken - - CSharp - __value => ParentValue = __value + IntermediateToken - - CSharp - , ParentValue) HtmlContent - (41:0,41 [2] x:\dir\subdir\Test\TestComponent.cshtml) LazyIntermediateToken - (41:0,41 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n CSharpCode - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithMatchingProperties/TestComponent.codegen.cs b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithMatchingProperties/TestComponent.codegen.cs deleted file mode 100644 index 52d5bf35e..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithMatchingProperties/TestComponent.codegen.cs +++ /dev/null @@ -1,56 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) - { - __o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - ParentValue - -#line default -#line hidden -#nullable disable - ); - __o = new global::System.Action( - __value => ParentValue = __value); - __builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => { - } - )); -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" -__o = typeof(global::Test.MyComponent); - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 -#nullable restore -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithMatchingProperties/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithMatchingProperties/TestComponent.ir.txt deleted file mode 100644 index fc3de77ba..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithMatchingProperties/TestComponent.ir.txt +++ /dev/null @@ -1,27 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - Component - (0:0,0 [41] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Value - Value - AttributeStructure.DoubleQuotes - CSharpExpression - - LazyIntermediateToken - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueChanged - ValueChanged - AttributeStructure.DoubleQuotes - CSharpExpression - - IntermediateToken - - CSharp - __value => ParentValue = __value - HtmlContent - (41:0,41 [2] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (41:0,41 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithMatchingProperties/TestComponent.mappings.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithMatchingProperties/TestComponent.mappings.txt deleted file mode 100644 index 0a1a4873d..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithMatchingProperties/TestComponent.mappings.txt +++ /dev/null @@ -1,14 +0,0 @@ -Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|ParentValue| -Generated Location: (1018:25,26 [11] ) -|ParentValue| - -Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1655:47,7 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithoutMatchingProperties/TestComponent.codegen.cs b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithoutMatchingProperties/TestComponent.codegen.cs deleted file mode 100644 index ed3118fdf..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithoutMatchingProperties/TestComponent.codegen.cs +++ /dev/null @@ -1,55 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) - { - __o = -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - ParentValue - -#line default -#line hidden -#nullable disable - ; - __o = global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue); - __builder.AddAttribute(-1, "ChildContent", (global::Microsoft.AspNetCore.Components.RenderFragment)((__builder2) => { - } - )); -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" -__o = typeof(global::Test.MyComponent); - -#line default -#line hidden -#nullable disable - } - #pragma warning restore 1998 -#nullable restore -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithoutMatchingProperties/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithoutMatchingProperties/TestComponent.ir.txt deleted file mode 100644 index 9068e3bc8..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithoutMatchingProperties/TestComponent.ir.txt +++ /dev/null @@ -1,29 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - Component - (0:0,0 [41] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Value - - AttributeStructure.DoubleQuotes - CSharpExpression - - LazyIntermediateToken - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueChanged - - AttributeStructure.DoubleQuotes - CSharpExpression - - IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, - IntermediateToken - - CSharp - __value => ParentValue = __value - IntermediateToken - - CSharp - , ParentValue) - HtmlContent - (41:0,41 [2] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (41:0,41 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithoutMatchingProperties/TestComponent.mappings.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithoutMatchingProperties/TestComponent.mappings.txt deleted file mode 100644 index 885673b5e..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToComponent_WithoutMatchingProperties/TestComponent.mappings.txt +++ /dev/null @@ -1,14 +0,0 @@ -Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|ParentValue| -Generated Location: (914:25,26 [11] ) -|ParentValue| - -Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1615:46,7 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.codegen.cs b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.codegen.cs deleted file mode 100644 index 81831fbed..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.codegen.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) - { - } - #pragma warning restore 1998 -#nullable restore -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - - public void UpdateValue(string value) => ParentValue = value; - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.diagnostics.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.diagnostics.txt deleted file mode 100644 index 8cf39c3ec..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.diagnostics.txt +++ /dev/null @@ -1 +0,0 @@ -x:\dir\subdir\Test\TestComponent.cshtml(1,23): Error RZ10016: Attribute 'bind-value:set' was used but no attribute 'bind-value:get' was found. diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.ir.txt deleted file mode 100644 index 4478df68e..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.ir.txt +++ /dev/null @@ -1,21 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - MarkupElement - (0:0,0 [37] x:\dir\subdir\Test\TestComponent.cshtml) - div - HtmlContent - (37:0,37 [2] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (37:0,37 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (46:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (46:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n\n public void UpdateValue(string value) => ParentValue = value;\n diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.mappings.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.mappings.txt deleted file mode 100644 index 570939ff8..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.mappings.txt +++ /dev/null @@ -1,13 +0,0 @@ -Source Location: (46:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; - - public void UpdateValue(string value) => ParentValue = value; -| -Generated Location: (924:26,7 [124] ) -| - public string ParentValue { get; set; } = "hi"; - - public void UpdateValue(string value) => ParentValue = value; -| - diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.codegen.cs b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.codegen.cs deleted file mode 100644 index 81831fbed..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.codegen.cs +++ /dev/null @@ -1,37 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) - { - } - #pragma warning restore 1998 -#nullable restore -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - - public void UpdateValue(string value) => ParentValue = value; - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.diagnostics.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.diagnostics.txt deleted file mode 100644 index db0d277a0..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.diagnostics.txt +++ /dev/null @@ -1 +0,0 @@ -x:\dir\subdir\Test\TestComponent.cshtml(1,23): Error RZ10017: The attribute 'bind-value:get' must have a companion 'bind-value:set' attribute. diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.ir.txt deleted file mode 100644 index 3fb0eb060..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.ir.txt +++ /dev/null @@ -1,23 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - MarkupElement - (0:0,0 [37] x:\dir\subdir\Test\TestComponent.cshtml) - div - TagHelperDirectiveAttributeParameter - (22:0,22 [11] x:\dir\subdir\Test\TestComponent.cshtml) - bind-value:get - HtmlAttributeValueStyle.DoubleQuotes - LazyIntermediateToken - (22:0,22 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - HtmlContent - (37:0,37 [2] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (37:0,37 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (46:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (46:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n\n public void UpdateValue(string value) => ParentValue = value;\n diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.mappings.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.mappings.txt deleted file mode 100644 index 570939ff8..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.mappings.txt +++ /dev/null @@ -1,13 +0,0 @@ -Source Location: (46:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; - - public void UpdateValue(string value) => ParentValue = value; -| -Generated Location: (924:26,7 [124] ) -| - public string ParentValue { get; set; } = "hi"; - - public void UpdateValue(string value) => ParentValue = value; -| - diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithBindAfter/TestComponent.codegen.cs b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithBindAfter/TestComponent.codegen.cs deleted file mode 100644 index 30eeb978a..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithBindAfter/TestComponent.codegen.cs +++ /dev/null @@ -1,50 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) - { - __o = global::Microsoft.AspNetCore.Components.BindConverter.FormatValue( -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - ParentValue - -#line default -#line hidden -#nullable disable - ); - __o = global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, callback: __value => { ParentValue = __value; return global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, callback: DoSomething).InvokeAsync(); }, value: ParentValue), ParentValue); - } - #pragma warning restore 1998 -#nullable restore -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - - Task DoSomething() - { - return Task.CompletedTask; - } - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithBindAfter/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithBindAfter/TestComponent.ir.txt deleted file mode 100644 index 9d49fb7de..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithBindAfter/TestComponent.ir.txt +++ /dev/null @@ -1,35 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - MarkupElement - (0:0,0 [60] x:\dir\subdir\Test\TestComponent.cshtml) - div - HtmlContent - (52:0,52 [2] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (52:0,52 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlAttribute - (12:0,12 [12] x:\dir\subdir\Test\TestComponent.cshtml) - myvalue=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.BindConverter.FormatValue( - LazyIntermediateToken - (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - IntermediateToken - - CSharp - ) - HtmlAttribute - (12:0,12 [12] x:\dir\subdir\Test\TestComponent.cshtml) - myevent=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, - IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, callback: __value => { ParentValue = __value; return global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, callback: DoSomething).InvokeAsync(); }, value: ParentValue) - IntermediateToken - - CSharp - , - IntermediateToken - - CSharp - ParentValue - IntermediateToken - - CSharp - ) - HtmlContent - (60:1,6 [2] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (60:1,6 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (69:2,7 [131] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (69:2,7 [131] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n\n Task DoSomething()\n {\n return Task.CompletedTask;\n }\n diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithBindAfter/TestComponent.mappings.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithBindAfter/TestComponent.mappings.txt deleted file mode 100644 index 50c3c70f9..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithBindAfter/TestComponent.mappings.txt +++ /dev/null @@ -1,24 +0,0 @@ -Source Location: (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|ParentValue| -Generated Location: (967:25,13 [11] ) -|ParentValue| - -Source Location: (69:2,7 [131] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; - - Task DoSomething() - { - return Task.CompletedTask; - } -| -Generated Location: (1582:36,7 [131] ) -| - public string ParentValue { get; set; } = "hi"; - - Task DoSomething() - { - return Task.CompletedTask; - } -| - diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithGetSet/TestComponent.codegen.cs b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithGetSet/TestComponent.codegen.cs deleted file mode 100644 index 5c8a431ea..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithGetSet/TestComponent.codegen.cs +++ /dev/null @@ -1,50 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) - { - __o = global::Microsoft.AspNetCore.Components.BindConverter.FormatValue( -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - ParentValue - -#line default -#line hidden -#nullable disable - ); - __o = global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, callback: ValueChanged, value: ParentValue), ParentValue); - } - #pragma warning restore 1998 -#nullable restore -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - - Task ValueChanged(string value) - { - return Task.CompletedTask; - } - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithGetSet/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithGetSet/TestComponent.ir.txt deleted file mode 100644 index 7851a2d99..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithGetSet/TestComponent.ir.txt +++ /dev/null @@ -1,35 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - MarkupElement - (0:0,0 [63] x:\dir\subdir\Test\TestComponent.cshtml) - div - HtmlContent - (55:0,55 [2] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (55:0,55 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - HtmlAttribute - (16:0,16 [12] x:\dir\subdir\Test\TestComponent.cshtml) - myvalue=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.BindConverter.FormatValue( - LazyIntermediateToken - (17:0,17 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - IntermediateToken - - CSharp - ) - HtmlAttribute - (16:0,16 [12] x:\dir\subdir\Test\TestComponent.cshtml) - myevent=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, - IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, callback: ValueChanged, value: ParentValue) - IntermediateToken - - CSharp - , - IntermediateToken - - CSharp - ParentValue - IntermediateToken - - CSharp - ) - HtmlContent - (63:1,6 [2] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (63:1,6 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (72:2,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (72:2,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n\n Task ValueChanged(string value)\n {\n return Task.CompletedTask;\n }\n diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithGetSet/TestComponent.mappings.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithGetSet/TestComponent.mappings.txt deleted file mode 100644 index 21c6fb556..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/BindToElement_WithGetSet/TestComponent.mappings.txt +++ /dev/null @@ -1,24 +0,0 @@ -Source Location: (17:0,17 [11] x:\dir\subdir\Test\TestComponent.cshtml) -|ParentValue| -Generated Location: (971:25,17 [11] ) -|ParentValue| - -Source Location: (72:2,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; - - Task ValueChanged(string value) - { - return Task.CompletedTask; - } -| -Generated Location: (1441:36,7 [144] ) -| - public string ParentValue { get; set; } = "hi"; - - Task ValueChanged(string value) - { - return Task.CompletedTask; - } -| - diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplatImplictExpression/TestComponent.codegen.cs b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplatImplictExpression/TestComponent.codegen.cs deleted file mode 100644 index 412b7925a..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplatImplictExpression/TestComponent.codegen.cs +++ /dev/null @@ -1,53 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public class TestComponent : Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 219 - private void __RazorDirectiveTokenHelpers__() { - } - #pragma warning restore 219 - #pragma warning disable 0414 - private static System.Object __o = null; - #pragma warning restore 0414 - #pragma warning disable 1998 - protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) - { - __o = -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - someAttributes - -#line default -#line hidden -#nullable disable - ; - __o = -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - "after" - -#line default -#line hidden -#nullable disable - ; - } - #pragma warning restore 1998 -#nullable restore -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - private Dictionary someAttributes = new Dictionary(); - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplatImplictExpression/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplatImplictExpression/TestComponent.ir.txt deleted file mode 100644 index 9102ec0b5..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplatImplictExpression/TestComponent.ir.txt +++ /dev/null @@ -1,34 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [12] ) - System - UsingDirective - (18:2,1 [32] ) - System.Collections.Generic - UsingDirective - (53:3,1 [17] ) - System.Linq - UsingDirective - (73:4,1 [28] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [37] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public - TestComponent - Microsoft.AspNetCore.Components.ComponentBase - - DesignTimeDirective - - CSharpCode - - IntermediateToken - - CSharp - #pragma warning disable 0414 - CSharpCode - - IntermediateToken - - CSharp - private static System.Object __o = null; - CSharpCode - - IntermediateToken - - CSharp - #pragma warning restore 0414 - MethodDeclaration - - protected override - void - BuildRenderTree - MarkupElement - (0:0,0 [101] x:\dir\subdir\Test\TestComponent.cshtml) - elem - HtmlContent - (89:0,89 [5] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (89:0,89 [5] x:\dir\subdir\Test\TestComponent.cshtml) - Html - Hello - HtmlAttribute - - attributebefore=" - " - HtmlAttributeValue - (23:0,23 [6] x:\dir\subdir\Test\TestComponent.cshtml) - - IntermediateToken - (23:0,23 [6] x:\dir\subdir\Test\TestComponent.cshtml) - Html - before - HtmlAttribute - (44:0,44 [15] x:\dir\subdir\Test\TestComponent.cshtml) - - - CSharpExpressionAttributeValue - - - IntermediateToken - (45:0,45 [14] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - someAttributes - HtmlAttribute - - attributeafter=" - " - CSharpExpressionAttributeValue - (77:0,77 [10] x:\dir\subdir\Test\TestComponent.cshtml) - - IntermediateToken - (79:0,79 [7] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - "after" - HtmlContent - (101:0,101 [4] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (101:0,101 [4] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n\n - HtmlContent - (206:4,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (206:4,1 [2] x:\dir\subdir\Test\TestComponent.cshtml) - Html - \n - CSharpCode - (112:2,7 [93] x:\dir\subdir\Test\TestComponent.cshtml) - IntermediateToken - (112:2,7 [93] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n private Dictionary someAttributes = new Dictionary();\n diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplatImplictExpression/TestComponent.mappings.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplatImplictExpression/TestComponent.mappings.txt deleted file mode 100644 index 50bff7758..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentDesignTimeCodeGenerationTest/Element_WithSplatImplictExpression/TestComponent.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (45:0,45 [14] x:\dir\subdir\Test\TestComponent.cshtml) -|someAttributes| -Generated Location: (908:25,45 [14] ) -|someAttributes| - -Source Location: (79:0,79 [7] x:\dir\subdir\Test\TestComponent.cshtml) -|"after"| -Generated Location: (1158:34,79 [7] ) -|"after"| - -Source Location: (112:2,7 [93] x:\dir\subdir\Test\TestComponent.cshtml) -| - private Dictionary someAttributes = new Dictionary(); -| -Generated Location: (1358:44,7 [93] ) -| - private Dictionary someAttributes = new Dictionary(); -| - diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs deleted file mode 100644 index 23de622f8..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndChangeEvent_WithMatchingProperties/TestComponent.codegen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) - { - __builder.OpenComponent(0); - __builder.AddAttribute(1, "Value", global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - ParentValue - -#line default -#line hidden -#nullable disable - )); - __builder.AddAttribute(2, "OnChanged", (global::System.Action)(__value => ParentValue = __value)); - __builder.CloseComponent(); - } - #pragma warning restore 1998 -#nullable restore -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndChangeEvent_WithMatchingProperties/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndChangeEvent_WithMatchingProperties/TestComponent.ir.txt deleted file mode 100644 index 8f47d724a..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndChangeEvent_WithMatchingProperties/TestComponent.ir.txt +++ /dev/null @@ -1,18 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - Component - (0:0,0 [71] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Value - Value - AttributeStructure.DoubleQuotes - CSharpExpression - - LazyIntermediateToken - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - OnChanged - OnChanged - AttributeStructure.DoubleQuotes - CSharpExpression - - IntermediateToken - - CSharp - __value => ParentValue = __value - CSharpCode - (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt deleted file mode 100644 index 95daba29a..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1219:31,7 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndChangeEvent_WithoutMatchingProperties/TestComponent.codegen.cs b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndChangeEvent_WithoutMatchingProperties/TestComponent.codegen.cs deleted file mode 100644 index 8decdb4f8..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndChangeEvent_WithoutMatchingProperties/TestComponent.codegen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) - { - __builder.OpenComponent(0); - __builder.AddAttribute(1, "Value", -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - ParentValue - -#line default -#line hidden -#nullable disable - ); - __builder.AddAttribute(2, "OnChanged", global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue)); - __builder.CloseComponent(); - } - #pragma warning restore 1998 -#nullable restore -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt deleted file mode 100644 index 010d4c247..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt +++ /dev/null @@ -1,20 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - Component - (0:0,0 [71] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Value - - AttributeStructure.DoubleQuotes - CSharpExpression - - LazyIntermediateToken - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - OnChanged - - AttributeStructure.DoubleQuotes - CSharpExpression - - IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, - IntermediateToken - - CSharp - __value => ParentValue = __value - IntermediateToken - - CSharp - , ParentValue) - CSharpCode - (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt deleted file mode 100644 index bf244e6cc..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1195:31,7 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndExpression/TestComponent.codegen.cs b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndExpression/TestComponent.codegen.cs deleted file mode 100644 index d04161bb6..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndExpression/TestComponent.codegen.cs +++ /dev/null @@ -1,41 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) - { - __builder.OpenComponent(0); - __builder.AddAttribute(1, "Value", global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - ParentValue - -#line default -#line hidden -#nullable disable - )); - __builder.AddAttribute(2, "ValueChanged", (global::System.Action)(__value => ParentValue = __value)); - __builder.AddAttribute(3, "ValueExpression", global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck>>(() => ParentValue)); - __builder.CloseComponent(); - } - #pragma warning restore 1998 -#nullable restore -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndExpression/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndExpression/TestComponent.ir.txt deleted file mode 100644 index 8a718dd19..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndExpression/TestComponent.ir.txt +++ /dev/null @@ -1,21 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - Component - (0:0,0 [41] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Value - Value - AttributeStructure.DoubleQuotes - CSharpExpression - - LazyIntermediateToken - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueChanged - ValueChanged - AttributeStructure.DoubleQuotes - CSharpExpression - - IntermediateToken - - CSharp - __value => ParentValue = __value - ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueExpression - ValueExpression - AttributeStructure.DoubleQuotes - CSharpExpression - - IntermediateToken - - CSharp - () => ParentValue - CSharpCode - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndExpression/TestComponent.mappings.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndExpression/TestComponent.mappings.txt deleted file mode 100644 index 2e37b7cba..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndExpression/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1454:32,7 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndExpression_Generic/TestComponent.codegen.cs b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndExpression_Generic/TestComponent.codegen.cs deleted file mode 100644 index 9dd49e3b6..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndExpression_Generic/TestComponent.codegen.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) - { - global::__Blazor.Test.TestComponent.TypeInference.CreateMyComponent_0(__builder, 0, 1, -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - ParentValue - -#line default -#line hidden -#nullable disable - , 2, __value => ParentValue = __value, 3, () => ParentValue); - } - #pragma warning restore 1998 -#nullable restore -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - public DateTime ParentValue { get; set; } = DateTime.Now; - -#line default -#line hidden -#nullable disable - } -} -namespace __Blazor.Test.TestComponent -{ - #line hidden - internal static class TypeInference - { - public static void CreateMyComponent_0(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder, int seq, int __seq0, T __arg0, int __seq1, global::System.Action __arg1, int __seq2, global::System.Linq.Expressions.Expression> __arg2) - { - __builder.OpenComponent>(seq); - __builder.AddAttribute(__seq0, "SomeParam", __arg0); - __builder.AddAttribute(__seq1, "SomeParamChanged", __arg1); - __builder.AddAttribute(__seq2, "SomeParamExpression", __arg2); - __builder.CloseComponent(); - } - } -} -#pragma warning restore 1591 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndExpression_Generic/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndExpression_Generic/TestComponent.ir.txt deleted file mode 100644 index e3d19b421..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndExpression_Generic/TestComponent.ir.txt +++ /dev/null @@ -1,24 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - Component - (0:0,0 [45] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - ComponentAttribute - (30:0,30 [11] x:\dir\subdir\Test\TestComponent.cshtml) - SomeParam - SomeParam - AttributeStructure.DoubleQuotes - CSharpExpression - - LazyIntermediateToken - (30:0,30 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - ComponentAttribute - (30:0,30 [11] x:\dir\subdir\Test\TestComponent.cshtml) - SomeParamChanged - SomeParamChanged - AttributeStructure.DoubleQuotes - CSharpExpression - - IntermediateToken - - CSharp - __value => ParentValue = __value - ComponentAttribute - (30:0,30 [11] x:\dir\subdir\Test\TestComponent.cshtml) - SomeParamExpression - SomeParamExpression - AttributeStructure.DoubleQuotes - CSharpExpression - - IntermediateToken - - CSharp - () => ParentValue - CSharpCode - (54:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (54:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public DateTime ParentValue { get; set; } = DateTime.Now;\n - NamespaceDeclaration - - __Blazor.Test.TestComponent - ClassDeclaration - - internal static - TypeInference - - - ComponentTypeInferenceMethod - - __Blazor.Test.TestComponent.TypeInference - CreateMyComponent_0 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndExpression_Generic/TestComponent.mappings.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndExpression_Generic/TestComponent.mappings.txt deleted file mode 100644 index fae712528..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponentAndExpression_Generic/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (54:1,7 [65] x:\dir\subdir\Test\TestComponent.cshtml) -| - public DateTime ParentValue { get; set; } = DateTime.Now; -| -Generated Location: (995:28,7 [65] ) -| - public DateTime ParentValue { get; set; } = DateTime.Now; -| - diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt index c5205de2b..010d4c247 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt +++ b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.ir.txt @@ -13,6 +13,8 @@ Document - LazyIntermediateToken - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - OnChanged - - AttributeStructure.DoubleQuotes CSharpExpression - - IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue) + IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, + IntermediateToken - - CSharp - __value => ParentValue = __value + IntermediateToken - - CSharp - , ParentValue) CSharpCode - (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) LazyIntermediateToken - (80:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithGetSet_TaskReturningDelegate/TestComponent.codegen.cs b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithGetSet_TaskReturningDelegate/TestComponent.codegen.cs deleted file mode 100644 index 665a822a9..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithGetSet_TaskReturningDelegate/TestComponent.codegen.cs +++ /dev/null @@ -1,42 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) - { - __builder.OpenComponent(0); - __builder.AddAttribute(1, "Value", global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - ParentValue - -#line default -#line hidden -#nullable disable - )); - __builder.AddAttribute(2, "ValueChanged", (global::System.Func)(UpdateValue)); - __builder.CloseComponent(); - } - #pragma warning restore 1998 -#nullable restore -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - - public Task UpdateValue(int value) { ParentValue = value; return Task.CompletedTask; } - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithGetSet_TaskReturningDelegate/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithGetSet_TaskReturningDelegate/TestComponent.ir.txt deleted file mode 100644 index 5d14f2a99..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithGetSet_TaskReturningDelegate/TestComponent.ir.txt +++ /dev/null @@ -1,18 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - Component - (0:0,0 [75] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - ComponentAttribute - (30:0,30 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Value - Value - AttributeStructure.DoubleQuotes - CSharpExpression - - LazyIntermediateToken - (30:0,30 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - ComponentAttribute - (30:0,30 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueChanged - ValueChanged - AttributeStructure.DoubleQuotes - CSharpExpression - - IntermediateToken - - CSharp - UpdateValue - CSharpCode - (84:1,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (84:1,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n\n public Task UpdateValue(int value) { ParentValue = value; return Task.CompletedTask; }\n diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithGetSet_TaskReturningDelegate/TestComponent.mappings.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithGetSet_TaskReturningDelegate/TestComponent.mappings.txt deleted file mode 100644 index d8fc489a8..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithGetSet_TaskReturningDelegate/TestComponent.mappings.txt +++ /dev/null @@ -1,13 +0,0 @@ -Source Location: (84:1,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; - - public Task UpdateValue(int value) { ParentValue = value; return Task.CompletedTask; } -| -Generated Location: (1232:31,7 [144] ) -| - public int ParentValue { get; set; } = 42; - - public Task UpdateValue(int value) { ParentValue = value; return Task.CompletedTask; } -| - diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.ir.txt index 2045e2f59..2b7fb6405 100644 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.ir.txt +++ b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.ir.txt @@ -13,6 +13,8 @@ Document - LazyIntermediateToken - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueChanged - - AttributeStructure.DoubleQuotes CSharpExpression - - IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue) + IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, + IntermediateToken - - CSharp - __value => ParentValue = __value + IntermediateToken - - CSharp - , ParentValue) CSharpCode - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) LazyIntermediateToken - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithMatchingProperties/TestComponent.codegen.cs b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithMatchingProperties/TestComponent.codegen.cs deleted file mode 100644 index 84497a267..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithMatchingProperties/TestComponent.codegen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) - { - __builder.OpenComponent(0); - __builder.AddAttribute(1, "Value", global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.TypeCheck( -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - ParentValue - -#line default -#line hidden -#nullable disable - )); - __builder.AddAttribute(2, "ValueChanged", (global::System.Action)(__value => ParentValue = __value)); - __builder.CloseComponent(); - } - #pragma warning restore 1998 -#nullable restore -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithMatchingProperties/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithMatchingProperties/TestComponent.ir.txt deleted file mode 100644 index f5ab4fe32..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithMatchingProperties/TestComponent.ir.txt +++ /dev/null @@ -1,18 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - Component - (0:0,0 [41] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Value - Value - AttributeStructure.DoubleQuotes - CSharpExpression - - LazyIntermediateToken - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueChanged - ValueChanged - AttributeStructure.DoubleQuotes - CSharpExpression - - IntermediateToken - - CSharp - __value => ParentValue = __value - CSharpCode - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithMatchingProperties/TestComponent.mappings.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithMatchingProperties/TestComponent.mappings.txt deleted file mode 100644 index 5f9a9a2d9..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithMatchingProperties/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1222:31,7 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithoutMatchingProperties/TestComponent.codegen.cs b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithoutMatchingProperties/TestComponent.codegen.cs deleted file mode 100644 index 636be4b0a..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithoutMatchingProperties/TestComponent.codegen.cs +++ /dev/null @@ -1,40 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) - { - __builder.OpenComponent(0); - __builder.AddAttribute(1, "Value", -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - ParentValue - -#line default -#line hidden -#nullable disable - ); - __builder.AddAttribute(2, "ValueChanged", global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, __value => ParentValue = __value, ParentValue)); - __builder.CloseComponent(); - } - #pragma warning restore 1998 -#nullable restore -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - public int ParentValue { get; set; } = 42; - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithoutMatchingProperties/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithoutMatchingProperties/TestComponent.ir.txt deleted file mode 100644 index 2b7fb6405..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithoutMatchingProperties/TestComponent.ir.txt +++ /dev/null @@ -1,20 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - Component - (0:0,0 [41] x:\dir\subdir\Test\TestComponent.cshtml) - MyComponent - ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - Value - - AttributeStructure.DoubleQuotes - CSharpExpression - - LazyIntermediateToken - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - ComponentAttribute - (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) - ValueChanged - - AttributeStructure.DoubleQuotes - CSharpExpression - - IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, - IntermediateToken - - CSharp - __value => ParentValue = __value - IntermediateToken - - CSharp - , ParentValue) - CSharpCode - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public int ParentValue { get; set; } = 42;\n diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithoutMatchingProperties/TestComponent.mappings.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithoutMatchingProperties/TestComponent.mappings.txt deleted file mode 100644 index d19b561ec..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithoutMatchingProperties/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (50:1,7 [50] x:\dir\subdir\Test\TestComponent.cshtml) -| - public int ParentValue { get; set; } = 42; -| -Generated Location: (1198:31,7 [50] ) -| - public int ParentValue { get; set; } = 42; -| - diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.codegen.cs b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.codegen.cs deleted file mode 100644 index ff12c4cd1..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.codegen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) - { - __builder.OpenElement(0, "div"); - __builder.CloseElement(); - } - #pragma warning restore 1998 -#nullable restore -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - - public void UpdateValue(string value) => ParentValue = value; - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.diagnostics.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.diagnostics.txt deleted file mode 100644 index 8cf39c3ec..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.diagnostics.txt +++ /dev/null @@ -1 +0,0 @@ -x:\dir\subdir\Test\TestComponent.cshtml(1,23): Error RZ10016: Attribute 'bind-value:set' was used but no attribute 'bind-value:get' was found. diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.ir.txt deleted file mode 100644 index b783b3899..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.ir.txt +++ /dev/null @@ -1,12 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - MarkupElement - (0:0,0 [37] x:\dir\subdir\Test\TestComponent.cshtml) - div - CSharpCode - (46:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (46:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n\n public void UpdateValue(string value) => ParentValue = value;\n diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.mappings.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.mappings.txt deleted file mode 100644 index 29688fb09..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindGet/TestComponent.mappings.txt +++ /dev/null @@ -1,13 +0,0 @@ -Source Location: (46:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; - - public void UpdateValue(string value) => ParentValue = value; -| -Generated Location: (741:21,7 [124] ) -| - public string ParentValue { get; set; } = "hi"; - - public void UpdateValue(string value) => ParentValue = value; -| - diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.codegen.cs b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.codegen.cs deleted file mode 100644 index ff12c4cd1..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.codegen.cs +++ /dev/null @@ -1,32 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) - { - __builder.OpenElement(0, "div"); - __builder.CloseElement(); - } - #pragma warning restore 1998 -#nullable restore -#line 2 "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - - public void UpdateValue(string value) => ParentValue = value; - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.diagnostics.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.diagnostics.txt deleted file mode 100644 index db0d277a0..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.diagnostics.txt +++ /dev/null @@ -1 +0,0 @@ -x:\dir\subdir\Test\TestComponent.cshtml(1,23): Error RZ10017: The attribute 'bind-value:get' must have a companion 'bind-value:set' attribute. diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.ir.txt deleted file mode 100644 index 6aa44473d..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.ir.txt +++ /dev/null @@ -1,14 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - MarkupElement - (0:0,0 [37] x:\dir\subdir\Test\TestComponent.cshtml) - div - TagHelperDirectiveAttributeParameter - (22:0,22 [11] x:\dir\subdir\Test\TestComponent.cshtml) - bind-value:get - HtmlAttributeValueStyle.DoubleQuotes - LazyIntermediateToken - (22:0,22 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - CSharpCode - (46:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (46:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n\n public void UpdateValue(string value) => ParentValue = value;\n diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.mappings.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.mappings.txt deleted file mode 100644 index 29688fb09..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_MissingBindSet/TestComponent.mappings.txt +++ /dev/null @@ -1,13 +0,0 @@ -Source Location: (46:1,7 [124] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; - - public void UpdateValue(string value) => ParentValue = value; -| -Generated Location: (741:21,7 [124] ) -| - public string ParentValue { get; set; } = "hi"; - - public void UpdateValue(string value) => ParentValue = value; -| - diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_StartEndTag/TestComponent.mappings.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_StartEndTag/TestComponent.mappings.txt deleted file mode 100644 index 6ed1154bc..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_StartEndTag/TestComponent.mappings.txt +++ /dev/null @@ -1,9 +0,0 @@ -Source Location: (45:1,7 [55] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; -| -Generated Location: (932:30,7 [55] ) -| - public string ParentValue { get; set; } = "hi"; -| - diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithBindAfter/TestComponent.codegen.cs b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithBindAfter/TestComponent.codegen.cs deleted file mode 100644 index 66d2cc15a..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithBindAfter/TestComponent.codegen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) - { - __builder.OpenElement(0, "div"); - __builder.AddAttribute(1, "myvalue", global::Microsoft.AspNetCore.Components.BindConverter.FormatValue( -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - ParentValue - -#line default -#line hidden -#nullable disable - )); - __builder.AddAttribute(2, "myevent", global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, callback: __value => { ParentValue = __value; return global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, callback: DoSomething).InvokeAsync(); }, value: ParentValue), ParentValue)); - __builder.SetUpdatesAttributeName("myvalue"); - __builder.CloseElement(); - } - #pragma warning restore 1998 -#nullable restore -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - - Task DoSomething() - { - return Task.CompletedTask; - } - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithBindAfter/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithBindAfter/TestComponent.ir.txt deleted file mode 100644 index 1ec0f41e2..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithBindAfter/TestComponent.ir.txt +++ /dev/null @@ -1,24 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - MarkupElement - (0:0,0 [60] x:\dir\subdir\Test\TestComponent.cshtml) - div - HtmlAttribute - (12:0,12 [12] x:\dir\subdir\Test\TestComponent.cshtml) - myvalue=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.BindConverter.FormatValue( - LazyIntermediateToken - (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - IntermediateToken - - CSharp - ) - HtmlAttribute - (12:0,12 [12] x:\dir\subdir\Test\TestComponent.cshtml) - myevent=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, - IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, callback: __value => { ParentValue = __value; return global::Microsoft.AspNetCore.Components.EventCallback.Factory.Create(this, callback: DoSomething).InvokeAsync(); }, value: ParentValue) - IntermediateToken - - CSharp - , - IntermediateToken - - CSharp - ParentValue - IntermediateToken - - CSharp - ) - CSharpCode - (69:2,7 [131] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (69:2,7 [131] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n\n Task DoSomething()\n {\n return Task.CompletedTask;\n }\n diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithBindAfter/TestComponent.mappings.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithBindAfter/TestComponent.mappings.txt deleted file mode 100644 index 5a54fb773..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithBindAfter/TestComponent.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (69:2,7 [131] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; - - Task DoSomething() - { - return Task.CompletedTask; - } -| -Generated Location: (1522:32,7 [131] ) -| - public string ParentValue { get; set; } = "hi"; - - Task DoSomething() - { - return Task.CompletedTask; - } -| - diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithGetSet/TestComponent.codegen.cs b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithGetSet/TestComponent.codegen.cs deleted file mode 100644 index 00118c7bf..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithGetSet/TestComponent.codegen.cs +++ /dev/null @@ -1,46 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) - { - __builder.OpenElement(0, "div"); - __builder.AddAttribute(1, "myvalue", global::Microsoft.AspNetCore.Components.BindConverter.FormatValue( -#nullable restore -#line 1 "x:\dir\subdir\Test\TestComponent.cshtml" - ParentValue - -#line default -#line hidden -#nullable disable - )); - __builder.AddAttribute(2, "myevent", global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, callback: ValueChanged, value: ParentValue), ParentValue)); - __builder.SetUpdatesAttributeName("myvalue"); - __builder.CloseElement(); - } - #pragma warning restore 1998 -#nullable restore -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - - Task ValueChanged(string value) - { - return Task.CompletedTask; - } - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithGetSet/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithGetSet/TestComponent.ir.txt deleted file mode 100644 index 659c732c9..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithGetSet/TestComponent.ir.txt +++ /dev/null @@ -1,24 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - MarkupElement - (0:0,0 [63] x:\dir\subdir\Test\TestComponent.cshtml) - div - HtmlAttribute - (16:0,16 [12] x:\dir\subdir\Test\TestComponent.cshtml) - myvalue=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.BindConverter.FormatValue( - LazyIntermediateToken - (17:0,17 [11] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - ParentValue - IntermediateToken - - CSharp - ) - HtmlAttribute - (16:0,16 [12] x:\dir\subdir\Test\TestComponent.cshtml) - myevent=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, - IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.CompilerServices.RuntimeHelpers.CreateInferredEventCallback(this, callback: ValueChanged, value: ParentValue) - IntermediateToken - - CSharp - , - IntermediateToken - - CSharp - ParentValue - IntermediateToken - - CSharp - ) - CSharpCode - (72:2,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (72:2,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n\n Task ValueChanged(string value)\n {\n return Task.CompletedTask;\n }\n diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithGetSet/TestComponent.mappings.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithGetSet/TestComponent.mappings.txt deleted file mode 100644 index 09c174a61..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithGetSet/TestComponent.mappings.txt +++ /dev/null @@ -1,19 +0,0 @@ -Source Location: (72:2,7 [144] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; - - Task ValueChanged(string value) - { - return Task.CompletedTask; - } -| -Generated Location: (1381:32,7 [144] ) -| - public string ParentValue { get; set; } = "hi"; - - Task ValueChanged(string value) - { - return Task.CompletedTask; - } -| - diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithGetSetAndAfter_Lambda/TestComponent.codegen.cs b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithGetSetAndAfter_Lambda/TestComponent.codegen.cs deleted file mode 100644 index ad0622448..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithGetSetAndAfter_Lambda/TestComponent.codegen.cs +++ /dev/null @@ -1,43 +0,0 @@ -// -#pragma warning disable 1591 -namespace Test -{ - #line hidden - using System; - using System.Collections.Generic; - using System.Linq; - using System.Threading.Tasks; - using Microsoft.AspNetCore.Components; - public partial class TestComponent : global::Microsoft.AspNetCore.Components.ComponentBase - { - #pragma warning disable 1998 - protected override void BuildRenderTree(global::Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder) - { - __builder.OpenElement(0, "div"); - __builder.AddAttribute(1, "myvalue", global::Microsoft.AspNetCore.Components.BindConverter.FormatValue((() => @ParentValue))); - __builder.AddAttribute(2, "myevent", global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => (() => @ParentValue) = __value, (() => @ParentValue), setter: (value => ValueChanged(value)), after: (() => AfterValueChanged()))); - __builder.SetUpdatesAttributeName("myvalue"); - __builder.CloseElement(); - } - #pragma warning restore 1998 -#nullable restore -#line 3 "x:\dir\subdir\Test\TestComponent.cshtml" - - public string ParentValue { get; set; } = "hi"; - - Task ValueChanged(string value) - { - return Task.CompletedTask; - } - - Task AfterValueChanged() - { - return Task.CompletedTask; - } - -#line default -#line hidden -#nullable disable - } -} -#pragma warning restore 1591 diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithGetSetAndAfter_Lambda/TestComponent.ir.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithGetSetAndAfter_Lambda/TestComponent.ir.txt deleted file mode 100644 index 3019f524d..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithGetSetAndAfter_Lambda/TestComponent.ir.txt +++ /dev/null @@ -1,24 +0,0 @@ -Document - - NamespaceDeclaration - - Test - UsingDirective - (3:1,1 [14] ) - System - UsingDirective - (18:2,1 [34] ) - System.Collections.Generic - UsingDirective - (53:3,1 [19] ) - System.Linq - UsingDirective - (73:4,1 [30] ) - System.Threading.Tasks - UsingDirective - (104:5,1 [39] ) - Microsoft.AspNetCore.Components - ClassDeclaration - - public partial - TestComponent - global::Microsoft.AspNetCore.Components.ComponentBase - - MethodDeclaration - - protected override - void - BuildRenderTree - MarkupElement - (0:0,0 [134] x:\dir\subdir\Test\TestComponent.cshtml) - div - HtmlAttribute - (16:0,16 [21] x:\dir\subdir\Test\TestComponent.cshtml) - myvalue=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.BindConverter.FormatValue( - IntermediateToken - - CSharp - (() => @ParentValue) - IntermediateToken - - CSharp - ) - HtmlAttribute - (16:0,16 [21] x:\dir\subdir\Test\TestComponent.cshtml) - myevent=" - " - CSharpExpressionAttributeValue - - - IntermediateToken - - CSharp - global::Microsoft.AspNetCore.Components.EventCallback.Factory.CreateBinder(this, __value => (() => @ParentValue) = __value, - IntermediateToken - - CSharp - (() => @ParentValue) - IntermediateToken - - CSharp - , setter: (value => ValueChanged(value)) - IntermediateToken - - CSharp - , after: (() => AfterValueChanged()) - IntermediateToken - - CSharp - ) - CSharpCode - (143:2,7 [226] x:\dir\subdir\Test\TestComponent.cshtml) - LazyIntermediateToken - (143:2,7 [226] x:\dir\subdir\Test\TestComponent.cshtml) - CSharp - \n public string ParentValue { get; set; } = "hi";\n\n Task ValueChanged(string value)\n {\n return Task.CompletedTask;\n }\n\n Task AfterValueChanged()\n {\n return Task.CompletedTask;\n }\n diff --git a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithGetSetAndAfter_Lambda/TestComponent.mappings.txt b/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithGetSetAndAfter_Lambda/TestComponent.mappings.txt deleted file mode 100644 index a685a94bf..000000000 --- a/src/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToElement_WithGetSetAndAfter_Lambda/TestComponent.mappings.txt +++ /dev/null @@ -1,29 +0,0 @@ -Source Location: (143:2,7 [226] x:\dir\subdir\Test\TestComponent.cshtml) -| - public string ParentValue { get; set; } = "hi"; - - Task ValueChanged(string value) - { - return Task.CompletedTask; - } - - Task AfterValueChanged() - { - return Task.CompletedTask; - } -| -Generated Location: (1214:24,7 [226] ) -| - public string ParentValue { get; set; } = "hi"; - - Task ValueChanged(string value) - { - return Task.CompletedTask; - } - - Task AfterValueChanged() - { - return Task.CompletedTask; - } -| -