@@ -11,8 +11,8 @@ public enum Type: TypeProtocol, SyntaxExpressibleByStringInterpolation {
1111 /// A composition of two types (e.g. `Encodable & Decodable`). Used to
1212 /// combine protocol requirements.
1313 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 )
1616 /// A dictionary type (e.g. `[Int: String]`).
1717 case dictionary( DictionaryType )
1818 /// A function type (e.g. `() -> ()`).
@@ -43,7 +43,7 @@ public enum Type: TypeProtocol, SyntaxExpressibleByStringInterpolation {
4343 case . array( let type) : type
4444 case . classRestriction( let type) : type
4545 case . composition( let type) : type
46- case . constrainedSugar ( let type) : type
46+ case . someOrAny ( let type) : type
4747 case . dictionary( let type) : type
4848 case . function( let type) : type
4949 case . implicitlyUnwrappedOptional( let type) : type
@@ -65,7 +65,7 @@ public enum Type: TypeProtocol, SyntaxExpressibleByStringInterpolation {
6565 case . array( let type) : type
6666 case . classRestriction( let type) : type
6767 case . composition( let type) : type
68- case . constrainedSugar ( let type) : type
68+ case . someOrAny ( let type) : type
6969 case . dictionary( let type) : type
7070 case . function( let type) : type
7171 case . implicitlyUnwrappedOptional( let type) : type
@@ -96,8 +96,8 @@ public enum Type: TypeProtocol, SyntaxExpressibleByStringInterpolation {
9696 self = . classRestriction( type)
9797 } else if let type = CompositionType ( syntax) {
9898 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)
101101 } else if let type = DictionaryType ( syntax) {
102102 self = . dictionary( type)
103103 } else if let type = FunctionType ( syntax) {
0 commit comments