Skip to content

Commit

Permalink
Remove IntegerLiteralExprSyntax.Radix conformance to CaseIterable
Browse files Browse the repository at this point in the history
There’s no good reason why you would want to iterate over all radix kinds.
  • Loading branch information
ahoppen committed Oct 17, 2023
1 parent dea2cd9 commit 85d9f8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Release Notes/511.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
- `SyntaxKind` removed conformance to `CaseIterable`
- Description: `SyntaxKind` no longer conforms to `CaseIterable` since there is no good use case to iterate over all syntax kinds.
- Pull request:
- `IntegerLiteralExprSyntax.Radix` removed conformance to `CaseIterable`
- Description: `IntegerLiteralExprSyntax.Radix` no longer conforms to `CaseIterable` since there is no good use case to iterate over all radix kinds.
- Pull request:


## Template
Expand Down
2 changes: 1 addition & 1 deletion Sources/SwiftRefactor/IntegerLiteralUtilities.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import SwiftSyntax

extension IntegerLiteralExprSyntax {
public enum Radix: CaseIterable {
public enum Radix {
case binary
case octal
case decimal
Expand Down

0 comments on commit 85d9f8c

Please sign in to comment.