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

[SR-5740] Refactoring action to convert if statement to switch #48310

Closed
akyrtzi opened this issue Aug 23, 2017 · 4 comments
Closed

[SR-5740] Refactoring action to convert if statement to switch #48310

akyrtzi opened this issue Aug 23, 2017 · 4 comments
Labels
compiler The Swift compiler in itself feature A feature request or implementation good first issue Good for newcomers refactoring Area → source tooling: refactoring

Comments

@akyrtzi
Copy link
Member

akyrtzi commented Aug 23, 2017

Previous ID SR-5740
Radar None
Original Reporter @akyrtzi
Type New Feature
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Source Tooling
Labels New Feature, Refactoring, StarterProposal
Assignee flap (JIRA)
Priority Medium

md5: 0ccd9e0b82e6c78f31c26586840c441e

Issue Description:

Implement action to convert if statements from:

  var e = E.case1
  if e == .case1 {}
  else if e == .case2 {}
  else {}

to

  var e = E.case1
  switch e {
  case .case1: break
  case .case2: break
  default: break
  }
@swift-ci
Copy link
Collaborator

swift-ci commented Sep 6, 2017

Comment by Daniel Martín (JIRA)

I'll take a look into this.

@swift-ci
Copy link
Collaborator

Comment by Anton Vlasov (JIRA)

PR is here: #26719

@swift-ci
Copy link
Collaborator

swift-ci commented Feb 2, 2020

Comment by Anton Vlasov (JIRA)

New pull request:

#29596

@swift-ci
Copy link
Collaborator

Comment by Anton Vlasov (JIRA)

Merged.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added good first issue Good for newcomers feature A feature request or implementation compiler The Swift compiler in itself and removed new feature StarterProposal labels Nov 11, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler The Swift compiler in itself feature A feature request or implementation good first issue Good for newcomers refactoring Area → source tooling: refactoring
Projects
None yet
Development

No branches or pull requests

3 participants