Repository navigation
Sonic 3.2: Activate the decl/impl split #83887
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
chsienki
merged 13 commits into
dotnet:features/sonic
from
chsienki:sonic/3_2_activate_impl_decl_split
May 29, 2026
+18,559
−6,492
Merged
Changes from 2 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
a333e40
Activate the decl/impl split in the lowering phase and source generator
chsienki 4e170e6
Make IDE/cohosting mapping layer split-aware
chsienki eeb4e53
Make integration test infrastructure split-aware
chsienki 39e9932
Update tests for the decl/impl split
chsienki 1529b3e
Fix CA1310 string.EndsWith analyzer errors
c999634
Skip cohosting tests pending decl/impl split migration
3ea72df
Address PR feedback: rename WithCSharpDocument to WithImplCSharpDocument
923f8f9
Address PR feedback: factor TryGetRazorDocumentForGeneratedDocumentId…
b0a4e47
Address PR feedback: remove AllCode helper; use split-aware assertions
fb05b14
Revert "Address PR feedback: factor TryGetRazorDocumentForGeneratedDo…
9e20696
Regenerate component baselines and update remaining SG tests for the …
chsienki 3a0f5ed
Skip three additional PROTOTYPE-acknowledged tests on this branch
1f46068
Skip intermittently-failing Generate* code action tests
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...sts/TestFiles/RazorSourceGeneratorComponentTests/Inject/Shared/Component1_razor.decl.g.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| #pragma checksum "Shared/Component1.razor" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "7be8ebe54b4ff8c6cd9769f50cdd6dc6280903d6" | ||
| // <auto-generated/> | ||
| #pragma warning disable 1591 | ||
| namespace MyApp.Shared | ||
| { | ||
| #line default | ||
| using global::System; | ||
| using global::System.Collections.Generic; | ||
| using global::System.Linq; | ||
| using global::System.Threading.Tasks; | ||
| using global::Microsoft.AspNetCore.Components; | ||
| #line default | ||
| #line hidden | ||
| #nullable restore | ||
| public partial class Component1 : global::Microsoft.AspNetCore.Components.ComponentBase | ||
| #nullable disable | ||
| { | ||
| [global::Microsoft.AspNetCore.Components.InjectAttribute] private | ||
| #nullable restore | ||
| #line (1,9)-(1,25) "Shared/Component1.razor" | ||
| IServiceProvider | ||
|
|
||
| #line default | ||
| #line hidden | ||
| #nullable disable | ||
|
|
||
| #nullable restore | ||
| #line (1,26)-(1,41) "Shared/Component1.razor" | ||
| ServiceProvider | ||
|
|
||
| #line default | ||
| #line hidden | ||
| #nullable disable | ||
| { get; set; } | ||
| = default!; | ||
| } | ||
| } | ||
| #pragma warning restore 1591 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm reviewing commit-at-a-time, and I'm 99% sure this will be fixed in a future commit, but just noting here that its super weird this says
WithCSharpDocumentwhen its one of two.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, this didn't get changed, so I guess I'll be explicit: Consider a future change here to change the API so its explicit that methods that deal with documents are specific to a decl or impl. ie,
WithImplCSharpDocumentetc.