Skip to content

Commit 52695a9

Browse files
authored
Bring back Go to Def, FAR and hover for components via Roslyn (#12501)
Fixes #12276 again Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2633418 Commit-at-a-time is thoroughly recommended. Commits 1-4 expose a DocumentExcerpt service that Roslyn can use to provide nice results in FAR etc., because without the code-gen changes, the generated code is pretty ugly. Commit 5 "reverts" #12486, bringing #12287 back but _without_ any changes to the code-gen this time, just a new source mapping. Commit 6 is test baseline updates (only source mappings, no .cs files) Commit 7 removes the requirement for line pragmas to exactly match source mappings. I left the rest of the validation though Commit 8 bumps us to a new Roslyn with the new document excerpt services.
2 parents 648ad08 + 2c6fbc6 commit 52695a9

File tree

301 files changed

+2505
-524
lines changed

Some content is hidden

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

301 files changed

+2505
-524
lines changed

eng/Version.Details.props

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,27 @@ This file should be imported by eng/Versions.props
66
<Project>
77
<PropertyGroup>
88
<!-- dotnet/roslyn dependencies -->
9-
<MicrosoftCodeAnalysisAnalyzersPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisAnalyzersPackageVersion>
10-
<MicrosoftCodeAnalysisCommonPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisCommonPackageVersion>
11-
<MicrosoftCodeAnalysisCSharpPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisCSharpPackageVersion>
12-
<MicrosoftCodeAnalysisCSharpEditorFeaturesPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisCSharpEditorFeaturesPackageVersion>
13-
<MicrosoftCodeAnalysisCSharpFeaturesPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisCSharpFeaturesPackageVersion>
14-
<MicrosoftCodeAnalysisCSharpWorkspacesPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisCSharpWorkspacesPackageVersion>
15-
<MicrosoftCodeAnalysisEditorFeaturesPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisEditorFeaturesPackageVersion>
16-
<MicrosoftCodeAnalysisEditorFeaturesCommonPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisEditorFeaturesCommonPackageVersion>
17-
<MicrosoftCodeAnalysisEditorFeaturesTextPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisEditorFeaturesTextPackageVersion>
18-
<MicrosoftCodeAnalysisExternalAccessFSharpPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisExternalAccessFSharpPackageVersion>
19-
<MicrosoftCodeAnalysisExternalAccessRazorEditorFeaturesPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisExternalAccessRazorEditorFeaturesPackageVersion>
20-
<MicrosoftCodeAnalysisExternalAccessRazorFeaturesPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisExternalAccessRazorFeaturesPackageVersion>
21-
<MicrosoftCodeAnalysisLanguageServerProtocolPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisLanguageServerProtocolPackageVersion>
22-
<MicrosoftCodeAnalysisRemoteServiceHubPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisRemoteServiceHubPackageVersion>
23-
<MicrosoftCodeAnalysisTestUtilitiesPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisTestUtilitiesPackageVersion>
24-
<MicrosoftCodeAnalysisVisualBasicWorkspacesPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisVisualBasicWorkspacesPackageVersion>
25-
<MicrosoftCodeAnalysisWorkspacesCommonPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisWorkspacesCommonPackageVersion>
26-
<MicrosoftCodeAnalysisWorkspacesMSBuildPackageVersion>5.3.0-2.25555.17</MicrosoftCodeAnalysisWorkspacesMSBuildPackageVersion>
27-
<MicrosoftCommonLanguageServerProtocolFrameworkPackageVersion>5.3.0-2.25555.17</MicrosoftCommonLanguageServerProtocolFrameworkPackageVersion>
28-
<MicrosoftNetCompilersToolsetPackageVersion>5.3.0-2.25555.17</MicrosoftNetCompilersToolsetPackageVersion>
29-
<MicrosoftVisualStudioLanguageServicesPackageVersion>5.3.0-2.25555.17</MicrosoftVisualStudioLanguageServicesPackageVersion>
9+
<MicrosoftCodeAnalysisAnalyzersPackageVersion>5.3.0-2.25567.17</MicrosoftCodeAnalysisAnalyzersPackageVersion>
10+
<MicrosoftCodeAnalysisCommonPackageVersion>5.3.0-2.25567.17</MicrosoftCodeAnalysisCommonPackageVersion>
11+
<MicrosoftCodeAnalysisCSharpPackageVersion>5.3.0-2.25567.17</MicrosoftCodeAnalysisCSharpPackageVersion>
12+
<MicrosoftCodeAnalysisCSharpEditorFeaturesPackageVersion>5.3.0-2.25567.17</MicrosoftCodeAnalysisCSharpEditorFeaturesPackageVersion>
13+
<MicrosoftCodeAnalysisCSharpFeaturesPackageVersion>5.3.0-2.25567.17</MicrosoftCodeAnalysisCSharpFeaturesPackageVersion>
14+
<MicrosoftCodeAnalysisCSharpWorkspacesPackageVersion>5.3.0-2.25567.17</MicrosoftCodeAnalysisCSharpWorkspacesPackageVersion>
15+
<MicrosoftCodeAnalysisEditorFeaturesPackageVersion>5.3.0-2.25567.17</MicrosoftCodeAnalysisEditorFeaturesPackageVersion>
16+
<MicrosoftCodeAnalysisEditorFeaturesCommonPackageVersion>5.3.0-2.25567.17</MicrosoftCodeAnalysisEditorFeaturesCommonPackageVersion>
17+
<MicrosoftCodeAnalysisEditorFeaturesTextPackageVersion>5.3.0-2.25567.17</MicrosoftCodeAnalysisEditorFeaturesTextPackageVersion>
18+
<MicrosoftCodeAnalysisExternalAccessFSharpPackageVersion>5.3.0-2.25567.17</MicrosoftCodeAnalysisExternalAccessFSharpPackageVersion>
19+
<MicrosoftCodeAnalysisExternalAccessRazorEditorFeaturesPackageVersion>5.3.0-2.25567.17</MicrosoftCodeAnalysisExternalAccessRazorEditorFeaturesPackageVersion>
20+
<MicrosoftCodeAnalysisExternalAccessRazorFeaturesPackageVersion>5.3.0-2.25567.17</MicrosoftCodeAnalysisExternalAccessRazorFeaturesPackageVersion>
21+
<MicrosoftCodeAnalysisLanguageServerProtocolPackageVersion>5.3.0-2.25567.17</MicrosoftCodeAnalysisLanguageServerProtocolPackageVersion>
22+
<MicrosoftCodeAnalysisRemoteServiceHubPackageVersion>5.3.0-2.25567.17</MicrosoftCodeAnalysisRemoteServiceHubPackageVersion>
23+
<MicrosoftCodeAnalysisTestUtilitiesPackageVersion>5.3.0-2.25567.17</MicrosoftCodeAnalysisTestUtilitiesPackageVersion>
24+
<MicrosoftCodeAnalysisVisualBasicWorkspacesPackageVersion>5.3.0-2.25567.17</MicrosoftCodeAnalysisVisualBasicWorkspacesPackageVersion>
25+
<MicrosoftCodeAnalysisWorkspacesCommonPackageVersion>5.3.0-2.25567.17</MicrosoftCodeAnalysisWorkspacesCommonPackageVersion>
26+
<MicrosoftCodeAnalysisWorkspacesMSBuildPackageVersion>5.3.0-2.25567.17</MicrosoftCodeAnalysisWorkspacesMSBuildPackageVersion>
27+
<MicrosoftCommonLanguageServerProtocolFrameworkPackageVersion>5.3.0-2.25567.17</MicrosoftCommonLanguageServerProtocolFrameworkPackageVersion>
28+
<MicrosoftNetCompilersToolsetPackageVersion>5.3.0-2.25567.17</MicrosoftNetCompilersToolsetPackageVersion>
29+
<MicrosoftVisualStudioLanguageServicesPackageVersion>5.3.0-2.25567.17</MicrosoftVisualStudioLanguageServicesPackageVersion>
3030
<!-- dotnet/arcade dependencies -->
3131
<MicrosoftDotNetArcadeSdkPackageVersion>9.0.0-beta.25515.2</MicrosoftDotNetArcadeSdkPackageVersion>
3232
<!-- dotnet/aspnetcore dependencies -->

eng/Version.Details.xml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,89 +2,89 @@
22
<Dependencies>
33
<Source Uri="https://github.com/dotnet/dotnet" Mapping="razor" Sha="1bdc5cdcf4cf408e00aa3c60f58520083bf2474f" BarId="287856" />
44
<ProductDependencies>
5-
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="5.3.0-2.25555.17">
5+
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="5.3.0-2.25567.17">
66
<Uri>https://github.com/dotnet/roslyn</Uri>
7-
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
7+
<Sha>f38878a015e28dedf874b0c98b15bd14906dab63</Sha>
88
</Dependency>
9-
<Dependency Name="Microsoft.CommonLanguageServerProtocol.Framework" Version="5.3.0-2.25555.17">
9+
<Dependency Name="Microsoft.CommonLanguageServerProtocol.Framework" Version="5.3.0-2.25567.17">
1010
<Uri>https://github.com/dotnet/roslyn</Uri>
11-
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
11+
<Sha>f38878a015e28dedf874b0c98b15bd14906dab63</Sha>
1212
</Dependency>
13-
<Dependency Name="Microsoft.CodeAnalysis.Common" Version="5.3.0-2.25555.17">
13+
<Dependency Name="Microsoft.CodeAnalysis.Common" Version="5.3.0-2.25567.17">
1414
<Uri>https://github.com/dotnet/roslyn</Uri>
15-
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
15+
<Sha>f38878a015e28dedf874b0c98b15bd14906dab63</Sha>
1616
</Dependency>
17-
<Dependency Name="Microsoft.CodeAnalysis.CSharp" Version="5.3.0-2.25555.17">
17+
<Dependency Name="Microsoft.CodeAnalysis.CSharp" Version="5.3.0-2.25567.17">
1818
<Uri>https://github.com/dotnet/roslyn</Uri>
19-
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
19+
<Sha>f38878a015e28dedf874b0c98b15bd14906dab63</Sha>
2020
</Dependency>
21-
<Dependency Name="Microsoft.CodeAnalysis.CSharp.EditorFeatures" Version="5.3.0-2.25555.17">
21+
<Dependency Name="Microsoft.CodeAnalysis.CSharp.EditorFeatures" Version="5.3.0-2.25567.17">
2222
<Uri>https://github.com/dotnet/roslyn</Uri>
23-
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
23+
<Sha>f38878a015e28dedf874b0c98b15bd14906dab63</Sha>
2424
</Dependency>
25-
<Dependency Name="Microsoft.CodeAnalysis.CSharp.Features" Version="5.3.0-2.25555.17">
25+
<Dependency Name="Microsoft.CodeAnalysis.CSharp.Features" Version="5.3.0-2.25567.17">
2626
<Uri>https://github.com/dotnet/roslyn</Uri>
27-
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
27+
<Sha>f38878a015e28dedf874b0c98b15bd14906dab63</Sha>
2828
</Dependency>
29-
<Dependency Name="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="5.3.0-2.25555.17">
29+
<Dependency Name="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="5.3.0-2.25567.17">
3030
<Uri>https://github.com/dotnet/roslyn</Uri>
31-
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
31+
<Sha>f38878a015e28dedf874b0c98b15bd14906dab63</Sha>
3232
</Dependency>
33-
<Dependency Name="Microsoft.CodeAnalysis.EditorFeatures" Version="5.3.0-2.25555.17">
33+
<Dependency Name="Microsoft.CodeAnalysis.EditorFeatures" Version="5.3.0-2.25567.17">
3434
<Uri>https://github.com/dotnet/roslyn</Uri>
35-
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
35+
<Sha>f38878a015e28dedf874b0c98b15bd14906dab63</Sha>
3636
</Dependency>
37-
<Dependency Name="Microsoft.CodeAnalysis.EditorFeatures.Common" Version="5.3.0-2.25555.17">
37+
<Dependency Name="Microsoft.CodeAnalysis.EditorFeatures.Common" Version="5.3.0-2.25567.17">
3838
<Uri>https://github.com/dotnet/roslyn</Uri>
39-
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
39+
<Sha>f38878a015e28dedf874b0c98b15bd14906dab63</Sha>
4040
</Dependency>
41-
<Dependency Name="Microsoft.CodeAnalysis.EditorFeatures.Text" Version="5.3.0-2.25555.17">
41+
<Dependency Name="Microsoft.CodeAnalysis.EditorFeatures.Text" Version="5.3.0-2.25567.17">
4242
<Uri>https://github.com/dotnet/roslyn</Uri>
43-
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
43+
<Sha>f38878a015e28dedf874b0c98b15bd14906dab63</Sha>
4444
</Dependency>
45-
<Dependency Name="Microsoft.CodeAnalysis.Remote.ServiceHub" Version="5.3.0-2.25555.17">
45+
<Dependency Name="Microsoft.CodeAnalysis.Remote.ServiceHub" Version="5.3.0-2.25567.17">
4646
<Uri>https://github.com/dotnet/roslyn</Uri>
47-
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
47+
<Sha>f38878a015e28dedf874b0c98b15bd14906dab63</Sha>
4848
</Dependency>
49-
<Dependency Name="Microsoft.CodeAnalysis.VisualBasic.Workspaces" Version="5.3.0-2.25555.17">
49+
<Dependency Name="Microsoft.CodeAnalysis.VisualBasic.Workspaces" Version="5.3.0-2.25567.17">
5050
<Uri>https://github.com/dotnet/roslyn</Uri>
51-
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
51+
<Sha>f38878a015e28dedf874b0c98b15bd14906dab63</Sha>
5252
</Dependency>
53-
<Dependency Name="Microsoft.CodeAnalysis.Workspaces.Common" Version="5.3.0-2.25555.17">
53+
<Dependency Name="Microsoft.CodeAnalysis.Workspaces.Common" Version="5.3.0-2.25567.17">
5454
<Uri>https://github.com/dotnet/roslyn</Uri>
55-
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
55+
<Sha>f38878a015e28dedf874b0c98b15bd14906dab63</Sha>
5656
</Dependency>
57-
<Dependency Name="Microsoft.CodeAnalysis.Workspaces.MSBuild" Version="5.3.0-2.25555.17">
57+
<Dependency Name="Microsoft.CodeAnalysis.Workspaces.MSBuild" Version="5.3.0-2.25567.17">
5858
<Uri>https://github.com/dotnet/roslyn</Uri>
59-
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
59+
<Sha>f38878a015e28dedf874b0c98b15bd14906dab63</Sha>
6060
</Dependency>
61-
<Dependency Name="Microsoft.VisualStudio.LanguageServices" Version="5.3.0-2.25555.17">
61+
<Dependency Name="Microsoft.VisualStudio.LanguageServices" Version="5.3.0-2.25567.17">
6262
<Uri>https://github.com/dotnet/roslyn</Uri>
63-
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
63+
<Sha>f38878a015e28dedf874b0c98b15bd14906dab63</Sha>
6464
</Dependency>
65-
<Dependency Name="Microsoft.CodeAnalysis.Test.Utilities" Version="5.3.0-2.25555.17">
65+
<Dependency Name="Microsoft.CodeAnalysis.Test.Utilities" Version="5.3.0-2.25567.17">
6666
<Uri>https://github.com/dotnet/roslyn</Uri>
67-
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
67+
<Sha>f38878a015e28dedf874b0c98b15bd14906dab63</Sha>
6868
</Dependency>
69-
<Dependency Name="Microsoft.CodeAnalysis.ExternalAccess.Razor.Features" Version="5.3.0-2.25555.17">
69+
<Dependency Name="Microsoft.CodeAnalysis.ExternalAccess.Razor.Features" Version="5.3.0-2.25567.17">
7070
<Uri>https://github.com/dotnet/roslyn</Uri>
71-
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
71+
<Sha>f38878a015e28dedf874b0c98b15bd14906dab63</Sha>
7272
</Dependency>
73-
<Dependency Name="Microsoft.CodeAnalysis.ExternalAccess.Razor.EditorFeatures" Version="5.3.0-2.25555.17">
73+
<Dependency Name="Microsoft.CodeAnalysis.ExternalAccess.Razor.EditorFeatures" Version="5.3.0-2.25567.17">
7474
<Uri>https://github.com/dotnet/roslyn</Uri>
75-
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
75+
<Sha>f38878a015e28dedf874b0c98b15bd14906dab63</Sha>
7676
</Dependency>
77-
<Dependency Name="Microsoft.CodeAnalysis.LanguageServer.Protocol" Version="5.3.0-2.25555.17">
77+
<Dependency Name="Microsoft.CodeAnalysis.LanguageServer.Protocol" Version="5.3.0-2.25567.17">
7878
<Uri>https://github.com/dotnet/roslyn</Uri>
79-
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
79+
<Sha>f38878a015e28dedf874b0c98b15bd14906dab63</Sha>
8080
</Dependency>
81-
<Dependency Name="Microsoft.CodeAnalysis.ExternalAccess.FSharp" Version="5.3.0-2.25555.17">
81+
<Dependency Name="Microsoft.CodeAnalysis.ExternalAccess.FSharp" Version="5.3.0-2.25567.17">
8282
<Uri>https://github.com/dotnet/roslyn</Uri>
83-
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
83+
<Sha>f38878a015e28dedf874b0c98b15bd14906dab63</Sha>
8484
</Dependency>
85-
<Dependency Name="Microsoft.CodeAnalysis.Analyzers" Version="5.3.0-2.25555.17">
85+
<Dependency Name="Microsoft.CodeAnalysis.Analyzers" Version="5.3.0-2.25567.17">
8686
<Uri>https://github.com/dotnet/roslyn</Uri>
87-
<Sha>b9d497daa87f8c902c451b0d960eaf70dfcda2ef</Sha>
87+
<Sha>f38878a015e28dedf874b0c98b15bd14906dab63</Sha>
8888
</Dependency>
8989
</ProductDependencies>
9090
<ToolsetDependencies>

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitBooleanConversion/TestComponent.mappings.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ Generated Location: (1189:40,0 [42] )
1717
private MyClass<string> c = new();
1818
|
1919

20+
Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml)
21+
|MyComponent|
22+
Generated Location: (1683:56,45 [11] )
23+
|MyComponent|
24+
2025
Source Location: (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml)
2126
|MyParameter|
2227
Generated Location: (1864:60,0 [11] )

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_Bind/TestComponent.mappings.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ Generated Location: (1731:56,0 [42] )
2727
private MyClass<string> c = new();
2828
|
2929

30+
Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml)
31+
|MyComponent|
32+
Generated Location: (2452:72,45 [11] )
33+
|MyComponent|
34+
3035
Source Location: (40:1,4 [13] x:\dir\subdir\Test\TestComponent.cshtml)
3136
|BoolParameter|
3237
Generated Location: (2632:76,0 [13] )

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown/TestComponent.mappings.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
Source Location: (26:0,26 [1] x:\dir\subdir\Test\TestComponent.cshtml)
1+
Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml)
2+
|MyComponent|
3+
Generated Location: (703:19,49 [11] )
4+
|MyComponent|
5+
6+
Source Location: (26:0,26 [1] x:\dir\subdir\Test\TestComponent.cshtml)
27
|c|
38
Generated Location: (861:23,0 [1] )
49
|c|

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_BindUnknown_Assignment/TestComponent.mappings.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
Source Location: (26:0,26 [7] x:\dir\subdir\Test\TestComponent.cshtml)
1+
Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml)
2+
|MyComponent|
3+
Generated Location: (703:19,49 [11] )
4+
|MyComponent|
5+
6+
Source Location: (26:0,26 [7] x:\dir\subdir\Test\TestComponent.cshtml)
27
|c1 = c2|
38
Generated Location: (861:23,0 [7] )
49
|c1 = c2|

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_CustomEvent/TestComponent.mappings.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ Generated Location: (1757:64,0 [42] )
3232
private MyClass<string> c = new();
3333
|
3434

35+
Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml)
36+
|MyComponent|
37+
Generated Location: (2453:80,45 [11] )
38+
|MyComponent|
39+
3540
Source Location: (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml)
3641
|MyParameter|
3742
Generated Location: (2634:84,0 [11] )

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddAttribute_ImplicitStringConversion_TypeInference/TestComponent.mappings.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ Generated Location: (1518:56,0 [51] )
2727
private readonly MyClass<string> c = new();
2828
|
2929

30+
Source Location: (1:0,1 [11] x:\dir\subdir\Test\TestComponent.cshtml)
31+
|MyComponent|
32+
Generated Location: (2149:72,45 [11] )
33+
|MyComponent|
34+
3035
Source Location: (13:0,13 [11] x:\dir\subdir\Test\TestComponent.cshtml)
3136
|MyParameter|
3237
Generated Location: (2330:76,0 [11] )

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddComponentParameter_DynamicComponentName/TestComponent.mappings.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
Source Location: (9:0,9 [5] x:\dir\subdir\Test\TestComponent.cshtml)
1+
Source Location: (1:0,1 [7] x:\dir\subdir\Test\TestComponent.cshtml)
2+
|dynamic|
3+
Generated Location: (703:19,49 [7] )
4+
|dynamic|
5+
6+
Source Location: (9:0,9 [5] x:\dir\subdir\Test\TestComponent.cshtml)
27
|Value|
38
Generated Location: (876:23,0 [5] )
49
|Value|

src/Compiler/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/ComponentRuntimeCodeGenerationTest/AddComponentParameter_EscapedComponentName/TestComponent.mappings.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
Source Location: (5:0,5 [5] x:\dir\subdir\Test\TestComponent.cshtml)
1+
Source Location: (1:0,1 [3] x:\dir\subdir\Test\TestComponent.cshtml)
2+
|int|
3+
Generated Location: (704:19,50 [3] )
4+
|int|
5+
6+
Source Location: (5:0,5 [5] x:\dir\subdir\Test\TestComponent.cshtml)
27
|Value|
38
Generated Location: (869:23,0 [5] )
49
|Value|

0 commit comments

Comments
 (0)