@@ -11,8 +11,8 @@ public enum Type: TypeProtocol, SyntaxExpressibleByStringInterpolation {
11
11
/// A composition of two types (e.g. `Encodable & Decodable`). Used to
12
12
/// combine protocol requirements.
13
13
case composition( CompositionType )
14
- /// A sugared protocl type (e.g. `any T` or `some T`).
15
- case constrainedSugar ( ConstrainedSugarType )
14
+ /// A some or any protocol type (e.g. `any T` or `some T`).
15
+ case someOrAny ( SomeOrAnyType )
16
16
/// A dictionary type (e.g. `[Int: String]`).
17
17
case dictionary( DictionaryType )
18
18
/// A function type (e.g. `() -> ()`).
@@ -43,7 +43,7 @@ public enum Type: TypeProtocol, SyntaxExpressibleByStringInterpolation {
43
43
case . array( let type) : type
44
44
case . classRestriction( let type) : type
45
45
case . composition( let type) : type
46
- case . constrainedSugar ( let type) : type
46
+ case . someOrAny ( let type) : type
47
47
case . dictionary( let type) : type
48
48
case . function( let type) : type
49
49
case . implicitlyUnwrappedOptional( let type) : type
@@ -65,7 +65,7 @@ public enum Type: TypeProtocol, SyntaxExpressibleByStringInterpolation {
65
65
case . array( let type) : type
66
66
case . classRestriction( let type) : type
67
67
case . composition( let type) : type
68
- case . constrainedSugar ( let type) : type
68
+ case . someOrAny ( let type) : type
69
69
case . dictionary( let type) : type
70
70
case . function( let type) : type
71
71
case . implicitlyUnwrappedOptional( let type) : type
@@ -96,8 +96,8 @@ public enum Type: TypeProtocol, SyntaxExpressibleByStringInterpolation {
96
96
self = . classRestriction( type)
97
97
} else if let type = CompositionType ( syntax) {
98
98
self = . composition( type)
99
- } else if let type = ConstrainedSugarType ( syntax) {
100
- self = . constrainedSugar ( type)
99
+ } else if let type = SomeOrAnyType ( syntax) {
100
+ self = . someOrAny ( type)
101
101
} else if let type = DictionaryType ( syntax) {
102
102
self = . dictionary( type)
103
103
} else if let type = FunctionType ( syntax) {
0 commit comments