diff --git a/eng/Version.Details.props b/eng/Version.Details.props index 6eba939dded..db5526ab6f2 100644 --- a/eng/Version.Details.props +++ b/eng/Version.Details.props @@ -6,27 +6,27 @@ This file should be imported by eng/Versions.props - 5.3.0-2.25555.17 - 5.3.0-2.25555.17 - 5.3.0-2.25555.17 - 5.3.0-2.25555.17 - 5.3.0-2.25555.17 - 5.3.0-2.25555.17 - 5.3.0-2.25555.17 - 5.3.0-2.25555.17 - 5.3.0-2.25555.17 - 5.3.0-2.25555.17 - 5.3.0-2.25555.17 - 5.3.0-2.25555.17 - 5.3.0-2.25555.17 - 5.3.0-2.25555.17 - 5.3.0-2.25555.17 - 5.3.0-2.25555.17 - 5.3.0-2.25555.17 - 5.3.0-2.25555.17 - 5.3.0-2.25555.17 - 5.3.0-2.25555.17 - 5.3.0-2.25555.17 + 5.3.0-2.25567.17 + 5.3.0-2.25567.17 + 5.3.0-2.25567.17 + 5.3.0-2.25567.17 + 5.3.0-2.25567.17 + 5.3.0-2.25567.17 + 5.3.0-2.25567.17 + 5.3.0-2.25567.17 + 5.3.0-2.25567.17 + 5.3.0-2.25567.17 + 5.3.0-2.25567.17 + 5.3.0-2.25567.17 + 5.3.0-2.25567.17 + 5.3.0-2.25567.17 + 5.3.0-2.25567.17 + 5.3.0-2.25567.17 + 5.3.0-2.25567.17 + 5.3.0-2.25567.17 + 5.3.0-2.25567.17 + 5.3.0-2.25567.17 + 5.3.0-2.25567.17 9.0.0-beta.25515.2 diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 24c5ecd1fd7..2d425d8271a 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -2,89 +2,89 @@ - + https://github.com/dotnet/roslyn - b9d497daa87f8c902c451b0d960eaf70dfcda2ef + f38878a015e28dedf874b0c98b15bd14906dab63 - + https://github.com/dotnet/roslyn - b9d497daa87f8c902c451b0d960eaf70dfcda2ef + f38878a015e28dedf874b0c98b15bd14906dab63 - + https://github.com/dotnet/roslyn - b9d497daa87f8c902c451b0d960eaf70dfcda2ef + f38878a015e28dedf874b0c98b15bd14906dab63 - + https://github.com/dotnet/roslyn - b9d497daa87f8c902c451b0d960eaf70dfcda2ef + f38878a015e28dedf874b0c98b15bd14906dab63 - + https://github.com/dotnet/roslyn - b9d497daa87f8c902c451b0d960eaf70dfcda2ef + f38878a015e28dedf874b0c98b15bd14906dab63 - + https://github.com/dotnet/roslyn - b9d497daa87f8c902c451b0d960eaf70dfcda2ef + f38878a015e28dedf874b0c98b15bd14906dab63 - + https://github.com/dotnet/roslyn - b9d497daa87f8c902c451b0d960eaf70dfcda2ef + f38878a015e28dedf874b0c98b15bd14906dab63 - + https://github.com/dotnet/roslyn - b9d497daa87f8c902c451b0d960eaf70dfcda2ef + f38878a015e28dedf874b0c98b15bd14906dab63 - + https://github.com/dotnet/roslyn - b9d497daa87f8c902c451b0d960eaf70dfcda2ef + f38878a015e28dedf874b0c98b15bd14906dab63 - + https://github.com/dotnet/roslyn - b9d497daa87f8c902c451b0d960eaf70dfcda2ef + f38878a015e28dedf874b0c98b15bd14906dab63 - + https://github.com/dotnet/roslyn - b9d497daa87f8c902c451b0d960eaf70dfcda2ef + f38878a015e28dedf874b0c98b15bd14906dab63 - + https://github.com/dotnet/roslyn - b9d497daa87f8c902c451b0d960eaf70dfcda2ef + f38878a015e28dedf874b0c98b15bd14906dab63 - + https://github.com/dotnet/roslyn - b9d497daa87f8c902c451b0d960eaf70dfcda2ef + f38878a015e28dedf874b0c98b15bd14906dab63 - + https://github.com/dotnet/roslyn - b9d497daa87f8c902c451b0d960eaf70dfcda2ef + f38878a015e28dedf874b0c98b15bd14906dab63 - + https://github.com/dotnet/roslyn - b9d497daa87f8c902c451b0d960eaf70dfcda2ef + f38878a015e28dedf874b0c98b15bd14906dab63 - + https://github.com/dotnet/roslyn - b9d497daa87f8c902c451b0d960eaf70dfcda2ef + f38878a015e28dedf874b0c98b15bd14906dab63 - + https://github.com/dotnet/roslyn - b9d497daa87f8c902c451b0d960eaf70dfcda2ef + f38878a015e28dedf874b0c98b15bd14906dab63 - + https://github.com/dotnet/roslyn - b9d497daa87f8c902c451b0d960eaf70dfcda2ef + f38878a015e28dedf874b0c98b15bd14906dab63 - + https://github.com/dotnet/roslyn - b9d497daa87f8c902c451b0d960eaf70dfcda2ef + f38878a015e28dedf874b0c98b15bd14906dab63 - + https://github.com/dotnet/roslyn - b9d497daa87f8c902c451b0d960eaf70dfcda2ef + f38878a015e28dedf874b0c98b15bd14906dab63 - + https://github.com/dotnet/roslyn - b9d497daa87f8c902c451b0d960eaf70dfcda2ef + f38878a015e28dedf874b0c98b15bd14906dab63 diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.mappings.txt index fc326d08245..495740dafda 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.mappings.txt @@ -17,6 +17,11 @@ Generated Location: (1189:40,0 [42] ) private MyClass c = new(); | +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1683:56,45 [11] ) +|MyComponent| + Source Location: (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml) |MyParameter| Generated Location: (1864:60,0 [11] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.mappings.txt index b2cf70f9ed8..97f5596e678 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.mappings.txt @@ -27,6 +27,11 @@ Generated Location: (1731:56,0 [42] ) private MyClass c = new(); | +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (2452:72,45 [11] ) +|MyComponent| + Source Location: (40:1,4 [13] x:\dir\subdir\Test\TestComponent.cshtml) |BoolParameter| Generated Location: (2632:76,0 [13] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.mappings.txt index 692b15c6aea..932f85a8306 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (26:0,26 [1] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (26:0,26 [1] x:\dir\subdir\Test\TestComponent.cshtml) |c| Generated Location: (861:23,0 [1] ) |c| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.mappings.txt index 8506231b90d..e6f578615b4 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (26:0,26 [7] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (26:0,26 [7] x:\dir\subdir\Test\TestComponent.cshtml) |c1 = c2| Generated Location: (861:23,0 [7] ) |c1 = c2| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.mappings.txt index 8c97113d5e1..959d3f6e0e5 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.mappings.txt @@ -32,6 +32,11 @@ Generated Location: (1757:64,0 [42] ) private MyClass c = new(); | +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (2453:80,45 [11] ) +|MyComponent| + Source Location: (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml) |MyParameter| Generated Location: (2634:84,0 [11] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.mappings.txt index f3d9ba6e18b..398e3e9f530 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.mappings.txt @@ -27,6 +27,11 @@ Generated Location: (1518:56,0 [51] ) private readonly MyClass c = new(); | +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (2149:72,45 [11] ) +|MyComponent| + Source Location: (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml) |MyParameter| Generated Location: (2330:76,0 [11] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddComponentParameter_DynamicComponentName/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddComponentParameter_DynamicComponentName/TestComponent.mappings.txt index c376d5fa3d5..72645f13861 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddComponentParameter_DynamicComponentName/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddComponentParameter_DynamicComponentName/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (9:0,9 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [7] x:\dir\subdir\Test\TestComponent.cshtml) +|dynamic| +Generated Location: (703:19,49 [7] ) +|dynamic| + +Source Location: (9:0,9 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (876:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddComponentParameter_EscapedComponentName/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddComponentParameter_EscapedComponentName/TestComponent.mappings.txt index fc636663a76..1f2ebf00d52 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddComponentParameter_EscapedComponentName/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddComponentParameter_EscapedComponentName/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (5:0,5 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [3] x:\dir\subdir\Test\TestComponent.cshtml) +|int| +Generated Location: (704:19,50 [3] ) +|int| + +Source Location: (5:0,5 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (869:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddComponentParameter_GlobalNamespace/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddComponentParameter_GlobalNamespace/TestComponent.mappings.txt index 64f9a0c51f9..7a75632b2a4 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddComponentParameter_GlobalNamespace/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddComponentParameter_GlobalNamespace/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (698:19,44 [11] ) +|MyComponent| + +Source Location: (13:0,13 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (874:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.mappings.txt index 0e6b43d7c3a..0f37ae13914 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddComponentParameter_WithNameof/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (884:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.mappings.txt index f02bfe1b54a..f0e794b8df0 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (884:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt index ac9f7fad38c..3eb0413482f 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt @@ -12,6 +12,11 @@ Generated Location: (1300:32,0 [65] ) public DateTime ParentValue { get; set; } = DateTime.Now; | +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1916:48,45 [11] ) +|MyComponent| + Source Location: (19:0,19 [9] x:\dir\subdir\Test\TestComponent.cshtml) |SomeParam| Generated Location: (2106:52,0 [9] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.mappings.txt index 98be953f456..e3dc04306be 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValueAndExpression_NestedGeneric/TestComponent.mappings.txt @@ -12,6 +12,11 @@ Generated Location: (1300:32,0 [89] ) public IEnumerable ParentValue { get; set; } = new [] { DateTime.Now }; | +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (2084:48,45 [11] ) +|MyComponent| + Source Location: (19:0,19 [9] x:\dir\subdir\Test\TestComponent.cshtml) |SomeParam| Generated Location: (2274:52,0 [9] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt index 1fe81884eca..d303cbaa272 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (884:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt index eb4a7854781..d20920e6f2f 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_EventCallback_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (884:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt index ea29ab07b34..11dd0e8d183 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithMatchingProperties/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (884:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt index 01992557ddf..e89ecb1e93a 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndChangeEvent_WithoutMatchingProperties/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) |ParentValue| Generated Location: (861:23,0 [11] ) |ParentValue| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.mappings.txt index e8d4440ec8e..287dd922777 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (884:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt index e2a1b1b1b27..8160196ff97 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValueAndExpression_Generic/TestComponent.mappings.txt @@ -12,6 +12,11 @@ Generated Location: (1104:32,0 [65] ) public DateTime ParentValue { get; set; } = DateTime.Now; | +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1688:48,45 [11] ) +|MyComponent| + Source Location: (19:0,19 [9] x:\dir\subdir\Test\TestComponent.cshtml) |SomeParam| Generated Location: (1878:52,0 [9] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt index 3a94fce9997..7113285199d 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (884:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.mappings.txt index 0d5fcc2cce4..5dacd46daab 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_DynamicComponentName/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (15:0,15 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [7] x:\dir\subdir\Test\TestComponent.cshtml) +|dynamic| +Generated Location: (703:19,49 [7] ) +|dynamic| + +Source Location: (15:0,15 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (876:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.mappings.txt index ff86df204f7..e2b7b07ef59 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_EscapedComponentName/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (11:0,11 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [3] x:\dir\subdir\Test\TestComponent.cshtml) +|int| +Generated Location: (704:19,50 [3] ) +|int| + +Source Location: (11:0,11 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (870:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.mappings.txt index b2dabfd1ac9..3e5eccb4f8e 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_GlobalNamespaceComponent/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (698:19,44 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (874:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.mappings.txt index 7daa1a95a55..389163b2723 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithMatchingProperties_WithNameof/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (884:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.mappings.txt index 3ad1ed4ccd8..bd59285ba0d 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_SpecifiesValue_WithoutMatchingProperties/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (26:0,26 [11] x:\dir\subdir\Test\TestComponent.cshtml) |ParentValue| Generated Location: (861:23,0 [11] ) |ParentValue| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt index 6391db2862a..32a66edf688 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_TypeChecked_WithMatchingProperties/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (884:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.mappings.txt index 1ae651b179d..fc49f964044 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_Action/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (884:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.mappings.txt index 73db4055c37..8ce067dff57 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_ActionLambda/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (884:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.mappings.txt index bc78a40eef2..a14f82d40df 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_AsyncLambdaProducesError/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (884:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.mappings.txt index b7073694cb7..e808284674e 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_EventCallback/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (884:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.mappings.txt index 441550dee99..df0ca974a3f 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesAction/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (884:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.mappings.txt index 6d6b59173c9..0db4700c2ee 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_EventCallback_ReceivesFunction/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (884:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.mappings.txt index 6ad7c6c4259..c8226d5bf34 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_TaskReturningDelegate/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (884:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.mappings.txt index 59ca2eadbbe..d466948acae 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithAfter_TaskReturningLambda/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (884:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.mappings.txt index 17dbb1926fe..8afaba576ed 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_Action/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (884:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.mappings.txt index 4869616d0f8..54496f50286 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_ActionLambda/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (884:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.mappings.txt index b87605cb8ff..596737257b8 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_EventCallback/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (884:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.mappings.txt index 2be57a01987..caae9716bbc 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesAction/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (884:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.mappings.txt index 5ceb247b2a0..99fd10fb269 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_EventCallback_ReceivesFunction/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (884:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.mappings.txt index 6744de090ab..700d2aec9b4 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_ProducesErrorOnOlderLanguageVersions/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (875:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.mappings.txt index f993cc40585..256fe716b15 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningDelegate/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (884:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.mappings.txt index 6ba6adcfabf..2aed5837cf6 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithGetSet_TaskReturningLambda/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (884:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.mappings.txt index 24815817773..21143b12259 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToComponent_WithStringAttribute_DoesNotUseStringSyntax/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (17:0,17 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [9] x:\dir\subdir\Test\TestComponent.cshtml) +|InputText| +Generated Location: (703:19,49 [9] ) +|InputText| + +Source Location: (17:0,17 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (880:23,0 [5] ) |Value| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_ExplicitType_WithAfter_Action/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_ExplicitType_WithAfter_Action/TestComponent.mappings.txt index 1eff1864ea2..4df718c4213 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_ExplicitType_WithAfter_Action/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_ExplicitType_WithAfter_Action/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (21:0,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (21:0,21 [3] x:\dir\subdir\Test\TestComponent.cshtml) |int| Generated Location: (799:22,0 [3] ) |int| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_ExplicitType_WithGetSet_Action/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_ExplicitType_WithGetSet_Action/TestComponent.mappings.txt index 9f1a445d76d..f06ce399db8 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_ExplicitType_WithGetSet_Action/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_ExplicitType_WithGetSet_Action/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (21:0,21 [11] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (21:0,21 [11] x:\dir\subdir\Test\TestComponent.cshtml) |CustomValue| Generated Location: (799:22,0 [11] ) |CustomValue| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_ExplicitType_WithGetSet_EventCallback/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_ExplicitType_WithGetSet_EventCallback/TestComponent.mappings.txt index 517e8be91eb..cf74939fc68 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_ExplicitType_WithGetSet_EventCallback/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_ExplicitType_WithGetSet_EventCallback/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (21:0,21 [11] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (21:0,21 [11] x:\dir\subdir\Test\TestComponent.cshtml) |CustomValue| Generated Location: (799:22,0 [11] ) |CustomValue| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_ExplicitType_WithGetSet_Function/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_ExplicitType_WithGetSet_Function/TestComponent.mappings.txt index 9a1f381e4f7..b55ffba03fb 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_ExplicitType_WithGetSet_Function/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_ExplicitType_WithGetSet_Function/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (21:0,21 [11] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (21:0,21 [11] x:\dir\subdir\Test\TestComponent.cshtml) |CustomValue| Generated Location: (799:22,0 [11] ) |CustomValue| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_InferredType_WithAfter_Action/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_InferredType_WithAfter_Action/TestComponent.mappings.txt index 8958c2be569..792956101ff 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_InferredType_WithAfter_Action/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_InferredType_WithAfter_Action/TestComponent.mappings.txt @@ -21,6 +21,11 @@ Generated Location: (1343:40,0 [82] ) public void Update() { } | +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1872:58,45 [11] ) +|MyComponent| + Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (2072:62,0 [5] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_InferredType_WithGetSet_Action/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_InferredType_WithGetSet_Action/TestComponent.mappings.txt index b68e8e7fd34..0efab8f2111 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_InferredType_WithGetSet_Action/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_InferredType_WithGetSet_Action/TestComponent.mappings.txt @@ -21,6 +21,11 @@ Generated Location: (1405:40,0 [147] ) public void UpdateValue(CustomValue value) => ParentValue = value; | +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (2031:58,45 [11] ) +|MyComponent| + Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (2231:62,0 [5] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_InferredType_WithGetSet_EventCallback/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_InferredType_WithGetSet_EventCallback/TestComponent.mappings.txt index df7365e58d2..7a6a87f8c58 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_InferredType_WithGetSet_EventCallback/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_InferredType_WithGetSet_EventCallback/TestComponent.mappings.txt @@ -19,6 +19,11 @@ Generated Location: (1405:40,0 [138] ) public EventCallback UpdateValue { get; set; } | +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (2022:57,45 [11] ) +|MyComponent| + Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (2222:61,0 [5] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_InferredType_WithGetSet_Function/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_InferredType_WithGetSet_Function/TestComponent.mappings.txt index 598bda4ebc5..bc96434895e 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_InferredType_WithGetSet_Function/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BindToGenericComponent_InferredType_WithGetSet_Function/TestComponent.mappings.txt @@ -21,6 +21,11 @@ Generated Location: (1405:40,0 [175] ) public Task UpdateValue(CustomValue value) { ParentValue = value; return Task.CompletedTask; } | +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (2059:58,45 [11] ) +|MyComponent| + Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (2259:62,0 [5] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.mappings.txt index 85e1a1854d8..b2509e48e58 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BodyAndAttributeChildContent/TestComponent.mappings.txt @@ -13,6 +13,11 @@ Source Location: (87:0,87 [2] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1266:41,0 [2] ) |; | +Source Location: (93:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1371:47,49 [11] ) +|MyComponent| + Source Location: (105:1,13 [6] x:\dir\subdir\Test\TestComponent.cshtml) |Header| Generated Location: (1552:51,0 [6] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.mappings.txt index 85e1a1854d8..b2509e48e58 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/BodyAndExplicitChildContent/TestComponent.mappings.txt @@ -13,6 +13,11 @@ Source Location: (87:0,87 [2] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1266:41,0 [2] ) |; | +Source Location: (93:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1371:47,49 [11] ) +|MyComponent| + Source Location: (105:1,13 [6] x:\dir\subdir\Test\TestComponent.cshtml) |Header| Generated Location: (1552:51,0 [6] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CaptureParametersConstraint/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CaptureParametersConstraint/TestComponent.mappings.txt index 796a76d02e2..784edc0feee 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CaptureParametersConstraint/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CaptureParametersConstraint/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (857:23,0 [27] ) |new MyClass()| +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1653:44,45 [11] ) +|MyComponent| + Source Location: (13:0,13 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Param| Generated Location: (1843:48,0 [5] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_CombiningMultipleAncestors/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_CombiningMultipleAncestors/TestComponent.mappings.txt index 2f6201059bb..8601e716318 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_CombiningMultipleAncestors/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_CombiningMultipleAncestors/TestComponent.mappings.txt @@ -8,13 +8,28 @@ Source Location: (59:1,24 [7] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1345:34,0 [7] ) |"Hello"| +Source Location: (1:0,1 [9] x:\dir\subdir\Test\TestComponent.cshtml) +|ParentOne| +Generated Location: (2512:61,45 [9] ) +|ParentOne| + Source Location: (11:0,11 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (2704:65,0 [5] ) |Value| +Source Location: (40:1,5 [9] x:\dir\subdir\Test\TestComponent.cshtml) +|ParentTwo| +Generated Location: (3362:81,45 [9] ) +|ParentTwo| + Source Location: (50:1,15 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (3554:85,0 [5] ) |Value| +Source Location: (80:2,9 [5] x:\dir\subdir\Test\TestComponent.cshtml) +|Child| +Generated Location: (4158:101,45 [5] ) +|Child| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Explicit/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Explicit/TestComponent.mappings.txt index d19c84ee2e3..750743d1dd5 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Explicit/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Explicit/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [8] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [4] x:\dir\subdir\Test\TestComponent.cshtml) +|Grid| +Generated Location: (703:19,49 [4] ) +|Grid| + +Source Location: (13:0,13 [8] x:\dir\subdir\Test\TestComponent.cshtml) |DateTime| Generated Location: (792:22,0 [8] ) |DateTime| @@ -13,3 +18,13 @@ Source Location: (32:0,32 [23] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1334:39,0 [23] ) |Array.Empty()| +Source Location: (59:0,59 [6] x:\dir\subdir\Test\TestComponent.cshtml) +|Column| +Generated Location: (2249:62,45 [6] ) +|Column| + +Source Location: (69:0,69 [6] x:\dir\subdir\Test\TestComponent.cshtml) +|Column| +Generated Location: (2536:67,45 [6] ) +|Column| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_ExplicitOverride/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_ExplicitOverride/TestComponent.mappings.txt index b24a640801a..d4ed6a038c8 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_ExplicitOverride/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_ExplicitOverride/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [8] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [4] x:\dir\subdir\Test\TestComponent.cshtml) +|Grid| +Generated Location: (703:19,49 [4] ) +|Grid| + +Source Location: (13:0,13 [8] x:\dir\subdir\Test\TestComponent.cshtml) |DateTime| Generated Location: (792:22,0 [8] ) |DateTime| @@ -13,6 +18,11 @@ Source Location: (32:0,32 [23] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1334:39,0 [23] ) |Array.Empty()| +Source Location: (59:0,59 [6] x:\dir\subdir\Test\TestComponent.cshtml) +|Column| +Generated Location: (1610:46,54 [6] ) +|Column| + Source Location: (73:0,73 [19] x:\dir\subdir\Test\TestComponent.cshtml) |System.TimeZoneInfo| Generated Location: (1701:49,0 [19] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericArgumentNested/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericArgumentNested/TestComponent.mappings.txt index fb2c73260a9..27d0635870d 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericArgumentNested/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericArgumentNested/TestComponent.mappings.txt @@ -3,8 +3,18 @@ Generated Location: (850:23,0 [24] ) |() => new List()| +Source Location: (1:0,1 [4] x:\dir\subdir\Test\TestComponent.cshtml) +|Grid| +Generated Location: (1881:46,45 [4] ) +|Grid| + Source Location: (6:0,6 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Data| Generated Location: (2056:50,0 [4] ) |Data| +Source Location: (48:1,5 [10] x:\dir\subdir\Test\TestComponent.cshtml) +|GridColumn| +Generated Location: (2802:66,45 [10] ) +|GridColumn| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericArgumentNested_Dictionary/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericArgumentNested_Dictionary/TestComponent.mappings.txt index 610bc45b6fd..46df2b97d08 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericArgumentNested_Dictionary/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericArgumentNested_Dictionary/TestComponent.mappings.txt @@ -3,8 +3,18 @@ Generated Location: (850:23,0 [33] ) |() => new Dictionary()| +Source Location: (1:0,1 [4] x:\dir\subdir\Test\TestComponent.cshtml) +|Grid| +Generated Location: (1907:46,45 [4] ) +|Grid| + Source Location: (6:0,6 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Data| Generated Location: (2082:50,0 [4] ) |Data| +Source Location: (57:1,5 [10] x:\dir\subdir\Test\TestComponent.cshtml) +|GridColumn| +Generated Location: (2879:66,45 [10] ) +|GridColumn| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericArgumentNested_Dictionary_02/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericArgumentNested_Dictionary_02/TestComponent.mappings.txt index 3059d1b3ceb..18b913f512e 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericArgumentNested_Dictionary_02/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericArgumentNested_Dictionary_02/TestComponent.mappings.txt @@ -3,8 +3,18 @@ Generated Location: (850:23,0 [33] ) |() => new Dictionary()| +Source Location: (1:0,1 [4] x:\dir\subdir\Test\TestComponent.cshtml) +|Grid| +Generated Location: (1912:46,45 [4] ) +|Grid| + Source Location: (6:0,6 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Data| Generated Location: (2087:50,0 [4] ) |Data| +Source Location: (57:1,5 [10] x:\dir\subdir\Test\TestComponent.cshtml) +|GridColumn| +Generated Location: (2899:66,45 [10] ) +|GridColumn| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericArgumentNested_Dictionary_03/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericArgumentNested_Dictionary_03/TestComponent.mappings.txt index d7d695c3c25..cef8fc47b48 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericArgumentNested_Dictionary_03/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericArgumentNested_Dictionary_03/TestComponent.mappings.txt @@ -3,8 +3,18 @@ Generated Location: (850:23,0 [27] ) |new Dictionary()| +Source Location: (1:0,1 [4] x:\dir\subdir\Test\TestComponent.cshtml) +|Grid| +Generated Location: (1880:46,45 [4] ) +|Grid| + Source Location: (6:0,6 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Data| Generated Location: (2055:50,0 [4] ) |Data| +Source Location: (51:1,5 [10] x:\dir\subdir\Test\TestComponent.cshtml) +|GridColumn| +Generated Location: (2789:66,45 [10] ) +|GridColumn| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericArgumentNested_Dictionary_Dynamic/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericArgumentNested_Dictionary_Dynamic/TestComponent.mappings.txt index 843b5a3441d..ec549ee1b8e 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericArgumentNested_Dictionary_Dynamic/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericArgumentNested_Dictionary_Dynamic/TestComponent.mappings.txt @@ -3,8 +3,18 @@ Generated Location: (850:23,0 [33] ) |new Dictionary()| +Source Location: (1:0,1 [4] x:\dir\subdir\Test\TestComponent.cshtml) +|Grid| +Generated Location: (1884:46,45 [4] ) +|Grid| + Source Location: (6:0,6 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Data| Generated Location: (2059:50,0 [4] ) |Data| +Source Location: (57:1,5 [10] x:\dir\subdir\Test\TestComponent.cshtml) +|GridColumn| +Generated Location: (2787:66,45 [10] ) +|GridColumn| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericChildContent/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericChildContent/TestComponent.mappings.txt index a5c61c26647..f9be09194e5 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericChildContent/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericChildContent/TestComponent.mappings.txt @@ -8,8 +8,18 @@ Source Location: (50:0,50 [12] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1403:33,25 [12] ) |context.Year| +Source Location: (1:0,1 [4] x:\dir\subdir\Test\TestComponent.cshtml) +|Grid| +Generated Location: (2160:56,45 [4] ) +|Grid| + Source Location: (6:0,6 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Items| Generated Location: (2343:60,0 [5] ) |Items| +Source Location: (42:0,42 [6] x:\dir\subdir\Test\TestComponent.cshtml) +|Column| +Generated Location: (3146:76,45 [6] ) +|Column| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericLambda/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericLambda/TestComponent.mappings.txt index 5c8e99104a8..732b05d7ef8 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericLambda/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_GenericLambda/TestComponent.mappings.txt @@ -8,11 +8,21 @@ Source Location: (63:0,63 [11] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1345:33,0 [11] ) |x => x.Year| +Source Location: (1:0,1 [4] x:\dir\subdir\Test\TestComponent.cshtml) +|Grid| +Generated Location: (2050:54,45 [4] ) +|Grid| + Source Location: (6:0,6 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Items| Generated Location: (2233:58,0 [5] ) |Items| +Source Location: (42:0,42 [6] x:\dir\subdir\Test\TestComponent.cshtml) +|Column| +Generated Location: (3019:74,45 [6] ) +|Column| + Source Location: (49:0,49 [10] x:\dir\subdir\Test\TestComponent.cshtml) |SomeLambda| Generated Location: (3225:78,0 [10] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Inferred_MultipleConstraints/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Inferred_MultipleConstraints/TestComponent.mappings.txt index 55aade47d69..d8aa127d667 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Inferred_MultipleConstraints/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Inferred_MultipleConstraints/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [15] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [4] x:\dir\subdir\Test\TestComponent.cshtml) +|Grid| +Generated Location: (703:19,49 [4] ) +|Grid| + +Source Location: (13:0,13 [15] x:\dir\subdir\Test\TestComponent.cshtml) |WeatherForecast| Generated Location: (792:22,0 [15] ) |WeatherForecast| @@ -8,6 +13,11 @@ Source Location: (39:0,39 [30] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1019:31,0 [30] ) |Array.Empty()| +Source Location: (106:2,9 [6] x:\dir\subdir\Test\TestComponent.cshtml) +|Column| +Generated Location: (2082:54,45 [6] ) +|Column| + Source Location: (126:2,29 [9] x:\dir\subdir\Test\TestComponent.cshtml) |FieldName| Generated Location: (2337:59,0 [9] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Inferred_MultipleConstraints_ClassesAndInterfaces/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Inferred_MultipleConstraints_ClassesAndInterfaces/TestComponent.mappings.txt index 7c0ad4cc7f7..f029be6bc40 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Inferred_MultipleConstraints_ClassesAndInterfaces/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Inferred_MultipleConstraints_ClassesAndInterfaces/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (372:12,0 [13] ) |using Models;| +Source Location: (19:2,1 [4] x:\dir\subdir\Test\TestComponent.cshtml) +|Grid| +Generated Location: (820:24,49 [4] ) +|Grid| + Source Location: (31:2,13 [15] x:\dir\subdir\Test\TestComponent.cshtml) |WeatherForecast| Generated Location: (909:27,0 [15] ) @@ -13,6 +18,11 @@ Source Location: (57:2,39 [30] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1136:36,0 [30] ) |Array.Empty()| +Source Location: (124:4,9 [6] x:\dir\subdir\Test\TestComponent.cshtml) +|Column| +Generated Location: (2224:59,45 [6] ) +|Column| + Source Location: (144:4,29 [9] x:\dir\subdir\Test\TestComponent.cshtml) |FieldName| Generated Location: (2479:64,0 [9] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Inferred_MultipleConstraints_GenericClassConstraints/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Inferred_MultipleConstraints_GenericClassConstraints/TestComponent.mappings.txt index f64f98645ff..3644c99c8e8 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Inferred_MultipleConstraints_GenericClassConstraints/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Inferred_MultipleConstraints_GenericClassConstraints/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (372:12,0 [13] ) |using Models;| +Source Location: (17:1,1 [4] x:\dir\subdir\Test\TestComponent.cshtml) +|Grid| +Generated Location: (820:24,49 [4] ) +|Grid| + Source Location: (29:1,13 [15] x:\dir\subdir\Test\TestComponent.cshtml) |WeatherForecast| Generated Location: (909:27,0 [15] ) @@ -13,6 +18,11 @@ Source Location: (55:1,39 [30] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1136:36,0 [30] ) |Array.Empty()| +Source Location: (122:3,9 [6] x:\dir\subdir\Test\TestComponent.cshtml) +|Column| +Generated Location: (2240:59,45 [6] ) +|Column| + Source Location: (142:3,29 [9] x:\dir\subdir\Test\TestComponent.cshtml) |FieldName| Generated Location: (2495:64,0 [9] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Inferred_WithConstraints/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Inferred_WithConstraints/TestComponent.mappings.txt index cdbe8392a5c..38ce05e0966 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Inferred_WithConstraints/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Inferred_WithConstraints/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [15] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [4] x:\dir\subdir\Test\TestComponent.cshtml) +|Grid| +Generated Location: (703:19,49 [4] ) +|Grid| + +Source Location: (13:0,13 [15] x:\dir\subdir\Test\TestComponent.cshtml) |WeatherForecast| Generated Location: (792:22,0 [15] ) |WeatherForecast| @@ -8,6 +13,11 @@ Source Location: (39:0,39 [30] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1019:31,0 [30] ) |Array.Empty()| +Source Location: (106:2,9 [6] x:\dir\subdir\Test\TestComponent.cshtml) +|Column| +Generated Location: (2075:54,45 [6] ) +|Column| + Source Location: (126:2,29 [9] x:\dir\subdir\Test\TestComponent.cshtml) |FieldName| Generated Location: (2330:59,0 [9] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Multilayer/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Multilayer/TestComponent.mappings.txt index 7b46f15e11a..783c6f51901 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Multilayer/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Multilayer/TestComponent.mappings.txt @@ -3,8 +3,23 @@ Generated Location: (854:23,0 [23] ) |Array.Empty()| +Source Location: (46:0,46 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|Passthrough| +Generated Location: (1195:30,58 [11] ) +|Passthrough| + +Source Location: (1:0,1 [8] x:\dir\subdir\Test\TestComponent.cshtml) +|Ancestor| +Generated Location: (2206:51,45 [8] ) +|Ancestor| + Source Location: (10:0,10 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Items| Generated Location: (2398:55,0 [5] ) |Items| +Source Location: (59:0,59 [5] x:\dir\subdir\Test\TestComponent.cshtml) +|Child| +Generated Location: (3122:71,45 [5] ) +|Child| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_MultipleTypes/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_MultipleTypes/TestComponent.mappings.txt index cc45c286efa..9127561ce93 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_MultipleTypes/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_MultipleTypes/TestComponent.mappings.txt @@ -13,6 +13,11 @@ Source Location: (133:1,29 [23] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1680:41,0 [23] ) |new[] { 'a', 'b', 'c' }| +Source Location: (1:0,1 [6] x:\dir\subdir\Test\TestComponent.cshtml) +|Parent| +Generated Location: (2503:63,45 [6] ) +|Parent| + Source Location: (8:0,8 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Data| Generated Location: (2720:67,0 [4] ) @@ -23,6 +28,11 @@ Source Location: (75:0,75 [5] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (2978:76,0 [5] ) |Other| +Source Location: (109:1,5 [5] x:\dir\subdir\Test\TestComponent.cshtml) +|Child| +Generated Location: (4012:93,45 [5] ) +|Child| + Source Location: (115:1,11 [14] x:\dir\subdir\Test\TestComponent.cshtml) |ChildOnlyItems| Generated Location: (4252:97,0 [14] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_NotCascaded_CreatesError/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_NotCascaded_CreatesError/TestComponent.mappings.txt index 6e56cf0909c..351f390ddc5 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_NotCascaded_CreatesError/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_NotCascaded_CreatesError/TestComponent.mappings.txt @@ -3,8 +3,18 @@ Generated Location: (830:22,0 [23] ) |Array.Empty()| +Source Location: (1:0,1 [4] x:\dir\subdir\Test\TestComponent.cshtml) +|Grid| +Generated Location: (1480:41,45 [4] ) +|Grid| + Source Location: (6:0,6 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Items| Generated Location: (1663:45,0 [5] ) |Items| +Source Location: (42:0,42 [6] x:\dir\subdir\Test\TestComponent.cshtml) +|Column| +Generated Location: (2057:56,45 [6] ) +|Column| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_NotCascaded_Explicit/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_NotCascaded_Explicit/TestComponent.mappings.txt index d19c84ee2e3..42bedd05315 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_NotCascaded_Explicit/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_NotCascaded_Explicit/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [8] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [4] x:\dir\subdir\Test\TestComponent.cshtml) +|Grid| +Generated Location: (703:19,49 [4] ) +|Grid| + +Source Location: (13:0,13 [8] x:\dir\subdir\Test\TestComponent.cshtml) |DateTime| Generated Location: (792:22,0 [8] ) |DateTime| @@ -13,3 +18,8 @@ Source Location: (32:0,32 [23] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1334:39,0 [23] ) |Array.Empty()| +Source Location: (59:0,59 [6] x:\dir\subdir\Test\TestComponent.cshtml) +|Column| +Generated Location: (1990:60,45 [6] ) +|Column| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_NotCascaded_Inferred/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_NotCascaded_Inferred/TestComponent.mappings.txt index 07e6f873093..bbfde11c413 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_NotCascaded_Inferred/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_NotCascaded_Inferred/TestComponent.mappings.txt @@ -3,8 +3,23 @@ Generated Location: (850:23,0 [23] ) |Array.Empty()| +Source Location: (1:0,1 [4] x:\dir\subdir\Test\TestComponent.cshtml) +|Grid| +Generated Location: (2009:47,45 [4] ) +|Grid| + Source Location: (6:0,6 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Items| Generated Location: (2192:51,0 [5] ) |Items| +Source Location: (42:0,42 [6] x:\dir\subdir\Test\TestComponent.cshtml) +|Column| +Generated Location: (2913:67,45 [6] ) +|Column| + +Source Location: (52:0,52 [6] x:\dir\subdir\Test\TestComponent.cshtml) +|Column| +Generated Location: (3248:72,45 [6] ) +|Column| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Override/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Override/TestComponent.mappings.txt index a64b450019f..6d362ba1ec1 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Override/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Override/TestComponent.mappings.txt @@ -8,11 +8,21 @@ Source Location: (66:0,66 [13] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1316:33,0 [13] ) |"Some string"| +Source Location: (1:0,1 [4] x:\dir\subdir\Test\TestComponent.cshtml) +|Grid| +Generated Location: (2023:54,45 [4] ) +|Grid| + Source Location: (6:0,6 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Items| Generated Location: (2206:58,0 [5] ) |Items| +Source Location: (42:0,42 [6] x:\dir\subdir\Test\TestComponent.cshtml) +|Column| +Generated Location: (2882:74,45 [6] ) +|Column| + Source Location: (49:0,49 [13] x:\dir\subdir\Test\TestComponent.cshtml) |OverrideParam| Generated Location: (3070:78,0 [13] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Override_Multilayer/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Override_Multilayer/TestComponent.mappings.txt index 8d731b4cf42..f410d247b61 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Override_Multilayer/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Override_Multilayer/TestComponent.mappings.txt @@ -8,13 +8,38 @@ Source Location: (54:1,21 [37] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1342:34,0 [37] ) |System.Threading.Thread.CurrentThread| +Source Location: (1:0,1 [8] x:\dir\subdir\Test\TestComponent.cshtml) +|TreeNode| +Generated Location: (4002:78,45 [8] ) +|TreeNode| + Source Location: (10:0,10 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Item| Generated Location: (4194:82,0 [4] ) |Item| +Source Location: (38:1,5 [8] x:\dir\subdir\Test\TestComponent.cshtml) +|TreeNode| +Generated Location: (4854:98,45 [8] ) +|TreeNode| + Source Location: (47:1,14 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Item| Generated Location: (5046:102,0 [4] ) |Item| +Source Location: (104:2,9 [8] x:\dir\subdir\Test\TestComponent.cshtml) +|TreeNode| +Generated Location: (5703:118,45 [8] ) +|TreeNode| + +Source Location: (128:3,13 [8] x:\dir\subdir\Test\TestComponent.cshtml) +|TreeNode| +Generated Location: (6268:129,45 [8] ) +|TreeNode| + +Source Location: (184:6,5 [8] x:\dir\subdir\Test\TestComponent.cshtml) +|TreeNode| +Generated Location: (6759:139,45 [8] ) +|TreeNode| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_ParameterInNamespace/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_ParameterInNamespace/TestComponent.mappings.txt index d77abcf4c27..83da3aa09a3 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_ParameterInNamespace/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_ParameterInNamespace/TestComponent.mappings.txt @@ -8,8 +8,18 @@ Source Location: (59:2,28 [21] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1019:30,0 [21] ) |new MyClass()| +Source Location: (32:2,1 [15] x:\dir\subdir\Test\TestComponent.cshtml) +|ParentComponent| +Generated Location: (2082:53,57 [15] ) +|ParentComponent| + Source Location: (48:2,17 [9] x:\dir\subdir\Test\TestComponent.cshtml) |Parameter| Generated Location: (2292:57,0 [9] ) |Parameter| +Source Location: (89:3,5 [14] x:\dir\subdir\Test\TestComponent.cshtml) +|ChildComponent| +Generated Location: (2953:73,57 [14] ) +|ChildComponent| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Partial_CreatesError/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Partial_CreatesError/TestComponent.mappings.txt index aa194e64609..dc35de0ad88 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Partial_CreatesError/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Partial_CreatesError/TestComponent.mappings.txt @@ -3,6 +3,16 @@ Generated Location: (850:23,0 [23] ) |Array.Empty()| +Source Location: (42:0,42 [6] x:\dir\subdir\Test\TestComponent.cshtml) +|Column| +Generated Location: (1187:30,58 [6] ) +|Column| + +Source Location: (1:0,1 [4] x:\dir\subdir\Test\TestComponent.cshtml) +|Grid| +Generated Location: (1868:47,45 [4] ) +|Grid| + Source Location: (6:0,6 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Items| Generated Location: (2051:51,0 [5] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Tuple/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Tuple/TestComponent.mappings.txt index 08399705f57..cead203068d 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Tuple/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_Tuple/TestComponent.mappings.txt @@ -3,8 +3,18 @@ Generated Location: (861:23,0 [6] ) |(1, 2)| +Source Location: (1:0,1 [15] x:\dir\subdir\Test\TestComponent.cshtml) +|ParentComponent| +Generated Location: (1843:46,45 [15] ) +|ParentComponent| + Source Location: (17:0,17 [9] x:\dir\subdir\Test\TestComponent.cshtml) |Parameter| Generated Location: (2041:50,0 [9] ) |Parameter| +Source Location: (43:1,5 [14] x:\dir\subdir\Test\TestComponent.cshtml) +|ChildComponent| +Generated Location: (2636:66,45 [14] ) +|ChildComponent| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_WithSplatAndKey/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_WithSplatAndKey/TestComponent.mappings.txt index 70722389f90..40d734f0bf8 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_WithSplatAndKey/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_WithSplatAndKey/TestComponent.mappings.txt @@ -23,8 +23,18 @@ Source Location: (78:1,13 [9] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1940:60,0 [9] ) |parentKey| +Source Location: (66:1,1 [4] x:\dir\subdir\Test\TestComponent.cshtml) +|Grid| +Generated Location: (2629:80,45 [4] ) +|Grid| + Source Location: (89:1,24 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Items| Generated Location: (2813:84,0 [5] ) |Items| +Source Location: (131:2,5 [6] x:\dir\subdir\Test\TestComponent.cshtml) +|Column| +Generated Location: (3680:101,45 [6] ) +|Column| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_WithUnrelatedType_CreatesError/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_WithUnrelatedType_CreatesError/TestComponent.mappings.txt index 1d8f7b98b58..b92c0985486 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_WithUnrelatedType_CreatesError/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/CascadingGenericInference_WithUnrelatedType_CreatesError/TestComponent.mappings.txt @@ -3,8 +3,18 @@ Generated Location: (850:23,0 [29] ) |new Dictionary()| +Source Location: (1:0,1 [4] x:\dir\subdir\Test\TestComponent.cshtml) +|Grid| +Generated Location: (1776:45,45 [4] ) +|Grid| + Source Location: (6:0,6 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Items| Generated Location: (1983:49,0 [5] ) |Items| +Source Location: (48:0,48 [6] x:\dir\subdir\Test\TestComponent.cshtml) +|Column| +Generated Location: (2667:65,45 [6] ) +|Column| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_AtSpecifiedInRazorFileForTypeParameter/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_AtSpecifiedInRazorFileForTypeParameter/TestComponent.mappings.txt index 243d3b8dae8..494a820ee83 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_AtSpecifiedInRazorFileForTypeParameter/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_AtSpecifiedInRazorFileForTypeParameter/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (7:0,7 [6] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [1] x:\dir\subdir\Test\TestComponent.cshtml) +|C| +Generated Location: (703:19,49 [1] ) +|C| + +Source Location: (7:0,7 [6] x:\dir\subdir\Test\TestComponent.cshtml) |string| Generated Location: (788:22,0 [6] ) |string| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_Generic/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_Generic/TestComponent.mappings.txt index 07c1fdbe6bf..f4dce11c0c0 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_Generic/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_Generic/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) |string| Generated Location: (799:22,0 [6] ) |string| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.mappings.txt index 5c858a09195..55984cf11d4 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBind/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) |string| Generated Location: (799:22,0 [6] ) |string| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.mappings.txt index acc1e254ed8..7c6d86d92d9 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) |string| Generated Location: (799:22,0 [6] ) |string| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.mappings.txt index 271c7e1e1e2..fa9ffd7452d 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBindWeaklyTyped_TypeInference/TestComponent.mappings.txt @@ -17,6 +17,11 @@ Generated Location: (1339:40,0 [21] ) string Value; | +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1839:56,45 [11] ) +|MyComponent| + Source Location: (30:0,30 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (2037:60,0 [5] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.mappings.txt index 984477a5083..c041551ffe0 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericBind_TypeInference/TestComponent.mappings.txt @@ -17,11 +17,21 @@ Generated Location: (1409:42,0 [21] ) string Value; | +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1874:58,45 [11] ) +|MyComponent| + Source Location: (19:0,19 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Item| Generated Location: (2072:62,0 [4] ) |Item| +Source Location: (34:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (2582:73,45 [11] ) +|MyComponent| + Source Location: (52:1,19 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Item| Generated Location: (2780:77,0 [4] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.mappings.txt index dfbc7b81986..57e1c0a2d8a 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericChildContent/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) |string| Generated Location: (799:22,0 [6] ) |string| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.mappings.txt index 5bccfa66ffc..4ef70b43ef7 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericChildContent_TypeInference/TestComponent.mappings.txt @@ -8,6 +8,11 @@ Source Location: (38:1,8 [17] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1102:31,25 [17] ) |context.ToLower()| +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1740:51,45 [11] ) +|MyComponent| + Source Location: (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Item| Generated Location: (1938:55,0 [4] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.mappings.txt index 5ec19ffb6f7..5871b4ba9a5 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [6] x:\dir\subdir\Test\TestComponent.cshtml) |string| Generated Location: (799:22,0 [6] ) |string| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.mappings.txt index 83a7707fa63..880b5253f9e 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_GenericWeaklyTypedAttribute_TypeInference/TestComponent.mappings.txt @@ -8,6 +8,11 @@ Source Location: (37:0,37 [2] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (994:30,0 [2] ) |17| +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1498:47,45 [11] ) +|MyComponent| + Source Location: (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Item| Generated Location: (1696:51,0 [4] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.mappings.txt index c79b887e47f..eaf4f8e1b10 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_Generic_TypeInference/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (837:22,0 [4] ) |"hi"| +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1301:39,45 [11] ) +|MyComponent| + Source Location: (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Item| Generated Location: (1499:43,0 [4] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.mappings.txt index ab7009a89c0..d85358c8472 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_Generic_TypeInference_Multiple/TestComponent.mappings.txt @@ -13,16 +13,31 @@ Source Location: (93:2,21 [6] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1461:42,0 [6] ) |"bye!"| +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1927:59,45 [11] ) +|MyComponent| + Source Location: (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Item| Generated Location: (2125:63,0 [4] ) |Item| +Source Location: (32:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (2475:73,45 [11] ) +|MyComponent| + Source Location: (44:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Item| Generated Location: (2673:77,0 [4] ) |Item| +Source Location: (73:2,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (3023:87,45 [11] ) +|MyComponent| + Source Location: (85:2,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Item| Generated Location: (3221:91,0 [4] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_InFunctionsDirective/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_InFunctionsDirective/TestComponent.mappings.txt index 625e2ec6820..8950ff0ac52 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_InFunctionsDirective/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_InFunctionsDirective/TestComponent.mappings.txt @@ -19,6 +19,11 @@ Generated Location: (1104:36,0 [69] ) { | +Source Location: (179:7,9 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1270:44,45 [11] ) +|MyComponent| + Source Location: (195:8,0 [7] x:\dir\subdir\Test\TestComponent.cshtml) | } | diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_InLocalFunction/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_InLocalFunction/TestComponent.mappings.txt index 1171bbd3388..f2cbe145c5d 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_InLocalFunction/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_InLocalFunction/TestComponent.mappings.txt @@ -14,6 +14,11 @@ Generated Location: (887:26,0 [42] ) { | +Source Location: (105:4,9 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1030:34,49 [11] ) +|MyComponent| + Source Location: (121:5,0 [7] x:\dir\subdir\Test\TestComponent.cshtml) | } | diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.mappings.txt index fbfb0c0b8ca..fa3af8d78e4 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_MultipleGenerics/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (20:0,20 [6] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (20:0,20 [6] x:\dir\subdir\Test\TestComponent.cshtml) |string| Generated Location: (799:22,0 [6] ) |string| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.mappings.txt index 7b9d32ef19b..a1ae2475d76 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_MultipleGenerics_TypeInference/TestComponent.mappings.txt @@ -18,6 +18,11 @@ Source Location: (159:3,3 [29] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1575:50,25 [29] ) |System.Math.Max(0, item.Item)| +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (2443:70,45 [11] ) +|MyComponent| + Source Location: (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Item| Generated Location: (2659:74,0 [4] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_NonGenericParameterizedChildContent_TypeInference/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_NonGenericParameterizedChildContent_TypeInference/TestComponent.mappings.txt index 94c646bf5d7..e9b49dc360d 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_NonGenericParameterizedChildContent_TypeInference/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_NonGenericParameterizedChildContent_TypeInference/TestComponent.mappings.txt @@ -13,6 +13,11 @@ Source Location: (103:2,16 [7] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1315:40,25 [7] ) |context| +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1996:59,45 [11] ) +|MyComponent| + Source Location: (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Item| Generated Location: (2194:63,0 [4] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_Simple/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_Simple/TestComponent.mappings.txt new file mode 100644 index 00000000000..b5b73dd3642 --- /dev/null +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_Simple/TestComponent.mappings.txt @@ -0,0 +1,5 @@ +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.mappings.txt index 921c305e44c..c93f3f5e8db 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithChildContent/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [6] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [6] x:\dir\subdir\Test\TestComponent.cshtml) |MyAttr| Generated Location: (884:23,0 [6] ) |MyAttr| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.mappings.txt new file mode 100644 index 00000000000..b5b73dd3642 --- /dev/null +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithElementOnlyChildContent/TestComponent.mappings.txt @@ -0,0 +1,5 @@ +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.mappings.txt new file mode 100644 index 00000000000..b5b73dd3642 --- /dev/null +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithExplicitChildContent/TestComponent.mappings.txt @@ -0,0 +1,5 @@ +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.mappings.txt index 94c96b14b11..c5e3c529054 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithExplicitEventHandler/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) |OnClick| Generated Location: (884:23,0 [7] ) |OnClick| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.mappings.txt index f15706a320f..4ddbe517db6 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithExplicitGenericChildContent/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (28:0,28 [7] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (28:0,28 [7] x:\dir\subdir\Test\TestComponent.cshtml) |context| Generated Location: (997:23,25 [7] ) |context| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.mappings.txt index e9caeb22f6a..9843184c756 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithExplicitStringParameter/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [14] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [14] x:\dir\subdir\Test\TestComponent.cshtml) |StringProperty| Generated Location: (884:23,0 [14] ) |StringProperty| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.mappings.txt index 708adf16209..31ab17b56c8 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [6] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [6] x:\dir\subdir\Test\TestComponent.cshtml) |MyAttr| Generated Location: (884:23,0 [6] ) |MyAttr| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.mappings.txt index 72cb45e83be..97032dca2b6 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterName/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [6] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [6] x:\dir\subdir\Test\TestComponent.cshtml) |MyAttr| Generated Location: (884:23,0 [6] ) |MyAttr| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.mappings.txt index 72cb45e83be..97032dca2b6 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithGenericChildContent_SetsParameterNameOnComponent/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [6] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [6] x:\dir\subdir\Test\TestComponent.cshtml) |MyAttr| Generated Location: (884:23,0 [6] ) |MyAttr| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.mappings.txt index 9e81c5f14dc..45e49a43271 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithLambdaEventHandler/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) |OnClick| Generated Location: (884:23,0 [7] ) |OnClick| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.mappings.txt index 36f4b7660ab..547559b262a 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithNonPropertyAttributes/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (55:0,55 [13] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (55:0,55 [13] x:\dir\subdir\Test\TestComponent.cshtml) |43.ToString()| Generated Location: (947:24,0 [13] ) |43.ToString()| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.mappings.txt index dfc8c3bb5e4..e824da9d01b 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithPageDirective/TestComponent.mappings.txt @@ -8,3 +8,8 @@ Source Location: (23:1,6 [20] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (749:26,0 [20] ) |"/AnotherRoute/{id}"| +Source Location: (46:2,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1204:39,49 [11] ) +|MyComponent| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithParameters/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithParameters/TestComponent.mappings.txt index 10e3337479b..ff4c82ba82c 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithParameters/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithParameters/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (18:1,4 [11] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (18:1,4 [11] x:\dir\subdir\Test\TestComponent.cshtml) |IntProperty| Generated Location: (883:23,0 [11] ) |IntProperty| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.mappings.txt index 4fa8548079e..abbb1739e5a 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildComponent_WithWeaklyTypeEventHandler/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (372:12,0 [41] ) |using Microsoft.AspNetCore.Components.Web| +Source Location: (45:1,1 [14] x:\dir\subdir\Test\TestComponent.cshtml) +|DynamicElement| +Generated Location: (855:25,49 [14] ) +|DynamicElement| + Source Location: (70:1,26 [7] x:\dir\subdir\Test\TestComponent.cshtml) |OnClick| Generated Location: (1153:29,0 [7] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildContent_FromAnotherNamespace/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildContent_FromAnotherNamespace/TestComponent.mappings.txt index a757122c03c..beb1c79c79d 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildContent_FromAnotherNamespace/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ChildContent_FromAnotherNamespace/TestComponent.mappings.txt @@ -3,11 +3,31 @@ Generated Location: (372:12,0 [17] ) |using AnotherTest| +Source Location: (23:2,1 [15] x:\dir\subdir\Test\TestComponent.cshtml) +|HeaderComponent| +Generated Location: (831:25,49 [15] ) +|HeaderComponent| + +Source Location: (88:5,1 [15] x:\dir\subdir\Test\TestComponent.cshtml) +|FooterComponent| +Generated Location: (1208:32,56 [15] ) +|FooterComponent| + Source Location: (119:6,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) |context| Generated Location: (1502:36,25 [7] ) |context| +Source Location: (158:8,1 [20] x:\dir\subdir\Test\TestComponent.cshtml) +|Test.HeaderComponent| +Generated Location: (1750:46,44 [20] ) +|Test.HeaderComponent| + +Source Location: (233:11,1 [27] x:\dir\subdir\Test\TestComponent.cshtml) +|AnotherTest.FooterComponent| +Generated Location: (2122:53,44 [27] ) +|AnotherTest.FooterComponent| + Source Location: (276:12,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) |context| Generated Location: (2433:57,26 [7] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.mappings.txt index f1a67c9fd9f..814865744e1 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentParameter_TypeMismatch_ReportsDiagnostic/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (15:0,15 [8] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|CoolnessMeter| +Generated Location: (703:19,49 [13] ) +|CoolnessMeter| + +Source Location: (15:0,15 [8] x:\dir\subdir\Test\TestComponent.cshtml) |Coolness| Generated Location: (888:23,0 [8] ) |Coolness| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithBooleanParameter/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithBooleanParameter/TestComponent.mappings.txt index 2609d6c9677..636d5004cc7 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithBooleanParameter/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithBooleanParameter/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (812:22,24 [8] ) |TestBool| +Source Location: (31:2,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (1032:30,49 [13] ) +|TestComponent| + Source Location: (45:2,15 [8] x:\dir\subdir\Test\TestComponent.cshtml) |TestBool| Generated Location: (1217:34,0 [8] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithBooleanParameter_Minimized/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithBooleanParameter_Minimized/TestComponent.mappings.txt index d53ce74b8e7..0d60688cfcc 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithBooleanParameter_Minimized/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithBooleanParameter_Minimized/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (812:22,24 [8] ) |TestBool| +Source Location: (31:2,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (1032:30,49 [13] ) +|TestComponent| + Source Location: (45:2,15 [8] x:\dir\subdir\Test\TestComponent.cshtml) |TestBool| Generated Location: (1217:34,0 [8] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithConstrainedTypeParameters/UseTestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithConstrainedTypeParameters/UseTestComponent.mappings.txt index fc1bc97692d..5424a61b5e3 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithConstrainedTypeParameters/UseTestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithConstrainedTypeParameters/UseTestComponent.mappings.txt @@ -38,6 +38,11 @@ Generated Location: (1848:66,0 [268] ) List items = new List() { tag1, tag2 }; | +Source Location: (14:1,1 [13] x:\dir\subdir\Test\UseTestComponent.cshtml) +|TestComponent| +Generated Location: (2844:88,45 [13] ) +|TestComponent| + Source Location: (28:1,15 [5] x:\dir\subdir\Test\UseTestComponent.cshtml) |Item1| Generated Location: (3083:92,0 [5] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithConstrainedTypeParameters_WithSemicolon/UseTestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithConstrainedTypeParameters_WithSemicolon/UseTestComponent.mappings.txt index fc1bc97692d..5424a61b5e3 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithConstrainedTypeParameters_WithSemicolon/UseTestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithConstrainedTypeParameters_WithSemicolon/UseTestComponent.mappings.txt @@ -38,6 +38,11 @@ Generated Location: (1848:66,0 [268] ) List items = new List() { tag1, tag2 }; | +Source Location: (14:1,1 [13] x:\dir\subdir\Test\UseTestComponent.cshtml) +|TestComponent| +Generated Location: (2844:88,45 [13] ) +|TestComponent| + Source Location: (28:1,15 [5] x:\dir\subdir\Test\UseTestComponent.cshtml) |Item1| Generated Location: (3083:92,0 [5] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithDecimalParameter/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithDecimalParameter/TestComponent.mappings.txt index f50c7d66b95..35b3c50b2d3 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithDecimalParameter/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithDecimalParameter/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (812:22,24 [11] ) |TestDecimal| +Source Location: (34:2,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (1035:30,49 [13] ) +|TestComponent| + Source Location: (48:2,15 [11] x:\dir\subdir\Test\TestComponent.cshtml) |TestDecimal| Generated Location: (1220:34,0 [11] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithDynamicParameter/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithDynamicParameter/TestComponent.mappings.txt index 2070d090666..73ce907c6b0 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithDynamicParameter/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithDynamicParameter/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (812:22,24 [11] ) |TestDynamic| +Source Location: (34:2,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (1035:30,49 [13] ) +|TestComponent| + Source Location: (48:2,15 [11] x:\dir\subdir\Test\TestComponent.cshtml) |TestDynamic| Generated Location: (1220:34,0 [11] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithTupleParameter/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithTupleParameter/TestComponent.mappings.txt index e1507a1b339..25ba502e633 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithTupleParameter/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithTupleParameter/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (105:4,15 [6] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (91:4,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (703:19,49 [13] ) +|TestComponent| + +Source Location: (105:4,15 [6] x:\dir\subdir\Test\TestComponent.cshtml) |Gutter| Generated Location: (888:23,0 [6] ) |Gutter| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithTypeParameterArray/UseTestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithTypeParameterArray/UseTestComponent.mappings.txt index 0d3fb39c7be..ef94c92a259 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithTypeParameterArray/UseTestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithTypeParameterArray/UseTestComponent.mappings.txt @@ -38,6 +38,11 @@ Generated Location: (1866:66,0 [208] ) Tag[] items3() => new [] { tag }; | +Source Location: (14:1,1 [13] x:\dir\subdir\Test\UseTestComponent.cshtml) +|TestComponent| +Generated Location: (2678:85,45 [13] ) +|TestComponent| + Source Location: (28:1,15 [6] x:\dir\subdir\Test\UseTestComponent.cshtml) |Items1| Generated Location: (2883:89,0 [6] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithTypeParameterValueTuple/UseTestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithTypeParameterValueTuple/UseTestComponent.mappings.txt index 9cba9469875..fd60212d497 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithTypeParameterValueTuple/UseTestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithTypeParameterValueTuple/UseTestComponent.mappings.txt @@ -31,6 +31,11 @@ Generated Location: (1688:58,0 [176] ) List<(string, int)> items2 = new List<(string, int)>() { item2 }; | +Source Location: (14:1,1 [13] x:\dir\subdir\Test\UseTestComponent.cshtml) +|TestComponent| +Generated Location: (2455:76,45 [13] ) +|TestComponent| + Source Location: (28:1,15 [5] x:\dir\subdir\Test\UseTestComponent.cshtml) |Item1| Generated Location: (2678:80,0 [5] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithTypeParameterValueTupleGloballyQualifiedTypes/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithTypeParameterValueTupleGloballyQualifiedTypes/TestComponent.mappings.txt index 046a170062f..bc826356e1b 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithTypeParameterValueTupleGloballyQualifiedTypes/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithTypeParameterValueTupleGloballyQualifiedTypes/TestComponent.mappings.txt @@ -40,6 +40,11 @@ Generated Location: (1828:65,0 [169] ) public RenderFragment<(MyClass I1, MyStruct I2, TParam P)> Template { get; set; } | +Source Location: (213:11,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (2528:85,45 [13] ) +|TestComponent| + Source Location: (227:11,15 [10] x:\dir\subdir\Test\TestComponent.cshtml) |InferParam| Generated Location: (2734:89,0 [10] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithTypeParameterValueTuple_ExplicitGenericArguments/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithTypeParameterValueTuple_ExplicitGenericArguments/TestComponent.mappings.txt index 468cb65949a..ac7088fde4a 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithTypeParameterValueTuple_ExplicitGenericArguments/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ComponentWithTypeParameterValueTuple_ExplicitGenericArguments/TestComponent.mappings.txt @@ -18,6 +18,11 @@ Source Location: (61:1,18 [21] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (981:39,0 [21] ) |where TValue : struct| +Source Location: (87:3,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (1310:49,49 [13] ) +|TestComponent| + Source Location: (122:3,36 [7] x:\dir\subdir\Test\TestComponent.cshtml) |decimal| Generated Location: (1408:52,0 [7] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_ComplexContentInAttribute/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_ComplexContentInAttribute/TestComponent.mappings.txt index 511a568cbcc..7d411b28d13 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_ComplexContentInAttribute/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_ComplexContentInAttribute/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [14] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [14] x:\dir\subdir\Test\TestComponent.cshtml) |StringProperty| Generated Location: (884:23,0 [14] ) |StringProperty| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_ComplexContentInAttribute_02/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_ComplexContentInAttribute_02/TestComponent.mappings.txt index 511a568cbcc..7d411b28d13 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_ComplexContentInAttribute_02/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_ComplexContentInAttribute_02/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [14] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [14] x:\dir\subdir\Test\TestComponent.cshtml) |StringProperty| Generated Location: (884:23,0 [14] ) |StringProperty| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_ComplexContentInAttribute_03/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_ComplexContentInAttribute_03/TestComponent.mappings.txt index df7687f3876..967e77146ca 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_ComplexContentInAttribute_03/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_ComplexContentInAttribute_03/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [14] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [14] x:\dir\subdir\Test\TestComponent.cshtml) |StringProperty| Generated Location: (884:23,0 [14] ) |StringProperty| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_IgnoresStaticAndAliasUsings/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_IgnoresStaticAndAliasUsings/TestComponent.mappings.txt index bba3a009bea..8e616c9fe00 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_IgnoresStaticAndAliasUsings/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_IgnoresStaticAndAliasUsings/TestComponent.mappings.txt @@ -8,3 +8,8 @@ Source Location: (36:1,1 [17] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (515:18,0 [17] ) |using Foo = Test3| +Source Location: (56:2,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (974:31,49 [11] ) +|MyComponent| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_MatchingIsCaseSensitive/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_MatchingIsCaseSensitive/TestComponent.mappings.txt index 5b4cb92abc6..24679dad327 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_MatchingIsCaseSensitive/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_MatchingIsCaseSensitive/TestComponent.mappings.txt @@ -1,4 +1,14 @@ -Source Location: (47:2,13 [11] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (35:2,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (894:22,49 [11] ) +|MyComponent| + +Source Location: (47:2,13 [11] x:\dir\subdir\Test\TestComponent.cshtml) |intproperty| Generated Location: (1075:26,0 [11] ) |IntProperty| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_MultipleComponentsDifferByCase/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_MultipleComponentsDifferByCase/TestComponent.mappings.txt index 7a1049b1e95..6474bec48a2 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_MultipleComponentsDifferByCase/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_MultipleComponentsDifferByCase/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml) |IntProperty| Generated Location: (884:23,0 [11] ) |IntProperty| @@ -8,6 +13,11 @@ Source Location: (26:0,26 [1] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1150:31,0 [1] ) |1| +Source Location: (34:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|Mycomponent| +Generated Location: (1362:39,49 [11] ) +|Mycomponent| + Source Location: (46:1,13 [11] x:\dir\subdir\Test\TestComponent.cshtml) |IntProperty| Generated Location: (1543:43,0 [11] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_NamespaceDirective_InImports/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_NamespaceDirective_InImports/TestComponent.mappings.txt new file mode 100644 index 00000000000..0c98a8ce048 --- /dev/null +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_NamespaceDirective_InImports/TestComponent.mappings.txt @@ -0,0 +1,5 @@ +Source Location: (1:0,1 [7] x:\dir\subdir\Test\TestComponent.cshtml) +|Counter| +Generated Location: (1089:38,53 [7] ) +|Counter| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_NamespaceDirective_OverrideImports/Counter.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_NamespaceDirective_OverrideImports/Counter.mappings.txt index d297d378f91..15c3efb55bf 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_NamespaceDirective_OverrideImports/Counter.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_NamespaceDirective_OverrideImports/Counter.mappings.txt @@ -3,3 +3,8 @@ Generated Location: (145:5,0 [8] ) |New.Test| +Source Location: (22:1,1 [8] x:\dir\subdir\Test\Pages/Counter.razor) +|Counter2| +Generated Location: (1088:38,53 [8] ) +|Counter2| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_TextTagsAreNotRendered/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_TextTagsAreNotRendered/TestComponent.mappings.txt index 244c54efd3f..1e29d7d8dbd 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_TextTagsAreNotRendered/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_TextTagsAreNotRendered/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (14:1,1 [18] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [7] x:\dir\subdir\Test\TestComponent.cshtml) +|Counter| +Generated Location: (703:19,49 [7] ) +|Counter| + +Source Location: (14:1,1 [18] x:\dir\subdir\Test\TestComponent.cshtml) |if (true) { | diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithCssScope/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithCssScope/TestComponent.mappings.txt index 513c60ea68a..1753287e41b 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithCssScope/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithCssScope/TestComponent.mappings.txt @@ -13,6 +13,11 @@ Source Location: (192:3,61 [3] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1332:37,0 [3] ) |123| +Source Location: (293:6,5 [18] x:\dir\subdir\Test\TestComponent.cshtml) +|TemplatedComponent| +Generated Location: (1730:46,49 [18] ) +|TemplatedComponent| + Source Location: (318:6,30 [20] x:\dir\subdir\Test\TestComponent.cshtml) |myComponentReference| Generated Location: (2186:54,0 [20] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredChildContent_NoValueSpecified/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredChildContent_NoValueSpecified/TestComponent.mappings.txt new file mode 100644 index 00000000000..5c41a9922de --- /dev/null +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredChildContent_NoValueSpecified/TestComponent.mappings.txt @@ -0,0 +1,5 @@ +Source Location: (1:0,1 [39] x:\dir\subdir\Test\TestComponent.cshtml) +|ComponentWithEditorRequiredChildContent| +Generated Location: (703:19,49 [39] ) +|ComponentWithEditorRequiredChildContent| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredChildContent_ValueSpecified/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredChildContent_ValueSpecified/TestComponent.mappings.txt new file mode 100644 index 00000000000..5c41a9922de --- /dev/null +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredChildContent_ValueSpecified/TestComponent.mappings.txt @@ -0,0 +1,5 @@ +Source Location: (1:0,1 [39] x:\dir\subdir\Test\TestComponent.cshtml) +|ComponentWithEditorRequiredChildContent| +Generated Location: (703:19,49 [39] ) +|ComponentWithEditorRequiredChildContent| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredChildContent_ValueSpecifiedAsText_WithoutName/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredChildContent_ValueSpecifiedAsText_WithoutName/TestComponent.mappings.txt new file mode 100644 index 00000000000..5c41a9922de --- /dev/null +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredChildContent_ValueSpecifiedAsText_WithoutName/TestComponent.mappings.txt @@ -0,0 +1,5 @@ +Source Location: (1:0,1 [39] x:\dir\subdir\Test\TestComponent.cshtml) +|ComponentWithEditorRequiredChildContent| +Generated Location: (703:19,49 [39] ) +|ComponentWithEditorRequiredChildContent| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredChildContent_ValueSpecified_WithoutName/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredChildContent_ValueSpecified_WithoutName/TestComponent.mappings.txt new file mode 100644 index 00000000000..5c41a9922de --- /dev/null +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredChildContent_ValueSpecified_WithoutName/TestComponent.mappings.txt @@ -0,0 +1,5 @@ +Source Location: (1:0,1 [39] x:\dir\subdir\Test\TestComponent.cshtml) +|ComponentWithEditorRequiredChildContent| +Generated Location: (703:19,49 [39] ) +|ComponentWithEditorRequiredChildContent| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredNamedChildContent_NoValueSpecified/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredNamedChildContent_NoValueSpecified/TestComponent.mappings.txt new file mode 100644 index 00000000000..5c41a9922de --- /dev/null +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredNamedChildContent_NoValueSpecified/TestComponent.mappings.txt @@ -0,0 +1,5 @@ +Source Location: (1:0,1 [39] x:\dir\subdir\Test\TestComponent.cshtml) +|ComponentWithEditorRequiredChildContent| +Generated Location: (703:19,49 [39] ) +|ComponentWithEditorRequiredChildContent| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredNamedChildContent_ValueSpecified/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredNamedChildContent_ValueSpecified/TestComponent.mappings.txt new file mode 100644 index 00000000000..5c41a9922de --- /dev/null +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredNamedChildContent_ValueSpecified/TestComponent.mappings.txt @@ -0,0 +1,5 @@ +Source Location: (1:0,1 [39] x:\dir\subdir\Test\TestComponent.cshtml) +|ComponentWithEditorRequiredChildContent| +Generated Location: (703:19,49 [39] ) +|ComponentWithEditorRequiredChildContent| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredParameter_NoValueSpecified/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredParameter_NoValueSpecified/TestComponent.mappings.txt new file mode 100644 index 00000000000..d921b1ae903 --- /dev/null +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredParameter_NoValueSpecified/TestComponent.mappings.txt @@ -0,0 +1,5 @@ +Source Location: (1:0,1 [37] x:\dir\subdir\Test\TestComponent.cshtml) +|ComponentWithEditorRequiredParameters| +Generated Location: (703:19,49 [37] ) +|ComponentWithEditorRequiredParameters| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredParameter_ValueSpecified/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredParameter_ValueSpecified/TestComponent.mappings.txt index 15fec8d0b07..b7d6f4e3911 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredParameter_ValueSpecified/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredParameter_ValueSpecified/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (39:0,39 [9] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [37] x:\dir\subdir\Test\TestComponent.cshtml) +|ComponentWithEditorRequiredParameters| +Generated Location: (703:19,49 [37] ) +|ComponentWithEditorRequiredParameters| + +Source Location: (39:0,39 [9] x:\dir\subdir\Test\TestComponent.cshtml) |Property1| Generated Location: (936:23,0 [9] ) |Property1| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredParameter_ValueSpecifiedUsingBind/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredParameter_ValueSpecifiedUsingBind/TestComponent.mappings.txt index e51e016bdd3..1107f509eab 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredParameter_ValueSpecifiedUsingBind/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredParameter_ValueSpecifiedUsingBind/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (45:0,45 [9] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [37] x:\dir\subdir\Test\TestComponent.cshtml) +|ComponentWithEditorRequiredParameters| +Generated Location: (703:19,49 [37] ) +|ComponentWithEditorRequiredParameters| + +Source Location: (45:0,45 [9] x:\dir\subdir\Test\TestComponent.cshtml) |Property1| Generated Location: (936:23,0 [9] ) |Property1| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredParameter_ValuesSpecifiedUsingSplatting/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredParameter_ValuesSpecifiedUsingSplatting/TestComponent.mappings.txt index 2cf7ca3909b..310779e209e 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredParameter_ValuesSpecifiedUsingSplatting/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEditorRequiredParameter_ValuesSpecifiedUsingSplatting/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (54:0,54 [32] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [37] x:\dir\subdir\Test\TestComponent.cshtml) +|ComponentWithEditorRequiredParameters| +Generated Location: (703:19,49 [37] ) +|ComponentWithEditorRequiredParameters| + +Source Location: (54:0,54 [32] x:\dir\subdir\Test\TestComponent.cshtml) |new Dictionary()| Generated Location: (1073:23,0 [32] ) |new Dictionary()| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEscapedParameterName/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEscapedParameterName/TestComponent.mappings.txt index dce07277ced..0b8c098421d 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEscapedParameterName/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithEscapedParameterName/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [5] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [5] x:\dir\subdir\Test\TestComponent.cshtml) |class| Generated Location: (887:23,1 [5] ) |class| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithFullyQualifiedTagNames/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithFullyQualifiedTagNames/TestComponent.mappings.txt new file mode 100644 index 00000000000..70504f755f4 --- /dev/null +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithFullyQualifiedTagNames/TestComponent.mappings.txt @@ -0,0 +1,15 @@ +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (18:1,1 [16] x:\dir\subdir\Test\TestComponent.cshtml) +|Test.MyComponent| +Generated Location: (858:22,44 [16] ) +|Test.MyComponent| + +Source Location: (40:2,1 [18] x:\dir\subdir\Test\TestComponent.cshtml) +|Test2.MyComponent2| +Generated Location: (1018:25,44 [18] ) +|Test2.MyComponent2| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithImplicitLambdaEventHandler/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithImplicitLambdaEventHandler/TestComponent.mappings.txt index 0076986efef..3bf4ecd2182 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithImplicitLambdaEventHandler/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithImplicitLambdaEventHandler/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (54:2,7 [87] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (54:2,7 [87] x:\dir\subdir\Test\TestComponent.cshtml) | private int counter; private void Increment() { diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithImportsFile/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithImportsFile/TestComponent.mappings.txt new file mode 100644 index 00000000000..4d406d1fe0c --- /dev/null +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithImportsFile/TestComponent.mappings.txt @@ -0,0 +1,5 @@ +Source Location: (1:0,1 [7] x:\dir\subdir\Test\TestComponent.cshtml) +|Counter| +Generated Location: (1097:39,49 [7] ) +|Counter| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithInitOnlyParameter/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithInitOnlyParameter/TestComponent.mappings.txt index 3dd1f28e91a..b2bcb2756e2 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithInitOnlyParameter/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithInitOnlyParameter/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Prop| Generated Location: (884:23,0 [4] ) |Prop| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithKey/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithKey/TestComponent.mappings.txt index 9422bff7e9d..c2da8cd0e18 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithKey/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithKey/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (40:0,40 [12] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (40:0,40 [12] x:\dir\subdir\Test\TestComponent.cshtml) |someDate.Day| Generated Location: (980:25,0 [12] ) |someDate.Day| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithKey_WithChildContent/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithKey_WithChildContent/TestComponent.mappings.txt index 1ae220ae4b8..e1269dc4061 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithKey_WithChildContent/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithKey_WithChildContent/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [9] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [9] x:\dir\subdir\Test\TestComponent.cshtml) |123 + 456| Generated Location: (1211:29,0 [9] ) |123 + 456| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithNamespaceDirective/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithNamespaceDirective/TestComponent.mappings.txt index cb4951e79a2..ab159c49673 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithNamespaceDirective/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithNamespaceDirective/TestComponent.mappings.txt @@ -8,11 +8,21 @@ Source Location: (1:0,1 [10] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (513:19,0 [10] ) |using Test| +Source Location: (40:3,1 [15] x:\dir\subdir\Test\TestComponent.cshtml) +|HeaderComponent| +Generated Location: (965:32,49 [15] ) +|HeaderComponent| + Source Location: (56:3,17 [6] x:\dir\subdir\Test\TestComponent.cshtml) |Header| Generated Location: (1154:36,0 [6] ) |Header| +Source Location: (93:5,1 [15] x:\dir\subdir\Test\TestComponent.cshtml) +|FooterComponent| +Generated Location: (1386:44,56 [15] ) +|FooterComponent| + Source Location: (109:5,17 [6] x:\dir\subdir\Test\TestComponent.cshtml) |Footer| Generated Location: (1582:48,0 [6] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithNullableActionParameter/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithNullableActionParameter/TestComponent.mappings.txt index a09bb965918..9fd6a933430 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithNullableActionParameter/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithNullableActionParameter/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (29:0,29 [14] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [27] x:\dir\subdir\Test\TestComponent.cshtml) +|ComponentWithNullableAction| +Generated Location: (703:19,49 [27] ) +|ComponentWithNullableAction| + +Source Location: (29:0,29 [14] x:\dir\subdir\Test\TestComponent.cshtml) |NullableAction| Generated Location: (916:23,0 [14] ) |NullableAction| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithNullableRenderFragmentParameter/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithNullableRenderFragmentParameter/TestComponent.mappings.txt index 3063c1dff0d..327daa92f31 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithNullableRenderFragmentParameter/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithNullableRenderFragmentParameter/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (37:0,37 [6] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [35] x:\dir\subdir\Test\TestComponent.cshtml) +|ComponentWithNullableRenderFragment| +Generated Location: (703:19,49 [35] ) +|ComponentWithNullableRenderFragment| + +Source Location: (37:0,37 [6] x:\dir\subdir\Test\TestComponent.cshtml) |Header| Generated Location: (932:23,0 [6] ) |Header| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithRef/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithRef/TestComponent.mappings.txt index 3100cc31eec..5b24d9814fc 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithRef/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithRef/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (40:0,40 [10] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (40:0,40 [10] x:\dir\subdir\Test\TestComponent.cshtml) |myInstance| Generated Location: (1019:25,0 [10] ) |myInstance| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithRef_Nullable/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithRef_Nullable/TestComponent.mappings.txt index 45b8654223c..ba32772e929 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithRef_Nullable/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithRef_Nullable/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (21:0,21 [11] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (703:19,49 [13] ) +|TestComponent| + +Source Location: (21:0,21 [11] x:\dir\subdir\Test\TestComponent.cshtml) |myComponent| Generated Location: (875:23,0 [11] ) |myComponent| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithRef_Nullable_Generic/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithRef_Nullable_Generic/TestComponent.mappings.txt index b9847f8c6aa..c67269c3d49 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithRef_Nullable_Generic/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithRef_Nullable_Generic/TestComponent.mappings.txt @@ -19,6 +19,11 @@ Generated Location: (1257:42,0 [114] ) public void Use() { System.GC.KeepAlive(myComponent); } | +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1829:59,45 [11] ) +|MyComponent| + Source Location: (32:0,32 [11] x:\dir\subdir\Test\TestComponent.cshtml) |MyParameter| Generated Location: (2019:63,0 [11] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.mappings.txt index 38255405803..30c9f017faf 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithRef_WithChildContent/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [10] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [10] x:\dir\subdir\Test\TestComponent.cshtml) |myInstance| Generated Location: (1250:29,0 [10] ) |myInstance| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat/TestComponent.mappings.txt index 2f70475da93..6b39ed0885d 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (51:0,51 [14] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (51:0,51 [14] x:\dir\subdir\Test\TestComponent.cshtml) |someAttributes| Generated Location: (1125:24,0 [14] ) |someAttributes| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat_ExplicitExpression/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat_ExplicitExpression/TestComponent.mappings.txt index cf669038d3e..a87482e72aa 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat_ExplicitExpression/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat_ExplicitExpression/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (53:0,53 [14] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (53:0,53 [14] x:\dir\subdir\Test\TestComponent.cshtml) |someAttributes| Generated Location: (1125:24,0 [14] ) |someAttributes| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat_GenericTypeInference/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat_GenericTypeInference/TestComponent.mappings.txt index 3bd696a8af1..4984101fb2b 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat_GenericTypeInference/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat_GenericTypeInference/TestComponent.mappings.txt @@ -17,6 +17,11 @@ Generated Location: (1203:40,0 [93] ) private Dictionary someAttributes = new Dictionary(); | +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1815:56,45 [11] ) +|MyComponent| + Source Location: (13:0,13 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (2005:60,0 [5] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat_ImplicitExpression/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat_ImplicitExpression/TestComponent.mappings.txt index ba7912a32c6..df996e13067 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat_ImplicitExpression/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithSplat_ImplicitExpression/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (52:0,52 [14] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (52:0,52 [14] x:\dir\subdir\Test\TestComponent.cshtml) |someAttributes| Generated Location: (1125:24,0 [14] ) |someAttributes| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithUsingDirectives/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithUsingDirectives/TestComponent.mappings.txt index 41b92897113..1e233d56cd3 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithUsingDirectives/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithUsingDirectives/TestComponent.mappings.txt @@ -13,3 +13,13 @@ Source Location: (23:1,6 [20] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (871:32,0 [20] ) |"/AnotherRoute/{id}"| +Source Location: (60:3,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1326:45,49 [11] ) +|MyComponent| + +Source Location: (77:4,1 [12] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent2| +Generated Location: (1487:48,50 [12] ) +|MyComponent2| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithUsingDirectives_AmbiguousImport/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithUsingDirectives_AmbiguousImport/TestComponent.mappings.txt index ef93efe911a..2616ce7a396 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithUsingDirectives_AmbiguousImport/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithUsingDirectives_AmbiguousImport/TestComponent.mappings.txt @@ -8,3 +8,8 @@ Source Location: (15:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (494:18,0 [11] ) |using Test3| +Source Location: (29:2,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (947:31,49 [11] ) +|MyComponent| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithWriteOnlyParameter/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithWriteOnlyParameter/TestComponent.mappings.txt index 3dd1f28e91a..b2bcb2756e2 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithWriteOnlyParameter/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Component_WithWriteOnlyParameter/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Prop| Generated Location: (884:23,0 [4] ) |Prop| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError/TestComponent.mappings.txt index aee5de94f20..13be66a2cb8 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) |Message| Generated Location: (884:23,0 [7] ) |Message| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessage/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessage/TestComponent.mappings.txt index d1ca801dd40..a9d91666efc 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessage/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessage/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) |Message| Generated Location: (884:23,0 [7] ) |Message| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageChanged/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageChanged/TestComponent.mappings.txt index 3fb5998d483..fbe7f42e7ce 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageChanged/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageChanged/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [14] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [14] x:\dir\subdir\Test\TestComponent.cshtml) |MessageChanged| Generated Location: (884:23,0 [14] ) |MessageChanged| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageExpression/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageExpression/TestComponent.mappings.txt index 5587b5952ad..499389d9cc8 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageExpression/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_BindMessageExpression/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (38:0,38 [17] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (38:0,38 [17] x:\dir\subdir\Test\TestComponent.cshtml) |MessageExpression| Generated Location: (884:23,0 [17] ) |MessageExpression| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_Multiple/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_Multiple/TestComponent.mappings.txt index aee5de94f20..13be66a2cb8 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_Multiple/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_Multiple/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) |Message| Generated Location: (884:23,0 [7] ) |Message| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_WeaklyTyped/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_WeaklyTyped/TestComponent.mappings.txt new file mode 100644 index 00000000000..b5b73dd3642 --- /dev/null +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/DuplicateComponentParameters_IsAnError_WeaklyTyped/TestComponent.mappings.txt @@ -0,0 +1,5 @@ +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Duplicate_RenderMode/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Duplicate_RenderMode/TestComponent.mappings.txt index 93432e31893..060b9ddbd42 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Duplicate_RenderMode/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Duplicate_RenderMode/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (703:19,49 [13] ) +|TestComponent| + +Source Location: (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml) |Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer| Generated Location: (895:23,0 [64] ) |Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EmptyRootNamespace/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EmptyRootNamespace/TestComponent.mappings.txt new file mode 100644 index 00000000000..ed9d17a45bc --- /dev/null +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EmptyRootNamespace/TestComponent.mappings.txt @@ -0,0 +1,10 @@ +Source Location: (21:1,1 [10] x:\dir\subdir\Test\TestComponent.cshtml) +|Component1| +Generated Location: (751:19,44 [10] ) +|Component1| + +Source Location: (37:2,1 [17] x:\dir\subdir\Test\TestComponent.cshtml) +|Shared.Component2| +Generated Location: (905:22,44 [17] ) +|Shared.Component2| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallbackOfT_Array/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallbackOfT_Array/TestComponent.mappings.txt index f85ca7aa75c..f414f64a699 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallbackOfT_Array/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallbackOfT_Array/TestComponent.mappings.txt @@ -12,6 +12,11 @@ Generated Location: (1288:32,0 [64] ) string[] Selected { get; set; } = Array.Empty(); | +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1925:48,45 [11] ) +|MyComponent| + Source Location: (19:0,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (2123:52,0 [5] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallbackOfT_GenericComponent_ExplicitType/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallbackOfT_GenericComponent_ExplicitType/TestComponent.mappings.txt index 6d62119024d..2cf680058a8 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallbackOfT_GenericComponent_ExplicitType/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallbackOfT_GenericComponent_ExplicitType/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (16:0,16 [6] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (16:0,16 [6] x:\dir\subdir\Test\TestComponent.cshtml) |MyType| Generated Location: (799:22,0 [6] ) |MyType| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallbackOfT_GenericComponent_ExplicitType_MethodGroup/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallbackOfT_GenericComponent_ExplicitType_MethodGroup/TestComponent.mappings.txt index 15d22296209..35ea68144e1 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallbackOfT_GenericComponent_ExplicitType_MethodGroup/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallbackOfT_GenericComponent_ExplicitType_MethodGroup/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (16:0,16 [6] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (16:0,16 [6] x:\dir\subdir\Test\TestComponent.cshtml) |MyType| Generated Location: (799:22,0 [6] ) |MyType| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallbackOfT_GenericComponent_MissingTypeParameterBinding_01/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallbackOfT_GenericComponent_MissingTypeParameterBinding_01/TestComponent.mappings.txt index d2985a41102..a36d4bb0477 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallbackOfT_GenericComponent_MissingTypeParameterBinding_01/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallbackOfT_GenericComponent_MissingTypeParameterBinding_01/TestComponent.mappings.txt @@ -7,6 +7,11 @@ Generated Location: (783:23,0 [28] ) private int counter; | +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1257:39,45 [11] ) +|MyComponent| + Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) |OnClick| Generated Location: (1463:43,0 [7] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallbackOfT_GenericComponent_MissingTypeParameterBinding_02/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallbackOfT_GenericComponent_MissingTypeParameterBinding_02/TestComponent.mappings.txt index 7e5e43de5a9..5551fa69c29 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallbackOfT_GenericComponent_MissingTypeParameterBinding_02/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallbackOfT_GenericComponent_MissingTypeParameterBinding_02/TestComponent.mappings.txt @@ -7,3 +7,8 @@ Generated Location: (783:23,0 [28] ) private int counter; | +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1222:39,45 [11] ) +|MyComponent| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Explicitly/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Explicitly/TestComponent.mappings.txt index 2be87acfaf0..3e85fa5a703 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Explicitly/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Explicitly/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (372:12,0 [41] ) |using Microsoft.AspNetCore.Components.Web| +Source Location: (45:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (855:25,49 [11] ) +|MyComponent| + Source Location: (57:1,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) |OnClick| Generated Location: (1036:29,0 [7] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_Action/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_Action/TestComponent.mappings.txt index 9bfc98acdcf..7a1e2ca39d7 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_Action/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_Action/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) |OnClick| Generated Location: (884:23,0 [7] ) |OnClick| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_ActionOfT/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_ActionOfT/TestComponent.mappings.txt index c9eec819a28..da3c2994c59 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_ActionOfT/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_ActionOfT/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (372:12,0 [41] ) |using Microsoft.AspNetCore.Components.Web| +Source Location: (45:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (855:25,49 [11] ) +|MyComponent| + Source Location: (57:1,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) |OnClick| Generated Location: (1036:29,0 [7] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTTask/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTTask/TestComponent.mappings.txt index 8d6ae294b6b..663ff360122 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTTask/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTTask/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (372:12,0 [41] ) |using Microsoft.AspNetCore.Components.Web| +Source Location: (45:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (855:25,49 [11] ) +|MyComponent| + Source Location: (57:1,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) |OnClick| Generated Location: (1036:29,0 [7] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTask/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTask/TestComponent.mappings.txt index 7108b3258d7..cf2be9d0007 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTask/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_FuncOfTask/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) |OnClick| Generated Location: (884:23,0 [7] ) |OnClick| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_TypeMismatch/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_TypeMismatch/TestComponent.mappings.txt index 21307e42d2b..b225e2aa1b6 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_TypeMismatch/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallbackOfT_Implicitly_TypeMismatch/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (372:12,0 [41] ) |using Microsoft.AspNetCore.Components.Web| +Source Location: (45:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (855:25,49 [11] ) +|MyComponent| + Source Location: (57:1,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) |OnClick| Generated Location: (1036:29,0 [7] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Explicitly/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Explicitly/TestComponent.mappings.txt index cafda797e6a..b3f76ae9a77 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Explicitly/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Explicitly/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) |OnClick| Generated Location: (884:23,0 [7] ) |OnClick| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_Action/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_Action/TestComponent.mappings.txt index 4d3475d6d60..867a2aef578 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_Action/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_Action/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) |OnClick| Generated Location: (884:23,0 [7] ) |OnClick| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_ActionOfObject/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_ActionOfObject/TestComponent.mappings.txt index f9a8b09c611..42cf1839b53 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_ActionOfObject/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_ActionOfObject/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) |OnClick| Generated Location: (884:23,0 [7] ) |OnClick| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfTask/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfTask/TestComponent.mappings.txt index 9a1fbff6cf0..c62a9daebc5 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfTask/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfTask/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) |OnClick| Generated Location: (884:23,0 [7] ) |OnClick| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfobjectTask/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfobjectTask/TestComponent.mappings.txt index 81c6fcdabc9..5b85c0bb504 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfobjectTask/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/EventCallback_CanPassEventCallback_Implicitly_FuncOfobjectTask/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [7] x:\dir\subdir\Test\TestComponent.cshtml) |OnClick| Generated Location: (884:23,0 [7] ) |OnClick| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/FormName_Component/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/FormName_Component/TestComponent.mappings.txt index 83be993fd5e..eb4cad7e7b3 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/FormName_Component/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/FormName_Component/TestComponent.mappings.txt @@ -3,11 +3,21 @@ Generated Location: (372:12,0 [41] ) |using Microsoft.AspNetCore.Components.Web| +Source Location: (45:1,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (855:25,49 [13] ) +|TestComponent| + Source Location: (84:1,40 [9] x:\dir\subdir\Test\TestComponent.cshtml) |() => { }| Generated Location: (1186:30,0 [9] ) |() => { }| +Source Location: (131:2,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (1490:39,49 [13] ) +|TestComponent| + Source Location: (170:2,40 [9] x:\dir\subdir\Test\TestComponent.cshtml) |() => { }| Generated Location: (1821:44,0 [9] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/FormName_Component_Generic/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/FormName_Component_Generic/TestComponent.mappings.txt index da9f4220c29..488e3caa229 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/FormName_Component_Generic/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/FormName_Component_Generic/TestComponent.mappings.txt @@ -42,11 +42,21 @@ Generated Location: (2388:80,0 [52] ) [Parameter] public T Parameter { get; set; } | +Source Location: (59:2,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (2955:96,45 [13] ) +|TestComponent| + Source Location: (140:2,82 [9] x:\dir\subdir\Test\TestComponent.cshtml) |Parameter| Generated Location: (3358:103,0 [9] ) |Parameter| +Source Location: (159:3,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (3833:113,45 [13] ) +|TestComponent| + Source Location: (245:3,87 [9] x:\dir\subdir\Test\TestComponent.cshtml) |Parameter| Generated Location: (4236:120,0 [9] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/FormName_Component_Generic_RazorLangVersion7/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/FormName_Component_Generic_RazorLangVersion7/TestComponent.mappings.txt index 10733e3ec4b..2830d00cded 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/FormName_Component_Generic_RazorLangVersion7/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/FormName_Component_Generic_RazorLangVersion7/TestComponent.mappings.txt @@ -42,11 +42,21 @@ Generated Location: (2388:80,0 [52] ) [Parameter] public T Parameter { get; set; } | +Source Location: (59:2,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (2955:96,45 [13] ) +|TestComponent| + Source Location: (140:2,82 [9] x:\dir\subdir\Test\TestComponent.cshtml) |Parameter| Generated Location: (3346:103,0 [9] ) |Parameter| +Source Location: (159:3,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (3829:113,45 [13] ) +|TestComponent| + Source Location: (245:3,87 [9] x:\dir\subdir\Test\TestComponent.cshtml) |Parameter| Generated Location: (4220:120,0 [9] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/FormName_Component_RazorLangVersion7/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/FormName_Component_RazorLangVersion7/TestComponent.mappings.txt index 665e504a344..98f933310d9 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/FormName_Component_RazorLangVersion7/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/FormName_Component_RazorLangVersion7/TestComponent.mappings.txt @@ -3,11 +3,21 @@ Generated Location: (372:12,0 [41] ) |using Microsoft.AspNetCore.Components.Web| +Source Location: (45:1,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (855:25,49 [13] ) +|TestComponent| + Source Location: (84:1,40 [9] x:\dir\subdir\Test\TestComponent.cshtml) |() => { }| Generated Location: (1187:30,0 [9] ) |() => { }| +Source Location: (131:2,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (1493:39,49 [13] ) +|TestComponent| + Source Location: (170:2,40 [9] x:\dir\subdir\Test\TestComponent.cshtml) |() => { }| Generated Location: (1825:44,0 [9] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/FormName_Nested/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/FormName_Nested/TestComponent.mappings.txt index 25ed0987d2e..c872f1c9540 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/FormName_Nested/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/FormName_Nested/TestComponent.mappings.txt @@ -8,11 +8,21 @@ Source Location: (75:1,31 [9] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1146:30,0 [9] ) |() => { }| +Source Location: (110:2,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (1555:40,49 [13] ) +|TestComponent| + Source Location: (161:3,35 [9] x:\dir\subdir\Test\TestComponent.cshtml) |() => { }| Generated Location: (2060:47,0 [9] ) |() => { }| +Source Location: (200:4,5 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (2507:57,54 [13] ) +|TestComponent| + Source Location: (255:5,39 [9] x:\dir\subdir\Test\TestComponent.cshtml) |() => { }| Generated Location: (3034:64,0 [9] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericBindToGenericComponent_ExplicitType_WithGetSet_Action/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericBindToGenericComponent_ExplicitType_WithGetSet_Action/TestComponent.mappings.txt index b4173905812..1be7d59af40 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericBindToGenericComponent_ExplicitType_WithGetSet_Action/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericBindToGenericComponent_ExplicitType_WithGetSet_Action/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (474:16,0 [6] ) |TParam| +Source Location: (20:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (851:27,49 [11] ) +|MyComponent| + Source Location: (40:1,21 [6] x:\dir\subdir\Test\TestComponent.cshtml) |TParam| Generated Location: (947:30,0 [6] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericBindToGenericComponent_ExplicitType_WithGetSet_EventCallback/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericBindToGenericComponent_ExplicitType_WithGetSet_EventCallback/TestComponent.mappings.txt index eb30bcbc7e3..f93912f9c41 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericBindToGenericComponent_ExplicitType_WithGetSet_EventCallback/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericBindToGenericComponent_ExplicitType_WithGetSet_EventCallback/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (474:16,0 [6] ) |TParam| +Source Location: (20:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (851:27,49 [11] ) +|MyComponent| + Source Location: (40:1,21 [6] x:\dir\subdir\Test\TestComponent.cshtml) |TParam| Generated Location: (947:30,0 [6] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericBindToGenericComponent_ExplicitType_WithGetSet_Function/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericBindToGenericComponent_ExplicitType_WithGetSet_Function/TestComponent.mappings.txt index ce35563e522..2793f3737ee 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericBindToGenericComponent_ExplicitType_WithGetSet_Function/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericBindToGenericComponent_ExplicitType_WithGetSet_Function/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (474:16,0 [6] ) |TParam| +Source Location: (20:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (851:27,49 [11] ) +|MyComponent| + Source Location: (40:1,21 [6] x:\dir\subdir\Test\TestComponent.cshtml) |TParam| Generated Location: (947:30,0 [6] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentBindToGenericComponent_ExplicitType_WithAfter_Action/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentBindToGenericComponent_ExplicitType_WithAfter_Action/TestComponent.mappings.txt index ce392ded33a..0bc75f02517 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentBindToGenericComponent_ExplicitType_WithAfter_Action/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentBindToGenericComponent_ExplicitType_WithAfter_Action/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (474:16,0 [6] ) |TParam| +Source Location: (20:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (851:27,49 [11] ) +|MyComponent| + Source Location: (40:1,21 [6] x:\dir\subdir\Test\TestComponent.cshtml) |TParam| Generated Location: (947:30,0 [6] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithAfter_Action/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithAfter_Action/TestComponent.mappings.txt index 4fbc1b895f8..9c35a816e3b 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithAfter_Action/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithAfter_Action/TestComponent.mappings.txt @@ -26,6 +26,11 @@ Generated Location: (1491:48,0 [79] ) public void Update() { } | +Source Location: (20:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (2017:66,45 [11] ) +|MyComponent| + Source Location: (38:1,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (2217:70,0 [5] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithGetSet_Action/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithGetSet_Action/TestComponent.mappings.txt index 6886fc84d8c..55dd47414da 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithGetSet_Action/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithGetSet_Action/TestComponent.mappings.txt @@ -26,6 +26,11 @@ Generated Location: (1553:48,0 [128] ) public void UpdateValue(TParam value) { ParentValue = value; } | +Source Location: (20:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (2160:66,45 [11] ) +|MyComponent| + Source Location: (38:1,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (2360:70,0 [5] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithGetSet_EventCallback/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithGetSet_EventCallback/TestComponent.mappings.txt index d08c43f4646..eb2ee6aa5b0 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithGetSet_EventCallback/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithGetSet_EventCallback/TestComponent.mappings.txt @@ -24,6 +24,11 @@ Generated Location: (1553:48,0 [118] ) public EventCallback UpdateValue { get; set; } | +Source Location: (20:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (2150:65,45 [11] ) +|MyComponent| + Source Location: (38:1,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (2350:69,0 [5] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithGetSet_Function/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithGetSet_Function/TestComponent.mappings.txt index e0ca795cbd6..d6b33596834 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithGetSet_Function/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentBindToGenericComponent_InferredType_WithGetSet_Function/TestComponent.mappings.txt @@ -26,6 +26,11 @@ Generated Location: (1553:48,0 [155] ) public Task UpdateValue(TParam value) { ParentValue = value; return Task.CompletedTask; } | +Source Location: (20:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (2187:66,45 [11] ) +|MyComponent| + Source Location: (38:1,19 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (2387:70,0 [5] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentMultipleTypeParamUsage/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentMultipleTypeParamUsage/TestComponent.mappings.txt index 381fc4471b6..d11b989a55a 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentMultipleTypeParamUsage/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentMultipleTypeParamUsage/TestComponent.mappings.txt @@ -8,6 +8,11 @@ Source Location: (29:1,11 [6] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (620:24,0 [6] ) |TItem2| +Source Location: (168:10,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (997:35,49 [13] ) +|TestComponent| + Source Location: (202:10,35 [6] x:\dir\subdir\Test\TestComponent.cshtml) |string| Generated Location: (1097:38,0 [6] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentTypeParamUsageWithImplicitExpression/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentTypeParamUsageWithImplicitExpression/TestComponent.mappings.txt index 2dc326461b9..1f79098c02d 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentTypeParamUsageWithImplicitExpression/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentTypeParamUsageWithImplicitExpression/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (474:16,0 [5] ) |TItem| +Source Location: (89:6,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (850:27,49 [13] ) +|TestComponent| + Source Location: (111:6,23 [6] x:\dir\subdir\Test\TestComponent.cshtml) |string| Generated Location: (948:30,0 [6] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentTypeParamUsageWithImplicitExpression2/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentTypeParamUsageWithImplicitExpression2/TestComponent.mappings.txt index 252f4ee99a7..add78b4342b 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentTypeParamUsageWithImplicitExpression2/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentTypeParamUsageWithImplicitExpression2/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (474:16,0 [5] ) |TItem| +Source Location: (89:6,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (850:27,49 [13] ) +|TestComponent| + Source Location: (112:6,24 [6] x:\dir\subdir\Test\TestComponent.cshtml) |string| Generated Location: (948:30,0 [6] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentTypeUsage/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentTypeUsage/TestComponent.mappings.txt index 48162741197..abb05a91912 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentTypeUsage/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentTypeUsage/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (474:16,0 [5] ) |TItem| +Source Location: (89:6,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (850:27,49 [13] ) +|TestComponent| + Source Location: (110:6,22 [6] x:\dir\subdir\Test\TestComponent.cshtml) |string| Generated Location: (948:30,0 [6] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentTypeUsageWhitespace/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentTypeUsageWhitespace/TestComponent.mappings.txt index 703b596644a..2df17407965 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentTypeUsageWhitespace/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentTypeUsageWhitespace/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (474:16,0 [5] ) |TItem| +Source Location: (89:6,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (850:27,49 [13] ) +|TestComponent| + Source Location: (110:6,22 [10] x:\dir\subdir\Test\TestComponent.cshtml) | string | Generated Location: (948:30,0 [10] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentTypeUsageWithGenericType/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentTypeUsageWithGenericType/TestComponent.mappings.txt index 93bc1c3475b..742d4fceb65 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentTypeUsageWithGenericType/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentTypeUsageWithGenericType/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (474:16,0 [5] ) |TItem| +Source Location: (89:6,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (850:27,49 [13] ) +|TestComponent| + Source Location: (110:6,22 [21] x:\dir\subdir\Test\TestComponent.cshtml) |TestComponent| Generated Location: (948:30,0 [21] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentTypeUsageWithInference/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentTypeUsageWithInference/TestComponent.mappings.txt index 8586ee8b31f..130a3b53fcd 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentTypeUsageWithInference/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponentTypeUsageWithInference/TestComponent.mappings.txt @@ -19,6 +19,11 @@ Generated Location: (1184:40,0 [58] ) public TItem MyItem { get; set; } | +Source Location: (89:6,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (1639:57,45 [13] ) +|TestComponent| + Source Location: (103:6,15 [6] x:\dir\subdir\Test\TestComponent.cshtml) |MyItem| Generated Location: (1841:61,0 [6] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_NestedTypeExplicit/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_NestedTypeExplicit/TestComponent.mappings.txt index 30e422cc98a..47b6a746319 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_NestedTypeExplicit/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_NestedTypeExplicit/TestComponent.mappings.txt @@ -8,6 +8,11 @@ Source Location: (11:0,11 [6] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (595:22,0 [6] ) |TChild| +Source Location: (33:2,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (972:33,49 [11] ) +|MyComponent| + Source Location: (52:2,20 [6] x:\dir\subdir\Test\TestComponent.cshtml) |TChild| Generated Location: (1068:36,0 [6] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_NestedTypeInference/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_NestedTypeInference/TestComponent.mappings.txt index cdca58b2a0b..f6c688ce3d6 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_NestedTypeInference/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_NestedTypeInference/TestComponent.mappings.txt @@ -29,6 +29,11 @@ Generated Location: (1553:54,0 [138] ) [Parameter] public EventCallback MyChildEvent { get; set; } | +Source Location: (33:2,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (2167:71,45 [11] ) +|MyComponent| + Source Location: (45:2,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Item| Generated Location: (2365:75,0 [4] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_TypeInference/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_TypeInference/TestComponent.mappings.txt index c486eb8f2c6..96969cbee3b 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_TypeInference/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_GenericEventCallbackWithGenericTypeParameter_TypeInference/TestComponent.mappings.txt @@ -13,6 +13,11 @@ Source Location: (44:1,31 [13] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1187:36,0 [13] ) |(int x) => {}| +Source Location: (14:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1742:53,45 [11] ) +|MyComponent| + Source Location: (26:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Item| Generated Location: (1940:57,0 [4] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_GenericEventCallbackWithNestedGenericTypeParameter_TypeInference/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_GenericEventCallbackWithNestedGenericTypeParameter_TypeInference/TestComponent.mappings.txt index 479997d5071..c329d84bec9 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_GenericEventCallbackWithNestedGenericTypeParameter_TypeInference/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_GenericEventCallbackWithNestedGenericTypeParameter_TypeInference/TestComponent.mappings.txt @@ -18,6 +18,11 @@ Source Location: (79:2,31 [26] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1283:41,0 [26] ) |(IEnumerable x) => {}| +Source Location: (49:2,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1899:58,45 [11] ) +|MyComponent| + Source Location: (61:2,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Item| Generated Location: (2097:62,0 [4] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_GenericEventCallback_TypeInference/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_GenericEventCallback_TypeInference/TestComponent.mappings.txt index d6a6111ba10..d7463f06929 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_GenericEventCallback_TypeInference/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_GenericEventCallback_TypeInference/TestComponent.mappings.txt @@ -13,6 +13,11 @@ Source Location: (44:1,31 [7] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1213:36,0 [7] ) |x => {}| +Source Location: (14:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1781:53,45 [11] ) +|MyComponent| + Source Location: (26:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Item| Generated Location: (1979:57,0 [4] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NestedGenericEventCallback_TypeInference/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NestedGenericEventCallback_TypeInference/TestComponent.mappings.txt index 842cda3d95a..8ea7d9b449a 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NestedGenericEventCallback_TypeInference/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NestedGenericEventCallback_TypeInference/TestComponent.mappings.txt @@ -13,6 +13,11 @@ Source Location: (44:1,31 [7] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1302:36,0 [7] ) |x => {}| +Source Location: (14:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1983:53,45 [11] ) +|MyComponent| + Source Location: (26:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Item| Generated Location: (2181:57,0 [4] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NonGenericEventCallback_TypeInference/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NonGenericEventCallback_TypeInference/TestComponent.mappings.txt index c0aa1d96bcf..55f8a8ce682 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NonGenericEventCallback_TypeInference/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NonGenericEventCallback_TypeInference/TestComponent.mappings.txt @@ -13,6 +13,11 @@ Source Location: (44:1,31 [7] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1187:36,0 [7] ) |x => {}| +Source Location: (14:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1729:53,45 [11] ) +|MyComponent| + Source Location: (26:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Item| Generated Location: (1927:57,0 [4] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NonGenericParameter_TypeInference/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NonGenericParameter_TypeInference/TestComponent.mappings.txt index 401c5557f8a..a09f5966704 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NonGenericParameter_TypeInference/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NonGenericParameter_TypeInference/TestComponent.mappings.txt @@ -22,6 +22,11 @@ Generated Location: (1321:46,0 [38] ) MyClass Hello = new MyClass(); | +Source Location: (21:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1802:62,45 [11] ) +|MyComponent| + Source Location: (33:1,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Item| Generated Location: (2000:66,0 [4] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NonPrimitiveType/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NonPrimitiveType/TestComponent.mappings.txt index ff319969729..b1debb15ac1 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NonPrimitiveType/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NonPrimitiveType/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (20:0,20 [10] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (20:0,20 [10] x:\dir\subdir\Test\TestComponent.cshtml) |CustomType| Generated Location: (799:22,0 [10] ) |CustomType| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NonPrimitiveTypeRenderFragment/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NonPrimitiveTypeRenderFragment/TestComponent.mappings.txt index c6d377f54de..3cc7c810359 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NonPrimitiveTypeRenderFragment/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_NonPrimitiveTypeRenderFragment/TestComponent.mappings.txt @@ -8,6 +8,11 @@ Source Location: (38:0,38 [18] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1064:30,25 [18] ) |context.ToString()| +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1677:49,45 [11] ) +|MyComponent| + Source Location: (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Item| Generated Location: (1875:53,0 [4] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_TypeParameterOrdering/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_TypeParameterOrdering/TestComponent.mappings.txt index 0a33557d3fc..e3a7b980757 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_TypeParameterOrdering/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_TypeParameterOrdering/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (37:0,37 [18] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (37:0,37 [18] x:\dir\subdir\Test\TestComponent.cshtml) |IComposedInterface| Generated Location: (799:22,0 [18] ) |IComposedInterface| @@ -18,6 +23,11 @@ Source Location: (70:0,70 [15] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1482:47,0 [15] ) |_componentValue| +Source Location: (92:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (2224:56,49 [11] ) +|MyComponent| + Source Location: (114:1,23 [18] x:\dir\subdir\Test\TestComponent.cshtml) |IComposedInterface| Generated Location: (2320:59,0 [18] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_UnmanagedConstraint/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_UnmanagedConstraint/TestComponent.mappings.txt index 4884032ea02..982daf749b3 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_UnmanagedConstraint/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_UnmanagedConstraint/TestComponent.mappings.txt @@ -8,6 +8,11 @@ Source Location: (37:1,24 [1] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (958:28,0 [1] ) |1| +Source Location: (14:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1444:46,45 [11] ) +|MyComponent| + Source Location: (26:1,13 [9] x:\dir\subdir\Test\TestComponent.cshtml) |Parameter| Generated Location: (1634:50,0 [9] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithComponentRef_CreatesDiagnostic/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithComponentRef_CreatesDiagnostic/TestComponent.mappings.txt index 5d649aaf94b..30a75cacf6f 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithComponentRef_CreatesDiagnostic/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithComponentRef_CreatesDiagnostic/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [3] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [3] x:\dir\subdir\Test\TestComponent.cshtml) |int| Generated Location: (799:22,0 [3] ) |int| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference_CreatesDiagnostic/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference_CreatesDiagnostic/TestComponent.mappings.txt index 2092c343fd4..7e68915e162 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference_CreatesDiagnostic/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithComponentRef_TypeInference_CreatesDiagnostic/TestComponent.mappings.txt @@ -19,6 +19,11 @@ Generated Location: (1249:42,0 [90] ) public void Foo() { System.GC.KeepAlive(_my); } | +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1809:59,45 [11] ) +|MyComponent| + Source Location: (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Item| Generated Location: (2007:63,0 [4] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithFullyQualifiedTagName/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithFullyQualifiedTagName/TestComponent.mappings.txt index 5a01b576210..9786106dcad 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithFullyQualifiedTagName/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithFullyQualifiedTagName/TestComponent.mappings.txt @@ -8,6 +8,11 @@ Source Location: (43:1,8 [17] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1107:31,25 [17] ) |context.ToLower()| +Source Location: (1:0,1 [16] x:\dir\subdir\Test\TestComponent.cshtml) +|Test.MyComponent| +Generated Location: (1745:51,40 [16] ) +|Test.MyComponent| + Source Location: (18:0,18 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Item| Generated Location: (1948:55,0 [4] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithKey/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithKey/TestComponent.mappings.txt index 155a6923fb5..a91f4e793f3 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithKey/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithKey/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [3] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [3] x:\dir\subdir\Test\TestComponent.cshtml) |int| Generated Location: (799:22,0 [3] ) |int| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithKey_TypeInference/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithKey_TypeInference/TestComponent.mappings.txt index f5c85016a03..c9a0f2b87ca 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithKey_TypeInference/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericComponent_WithKey_TypeInference/TestComponent.mappings.txt @@ -17,6 +17,11 @@ Generated Location: (1198:41,0 [47] ) private object _someKey = new object(); | +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1667:57,45 [11] ) +|MyComponent| + Source Location: (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Item| Generated Location: (1865:61,0 [4] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericInference_DynamicallyAccessedMembers_01/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericInference_DynamicallyAccessedMembers_01/TestComponent.mappings.txt index acddc46cbae..a3d79f656c4 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericInference_DynamicallyAccessedMembers_01/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericInference_DynamicallyAccessedMembers_01/TestComponent.mappings.txt @@ -27,16 +27,31 @@ Generated Location: (2082:59,0 [39] ) private string value1 = "true"; | +Source Location: (49:2,1 [15] x:\dir\subdir\Test\TestComponent.cshtml) +|InputRadioGroup| +Generated Location: (2977:75,78 [15] ) +|InputRadioGroup| + Source Location: (71:2,23 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (3218:79,0 [5] ) |Value| +Source Location: (93:3,5 [10] x:\dir\subdir\Test\TestComponent.cshtml) +|InputRadio| +Generated Location: (4153:92,78 [10] ) +|InputRadio| + Source Location: (104:3,16 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (4384:96,0 [5] ) |Value| +Source Location: (132:4,5 [10] x:\dir\subdir\Test\TestComponent.cshtml) +|InputRadio| +Generated Location: (4942:106,78 [10] ) +|InputRadio| + Source Location: (143:4,16 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Value| Generated Location: (5173:110,0 [5] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericInference_DynamicallyAccessedMembers_02/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericInference_DynamicallyAccessedMembers_02/TestComponent.mappings.txt index e47bea3a94d..5a6b54c4013 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericInference_DynamicallyAccessedMembers_02/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericInference_DynamicallyAccessedMembers_02/TestComponent.mappings.txt @@ -22,6 +22,11 @@ Generated Location: (1343:48,0 [31] ) private string s = "x"; | +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (2163:64,45 [11] ) +|MyComponent| + Source Location: (13:0,13 [2] x:\dir\subdir\Test\TestComponent.cshtml) |P1| Generated Location: (2371:68,0 [2] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericTypeCheck/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericTypeCheck/TestComponent.mappings.txt index 419d824f7ea..c0f90c27fbc 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericTypeCheck/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/GenericTypeCheck/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (15:0,15 [4] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (703:19,49 [13] ) +|TestComponent| + +Source Location: (15:0,15 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Data| Generated Location: (888:23,0 [4] ) |Data| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ImplicitStringConversion_ParameterCasing_AddAttribute/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ImplicitStringConversion_ParameterCasing_AddAttribute/TestComponent.mappings.txt index b01cda0ae12..4d920ae37ce 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ImplicitStringConversion_ParameterCasing_AddAttribute/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ImplicitStringConversion_ParameterCasing_AddAttribute/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml) |PlaceHolder| Generated Location: (875:23,0 [11] ) |Placeholder| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ImplicitStringConversion_ParameterCasing_AddComponentParameter/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ImplicitStringConversion_ParameterCasing_AddComponentParameter/TestComponent.mappings.txt index 70756d5b4e6..80b6c49b1df 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ImplicitStringConversion_ParameterCasing_AddComponentParameter/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ImplicitStringConversion_ParameterCasing_AddComponentParameter/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml) |PlaceHolder| Generated Location: (884:23,0 [11] ) |Placeholder| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Bind/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Bind/TestComponent.mappings.txt index 376104183be..d1e315dde4d 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Bind/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Bind/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [11] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (19:0,19 [11] x:\dir\subdir\Test\TestComponent.cshtml) |PlaceHolder| Generated Location: (884:23,0 [11] ) |Placeholder| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Bind_02/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Bind_02/TestComponent.mappings.txt index 1ed51a1dc34..11e38c340aa 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Bind_02/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Bind_02/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (33:0,33 [1] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (33:0,33 [1] x:\dir\subdir\Test\TestComponent.cshtml) |s| Generated Location: (873:23,0 [1] ) |s| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Bind_03/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Bind_03/TestComponent.mappings.txt index 05e5eedb366..4cb7901f419 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Bind_03/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Bind_03/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (36:0,36 [1] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (36:0,36 [1] x:\dir\subdir\Test\TestComponent.cshtml) |s| Generated Location: (871:23,0 [1] ) |s| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Multiple/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Multiple/TestComponent.mappings.txt index 70756d5b4e6..80b6c49b1df 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Multiple/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/ImplicitStringConversion_ParameterCasing_Multiple/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml) |PlaceHolder| Generated Location: (884:23,0 [11] ) |Placeholder| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/InvalidCode_EmptyTransition/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/InvalidCode_EmptyTransition/TestComponent.mappings.txt index 9fd658c338a..0c8a9dd49c9 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/InvalidCode_EmptyTransition/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/InvalidCode_EmptyTransition/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (36:2,1 [0] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (703:19,49 [13] ) +|TestComponent| + +Source Location: (36:2,1 [0] x:\dir\subdir\Test\TestComponent.cshtml) || Generated Location: (994:25,24 [0] ) || diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.mappings.txt index 582141bcaa6..33dccb729fa 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/LeadingWhiteSpace_WithComponent/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (48:1,26 [12] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [18] x:\dir\subdir\Test\TestComponent.cshtml) +|SomeOtherComponent| +Generated Location: (703:19,49 [18] ) +|SomeOtherComponent| + +Source Location: (48:1,26 [12] x:\dir\subdir\Test\TestComponent.cshtml) |DateTime.Now| Generated Location: (1082:25,25 [12] ) |DateTime.Now| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Legacy_3_1_LeadingWhiteSpace_WithComponent/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Legacy_3_1_LeadingWhiteSpace_WithComponent/TestComponent.mappings.txt index 733b264e120..68eda2d474e 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Legacy_3_1_LeadingWhiteSpace_WithComponent/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Legacy_3_1_LeadingWhiteSpace_WithComponent/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (48:1,26 [12] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [18] x:\dir\subdir\Test\TestComponent.cshtml) +|SomeOtherComponent| +Generated Location: (703:19,49 [18] ) +|SomeOtherComponent| + +Source Location: (48:1,26 [12] x:\dir\subdir\Test\TestComponent.cshtml) |DateTime.Now| Generated Location: (1143:26,25 [12] ) |DateTime.Now| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Legacy_3_1_TrailingWhiteSpace_WithComponent/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Legacy_3_1_TrailingWhiteSpace_WithComponent/TestComponent.mappings.txt new file mode 100644 index 00000000000..6404ea9cae1 --- /dev/null +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Legacy_3_1_TrailingWhiteSpace_WithComponent/TestComponent.mappings.txt @@ -0,0 +1,5 @@ +Source Location: (19:2,1 [18] x:\dir\subdir\Test\TestComponent.cshtml) +|SomeOtherComponent| +Generated Location: (773:20,49 [18] ) +|SomeOtherComponent| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/MultipleChildContentMatchingComponentName/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/MultipleChildContentMatchingComponentName/TestComponent.mappings.txt new file mode 100644 index 00000000000..8f963bdd7a4 --- /dev/null +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/MultipleChildContentMatchingComponentName/TestComponent.mappings.txt @@ -0,0 +1,10 @@ +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (81:4,1 [6] x:\dir\subdir\Test\TestComponent.cshtml) +|Header| +Generated Location: (1276:30,49 [6] ) +|Header| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/MultipleExplictChildContent/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/MultipleExplictChildContent/TestComponent.mappings.txt index 0dd7d436906..ca24cc86255 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/MultipleExplictChildContent/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/MultipleExplictChildContent/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (55:2,14 [6] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (55:2,14 [6] x:\dir\subdir\Test\TestComponent.cshtml) |"bye!"| Generated Location: (1161:27,25 [6] ) |"bye!"| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/NamespaceWithSurrogatePair/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/NamespaceWithSurrogatePair/TestComponent.mappings.txt new file mode 100644 index 00000000000..a3409a4fd23 --- /dev/null +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/NamespaceWithSurrogatePair/TestComponent.mappings.txt @@ -0,0 +1,5 @@ +Source Location: (21:1,1 [10] x:\dir\subdir\Test\TestComponent.cshtml) +|Component1| +Generated Location: (793:20,59 [10] ) +|Component1| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/NonGenericComponent_WithGenericEventHandler/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/NonGenericComponent_WithGenericEventHandler/TestComponent.mappings.txt index a358475d932..cd2631f59bb 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/NonGenericComponent_WithGenericEventHandler/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/NonGenericComponent_WithGenericEventHandler/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (703:19,49 [11] ) +|MyComponent| + +Source Location: (13:0,13 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Item| Generated Location: (884:23,0 [4] ) |Item| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.mappings.txt index 8c257869b9b..b203182dc26 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_AsComponentParameter_MixedContent/TestComponent.mappings.txt @@ -18,6 +18,11 @@ Source Location: (107:0,107 [2] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1565:51,0 [2] ) |; | +Source Location: (113:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1670:57,49 [11] ) +|MyComponent| + Source Location: (125:1,13 [8] x:\dir\subdir\Test\TestComponent.cshtml) |Template| Generated Location: (1851:61,0 [8] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.mappings.txt index 63a212472e1..4c671ee983d 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_ContainsComponent/TestComponent.mappings.txt @@ -5,6 +5,11 @@ Generated Location: (735:21,0 [45] ) | RenderFragment p = (person) => | +Source Location: (54:1,50 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (970:30,54 [11] ) +|MyComponent| + Source Location: (66:1,62 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Name| Generated Location: (1156:34,0 [4] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.mappings.txt index a09e678c6ac..091f7998232 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_FollowedByComponent/TestComponent.mappings.txt @@ -5,6 +5,11 @@ Generated Location: (735:21,0 [45] ) | RenderFragment p = (person) => | +Source Location: (54:1,50 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (970:30,54 [11] ) +|MyComponent| + Source Location: (66:1,62 [4] x:\dir\subdir\Test\TestComponent.cshtml) |Name| Generated Location: (1156:34,0 [4] ) @@ -22,6 +27,11 @@ Generated Location: (1690:53,0 [3] ) |; | +Source Location: (100:3,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1794:59,49 [11] ) +|MyComponent| + Source Location: (116:4,2 [15] x:\dir\subdir\Test\TestComponent.cshtml) |"hello, world!"| Generated Location: (2051:63,25 [15] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.mappings.txt index 2179ff2f540..4bbf40a8735 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_Generic_AsComponentParameter/TestComponent.mappings.txt @@ -13,6 +13,11 @@ Source Location: (73:0,73 [2] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1252:41,0 [2] ) |; | +Source Location: (79:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1357:47,49 [11] ) +|MyComponent| + Source Location: (91:1,13 [14] x:\dir\subdir\Test\TestComponent.cshtml) |PersonTemplate| Generated Location: (1538:51,0 [14] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.mappings.txt index 31a8715d912..473d8a060cf 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RazorTemplate_NonGeneric_AsComponentParameter/TestComponent.mappings.txt @@ -8,6 +8,11 @@ Source Location: (45:0,45 [2] x:\dir\subdir\Test\TestComponent.cshtml) Generated Location: (1012:32,0 [2] ) |; | +Source Location: (51:1,1 [11] x:\dir\subdir\Test\TestComponent.cshtml) +|MyComponent| +Generated Location: (1117:38,49 [11] ) +|MyComponent| + Source Location: (72:1,22 [8] x:\dir\subdir\Test\TestComponent.cshtml) |template| Generated Location: (1276:42,0 [8] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_597/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_597/TestComponent.mappings.txt index 6f29ef98852..f698d3a7a5c 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_597/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_597/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (18:0,18 [1] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [7] x:\dir\subdir\Test\TestComponent.cshtml) +|Counter| +Generated Location: (703:19,49 [7] ) +|Counter| + +Source Location: (18:0,18 [1] x:\dir\subdir\Test\TestComponent.cshtml) |y| Generated Location: (853:23,0 [1] ) |y| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_609/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_609/TestComponent.mappings.txt index d787010f724..bb1d7a16228 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_609/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_609/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (19:0,19 [8] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [4] x:\dir\subdir\Test\TestComponent.cshtml) +|User| +Generated Location: (703:19,49 [4] ) +|User| + +Source Location: (19:0,19 [8] x:\dir\subdir\Test\TestComponent.cshtml) |UserName| Generated Location: (853:23,0 [8] ) |UserName| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_772/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_772/TestComponent.mappings.txt index 62a314b52ff..b91cd9a3277 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_772/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_772/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (504:16,0 [3] ) |"/"| +Source Location: (68:6,1 [12] x:\dir\subdir\Test\TestComponent.cshtml) +|SurveyPrompt| +Generated Location: (1052:30,49 [12] ) +|SurveyPrompt| + Source Location: (81:6,14 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Title| Generated Location: (1235:34,0 [5] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_773/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_773/TestComponent.mappings.txt index 62a314b52ff..b91cd9a3277 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_773/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/Regression_773/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (504:16,0 [3] ) |"/"| +Source Location: (68:6,1 [12] x:\dir\subdir\Test\TestComponent.cshtml) +|SurveyPrompt| +Generated Location: (1052:30,49 [12] ) +|SurveyPrompt| + Source Location: (81:6,14 [5] x:\dir\subdir\Test\TestComponent.cshtml) |Title| Generated Location: (1235:34,0 [5] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_Attribute_With_Existing_Attributes/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_Attribute_With_Existing_Attributes/TestComponent.mappings.txt index d04dd17a216..a781685404f 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_Attribute_With_Existing_Attributes/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_Attribute_With_Existing_Attributes/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (15:0,15 [2] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (703:19,49 [13] ) +|TestComponent| + +Source Location: (15:0,15 [2] x:\dir\subdir\Test\TestComponent.cshtml) |P2| Generated Location: (888:23,0 [2] ) |P2| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_Attribute_With_Expression/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_Attribute_With_Expression/TestComponent.mappings.txt index c027541242f..9c2963cf2a4 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_Attribute_With_Expression/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_Attribute_With_Expression/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (30:0,30 [38] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (703:19,49 [13] ) +|TestComponent| + +Source Location: (30:0,30 [38] x:\dir\subdir\Test\TestComponent.cshtml) |new MyRenderMode() { Extra = "Hello" }| Generated Location: (895:23,0 [38] ) |new MyRenderMode() { Extra = "Hello" }| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_Attribute_With_SimpleIdentifier/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_Attribute_With_SimpleIdentifier/TestComponent.mappings.txt index 93432e31893..060b9ddbd42 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_Attribute_With_SimpleIdentifier/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_Attribute_With_SimpleIdentifier/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (703:19,49 [13] ) +|TestComponent| + +Source Location: (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml) |Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer| Generated Location: (895:23,0 [64] ) |Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_Child_Components/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_Child_Components/TestComponent.mappings.txt index 77eb7b5e552..2f227cf75e6 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_Child_Components/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_Child_Components/TestComponent.mappings.txt @@ -1,28 +1,58 @@ -Source Location: (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (703:19,49 [13] ) +|TestComponent| + +Source Location: (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml) |Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer| Generated Location: (895:23,0 [64] ) |Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer| +Source Location: (101:1,5 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (1212:31,54 [13] ) +|TestComponent| + Source Location: (128:1,32 [64] x:\dir\subdir\Test\TestComponent.cshtml) |Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer| Generated Location: (1411:35,0 [64] ) |Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer| +Source Location: (205:2,9 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (1741:43,58 [13] ) +|TestComponent| + Source Location: (232:2,36 [64] x:\dir\subdir\Test\TestComponent.cshtml) |Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer| Generated Location: (1945:47,0 [64] ) |Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer| +Source Location: (326:4,2 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (2476:61,54 [13] ) +|TestComponent| + Source Location: (353:4,29 [64] x:\dir\subdir\Test\TestComponent.cshtml) |Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer| Generated Location: (2675:65,0 [64] ) |Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer| +Source Location: (430:5,9 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (3005:73,58 [13] ) +|TestComponent| + Source Location: (457:5,36 [64] x:\dir\subdir\Test\TestComponent.cshtml) |Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer| Generated Location: (3209:77,0 [64] ) |Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer| +Source Location: (536:6,9 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (3600:87,58 [13] ) +|TestComponent| + Source Location: (563:6,36 [64] x:\dir\subdir\Test\TestComponent.cshtml) |Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer| Generated Location: (3805:91,0 [64] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_Multiple_Components/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_Multiple_Components/TestComponent.mappings.txt index 3c78aca2813..2f48379ee25 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_Multiple_Components/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_Multiple_Components/TestComponent.mappings.txt @@ -1,8 +1,18 @@ -Source Location: (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (703:19,49 [13] ) +|TestComponent| + +Source Location: (28:0,28 [64] x:\dir\subdir\Test\TestComponent.cshtml) |Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer| Generated Location: (895:23,0 [64] ) |Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer| +Source Location: (99:1,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (1231:33,49 [13] ) +|TestComponent| + Source Location: (126:1,28 [64] x:\dir\subdir\Test\TestComponent.cshtml) |Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer| Generated Location: (1426:37,0 [64] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_With_Null_Nullable_Disabled/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_With_Null_Nullable_Disabled/TestComponent.mappings.txt index 6b3789ae474..c4cac0f1d3f 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_With_Null_Nullable_Disabled/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_With_Null_Nullable_Disabled/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (28:0,28 [4] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (703:19,49 [13] ) +|TestComponent| + +Source Location: (28:0,28 [4] x:\dir\subdir\Test\TestComponent.cshtml) |null| Generated Location: (895:23,0 [4] ) |null| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_With_Null_Nullable_Enabled/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_With_Null_Nullable_Enabled/TestComponent.mappings.txt index 6b3789ae474..c4cac0f1d3f 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_With_Null_Nullable_Enabled/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_With_Null_Nullable_Enabled/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (28:0,28 [4] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (703:19,49 [13] ) +|TestComponent| + +Source Location: (28:0,28 [4] x:\dir\subdir\Test\TestComponent.cshtml) |null| Generated Location: (895:23,0 [4] ) |null| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_With_Nullable_Receiver/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_With_Nullable_Receiver/TestComponent.mappings.txt index b8fd30484dd..b9ebe4d7b2b 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_With_Nullable_Receiver/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_With_Nullable_Receiver/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (291:9,30 [20] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (262:9,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (703:19,49 [13] ) +|TestComponent| + +Source Location: (291:9,30 [20] x:\dir\subdir\Test\TestComponent.cshtml) |Container.RenderMode| Generated Location: (897:23,0 [20] ) |Container.RenderMode| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_With_Ternary/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_With_Ternary/TestComponent.mappings.txt index 1a1c9293c01..5968c23850a 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_With_Ternary/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_With_Ternary/TestComponent.mappings.txt @@ -1,4 +1,9 @@ -Source Location: (30:0,30 [78] x:\dir\subdir\Test\TestComponent.cshtml) +Source Location: (1:0,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (703:19,49 [13] ) +|TestComponent| + +Source Location: (30:0,30 [78] x:\dir\subdir\Test\TestComponent.cshtml) |true ? Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer : null| Generated Location: (896:23,0 [78] ) |true ? Microsoft.AspNetCore.Components.Web.RenderMode.InteractiveServer : null| diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_With_TypeInference/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_With_TypeInference/TestComponent.mappings.txt index 5a28ba16584..c01a444eb61 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_With_TypeInference/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/RenderMode_With_TypeInference/TestComponent.mappings.txt @@ -27,6 +27,11 @@ Generated Location: (1630:56,0 [67] ) [Parameter] public TRenderMode RenderModeParam { get; set;} | +Source Location: (100:2,1 [13] x:\dir\subdir\Test\TestComponent.cshtml) +|TestComponent| +Generated Location: (2273:73,45 [13] ) +|TestComponent| + Source Location: (144:2,45 [15] x:\dir\subdir\Test\TestComponent.cshtml) |RenderModeParam| Generated Location: (2487:77,0 [15] ) diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.mappings.txt new file mode 100644 index 00000000000..6404ea9cae1 --- /dev/null +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/TrailingWhiteSpace_WithComponent/TestComponent.mappings.txt @@ -0,0 +1,5 @@ +Source Location: (19:2,1 [18] x:\dir\subdir\Test\TestComponent.cshtml) +|SomeOtherComponent| +Generated Location: (773:20,49 [18] ) +|SomeOtherComponent| + diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/VoidTagName/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/VoidTagName/TestComponent.mappings.txt index ff36719db7e..8d67377612f 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/VoidTagName/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/VoidTagName/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (320:11,0 [37] ) |using Microsoft.AspNetCore.Components| +Source Location: (43:2,1 [3] x:\dir\subdir\Test\TestComponent.cshtml) +|Col| +Generated Location: (799:24,49 [3] ) +|Col| + Source Location: (66:3,2 [2] x:\dir\subdir\Test\TestComponent.cshtml) | | @@ -10,6 +15,11 @@ Generated Location: (1148:32,0 [2] ) | | +Source Location: (73:4,5 [3] x:\dir\subdir\Test\TestComponent.cshtml) +|Col| +Generated Location: (1251:38,49 [3] ) +|Col| + Source Location: (77:4,9 [51] x:\dir\subdir\Test\TestComponent.cshtml) |in code block RenderFragment template = | @@ -17,6 +27,11 @@ Generated Location: (1384:42,0 [51] ) |in code block RenderFragment template = | +Source Location: (130:5,32 [3] x:\dir\subdir\Test\TestComponent.cshtml) +|Col| +Generated Location: (1574:50,54 [3] ) +|Col| + Source Location: (134:5,36 [20] x:\dir\subdir\Test\TestComponent.cshtml) |in template; | diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/VoidTagName_FullyQualified/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/VoidTagName_FullyQualified/TestComponent.mappings.txt index 3e559ac80a5..bd47bcd043f 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/VoidTagName_FullyQualified/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/VoidTagName_FullyQualified/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (320:11,0 [37] ) |using Microsoft.AspNetCore.Components| +Source Location: (43:2,1 [8] x:\dir\subdir\Test\TestComponent.cshtml) +|Test.Col| +Generated Location: (794:24,44 [8] ) +|Test.Col| + Source Location: (76:3,2 [2] x:\dir\subdir\Test\TestComponent.cshtml) | | @@ -10,11 +15,21 @@ Generated Location: (1148:32,0 [2] ) | | +Source Location: (83:4,5 [8] x:\dir\subdir\Test\TestComponent.cshtml) +|Test.Col| +Generated Location: (1246:38,44 [8] ) +|Test.Col| + Source Location: (118:5,0 [30] x:\dir\subdir\Test\TestComponent.cshtml) | RenderFragment template = | Generated Location: (1605:46,0 [30] ) | RenderFragment template = | +Source Location: (150:5,32 [8] x:\dir\subdir\Test\TestComponent.cshtml) +|Test.Col| +Generated Location: (1769:53,49 [8] ) +|Test.Col| + Source Location: (181:5,63 [3] x:\dir\subdir\Test\TestComponent.cshtml) |; | diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/VoidTagName_SelfClosing/TestComponent.mappings.txt b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/VoidTagName_SelfClosing/TestComponent.mappings.txt index a2fc0fa4645..4dfb654c4b0 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/VoidTagName_SelfClosing/TestComponent.mappings.txt +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/VoidTagName_SelfClosing/TestComponent.mappings.txt @@ -3,6 +3,11 @@ Generated Location: (320:11,0 [37] ) |using Microsoft.AspNetCore.Components| +Source Location: (43:2,1 [3] x:\dir\subdir\Test\TestComponent.cshtml) +|Col| +Generated Location: (799:24,49 [3] ) +|Col| + Source Location: (53:3,2 [2] x:\dir\subdir\Test\TestComponent.cshtml) | | @@ -10,11 +15,21 @@ Generated Location: (930:28,0 [2] ) | | +Source Location: (60:4,5 [3] x:\dir\subdir\Test\TestComponent.cshtml) +|Col| +Generated Location: (1033:34,49 [3] ) +|Col| + Source Location: (68:5,0 [30] x:\dir\subdir\Test\TestComponent.cshtml) | RenderFragment template = | Generated Location: (1165:38,0 [30] ) | RenderFragment template = | +Source Location: (100:5,32 [3] x:\dir\subdir\Test\TestComponent.cshtml) +|Col| +Generated Location: (1334:45,54 [3] ) +|Col| + Source Location: (106:5,38 [3] x:\dir\subdir\Test\TestComponent.cshtml) |; | diff --git a/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/ComponentDesignTimeNodeWriter.cs b/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/ComponentDesignTimeNodeWriter.cs index f255d39b662..0314d106820 100644 --- a/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/ComponentDesignTimeNodeWriter.cs +++ b/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/ComponentDesignTimeNodeWriter.cs @@ -563,7 +563,7 @@ public override void WriteComponent(CodeRenderingContext context, ComponentInter public override void WriteComponentTypeInferenceMethod(CodeRenderingContext context, ComponentTypeInferenceMethodIntermediateNode node) { - base.WriteComponentTypeInferenceMethod(context, node, returnComponentType: true, allowNameof: false); + base.WriteComponentTypeInferenceMethod(context, node, returnComponentType: true, allowNameof: false, mapComponentStartTag: false); } private void WriteTypeInferenceMethodParameterInnards(CodeRenderingContext context, TypeInferenceMethodParameter parameter) diff --git a/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/ComponentLoweringPass.cs b/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/ComponentLoweringPass.cs index 980e7090021..f5d9e977b8c 100644 --- a/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/ComponentLoweringPass.cs +++ b/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/ComponentLoweringPass.cs @@ -5,6 +5,7 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Linq; using System.Threading; using Microsoft.AspNetCore.Razor.Language.Intermediate; @@ -142,12 +143,14 @@ static TagHelperDescriptor GetTagHelperOrAddDiagnostic(TagHelperIntermediateNode private static ComponentIntermediateNode RewriteAsComponent(TagHelperIntermediateNode node, TagHelperDescriptor tagHelper) { + Debug.Assert(node.StartTagSpan.HasValue, "Component tags should always have a start tag span."); var component = new ComponentIntermediateNode() { Component = tagHelper, Source = node.Source, TagName = node.TagName, TypeName = tagHelper.TypeName, + StartTagSpan = node.StartTagSpan.AssumeNotNull(), }; component.AddDiagnosticsFromNode(node); diff --git a/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/ComponentNodeWriter.cs b/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/ComponentNodeWriter.cs index 36219c5e611..4b96271f9c8 100644 --- a/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/ComponentNodeWriter.cs +++ b/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/ComponentNodeWriter.cs @@ -75,7 +75,7 @@ protected bool ShouldSuppressTypeInferenceCall(ComponentIntermediateNode node) return node.Diagnostics.Any(d => d.Id == ComponentDiagnosticFactory.GenericComponentTypeInferenceUnderspecified.Id); } - protected void WriteComponentTypeInferenceMethod(CodeRenderingContext context, ComponentTypeInferenceMethodIntermediateNode node, bool returnComponentType, bool allowNameof) + protected void WriteComponentTypeInferenceMethod(CodeRenderingContext context, ComponentTypeInferenceMethodIntermediateNode node, bool returnComponentType, bool allowNameof, bool mapComponentStartTag) { if (context == null) { @@ -166,7 +166,18 @@ protected void WriteComponentTypeInferenceMethod(CodeRenderingContext context, C context.CodeWriter.Write("."); context.CodeWriter.Write(ComponentsApi.RenderTreeBuilder.OpenComponent); context.CodeWriter.Write("<"); - context.CodeWriter.Write(node.Component.TypeName); + + if (mapComponentStartTag) + { + var nonGenericTypeName = TypeNameHelper.GetNonGenericTypeName(node.Component.TypeName, out var genericTypeParameterList); + WriteComponentTypeName(context, node.Component, nonGenericTypeName); + context.CodeWriter.Write(genericTypeParameterList); + } + else + { + context.CodeWriter.Write(node.Component.TypeName); + } + context.CodeWriter.Write(">("); context.CodeWriter.Write("seq"); context.CodeWriter.Write(");"); @@ -530,6 +541,40 @@ protected static void WriteGloballyQualifiedTypeName(CodeRenderingContext contex } } + protected static void WriteComponentTypeName(CodeRenderingContext context, ComponentIntermediateNode node, ReadOnlyMemory nonGenericTypeName) + { + // The type name we are given may or may not be globally qualified, and we want to map it to the component start + // tag, which may or may not be fully qualified. ie "global::My.Fun.Component" could map to just "Component" + + // Write out "global::" if it's present, and trim it off + var lastColon = nonGenericTypeName.Span.LastIndexOf(':'); + if (lastColon > -1) + { + lastColon++; + context.CodeWriter.Write(nonGenericTypeName[0..lastColon]); + nonGenericTypeName = nonGenericTypeName.Slice(lastColon); + } + + // If the start tag is shorter than the type name, then it must not be a fully qualified tag, so write out + // the namespace parts and trim. Razor components don't support nested types, so this logic doesn't either. + if (node.StartTagSpan.Length < nonGenericTypeName.Length) + { + var lastDot = nonGenericTypeName.Span.LastIndexOf('.'); + if (lastDot > -1) + { + lastDot++; + context.CodeWriter.Write(nonGenericTypeName[0..lastDot]); + nonGenericTypeName = nonGenericTypeName.Slice(lastDot); + } + } + + var offset = nonGenericTypeName.Span.StartsWith('@') + ? 1 + : 0; + context.AddSourceMappingFor(node.StartTagSpan, offset); + context.CodeWriter.Write(nonGenericTypeName); + } + [DebuggerDisplay($"{{{nameof(GetDebuggerDisplay)}(),nq}}")] protected internal readonly struct SeqName(int index) : IWriteableValue { diff --git a/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/ComponentRuntimeNodeWriter.cs b/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/ComponentRuntimeNodeWriter.cs index ddcaf605493..0e3bda3dce5 100644 --- a/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/ComponentRuntimeNodeWriter.cs +++ b/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/ComponentRuntimeNodeWriter.cs @@ -378,7 +378,10 @@ public override void WriteComponent(CodeRenderingContext context, ComponentInter context.CodeWriter.Write(ComponentsApi.RenderTreeBuilder.OpenComponent); context.CodeWriter.Write("<"); - TypeNameHelper.WriteGloballyQualifiedName(context.CodeWriter, TypeNameHelper.GetNonGenericTypeName(node.TypeName)); + var nonGenericTypeName = TypeNameHelper.GetNonGenericTypeName(node.TypeName, out _); + TypeNameHelper.WriteGlobalPrefixIfNeeded(context.CodeWriter, nonGenericTypeName); + WriteComponentTypeName(context, node, nonGenericTypeName); + if (!node.OrderedTypeArguments.IsDefaultOrEmpty) { context.CodeWriter.Write("<"); @@ -540,7 +543,7 @@ public override void WriteComponent(CodeRenderingContext context, ComponentInter public override void WriteComponentTypeInferenceMethod(CodeRenderingContext context, ComponentTypeInferenceMethodIntermediateNode node) { - WriteComponentTypeInferenceMethod(context, node, returnComponentType: false, allowNameof: true); + WriteComponentTypeInferenceMethod(context, node, returnComponentType: false, allowNameof: true, mapComponentStartTag: true); } private void WriteTypeInferenceMethodParameterInnards(CodeRenderingContext context, TypeInferenceMethodParameter parameter) diff --git a/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/TypeNameHelper.cs b/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/TypeNameHelper.cs index 1bd340bf448..02a6272f535 100644 --- a/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/TypeNameHelper.cs +++ b/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/TypeNameHelper.cs @@ -79,6 +79,15 @@ public static void WriteGloballyQualifiedName(CodeWriter codeWriter, string type } internal static void WriteGloballyQualifiedName(CodeWriter codeWriter, ReadOnlyMemory typeName) + { + WriteGlobalPrefixIfNeeded(codeWriter, typeName); + codeWriter.Write(typeName); + } + + /// + /// Writes "global::" if the typename doesn't already start with it and isn't a predefined type. + /// + internal static void WriteGlobalPrefixIfNeeded(CodeWriter codeWriter, ReadOnlyMemory typeName) { if (typeName.Length == 0) { @@ -89,7 +98,6 @@ internal static void WriteGloballyQualifiedName(CodeWriter codeWriter, ReadOnlyM if (typeNameSpan.StartsWith(GlobalPrefix.AsSpan(), StringComparison.Ordinal)) { - codeWriter.Write(typeName); return; } @@ -98,7 +106,6 @@ internal static void WriteGloballyQualifiedName(CodeWriter codeWriter, ReadOnlyM // just skip prefixing tuples. if (typeNameSpan[0] == '(') { - codeWriter.Write(typeName); return; } @@ -107,24 +114,25 @@ internal static void WriteGloballyQualifiedName(CodeWriter codeWriter, ReadOnlyM if (typeNameSpan.Length < 3 || typeNameSpan.Length > 7) { codeWriter.Write(GlobalPrefix); - codeWriter.Write(typeName); return; } if (PredefinedTypeNames.Contains(typeName)) { - codeWriter.Write(typeName); return; } codeWriter.Write(GlobalPrefix); - codeWriter.Write(typeName); } - internal static ReadOnlyMemory GetNonGenericTypeName(string typeName) + internal static ReadOnlyMemory GetNonGenericTypeName(string typeName, out ReadOnlyMemory genericTypeParameterList) { var memory = typeName.AsMemory(); var index = memory.Span.IndexOf('<'); + + genericTypeParameterList = index == -1 + ? default + : memory[index..]; return index == -1 ? memory : memory[..index]; } } diff --git a/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/DefaultRazorIntermediateNodeLoweringPhase.cs b/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/DefaultRazorIntermediateNodeLoweringPhase.cs index 9c97b6d19ae..8f100de820f 100644 --- a/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/DefaultRazorIntermediateNodeLoweringPhase.cs +++ b/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/DefaultRazorIntermediateNodeLoweringPhase.cs @@ -1753,7 +1753,8 @@ public override void VisitMarkupTagHelperElement(MarkupTagHelperElementSyntax no TagName = tagName, TagMode = info.TagMode, Source = BuildSourceSpanFromNode(node), - TagHelpers = info.BindingResult.Descriptors + TagHelpers = info.BindingResult.Descriptors, + StartTagSpan = node.StartTag.Name.GetSourceSpan(SourceDocument) }; if (node.StartTag != null && diff --git a/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Intermediate/ComponentIntermediateNode.cs b/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Intermediate/ComponentIntermediateNode.cs index 30793a7b464..3cbecb7af99 100644 --- a/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Intermediate/ComponentIntermediateNode.cs +++ b/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Intermediate/ComponentIntermediateNode.cs @@ -49,6 +49,8 @@ public sealed class ComponentIntermediateNode : IntermediateNode public string TypeName { get; set; } + public SourceSpan StartTagSpan { get; init; } + public override void Accept(IntermediateNodeVisitor visitor) { if (visitor == null) diff --git a/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Intermediate/TagHelperIntermediateNode.cs b/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Intermediate/TagHelperIntermediateNode.cs index f957e6a0869..ce69f80f4ed 100644 --- a/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Intermediate/TagHelperIntermediateNode.cs +++ b/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Intermediate/TagHelperIntermediateNode.cs @@ -11,6 +11,11 @@ public sealed class TagHelperIntermediateNode : IntermediateNode public required TagMode TagMode { get; init; } public required string TagName { get; init; } + /// + /// The source span of the start tag of the component that this tag helper represents, or null for an Mvc tag helper + /// + public SourceSpan? StartTagSpan { get; init; } + public ImmutableArray TagHelpers { get; init => field = value.NullToEmpty(); } = []; public override IntermediateNodeCollection Children { get => field ??= []; } diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Razor.CohostingShared/Microsoft.CodeAnalysis.Razor.CohostingShared.projitems b/src/Razor/src/Microsoft.CodeAnalysis.Razor.CohostingShared/Microsoft.CodeAnalysis.Razor.CohostingShared.projitems index c2098e6518f..6eafb4de990 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Razor.CohostingShared/Microsoft.CodeAnalysis.Razor.CohostingShared.projitems +++ b/src/Razor/src/Microsoft.CodeAnalysis.Razor.CohostingShared/Microsoft.CodeAnalysis.Razor.CohostingShared.projitems @@ -35,6 +35,7 @@ + diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Razor.CohostingShared/RazorSourceGeneratedDocumentExcerptService.cs b/src/Razor/src/Microsoft.CodeAnalysis.Razor.CohostingShared/RazorSourceGeneratedDocumentExcerptService.cs new file mode 100644 index 00000000000..5ec2925bf99 --- /dev/null +++ b/src/Razor/src/Microsoft.CodeAnalysis.Razor.CohostingShared/RazorSourceGeneratedDocumentExcerptService.cs @@ -0,0 +1,54 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.ComponentModel.Composition; +using System.Threading; +using System.Threading.Tasks; +using Microsoft.CodeAnalysis.ExternalAccess.Razor; +using Microsoft.CodeAnalysis.Razor.DocumentExcerpt; +using Microsoft.CodeAnalysis.Razor.Remote; +using Microsoft.CodeAnalysis.Text; + +namespace Microsoft.CodeAnalysis.Razor.CohostingShared; + +[Export(typeof(IRazorSourceGeneratedDocumentExcerptService))] +[method: ImportingConstructor] +internal sealed class RazorSourceGeneratedDocumentExcerptService(IRemoteServiceInvoker remoteServiceInvoker) : IRazorSourceGeneratedDocumentExcerptService +{ + private readonly IRemoteServiceInvoker _remoteServiceInvoker = remoteServiceInvoker; + + public async Task TryExcerptAsync(SourceGeneratedDocument document, TextSpan span, RazorExcerptMode mode, RazorClassificationOptionsWrapper options, CancellationToken cancellationToken) + { + if (!document.IsRazorSourceGeneratedDocument()) + { + return null; + } + + var result = await _remoteServiceInvoker.TryInvokeAsync( + document.Project.Solution, + (service, solutionInfo, cancellationToken) => service.TryExcerptAsync(solutionInfo, document.Id, span, mode, options, cancellationToken), + cancellationToken).ConfigureAwait(false); + + if (result is null) + { + return null; + } + + // Source text can't be sent back from OOP, so we have to do the translation here. Fortunately this doesn't need + // anything we can't access + var razorDocument = document.Project.GetAdditionalDocument(result.RazorDocumentId); + if (razorDocument is null) + { + return null; + } + + var razorSourceText = await razorDocument.GetTextAsync(cancellationToken).ConfigureAwait(false); + var builder = result.ClassifiedSpans.ToBuilder(); + + var razorDocumentSpan = result.RazorDocumentSpan; + var excerptSpan = result.ExcerptSpan; + var excerptText = DocumentExcerptHelper.GetTranslatedExcerptText(razorSourceText, ref razorDocumentSpan, ref excerptSpan, builder); + + return new RazorExcerptResult(excerptText, razorDocumentSpan, builder.ToImmutable(), document, span); + } +} diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/DocumentExcerpt/DocumentExcerptHelper.cs b/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/DocumentExcerpt/DocumentExcerptHelper.cs new file mode 100644 index 00000000000..7bc06100f2e --- /dev/null +++ b/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/DocumentExcerpt/DocumentExcerptHelper.cs @@ -0,0 +1,176 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; +using System.Collections.Immutable; +using System.Diagnostics; +using System.Threading; +using System.Threading.Tasks; +using Microsoft.AspNetCore.Razor.Language; +using Microsoft.CodeAnalysis.Classification; +using Microsoft.CodeAnalysis.ExternalAccess.Razor; +using Microsoft.CodeAnalysis.Text; + +namespace Microsoft.CodeAnalysis.Razor.DocumentExcerpt; + +internal static class DocumentExcerptHelper +{ + public static async Task.Builder> ClassifyPreviewAsync( + TextSpan excerptSpan, + Document generatedDocument, + ImmutableArray mappings, + RazorClassificationOptionsWrapper options, + CancellationToken cancellationToken) + { + var builder = ImmutableArray.CreateBuilder(); + + var sorted = mappings.Sort((x, y) => x.OriginalSpan.AbsoluteIndex.CompareTo(y.OriginalSpan.AbsoluteIndex)); + + // The algorithm here is to iterate through the source mappings (sorted) and use the C# classifier + // on the spans that are known to be C#. For the spans that are not known to be C# then + // we just treat them as text since we'd don't currently have our own classifications. + + var remainingSpan = excerptSpan; + foreach (var span in sorted) + { + if (excerptSpan.Length == 0) + { + break; + } + + var primarySpan = span.OriginalSpan.AsTextSpan(); + if (primarySpan.Intersection(remainingSpan) is not TextSpan intersection) + { + // This span is outside the area we're interested in. + continue; + } + + // OK this span intersects with the excerpt span, so we will process it. Let's compute + // the secondary span that matches the intersection. + var secondarySpan = span.GeneratedSpan.AsTextSpan(); + secondarySpan = new TextSpan(secondarySpan.Start + intersection.Start - primarySpan.Start, intersection.Length); + primarySpan = intersection; + + if (remainingSpan.Start < primarySpan.Start) + { + // The position is before the next C# span. Classify everything up to the C# start + // as text. + builder.Add(new ClassifiedSpan(ClassificationTypeNames.Text, new TextSpan(remainingSpan.Start, primarySpan.Start - remainingSpan.Start))); + + // Advance to the start of the C# span. + remainingSpan = new TextSpan(primarySpan.Start, remainingSpan.Length - (primarySpan.Start - remainingSpan.Start)); + } + + // We should be able to process this whole span as C#, so classify it. + // + // However, we'll have to translate it to the the generated document's coordinates to do that. + Debug.Assert(remainingSpan.Contains(primarySpan) && remainingSpan.Start == primarySpan.Start); + var classifiedSecondarySpans = await RazorClassifierAccessor.GetClassifiedSpansAsync( + generatedDocument, + secondarySpan, + options, + cancellationToken).ConfigureAwait(false); + + // NOTE: The Classifier will only returns spans for things that it understands. That means + // that whitespace is not classified. The preview expects us to provide contiguous spans, + // so we are going to have to fill in the gaps. + + // Now we have to translate back to the primary document's coordinates. + var offset = primarySpan.Start - secondarySpan.Start; + foreach (var classifiedSecondarySpan in classifiedSecondarySpans) + { + // It's possible for the classified span to extend past our secondary span, so we cap it + var classifiedSpan = classifiedSecondarySpan.TextSpan.End > secondarySpan.End + ? TextSpan.FromBounds(classifiedSecondarySpan.TextSpan.Start, secondarySpan.End) + : classifiedSecondarySpan.TextSpan; + Debug.Assert(secondarySpan.Contains(classifiedSpan)); + + var updated = new TextSpan(classifiedSpan.Start + offset, classifiedSpan.Length); + Debug.Assert(primarySpan.Contains(updated)); + + // Make sure that we're not introducing a gap. Remember, we need to fill in the whitespace. + if (remainingSpan.Start < updated.Start) + { + builder.Add(new ClassifiedSpan( + ClassificationTypeNames.Text, + new TextSpan(remainingSpan.Start, updated.Start - remainingSpan.Start))); + remainingSpan = new TextSpan(updated.Start, remainingSpan.Length - (updated.Start - remainingSpan.Start)); + } + + builder.Add(new ClassifiedSpan(classifiedSecondarySpan.ClassificationType, updated)); + remainingSpan = new TextSpan(updated.End, remainingSpan.Length - (updated.End - remainingSpan.Start)); + } + + // Make sure that we're not introducing a gap. Remember, we need to fill in the whitespace. + if (remainingSpan.Start < primarySpan.End) + { + builder.Add(new ClassifiedSpan( + ClassificationTypeNames.Text, + new TextSpan(remainingSpan.Start, primarySpan.End - remainingSpan.Start))); + remainingSpan = new TextSpan(primarySpan.End, remainingSpan.Length - (primarySpan.End - remainingSpan.Start)); + } + } + + // Deal with residue + if (remainingSpan.Length > 0) + { + // Trailing Razor/markup text. + builder.Add(new ClassifiedSpan(ClassificationTypeNames.Text, remainingSpan)); + } + + return builder; + } + + public static TextSpan ChooseExcerptSpan(SourceText text, TextSpan span, RazorExcerptMode mode) + { + var startLine = text.Lines.GetLineFromPosition(span.Start); + var endLine = text.Lines.GetLineFromPosition(span.End); + + if (mode == RazorExcerptMode.Tooltip) + { + // Expand the range by 3 in each direction (if possible). + var startIndex = Math.Max(startLine.LineNumber - 3, 0); + startLine = text.Lines[startIndex]; + + var endIndex = Math.Min(endLine.LineNumber + 3, text.Lines.Count - 1); + endLine = text.Lines[endIndex]; + return CreateTextSpan(startLine, endLine); + } + else + { + // Trim leading whitespace in a single line excerpt + var excerptSpan = CreateTextSpan(startLine, endLine); + var trimmedExcerptSpan = excerptSpan.TrimLeadingWhitespace(text); + return trimmedExcerptSpan; + } + + static TextSpan CreateTextSpan(TextLine startLine, TextLine endLine) + { + return new TextSpan(startLine.Start, endLine.End - startLine.Start); + } + } + + public static SourceText GetTranslatedExcerptText( + SourceText razorDocumentText, + ref TextSpan razorDocumentSpan, + ref TextSpan excerptSpan, + ImmutableArray.Builder classifiedSpans) + { + // Now translate everything to be relative to the excerpt + var offset = 0 - excerptSpan.Start; + var excerptText = razorDocumentText.GetSubText(excerptSpan); + excerptSpan = new TextSpan(0, excerptSpan.Length); + razorDocumentSpan = new TextSpan(razorDocumentSpan.Start + offset, razorDocumentSpan.Length); + + for (var i = 0; i < classifiedSpans.Count; i++) + { + var classifiedSpan = classifiedSpans[i]; + var updated = new TextSpan(classifiedSpan.TextSpan.Start + offset, classifiedSpan.TextSpan.Length); + Debug.Assert(excerptSpan.Contains(updated)); + + classifiedSpans[i] = new ClassifiedSpan(classifiedSpan.ClassificationType, updated); + } + + return excerptText; + } +} diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Formatting/Passes/CSharpOnTypeFormattingPass.cs b/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Formatting/Passes/CSharpOnTypeFormattingPass.cs index 93c8e3b9766..7eb9224b9d3 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Formatting/Passes/CSharpOnTypeFormattingPass.cs +++ b/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Formatting/Passes/CSharpOnTypeFormattingPass.cs @@ -900,6 +900,11 @@ private static bool ShouldFormat(FormattingContext context, TextSpan mappingSpan return false; } + if (IsComponentStartTagName()) + { + return false; + } + if (IsInHtmlAttributeValue()) { return false; @@ -1004,6 +1009,19 @@ bool IsInBoundComponentAttributeName() } && !options.IsLineRequest; } + bool IsComponentStartTagName() + { + // E.g, (| is position) + // + // `<|Component>` - true + // + // As above, we map component elements, so GTD and FAR works, there could be C# mapping for them. + // We don't want the mapping to make the formatting engine think it needs to apply C# indentation rules. + + return owner is MarkupTagHelperStartTagSyntax startTag && + startTag.Name.Span.Contains(mappingSpan.Start); + } + bool IsInHtmlAttributeValue() { // E.g, (| is position) diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/GoToDefinition/AbstractDefinitionService.cs b/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/GoToDefinition/AbstractDefinitionService.cs index e1e682bd152..9bc30d397c3 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/GoToDefinition/AbstractDefinitionService.cs +++ b/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/GoToDefinition/AbstractDefinitionService.cs @@ -9,7 +9,6 @@ using Microsoft.CodeAnalysis.Razor.DocumentMapping; using Microsoft.CodeAnalysis.Razor.Logging; using Microsoft.CodeAnalysis.Razor.ProjectSystem; -using Microsoft.CodeAnalysis.Razor.Protocol; using Microsoft.CodeAnalysis.Razor.Workspaces; using Microsoft.CodeAnalysis.Text; using CSharpSyntaxKind = Microsoft.CodeAnalysis.CSharp.SyntaxKind; @@ -35,13 +34,6 @@ internal abstract class AbstractDefinitionService( bool includeMvcTagHelpers, CancellationToken cancellationToken) { - - // If we're in C# then there is no point checking for a component tag, because there won't be one - if (positionInfo.LanguageKind == RazorLanguageKind.CSharp) - { - return null; - } - if (!includeMvcTagHelpers && !documentSnapshot.FileKind.IsComponent()) { _logger.LogInformation($"'{documentSnapshot.FileKind}' is not a component type."); diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Remote/IRemoteSpanMappingService.cs b/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Remote/IRemoteSpanMappingService.cs index ddff29ffb47..c0997178d6a 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Remote/IRemoteSpanMappingService.cs +++ b/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Remote/IRemoteSpanMappingService.cs @@ -22,4 +22,12 @@ ValueTask> MapSpansAsync( DocumentId generatedDocumentId, ImmutableArray spans, CancellationToken cancellationToken); + + ValueTask TryExcerptAsync( + RazorPinnedSolutionInfoWrapper solutionInfo, + DocumentId id, + TextSpan span, + RazorExcerptMode mode, + RazorClassificationOptionsWrapper options, + CancellationToken cancellationToken); } diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Remote/RemoteExcerptResult.cs b/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Remote/RemoteExcerptResult.cs new file mode 100644 index 00000000000..1c4cedaeac2 --- /dev/null +++ b/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/Remote/RemoteExcerptResult.cs @@ -0,0 +1,17 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Collections.Immutable; +using System.Runtime.Serialization; +using Microsoft.CodeAnalysis.Classification; +using Microsoft.CodeAnalysis.Text; + +namespace Microsoft.CodeAnalysis.Razor.Remote; + +[DataContract] +internal sealed record RemoteExcerptResult( + [property: DataMember(Order = 0)] DocumentId RazorDocumentId, + [property: DataMember(Order = 1)] TextSpan RazorDocumentSpan, + [property: DataMember(Order = 2)] TextSpan ExcerptSpan, + [property: DataMember(Order = 3)] ImmutableArray ClassifiedSpans, + [property: DataMember(Order = 4)] TextSpan Span); diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/SemanticTokens/AbstractRazorSemanticTokensInfoService.cs b/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/SemanticTokens/AbstractRazorSemanticTokensInfoService.cs index fe69df4df65..7719d377ab1 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/SemanticTokens/AbstractRazorSemanticTokensInfoService.cs +++ b/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/SemanticTokens/AbstractRazorSemanticTokensInfoService.cs @@ -191,7 +191,7 @@ private void AddAdditionalCSharpWhitespaceRanges(List razorRanges ContainsOnlySpacesOrTabs(razorSource, previousSpanEndIndex + 1, startChar - previousRange.End.Character - 1)) { // we're on the same line as previous, lets extend ours to include whitespace between us and the proceeding range - razorRanges.Add(new SemanticRange(textClassification, startLine, previousRange.End.Character, startLine, startChar, _semanticTokensLegendService.TokenModifiers.RazorCodeModifier, fromRazor: false)); + razorRanges.Add(new SemanticRange(textClassification, startLine, previousRange.End.Character, startLine, startChar, _semanticTokensLegendService.TokenModifiers.RazorCodeModifier, fromRazor: false, isCSharpWhitespace: true)); } else if (startChar > 0 && previousRazorSemanticRange?.End.Line != startLine && @@ -199,7 +199,7 @@ private void AddAdditionalCSharpWhitespaceRanges(List razorRanges ContainsOnlySpacesOrTabs(razorSource, originalRangeStartIndex - startChar + 1, startChar - 1)) { // We're on a new line, and the start of the line is only whitespace, so give that a background color too - razorRanges.Add(new SemanticRange(textClassification, startLine, 0, startLine, startChar, _semanticTokensLegendService.TokenModifiers.RazorCodeModifier, fromRazor: false)); + razorRanges.Add(new SemanticRange(textClassification, startLine, 0, startLine, startChar, _semanticTokensLegendService.TokenModifiers.RazorCodeModifier, fromRazor: false, isCSharpWhitespace: true)); } } @@ -300,10 +300,10 @@ private static int[] ConvertSemanticRangesToSemanticTokensData( if (TryWriteToken(range, previousRange, isFirstRange, sourceText, tokens.AsSpan(index, TokenSize))) { index += TokenSize; + previousRange = range; } isFirstRange = false; - previousRange = range; } // The common case is that the ConvertIntoDataArray calls didn't find any overlap, and we can just directly use the @@ -366,6 +366,16 @@ static bool TryWriteToken( deltaStart = currentRange.StartCharacter; } + // If this is a C# whitespace range, and the previous range is on the same line, and from Razor + // then we don't want to emit this. This happens when we have leftover whitespace from between + // two C# ranges, that were superseded by Razor ranges. + if (currentRange.IsCSharpWhitespace && + previousRange.FromRazor && + currentRange.StartLine == previousRange.EndLine) + { + return false; + } + destination[0] = deltaLine; destination[1] = deltaStart; diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/SemanticTokens/SemanticRange.cs b/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/SemanticTokens/SemanticRange.cs index 7208b71dbd7..a5b84c35a4d 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/SemanticTokens/SemanticRange.cs +++ b/src/Razor/src/Microsoft.CodeAnalysis.Razor.Workspaces/SemanticTokens/SemanticRange.cs @@ -8,7 +8,7 @@ namespace Microsoft.CodeAnalysis.Razor.SemanticTokens; internal readonly struct SemanticRange : IComparable { - public SemanticRange(int kind, int startLine, int startCharacter, int endLine, int endCharacter, int modifier, bool fromRazor) + public SemanticRange(int kind, int startLine, int startCharacter, int endLine, int endCharacter, int modifier, bool fromRazor, bool isCSharpWhitespace) { Kind = kind; StartLine = startLine; @@ -17,6 +17,7 @@ public SemanticRange(int kind, int startLine, int startCharacter, int endLine, i EndCharacter = endCharacter; Modifier = modifier; FromRazor = fromRazor; + IsCSharpWhitespace = isCSharpWhitespace; } public SemanticRange(int kind, LinePositionSpan range, int modifier, bool fromRazor) @@ -25,7 +26,12 @@ public SemanticRange(int kind, LinePositionSpan range, int modifier, bool fromRa } public SemanticRange(int kind, LinePosition start, LinePosition end, int modifier, bool fromRazor) - : this(kind, start.Line, start.Character, end.Line, end.Character, modifier, fromRazor) + : this(kind, start.Line, start.Character, end.Line, end.Character, modifier, fromRazor, isCSharpWhitespace: false) + { + } + + public SemanticRange(int kind, int startLine, int startCharacter, int endLine, int endCharacter, int modifier, bool fromRazor) + : this(kind, startLine, startCharacter, endLine, endCharacter, modifier, fromRazor, isCSharpWhitespace: false) { } @@ -45,6 +51,8 @@ public SemanticRange(int kind, LinePosition start, LinePosition end, int modifie /// public bool FromRazor { get; } + public bool IsCSharpWhitespace { get; } + public LinePositionSpan AsLinePositionSpan() => new(new(StartLine, StartCharacter), new(EndLine, EndCharacter)); diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/WrapWithTag/RemoteSpanMappingService.cs b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/DocumentMapping/RemoteSpanMappingService.cs similarity index 62% rename from src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/WrapWithTag/RemoteSpanMappingService.cs rename to src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/DocumentMapping/RemoteSpanMappingService.cs index 65294bc201f..f2307974e4a 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/WrapWithTag/RemoteSpanMappingService.cs +++ b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/DocumentMapping/RemoteSpanMappingService.cs @@ -7,8 +7,10 @@ using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Razor; +using Microsoft.AspNetCore.Razor.Language; using Microsoft.AspNetCore.Razor.PooledObjects; using Microsoft.CodeAnalysis.ExternalAccess.Razor; +using Microsoft.CodeAnalysis.Razor.DocumentExcerpt; using Microsoft.CodeAnalysis.Razor.DocumentMapping; using Microsoft.CodeAnalysis.Razor.Protocol; using Microsoft.CodeAnalysis.Razor.Remote; @@ -30,6 +32,54 @@ protected override IRemoteSpanMappingService CreateService(in ServiceArgs args) private readonly IDocumentMappingService _documentMappingService = args.ExportProvider.GetExportedValue(); private readonly ITelemetryReporter _telemetryReporter = args.ExportProvider.GetExportedValue(); + public ValueTask TryExcerptAsync(RazorPinnedSolutionInfoWrapper solutionInfo, DocumentId generatedDocumentId, TextSpan span, RazorExcerptMode mode, RazorClassificationOptionsWrapper options, CancellationToken cancellationToken) + => RunServiceAsync( + solutionInfo, + solution => TryExcerptAsync(solution, generatedDocumentId, span, mode, options, cancellationToken), + cancellationToken); + + private async ValueTask TryExcerptAsync(Solution solution, DocumentId generatedDocumentId, TextSpan span, RazorExcerptMode mode, RazorClassificationOptionsWrapper options, CancellationToken cancellationToken) + { + var generatedDocument = await solution.GetSourceGeneratedDocumentAsync(generatedDocumentId, cancellationToken).ConfigureAwait(false); + if (generatedDocument is null) + { + return null; + } + + var razorDocument = await TryGetRazorDocumentForGeneratedDocumentAsync(generatedDocument, cancellationToken).ConfigureAwait(false); + if (razorDocument is null) + { + return null; + } + + var documentSnapshot = _snapshotManager.GetSnapshot(razorDocument); + var codeDocument = await documentSnapshot.GetGeneratedOutputAsync(cancellationToken).ConfigureAwait(false); + + var mappedSpans = MapSpans(codeDocument, [span]); + if (mappedSpans is not [{ IsDefault: false } mappedSpan]) + { + return null; + } + + var razorDocumentText = await razorDocument.GetTextAsync(cancellationToken).ConfigureAwait(false); + var razorDocumentSpan = razorDocumentText.GetTextSpan(mappedSpan.LinePositionSpan); + + // First compute the range of text we want to we to display relative to the primary document. + var excerptSpan = DocumentExcerptHelper.ChooseExcerptSpan(razorDocumentText, razorDocumentSpan, mode); + + // Then we'll classify the spans based on the primary document, since that's the coordinate + // space that our output mappings use. + var mappings = codeDocument.GetRequiredCSharpDocument().SourceMappings; + var classifiedSpans = await DocumentExcerptHelper.ClassifyPreviewAsync( + excerptSpan, + generatedDocument, + mappings, + options, + cancellationToken).ConfigureAwait(false); + + return new RemoteExcerptResult(razorDocument.Id, razorDocumentSpan, excerptSpan, classifiedSpans.ToImmutable(), span); + } + public ValueTask> MapSpansAsync(RazorPinnedSolutionInfoWrapper solutionInfo, DocumentId generatedDocumentId, ImmutableArray spans, CancellationToken cancellationToken) => RunServiceAsync( solutionInfo, @@ -45,12 +95,17 @@ private async ValueTask> MapSpansAsync(Sol } var documentSnapshot = _snapshotManager.GetSnapshot(razorDocument); - var output = await documentSnapshot.GetGeneratedOutputAsync(cancellationToken).ConfigureAwait(false); + var codeDocument = await documentSnapshot.GetGeneratedOutputAsync(cancellationToken).ConfigureAwait(false); + + return MapSpans(codeDocument, spans); + } - var source = output.Source.Text; + private static ImmutableArray MapSpans(RazorCodeDocument codeDocument, ImmutableArray spans) + { + var source = codeDocument.Source.Text; - var csharpDocument = output.GetRequiredCSharpDocument(); - var filePath = output.Source.FilePath.AssumeNotNull(); + var csharpDocument = codeDocument.GetRequiredCSharpDocument(); + var filePath = codeDocument.Source.FilePath.AssumeNotNull(); using var results = new PooledArrayBuilder(); @@ -118,6 +173,11 @@ private async ValueTask> MapTextChangesAsy return null; } + return await TryGetRazorDocumentForGeneratedDocumentAsync(generatedDocument, cancellationToken).ConfigureAwait(false); + } + + private async Task TryGetRazorDocumentForGeneratedDocumentAsync(SourceGeneratedDocument generatedDocument, CancellationToken cancellationToken) + { var identity = RazorGeneratedDocumentIdentity.Create(generatedDocument); if (!identity.IsRazorSourceGeneratedDocument()) { diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/FindAllReferences/RemoteFindAllReferencesService.cs b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/FindAllReferences/RemoteFindAllReferencesService.cs index d7dfbc3316f..14801654fbb 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/FindAllReferences/RemoteFindAllReferencesService.cs +++ b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/FindAllReferences/RemoteFindAllReferencesService.cs @@ -4,6 +4,7 @@ using System.Threading; using System.Threading.Tasks; using Microsoft.AspNetCore.Razor.Language; +using Microsoft.AspNetCore.Razor.PooledObjects; using Microsoft.CodeAnalysis.ExternalAccess.Razor; using Microsoft.CodeAnalysis.Razor; using Microsoft.CodeAnalysis.Razor.DocumentMapping; @@ -30,6 +31,7 @@ protected override IRemoteFindAllReferencesService CreateService(in ServiceArgs private readonly IClientCapabilitiesService _clientCapabilitiesService = args.ExportProvider.GetExportedValue(); private readonly IWorkspaceProvider _workspaceProvider = args.WorkspaceProvider; + private readonly IFilePathService _filePathService = args.ExportProvider.GetExportedValue(); protected override IDocumentPositionInfoStrategy DocumentPositionInfoStrategy => PreferAttributeNameDocumentPositionInfoStrategy.Instance; @@ -86,6 +88,8 @@ protected override IRemoteFindAllReferencesService CreateService(in ServiceArgs return NoFurtherHandling; } + using var mappedResults = new PooledArrayBuilder>(results.Length); + // Map the C# locations back to the Razor file. foreach (var result in results) { @@ -100,6 +104,12 @@ protected override IRemoteFindAllReferencesService CreateService(in ServiceArgs var (mappedUri, mappedRange) = await DocumentMappingService.MapToHostDocumentUriAndRangeAsync(context.Snapshot, location.DocumentUri.GetRequiredParsedUri(), location.Range.ToLinePositionSpan(), cancellationToken).ConfigureAwait(false); + if (_filePathService.IsVirtualCSharpFile(mappedUri)) + { + // Couldn't map, so probably a hidden part of the code-gen, let's skip it. + continue; + } + if (referenceItem is not null) { // Indicates the reference item is directly available in the code @@ -118,8 +128,10 @@ protected override IRemoteFindAllReferencesService CreateService(in ServiceArgs location.DocumentUri = new(mappedUri); location.Range = mappedRange.ToRange(); + + mappedResults.Add(result); } - return Results(results); + return Results(mappedResults.ToArrayAndClear()); } } diff --git a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/GoToDefinition/RemoteGoToDefinitionService.cs b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/GoToDefinition/RemoteGoToDefinitionService.cs index 459e91d809d..1e7b9a55244 100644 --- a/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/GoToDefinition/RemoteGoToDefinitionService.cs +++ b/src/Razor/src/Microsoft.CodeAnalysis.Remote.Razor/GoToDefinition/RemoteGoToDefinitionService.cs @@ -60,6 +60,21 @@ protected override IRemoteGoToDefinitionService CreateService(in ServiceArgs arg var positionInfo = GetPositionInfo(codeDocument, hostDocumentIndex, preferCSharpOverHtml: true); + // First, see if this is a tag helper. We ignore component attributes here, because they're better served by the C# handler. + var componentLocations = await _definitionService.GetDefinitionAsync( + context.Snapshot, + positionInfo, + context.GetSolutionQueryOperations(), + ignoreComponentAttributes: true, + includeMvcTagHelpers: true, + cancellationToken) + .ConfigureAwait(false); + + if (componentLocations is { Length: > 0 }) + { + return Results(componentLocations); + } + // Check if we're in a string literal with a file path (before calling C# which would navigate to String class) if (positionInfo.LanguageKind is RazorLanguageKind.CSharp) { @@ -77,21 +92,6 @@ protected override IRemoteGoToDefinitionService CreateService(in ServiceArgs arg if (positionInfo.LanguageKind is RazorLanguageKind.Html or RazorLanguageKind.Razor) { - // First, see if this is a tag helper. We ignore component attributes here, because they're better served by the C# handler. - var componentLocations = await _definitionService.GetDefinitionAsync( - context.Snapshot, - positionInfo, - context.GetSolutionQueryOperations(), - ignoreComponentAttributes: true, - includeMvcTagHelpers: true, - cancellationToken) - .ConfigureAwait(false); - - if (componentLocations is { Length: > 0 }) - { - return Results(componentLocations); - } - // If it isn't a Razor construct, and it isn't C#, let the server know to delegate to HTML. return CallHtml; } diff --git a/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/DynamicFiles/DocumentExcerptService.cs b/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/DynamicFiles/DocumentExcerptService.cs index cca18915837..8738df83614 100644 --- a/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/DynamicFiles/DocumentExcerptService.cs +++ b/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/DynamicFiles/DocumentExcerptService.cs @@ -1,13 +1,9 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System; -using System.Collections.Immutable; -using System.Diagnostics; using System.Threading; using System.Threading.Tasks; using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.Classification; using Microsoft.CodeAnalysis.ExternalAccess.Razor; using Microsoft.CodeAnalysis.Text; @@ -15,74 +11,20 @@ namespace Microsoft.VisualStudio.Razor.DynamicFiles; internal abstract class DocumentExcerptService : IRazorDocumentExcerptServiceImplementation { - async Task IRazorDocumentExcerptServiceImplementation.TryExcerptAsync( + Task IRazorDocumentExcerptServiceImplementation.TryExcerptAsync( Document document, TextSpan span, RazorExcerptMode mode, RazorClassificationOptionsWrapper options, CancellationToken cancellationToken) { - var result = await TryGetExcerptInternalAsync(document, span, (ExcerptModeInternal)mode, options, cancellationToken).ConfigureAwait(false); - return result?.ToExcerptResult(); + return TryGetExcerptInternalAsync(document, span, mode, options, cancellationToken); } - internal abstract Task TryGetExcerptInternalAsync( + internal abstract Task TryGetExcerptInternalAsync( Document document, TextSpan span, - ExcerptModeInternal mode, + RazorExcerptMode mode, RazorClassificationOptionsWrapper options, CancellationToken cancellationToken); - - protected static TextSpan ChooseExcerptSpan(SourceText text, TextSpan span, ExcerptModeInternal mode) - { - var startLine = text.Lines.GetLineFromPosition(span.Start); - var endLine = text.Lines.GetLineFromPosition(span.End); - - if (mode == ExcerptModeInternal.Tooltip) - { - // Expand the range by 3 in each direction (if possible). - var startIndex = Math.Max(startLine.LineNumber - 3, 0); - startLine = text.Lines[startIndex]; - - var endIndex = Math.Min(endLine.LineNumber + 3, text.Lines.Count - 1); - endLine = text.Lines[endIndex]; - return CreateTextSpan(startLine, endLine); - } - else - { - // Trim leading whitespace in a single line excerpt - var excerptSpan = CreateTextSpan(startLine, endLine); - var trimmedExcerptSpan = excerptSpan.TrimLeadingWhitespace(text); - return trimmedExcerptSpan; - } - - static TextSpan CreateTextSpan(TextLine startLine, TextLine endLine) - { - return new TextSpan(startLine.Start, endLine.End - startLine.Start); - } - } - - protected static SourceText GetTranslatedExcerptText( - SourceText razorDocumentText, - ref TextSpan razorDocumentSpan, - ref TextSpan excerptSpan, - ImmutableArray.Builder classifiedSpans) - { - // Now translate everything to be relative to the excerpt - var offset = 0 - excerptSpan.Start; - var excerptText = razorDocumentText.GetSubText(excerptSpan); - excerptSpan = new TextSpan(0, excerptSpan.Length); - razorDocumentSpan = new TextSpan(razorDocumentSpan.Start + offset, razorDocumentSpan.Length); - - for (var i = 0; i < classifiedSpans.Count; i++) - { - var classifiedSpan = classifiedSpans[i]; - var updated = new TextSpan(classifiedSpan.TextSpan.Start + offset, classifiedSpan.TextSpan.Length); - Debug.Assert(excerptSpan.Contains(updated)); - - classifiedSpans[i] = new ClassifiedSpan(classifiedSpan.ClassificationType, updated); - } - - return excerptText; - } } diff --git a/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/DynamicFiles/ExcerptModeInternal.cs b/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/DynamicFiles/ExcerptModeInternal.cs deleted file mode 100644 index 2e525557e6a..00000000000 --- a/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/DynamicFiles/ExcerptModeInternal.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -using Microsoft.CodeAnalysis.ExternalAccess.Razor; - -namespace Microsoft.VisualStudio.Razor.DynamicFiles; - -// We have IVT access to the Roslyn APIs for product code, but not for testing. -internal enum ExcerptModeInternal -{ - SingleLine = RazorExcerptMode.SingleLine, - Tooltip = RazorExcerptMode.Tooltip, -} diff --git a/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/DynamicFiles/ExcerptResultInternal.cs b/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/DynamicFiles/ExcerptResultInternal.cs deleted file mode 100644 index 5d475aabbaa..00000000000 --- a/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/DynamicFiles/ExcerptResultInternal.cs +++ /dev/null @@ -1,39 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. - -using System.Collections.Immutable; -using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.Classification; -using Microsoft.CodeAnalysis.ExternalAccess.Razor; -using Microsoft.CodeAnalysis.Text; - -namespace Microsoft.VisualStudio.Razor.DynamicFiles; - -// We have IVT access to the Roslyn APIs for product code, but not for testing. -internal readonly struct ExcerptResultInternal -{ - public readonly SourceText Content; - public readonly TextSpan MappedSpan; - public readonly ImmutableArray ClassifiedSpans; - public readonly Document Document; - public readonly TextSpan Span; - - public ExcerptResultInternal( - SourceText content, - TextSpan mappedSpan, - ImmutableArray classifiedSpans, - Document document, - TextSpan span) - { - Content = content; - MappedSpan = mappedSpan; - ClassifiedSpans = classifiedSpans; - Document = document; - Span = span; - } - - public RazorExcerptResult ToExcerptResult() - { - return new RazorExcerptResult(Content, MappedSpan, ClassifiedSpans, Document, Span); - } -} diff --git a/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/DynamicFiles/RazorDocumentExcerptService.cs b/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/DynamicFiles/RazorDocumentExcerptService.cs index 7e8f7124e2a..85da1560049 100644 --- a/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/DynamicFiles/RazorDocumentExcerptService.cs +++ b/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/DynamicFiles/RazorDocumentExcerptService.cs @@ -1,15 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -using System.Collections.Immutable; -using System.Diagnostics; using System.Threading; using System.Threading.Tasks; -using Microsoft.AspNetCore.Razor.Language; using Microsoft.CodeAnalysis; -using Microsoft.CodeAnalysis.Classification; using Microsoft.CodeAnalysis.ExternalAccess.Razor; -using Microsoft.CodeAnalysis.Razor; +using Microsoft.CodeAnalysis.Razor.DocumentExcerpt; using Microsoft.CodeAnalysis.Razor.ProjectSystem; using Microsoft.CodeAnalysis.Text; @@ -22,10 +18,10 @@ internal class RazorDocumentExcerptService( private readonly IDocumentSnapshot _document = document; private readonly IRazorMappingService _mappingService = mappingService; - internal override async Task TryGetExcerptInternalAsync( + internal override async Task TryGetExcerptInternalAsync( Document document, TextSpan span, - ExcerptModeInternal mode, + RazorExcerptMode mode, RazorClassificationOptionsWrapper options, CancellationToken cancellationToken) { @@ -52,127 +48,21 @@ internal class RazorDocumentExcerptService( var generatedDocument = document; // First compute the range of text we want to we to display relative to the primary document. - var excerptSpan = ChooseExcerptSpan(razorDocumentText, razorDocumentSpan, mode); + var excerptSpan = DocumentExcerptHelper.ChooseExcerptSpan(razorDocumentText, razorDocumentSpan, mode); // Then we'll classify the spans based on the primary document, since that's the coordinate // space that our output mappings use. var output = await _document.GetGeneratedOutputAsync(cancellationToken).ConfigureAwait(false); var mappings = output.GetRequiredCSharpDocument().SourceMappings; - var classifiedSpans = await ClassifyPreviewAsync( + var classifiedSpans = await DocumentExcerptHelper.ClassifyPreviewAsync( excerptSpan, generatedDocument, mappings, options, cancellationToken).ConfigureAwait(false); - var excerptText = GetTranslatedExcerptText(razorDocumentText, ref razorDocumentSpan, ref excerptSpan, classifiedSpans); + var excerptText = DocumentExcerptHelper.GetTranslatedExcerptText(razorDocumentText, ref razorDocumentSpan, ref excerptSpan, classifiedSpans); - return new ExcerptResultInternal(excerptText, razorDocumentSpan, classifiedSpans.ToImmutable(), document, span); - } - - private async Task.Builder> ClassifyPreviewAsync( - TextSpan excerptSpan, - Document generatedDocument, - ImmutableArray mappings, - RazorClassificationOptionsWrapper options, - CancellationToken cancellationToken) - { - var builder = ImmutableArray.CreateBuilder(); - - var sorted = mappings.Sort((x, y) => x.OriginalSpan.AbsoluteIndex.CompareTo(y.OriginalSpan.AbsoluteIndex)); - - // The algorithm here is to iterate through the source mappings (sorted) and use the C# classifier - // on the spans that are known to be C#. For the spans that are not known to be C# then - // we just treat them as text since we'd don't currently have our own classifications. - - var remainingSpan = excerptSpan; - foreach (var span in sorted) - { - if (excerptSpan.Length == 0) - { - break; - } - - var primarySpan = span.OriginalSpan.AsTextSpan(); - if (primarySpan.Intersection(remainingSpan) is not TextSpan intersection) - { - // This span is outside the area we're interested in. - continue; - } - - // OK this span intersects with the excerpt span, so we will process it. Let's compute - // the secondary span that matches the intersection. - var secondarySpan = span.GeneratedSpan.AsTextSpan(); - secondarySpan = new TextSpan(secondarySpan.Start + intersection.Start - primarySpan.Start, intersection.Length); - primarySpan = intersection; - - if (remainingSpan.Start < primarySpan.Start) - { - // The position is before the next C# span. Classify everything up to the C# start - // as text. - builder.Add(new ClassifiedSpan(ClassificationTypeNames.Text, new TextSpan(remainingSpan.Start, primarySpan.Start - remainingSpan.Start))); - - // Advance to the start of the C# span. - remainingSpan = new TextSpan(primarySpan.Start, remainingSpan.Length - (primarySpan.Start - remainingSpan.Start)); - } - - // We should be able to process this whole span as C#, so classify it. - // - // However, we'll have to translate it to the the generated document's coordinates to do that. - Debug.Assert(remainingSpan.Contains(primarySpan) && remainingSpan.Start == primarySpan.Start); - var classifiedSecondarySpans = await RazorClassifierAccessor.GetClassifiedSpansAsync( - generatedDocument, - secondarySpan, - options, - cancellationToken).ConfigureAwait(false); - - // NOTE: The Classifier will only returns spans for things that it understands. That means - // that whitespace is not classified. The preview expects us to provide contiguous spans, - // so we are going to have to fill in the gaps. - - // Now we have to translate back to the primary document's coordinates. - var offset = primarySpan.Start - secondarySpan.Start; - foreach (var classifiedSecondarySpan in classifiedSecondarySpans) - { - // It's possible for the classified span to extend past our secondary span, so we cap it - var classifiedSpan = classifiedSecondarySpan.TextSpan.End > secondarySpan.End - ? TextSpan.FromBounds(classifiedSecondarySpan.TextSpan.Start, secondarySpan.End) - : classifiedSecondarySpan.TextSpan; - Debug.Assert(secondarySpan.Contains(classifiedSpan)); - - var updated = new TextSpan(classifiedSpan.Start + offset, classifiedSpan.Length); - Debug.Assert(primarySpan.Contains(updated)); - - // Make sure that we're not introducing a gap. Remember, we need to fill in the whitespace. - if (remainingSpan.Start < updated.Start) - { - builder.Add(new ClassifiedSpan( - ClassificationTypeNames.Text, - new TextSpan(remainingSpan.Start, updated.Start - remainingSpan.Start))); - remainingSpan = new TextSpan(updated.Start, remainingSpan.Length - (updated.Start - remainingSpan.Start)); - } - - builder.Add(new ClassifiedSpan(classifiedSecondarySpan.ClassificationType, updated)); - remainingSpan = new TextSpan(updated.End, remainingSpan.Length - (updated.End - remainingSpan.Start)); - } - - // Make sure that we're not introducing a gap. Remember, we need to fill in the whitespace. - if (remainingSpan.Start < primarySpan.End) - { - builder.Add(new ClassifiedSpan( - ClassificationTypeNames.Text, - new TextSpan(remainingSpan.Start, primarySpan.End - remainingSpan.Start))); - remainingSpan = new TextSpan(primarySpan.End, remainingSpan.Length - (primarySpan.End - remainingSpan.Start)); - } - } - - // Deal with residue - if (remainingSpan.Length > 0) - { - // Trailing Razor/markup text. - builder.Add(new ClassifiedSpan(ClassificationTypeNames.Text, remainingSpan)); - } - - return builder; + return new RazorExcerptResult(excerptText, razorDocumentSpan, classifiedSpans.ToImmutable(), document, span); } } diff --git a/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/LanguageClient/CSharpDocumentExcerptService.cs b/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/LanguageClient/CSharpDocumentExcerptService.cs index 0b9148678b3..7e44d1a7c0d 100644 --- a/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/LanguageClient/CSharpDocumentExcerptService.cs +++ b/src/Razor/src/Microsoft.VisualStudio.LanguageServices.Razor/LanguageClient/CSharpDocumentExcerptService.cs @@ -8,6 +8,7 @@ using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Classification; using Microsoft.CodeAnalysis.ExternalAccess.Razor; +using Microsoft.CodeAnalysis.Razor.DocumentExcerpt; using Microsoft.CodeAnalysis.Text; using Microsoft.VisualStudio.LanguageServer.ContainedLanguage; using Microsoft.VisualStudio.Razor.DynamicFiles; @@ -45,10 +46,10 @@ internal CSharpDocumentExcerptService() { } - internal override async Task TryGetExcerptInternalAsync( + internal override async Task TryGetExcerptInternalAsync( Document document, TextSpan span, - ExcerptModeInternal mode, + RazorExcerptMode mode, RazorClassificationOptionsWrapper options, CancellationToken cancellationToken) { @@ -68,10 +69,10 @@ internal CSharpDocumentExcerptService() cancellationToken).ConfigureAwait(false); } - internal async Task TryGetExcerptInternalAsync( + internal async Task TryGetExcerptInternalAsync( Document document, TextSpan span, - ExcerptModeInternal mode, + RazorExcerptMode mode, SourceText razorDocumentText, LinePositionSpan mappedLinePosition, RazorClassificationOptionsWrapper options, @@ -82,7 +83,7 @@ internal CSharpDocumentExcerptService() var generatedDocument = document; // First compute the range of text we want to we to display relative to the razor document. - var excerptSpan = ChooseExcerptSpan(razorDocumentText, razorDocumentSpan, mode); + var excerptSpan = DocumentExcerptHelper.ChooseExcerptSpan(razorDocumentText, razorDocumentSpan, mode); // Then we'll classify the spans based on the razor document, since that's the coordinate // space that our output mappings use. @@ -94,9 +95,9 @@ internal CSharpDocumentExcerptService() options, cancellationToken).ConfigureAwait(false); - var excerptText = GetTranslatedExcerptText(razorDocumentText, ref razorDocumentSpan, ref excerptSpan, classifiedSpans); + var excerptText = DocumentExcerptHelper.GetTranslatedExcerptText(razorDocumentText, ref razorDocumentSpan, ref excerptSpan, classifiedSpans); - return new ExcerptResultInternal(excerptText, razorDocumentSpan, classifiedSpans.ToImmutable(), document, span); + return new RazorExcerptResult(excerptText, razorDocumentSpan, classifiedSpans.ToImmutable(), document, span); } private static async Task.Builder> ClassifyPreviewAsync( diff --git a/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/HoverAssertions.cs b/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/HoverAssertions.cs index fda47fd14a9..c3f861492d2 100644 --- a/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/HoverAssertions.cs +++ b/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/Cohost/HoverAssertions.cs @@ -74,6 +74,9 @@ public static Action ClassName(string text) public static Action Keyword(string text) => Run(text, ClassificationTypeNames.Keyword); + public static Action Namespace(string text) + => Run(text, ClassificationTypeNames.NamespaceName); + public static Action LocalName(string text) => Run(text, ClassificationTypeNames.LocalName); diff --git a/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/DynamicFiles/RazorDocumentExcerptServiceTest.cs b/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/DynamicFiles/RazorDocumentExcerptServiceTest.cs index 0df9933bc2f..6e21c4d8e01 100644 --- a/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/DynamicFiles/RazorDocumentExcerptServiceTest.cs +++ b/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/DynamicFiles/RazorDocumentExcerptServiceTest.cs @@ -34,7 +34,7 @@ public async Task TryGetExcerptInternalAsync_SingleLine_CanClassifyCSharp() // Act var options = RazorClassificationOptionsWrapper.Default; - var result = await service.TryGetExcerptInternalAsync(secondary, secondarySpan, ExcerptModeInternal.SingleLine, options, DisposalToken); + var result = await service.TryGetExcerptInternalAsync(secondary, secondarySpan, RazorExcerptMode.SingleLine, options, DisposalToken); // Assert Assert.NotNull(result); @@ -112,7 +112,7 @@ public async Task TryGetExcerptInternalAsync_SingleLine_CanClassifyCSharp_Implic // Act var options = RazorClassificationOptionsWrapper.Default; - var result = await service.TryGetExcerptInternalAsync(secondary, secondarySpan, ExcerptModeInternal.SingleLine, options, DisposalToken); + var result = await service.TryGetExcerptInternalAsync(secondary, secondarySpan, RazorExcerptMode.SingleLine, options, DisposalToken); // Assert Assert.NotNull(result); @@ -165,7 +165,7 @@ public async Task TryGetExcerptInternalAsync_SingleLine_CanClassifyCSharp_Comple // Act var options = RazorClassificationOptionsWrapper.Default; - var result = await service.TryGetExcerptInternalAsync(secondary, secondarySpan, ExcerptModeInternal.SingleLine, options, DisposalToken); + var result = await service.TryGetExcerptInternalAsync(secondary, secondarySpan, RazorExcerptMode.SingleLine, options, DisposalToken); // Assert Assert.NotNull(result); @@ -272,7 +272,7 @@ than that. // Act var options = RazorClassificationOptionsWrapper.Default; - var result = await service.TryGetExcerptInternalAsync(secondary, secondarySpan, ExcerptModeInternal.Tooltip, options, DisposalToken); + var result = await service.TryGetExcerptInternalAsync(secondary, secondarySpan, RazorExcerptMode.Tooltip, options, DisposalToken); // Assert Assert.NotNull(result); @@ -376,7 +376,7 @@ This is a // Act var options = RazorClassificationOptionsWrapper.Default; - var result = await service.TryGetExcerptInternalAsync(secondary, secondarySpan, ExcerptModeInternal.SingleLine, options, DisposalToken); + var result = await service.TryGetExcerptInternalAsync(secondary, secondarySpan, RazorExcerptMode.SingleLine, options, DisposalToken); // Assert Assert.NotNull(result); @@ -450,7 +450,7 @@ public async Task TryGetExcerptInternalAsync_MultiLine_CanClassifyCSharp() // Act var options = RazorClassificationOptionsWrapper.Default; - var result = await service.TryGetExcerptInternalAsync(secondary, secondarySpan, ExcerptModeInternal.Tooltip, options, DisposalToken); + var result = await service.TryGetExcerptInternalAsync(secondary, secondarySpan, RazorExcerptMode.Tooltip, options, DisposalToken); // Assert Assert.NotNull(result); @@ -559,7 +559,7 @@ public async Task TryGetExcerptInternalAsync_MultiLine_Boundaries_CanClassifyCSh // Act var options = RazorClassificationOptionsWrapper.Default; - var result = await service.TryGetExcerptInternalAsync(secondary, secondarySpan, ExcerptModeInternal.Tooltip, options, DisposalToken); + var result = await service.TryGetExcerptInternalAsync(secondary, secondarySpan, RazorExcerptMode.Tooltip, options, DisposalToken); // Assert // Verifies that the right part of the primary document will be highlighted. diff --git a/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/LanguageClient/CSharpDocumentExcerptServiceTests.cs b/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/LanguageClient/CSharpDocumentExcerptServiceTests.cs index 448d14084dc..57ff1d3b95e 100644 --- a/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/LanguageClient/CSharpDocumentExcerptServiceTests.cs +++ b/src/Razor/test/Microsoft.VisualStudio.LanguageServices.Razor.Test/LanguageClient/CSharpDocumentExcerptServiceTests.cs @@ -1,14 +1,11 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -#nullable disable - using System.Threading.Tasks; using Microsoft.AspNetCore.Razor.Test.Common.Workspaces; using Microsoft.CodeAnalysis.Classification; using Microsoft.CodeAnalysis.ExternalAccess.Razor; using Microsoft.CodeAnalysis.Text; -using Microsoft.VisualStudio.Razor.DynamicFiles; using Xunit; using Xunit.Abstractions; @@ -47,7 +44,7 @@ public async Task TryGetExcerptInternalAsync_SingleLine_CanClassifyCSharp() var result = await excerptService.TryGetExcerptInternalAsync( generatedDocument, generatedSpan, - ExcerptModeInternal.SingleLine, + RazorExcerptMode.SingleLine, razorSourceText, mappedLinePositionSpan, options, @@ -135,7 +132,7 @@ public async Task TryGetExcerptInternalAsync_SingleLine_CanClassifyCSharp_Implic var result = await excerptService.TryGetExcerptInternalAsync( generatedDocument, generatedSpan, - ExcerptModeInternal.SingleLine, + RazorExcerptMode.SingleLine, razorSourceText, mappedLinePositionSpan, options, @@ -181,7 +178,7 @@ public async Task TryGetExcerptInternalAsync_SingleLine_CanClassifyCSharp_Comple var result = await excerptService.TryGetExcerptInternalAsync( generatedDocument, generatedSpan, - ExcerptModeInternal.SingleLine, + RazorExcerptMode.SingleLine, razorSourceText, mappedLinePositionSpan, options, @@ -228,7 +225,7 @@ public async Task TryGetExcerptInternalAsync_MultiLine_CanClassifyCSharp() var result = await excerptService.TryGetExcerptInternalAsync( generatedDocument, generatedSpan, - ExcerptModeInternal.Tooltip, + RazorExcerptMode.Tooltip, razorSourceText, mappedLinePositionSpan, options, @@ -274,7 +271,7 @@ public async Task TryGetExcerptInternalAsync_MultiLine_Boundaries_CanClassifyCSh var result = await excerptService.TryGetExcerptInternalAsync( generatedDocument, generatedSpan, - ExcerptModeInternal.Tooltip, + RazorExcerptMode.Tooltip, razorSourceText, mappedLinePositionSpan, options, diff --git a/src/Razor/test/Microsoft.VisualStudioCode.RazorExtension.Test/Endpoints/Shared/CohostFindAllReferencesEndpointTest.cs b/src/Razor/test/Microsoft.VisualStudioCode.RazorExtension.Test/Endpoints/Shared/CohostFindAllReferencesEndpointTest.cs index 2bb3d8b5954..2537ced46f0 100644 --- a/src/Razor/test/Microsoft.VisualStudioCode.RazorExtension.Test/Endpoints/Shared/CohostFindAllReferencesEndpointTest.cs +++ b/src/Razor/test/Microsoft.VisualStudioCode.RazorExtension.Test/Endpoints/Shared/CohostFindAllReferencesEndpointTest.cs @@ -86,6 +86,70 @@ await VerifyFindAllReferencesAsync(input, (FilePath("OtherClass.cs"), otherClass)); } + [Fact] + public async Task Component_DefinedInCSharp() + { + TestCode input = """ + <[|Surv$$eyPrompt|] Title="InputValue" /> + """; + + // lang=c#-test + TestCode surveyPrompt = """ + using Microsoft.AspNetCore.Components; + using Microsoft.AspNetCore.Components.Rendering; + + namespace SomeProject; + + public class [|SurveyPrompt|] : ComponentBase + { + [Parameter] + public string Title { get; set; } = "Hello"; + + protected override void BuildRenderTree(RenderTreeBuilder builder) + { + builder.OpenElement(0, "div"); + builder.AddContent(1, Title + " from a C#-defined component!"); + builder.CloseElement(); + } + } + """; + + await VerifyFindAllReferencesAsync(input, + (FilePath("SurveyPrompt.cs"), surveyPrompt)); + } + + [Fact] + public async Task ComponentEndTag_DefinedInCSharp() + { + TestCode input = """ + <[|SurveyPrompt|] Title="InputValue"> + """; + + // lang=c#-test + TestCode surveyPrompt = """ + using Microsoft.AspNetCore.Components; + using Microsoft.AspNetCore.Components.Rendering; + + namespace SomeProject; + + public class [|SurveyPrompt|] : ComponentBase + { + [Parameter] + public string Title { get; set; } = "Hello"; + + protected override void BuildRenderTree(RenderTreeBuilder builder) + { + builder.OpenElement(0, "div"); + builder.AddContent(1, Title + " from a C#-defined component!"); + builder.CloseElement(); + } + } + """; + + await VerifyFindAllReferencesAsync(input, + (FilePath("SurveyPrompt.cs"), surveyPrompt)); + } + private async Task VerifyFindAllReferencesAsync(TestCode input, params (string fileName, TestCode testCode)[] additionalFiles) { var document = CreateProjectAndRazorDocument(input.Text, additionalFiles: [.. additionalFiles.Select(f => (f.fileName, f.testCode.Text))]); diff --git a/src/Razor/test/Microsoft.VisualStudioCode.RazorExtension.Test/Endpoints/Shared/CohostGoToDefinitionEndpointTest.cs b/src/Razor/test/Microsoft.VisualStudioCode.RazorExtension.Test/Endpoints/Shared/CohostGoToDefinitionEndpointTest.cs index 59f8d81ab52..cf58f19a46e 100644 --- a/src/Razor/test/Microsoft.VisualStudioCode.RazorExtension.Test/Endpoints/Shared/CohostGoToDefinitionEndpointTest.cs +++ b/src/Razor/test/Microsoft.VisualStudioCode.RazorExtension.Test/Endpoints/Shared/CohostGoToDefinitionEndpointTest.cs @@ -257,6 +257,47 @@ @namespace SomeProject Assert.Equal(range, location.Range); } + [Fact] + public async Task Component_DefinedInCSharp() + { + TestCode input = """ + + """; + + // lang=c#-test + TestCode surveyPrompt = """ + using Microsoft.AspNetCore.Components; + using Microsoft.AspNetCore.Components.Rendering; + + namespace SomeProject; + + public class [|SurveyPrompt|] : ComponentBase + { + [Parameter] + public string Title { get; set; } = "Hello"; + + protected override void BuildRenderTree(RenderTreeBuilder builder) + { + builder.OpenElement(0, "div"); + builder.AddContent(1, Title + " from a C#-defined component!"); + builder.CloseElement(); + } + } + """; + + var result = await GetGoToDefinitionResultAsync(input, RazorFileKind.Component, + additionalFiles: (FilePath("SurveyPrompt.cs"), surveyPrompt.Text)); + + Assert.NotNull(result.Value.Second); + var locations = result.Value.Second; + var location = Assert.Single(locations); + + Assert.Equal(FileUri("SurveyPrompt.cs"), location.DocumentUri.GetRequiredParsedUri()); + var text = SourceText.From(surveyPrompt.Text); + var range = text.GetRange(surveyPrompt.Span); + Assert.Equal(range, location.Range); + } + [Fact] public async Task ComponentAttribute_DefinedInCSharp() { diff --git a/src/Razor/test/Microsoft.VisualStudioCode.RazorExtension.Test/Endpoints/Shared/CohostHoverEndpointTest.cs b/src/Razor/test/Microsoft.VisualStudioCode.RazorExtension.Test/Endpoints/Shared/CohostHoverEndpointTest.cs index 79eee8205a2..5569dd772f6 100644 --- a/src/Razor/test/Microsoft.VisualStudioCode.RazorExtension.Test/Endpoints/Shared/CohostHoverEndpointTest.cs +++ b/src/Razor/test/Microsoft.VisualStudioCode.RazorExtension.Test/Endpoints/Shared/CohostHoverEndpointTest.cs @@ -39,16 +39,18 @@ await VerifyHoverAsync(code, async (hover, document) => Container( Container( Image, - ClassifiedText( // Microsoft.AspNetCore.Components.Web.PageTitle - Text("Microsoft"), + ClassifiedText( // class Microsoft.AspNetCore.Components.Web.PageTitle + Keyword("class"), + WhiteSpace(" "), + Namespace("Microsoft"), Punctuation("."), - Text("AspNetCore"), + Namespace("AspNetCore"), Punctuation("."), - Text("Components"), + Namespace("Components"), Punctuation("."), - Text("Web"), + Namespace("Web"), Punctuation("."), - Type("PageTitle"))))); + ClassName("PageTitle"))))); }); } @@ -239,20 +241,22 @@ await VerifyHoverAsync(code, async (hover, document) => Container( Container( Image, - ClassifiedText( // Microsoft.ApsNetCore.Components.Forms.InputText - Text("Microsoft"), + ClassifiedText( // class Microsoft.ApsNetCore.Components.Forms.InputText + Keyword("class"), + WhiteSpace(" "), + Namespace("Microsoft"), Punctuation("."), - Text("AspNetCore"), + Namespace("AspNetCore"), Punctuation("."), - Text("Components"), + Namespace("Components"), Punctuation("."), - Text("Forms"), + Namespace("Forms"), Punctuation("."), - Type("InputText"))))); + ClassName("InputText"))))); }); } - [Fact(Skip = "Skipped due to revert of https://github.com/dotnet/razor/pull/12287, but don't want to delete the tests because the feature will come back")] + [Fact] public async Task ComponentEndTag() { TestCode code = """ @@ -277,19 +281,19 @@ await VerifyHoverAsync(code, async (hover, document) => ClassifiedText( // class Microsoft.AspNetCore.Components.Web.PageTitle Keyword("class"), WhiteSpace(" "), - Text("Microsoft"), + Namespace("Microsoft"), Punctuation("."), - Text("AspNetCore"), + Namespace("AspNetCore"), Punctuation("."), - Text("Components"), + Namespace("Components"), Punctuation("."), - Text("Web"), + Namespace("Web"), Punctuation("."), ClassName("PageTitle"))))); }); } - [Fact(Skip = "Skipped due to revert of https://github.com/dotnet/razor/pull/12287, but don't want to delete the tests because the feature will come back")] + [Fact] public async Task ComponentEndTag_FullyQualified() { TestCode code = """ @@ -314,19 +318,19 @@ await VerifyHoverAsync(code, async (hover, document) => ClassifiedText( // class Microsoft.AspNetCore.Components.Web.PageTitle Keyword("class"), WhiteSpace(" "), - Text("Microsoft"), + Namespace("Microsoft"), Punctuation("."), - Text("AspNetCore"), + Namespace("AspNetCore"), Punctuation("."), - Text("Components"), + Namespace("Components"), Punctuation("."), - Text("Web"), + Namespace("Web"), Punctuation("."), ClassName("PageTitle"))))); }); } - [Fact(Skip = "Skipped due to revert of https://github.com/dotnet/razor/pull/12287, but don't want to delete the tests because the feature will come back")] + [Fact] public async Task ComponentEndTag_FullyQualified_Namespace() { TestCode code = """ @@ -351,9 +355,9 @@ await VerifyHoverAsync(code, async (hover, document) => ClassifiedText( // namespace Microsoft.AspNetCore Keyword("namespace"), WhiteSpace(" "), - Text("Microsoft"), + Namespace("Microsoft"), Punctuation("."), - Text("AspNetCore"))))); + Namespace("AspNetCore"))))); }); } diff --git a/src/Shared/Microsoft.AspNetCore.Razor.Test.Common/Language/IntegrationTests/RazorBaselineIntegrationTestBase.cs b/src/Shared/Microsoft.AspNetCore.Razor.Test.Common/Language/IntegrationTests/RazorBaselineIntegrationTestBase.cs index afd5ff97775..525e983b83d 100644 --- a/src/Shared/Microsoft.AspNetCore.Razor.Test.Common/Language/IntegrationTests/RazorBaselineIntegrationTestBase.cs +++ b/src/Shared/Microsoft.AspNetCore.Razor.Test.Common/Language/IntegrationTests/RazorBaselineIntegrationTestBase.cs @@ -208,15 +208,8 @@ protected void AssertLinePragmas(RazorCodeDocument codeDocument) } } - // check that the pragmas in the main document have matching span maps and are enhanced - var pragmasInDocument = linePragmas.Where(p => p.FilePath == codeDocument.Source.FilePath).ToArray(); - - foreach(var pragma in pragmasInDocument) - { - Assert.True(pragma.IsEnhanced); - } - - Assert.Equal(pragmasInDocument.Length, csharpDocument.SourceMappings.Length); + // check that the pragmas in the main document are enhanced + Assert.All(linePragmas.Where(p => p.FilePath == codeDocument.Source.FilePath), p => Assert.True(p.IsEnhanced)); } }