Skip to content

[SR-6297] Refactoring action to move methods to extension #48847

@ahoppen

Description

@ahoppen
Previous ID SR-6297
Radar None
Original Reporter @ahoppen
Type New Feature
Status Closed
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Source Tooling
Labels New Feature, Refactoring
Assignee @ahoppen
Priority Medium

md5: 5a7e088b617453915d73b969f7f96685

Issue Description:

Add a range-based refactoring action that moves selected members of a nominal type to a new extension of that type.

class Foo {
  func foo() {
  }
  func bar() {
  }
}

to

class Foo {
  func foo() {
  }
}

extension Foo {
  func bar() {
  }
}

Metadata

Metadata

Assignees

Labels

compilerThe Swift compiler itselffeatureA feature request or implementationrefactoringArea → source tooling: refactoringsource toolingArea: IDE support, SourceKit, and other source tooling

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions