File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ extension SwitchCaseVariable: VariableValue {}
3131public enum SwitchCaseName : Hashable , MetaSwiftConvertible {
3232 case `default`
3333 case custom( String )
34+ case raw( String )
3435}
3536
3637public struct SwitchCase : Hashable , MetaSwiftConvertible {
@@ -142,6 +143,8 @@ extension SwitchCaseName {
142143 return " default "
143144 case . custom( let name) :
144145 return " case . \( name) "
146+ case . raw( let name) :
147+ return " case \( name) "
145148 }
146149 }
147150}
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ final class FileTests: XCTestCase {
9494 let barID = TypeIdentifier ( name: " Bar " )
9595 let bar = Type ( identifier: barID)
9696 . adding ( inheritedType: . string)
97- . with ( kind: . enum)
97+ . with ( kind: . enum( indirect : false ) )
9898 . with ( accessLevel: . public)
9999 . adding ( member: Case ( name: " hello " ) . with ( value: . string( " Hello " ) ) )
100100 . adding ( member: Case ( name: " world " ) )
You can’t perform that action at this time.
0 commit comments