Skip to content

Remove remaining ref readonly prototype comments#69082

Merged
jjonescz merged 3 commits intodotnet:features/RefReadonlyfrom
jjonescz:RefReadonly-14-PrototypeComments
Jul 19, 2023
Merged

Remove remaining ref readonly prototype comments#69082
jjonescz merged 3 commits intodotnet:features/RefReadonlyfrom
jjonescz:RefReadonly-14-PrototypeComments

Conversation

@jjonescz
Copy link
Copy Markdown
Member

@jjonescz jjonescz commented Jul 18, 2023

Test plan: #68056

@ghost ghost added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Jul 18, 2023
{
// 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 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
Copy Markdown
Contributor

Done with review pass (commit 1)

@jcouv jcouv self-assigned this Jul 18, 2023
Copy link
Copy Markdown
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
@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 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