Skip to content

Add support for extract method in the PrimaryConstructor base list#76371

Merged
CyrusNajmabadi merged 6 commits intodotnet:mainfrom
CyrusNajmabadi:extractMethodBaseList
Dec 12, 2024
Merged

Add support for extract method in the PrimaryConstructor base list#76371
CyrusNajmabadi merged 6 commits intodotnet:mainfrom
CyrusNajmabadi:extractMethodBaseList

Conversation

@CyrusNajmabadi
Copy link
Contributor

@CyrusNajmabadi CyrusNajmabadi commented Dec 11, 2024

Fixes #67017

@ghost ghost added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Dec 11, 2024
@CyrusNajmabadi CyrusNajmabadi changed the title Add support extract method in the PrimaryConstructor base list Add support for extract method in the PrimaryConstructor base list Dec 11, 2024
@CyrusNajmabadi CyrusNajmabadi marked this pull request as ready for review December 11, 2024 07:06
@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner December 11, 2024 07:06
=> false;

protected override bool IsInPrimaryConstructorBaseType()
=> this.SelectionResult.GetContainingScopeOf<PrimaryConstructorBaseTypeSyntax>() != null;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the majority of the pr is just updating all the places in EM that special case certain locations to now special case PrimaryConstructorBaseTypeSyntax as well.

@CyrusNajmabadi
Copy link
Contributor Author

@JoeRobich @ToddGrun @akhera99 ptal.

1 similar comment
@CyrusNajmabadi
Copy link
Contributor Author

@JoeRobich @ToddGrun @akhera99 ptal.

@CyrusNajmabadi CyrusNajmabadi merged commit 3409430 into dotnet:main Dec 12, 2024
@CyrusNajmabadi CyrusNajmabadi deleted the extractMethodBaseList branch December 12, 2024 17:48
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Dec 12, 2024
@dibarbet dibarbet modified the milestones: Next, 17.13 P3 Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead VSCode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extract method refactoring is not offered in the base class argument

3 participants