Skip to content
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

Remove remaining ref readonly prototype comments #69082

Merged

Conversation

jjonescz
Copy link
Member

@jjonescz jjonescz commented Jul 18, 2023

Test plan: #68056

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Jul 18, 2023
@@ -1562,7 +1562,7 @@ internal SynthesizedAttributeData SynthesizeRequiresLocationAttribute(ParameterS
if ((object)Compilation.SourceModule != symbol.ContainingModule)
{
// For symbols that are not defined in the same compilation (like NoPia), don't synthesize this attribute.
Debug.Assert(false); // PROTOTYPE: Test this code path.
Debug.Assert(false, $"Unexpected embedding of a parameter symbol '{symbol.ToDisplayString()}'");
Copy link
Member Author

@jjonescz jjonescz Jul 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think this path is reachable - only types are embedded in NoPIA scenarios, not parameters. #Closed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only types are embedded in NoPIA scenarios, not parameters.

That is not accurate. Interface methods are embedded and their parameters as well. We probably have a test that hits this code path in SynthesizeIsReadOnlyAttribute

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, thanks, adding a test.

@jjonescz jjonescz added the New Feature - Ref Readonly Parameters `ref readonly` parameters label Jul 18, 2023
@jjonescz jjonescz requested review from AlekseyTs and jcouv July 18, 2023 11:48
@jjonescz jjonescz marked this pull request as ready for review July 18, 2023 12:39
@jjonescz jjonescz requested a review from a team as a code owner July 18, 2023 12:39
@AlekseyTs
Copy link
Contributor

Done with review pass (commit 1)

@jcouv jcouv self-assigned this Jul 18, 2023
Copy link
Contributor

@AlekseyTs AlekseyTs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (commit 2), assuming CI is passing

@jjonescz jjonescz enabled auto-merge (squash) July 19, 2023 14:27
@jjonescz jjonescz merged commit 7f5c6f0 into dotnet:features/RefReadonly Jul 19, 2023
25 checks passed
@jjonescz jjonescz deleted the RefReadonly-14-PrototypeComments branch July 19, 2023 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers New Feature - Ref Readonly Parameters `ref readonly` parameters untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants