Skip to content

Commit 298ecef

Browse files
author
Jimmy Arts
committed
Rename nonEnum to raw for custom switch case types
1 parent 305aad4 commit 298ecef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Meta/Switch.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extension SwitchCaseVariable: VariableValue {}
3131
public enum SwitchCaseName: Hashable, MetaSwiftConvertible {
3232
case `default`
3333
case custom(String)
34-
case nonEnum(String)
34+
case raw(String)
3535
}
3636

3737
public struct SwitchCase: Hashable, MetaSwiftConvertible {
@@ -143,7 +143,7 @@ extension SwitchCaseName {
143143
return "default"
144144
case .custom(let name):
145145
return "case .\(name)"
146-
case .nonEnum(let name):
146+
case .raw(let name):
147147
return "case \(name)"
148148
}
149149
}

0 commit comments

Comments
 (0)