Skip to content

Add records to C# declaration comparer#48415

Merged
CyrusNajmabadi merged 5 commits intodotnet:mainfrom
Youssef1313:patch-25
May 7, 2021
Merged

Add records to C# declaration comparer#48415
CyrusNajmabadi merged 5 commits intodotnet:mainfrom
Youssef1313:patch-25

Conversation

@Youssef1313
Copy link
Member

@Youssef1313 Youssef1313 commented Oct 7, 2020

This affects some code fixes that generate code inside records.

As examples only:

  • If the generated member is a constructor, it's now put just after the fields.
  • If the generated member is a method, the placement depends on the accessibility, etc.. (all rules that currently apply to classes)

See the failures in #48292

I'm not sure if the tests should go into any of those affected codefixes? or is there a more general tests specific to the declaration comparer?

@Youssef1313 Youssef1313 requested a review from a team as a code owner October 7, 2020 21:35
@Youssef1313 Youssef1313 changed the title Add records to C# declaration computer Add records to C# declaration comparer Oct 7, 2020
@jinujoseph jinujoseph added Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee. labels Oct 8, 2020
Base automatically changed from master to main March 3, 2021 23:52
@Youssef1313
Copy link
Member Author

@CyrusNajmabadi Can you take a look? Thanks.

@CyrusNajmabadi
Copy link
Contributor

I'm not sure if the tests should go into any of those affected codefixes

Yes. The affected code fixes should get tests here. Thanks!

@CyrusNajmabadi
Copy link
Contributor

Thanks!

@CyrusNajmabadi CyrusNajmabadi merged commit 8ab82ec into dotnet:main May 7, 2021
@ghost ghost added this to the Next milestone May 7, 2021
@Youssef1313 Youssef1313 deleted the patch-25 branch May 10, 2021 18:46
@RikkiGibson RikkiGibson modified the milestones: Next, 17.0.P2 Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants