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

Merge PrimaryConstructors into Main #67124

Merged
merged 32 commits into from
Mar 1, 2023
Merged

Conversation

AlekseyTs
Copy link
Contributor

No description provided.

… in type-or-value scenarios (#66254)

This PR matches the version of the spec from dotnet/csharplang#6855.
…g. (#66583)

- Nullable analysis
- Region analysis
- Struct layout cycles
- Misc.
This change also flags as rude EnC edits that might result in changes around captured primary constructor parameters:
- Adding a capture
- Removing a capture
- Changing type of a captured parameter
- Etc.

The check is not meant to be able to accurately detect “safe” edits. The primary goal is to not let “unsafe” edits through.
This also includes the following public API changes:
- TypeDeclarationSyntax.ParameterList becomes abstract
- TypeDeclarationSyntax.WithParameterList is added
- TypeDeclarationSyntax.AddParameterListParameters is added
- InterfaceDeclarationSyntax.ParameterList is added as an override
- InterfaceDeclarationSyntax.WithParameterList is added
- InterfaceDeclarationSyntax.AddParameterListParameters is added
- new overload of InterfaceDeclarationSyntax.Update is added
- new overload of SyntaxFactory.InterfaceDeclaration is added
- ClassDeclarationSyntax.ParameterList is changed to an override
- StructDeclarationSyntax.ParameterList is changed to an override
- RecordDeclarationSyntax.ParameterList is changed to an override. This API was previously shipped as a regular property.
@AlekseyTs AlekseyTs requested review from jjonescz and cston March 1, 2023 15:44
@AlekseyTs AlekseyTs requested review from a team as code owners March 1, 2023 15:44
@AlekseyTs
Copy link
Contributor Author

@cston, @jjonescz, @dotnet/roslyn-compiler Need a sign-off for a merge PR.

@AlekseyTs AlekseyTs enabled auto-merge March 1, 2023 15:54
@AlekseyTs AlekseyTs merged commit 86fb668 into main Mar 1, 2023
@ghost ghost added this to the Next milestone Mar 1, 2023
@RikkiGibson RikkiGibson modified the milestones: Next, 17.6 P2 Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants