@@ -81,7 +81,7 @@ public extension ExpressibleAsSyntaxBuildable {
81
81
return SwitchCaseList ( [ self ] )
82
82
}
83
83
}
84
- public protocol ExpressibleAsTypeBuildable : ExpressibleAsReturnClause , ExpressibleAsTypeInitializerClause {
84
+ public protocol ExpressibleAsTypeBuildable : ExpressibleAsReturnClause , ExpressibleAsTypeInitializerClause , ExpressibleAsTypeAnnotation {
85
85
func createTypeBuildable( ) -> TypeBuildable
86
86
}
87
87
public extension ExpressibleAsTypeBuildable {
@@ -93,6 +93,10 @@ public extension ExpressibleAsTypeBuildable {
93
93
func createTypeInitializerClause( ) -> TypeInitializerClause {
94
94
return TypeInitializerClause ( value: self )
95
95
}
96
+ /// Conformance to ExpressibleAsTypeAnnotation
97
+ func createTypeAnnotation( ) -> TypeAnnotation {
98
+ return TypeAnnotation ( type: self )
99
+ }
96
100
}
97
101
public protocol ExpressibleAsCodeBlockItem : ExpressibleAsCodeBlockItemList {
98
102
func createCodeBlockItem( ) -> CodeBlockItem
@@ -1724,14 +1728,10 @@ public extension ExpressibleAsPrimaryAssociatedTypeClause {
1724
1728
return createPrimaryAssociatedTypeClause ( )
1725
1729
}
1726
1730
}
1727
- public protocol ExpressibleAsSimpleTypeIdentifier : ExpressibleAsTypeAnnotation , ExpressibleAsTypeExpr , ExpressibleAsTypeBuildable {
1731
+ public protocol ExpressibleAsSimpleTypeIdentifier : ExpressibleAsTypeExpr , ExpressibleAsTypeBuildable {
1728
1732
func createSimpleTypeIdentifier( ) -> SimpleTypeIdentifier
1729
1733
}
1730
1734
public extension ExpressibleAsSimpleTypeIdentifier {
1731
- /// Conformance to ExpressibleAsTypeAnnotation
1732
- func createTypeAnnotation( ) -> TypeAnnotation {
1733
- return TypeAnnotation ( type: self )
1734
- }
1735
1735
/// Conformance to ExpressibleAsTypeExpr
1736
1736
func createTypeExpr( ) -> TypeExpr {
1737
1737
return TypeExpr ( type: self )
@@ -1756,26 +1756,18 @@ public extension ExpressibleAsClassRestrictionType {
1756
1756
return createClassRestrictionType ( )
1757
1757
}
1758
1758
}
1759
- public protocol ExpressibleAsArrayType : ExpressibleAsTypeAnnotation , ExpressibleAsTypeBuildable {
1759
+ public protocol ExpressibleAsArrayType : ExpressibleAsTypeBuildable {
1760
1760
func createArrayType( ) -> ArrayType
1761
1761
}
1762
1762
public extension ExpressibleAsArrayType {
1763
- /// Conformance to ExpressibleAsTypeAnnotation
1764
- func createTypeAnnotation( ) -> TypeAnnotation {
1765
- return TypeAnnotation ( type: self )
1766
- }
1767
1763
func createTypeBuildable( ) -> TypeBuildable {
1768
1764
return createArrayType ( )
1769
1765
}
1770
1766
}
1771
- public protocol ExpressibleAsDictionaryType : ExpressibleAsTypeAnnotation , ExpressibleAsTypeBuildable {
1767
+ public protocol ExpressibleAsDictionaryType : ExpressibleAsTypeBuildable {
1772
1768
func createDictionaryType( ) -> DictionaryType
1773
1769
}
1774
1770
public extension ExpressibleAsDictionaryType {
1775
- /// Conformance to ExpressibleAsTypeAnnotation
1776
- func createTypeAnnotation( ) -> TypeAnnotation {
1777
- return TypeAnnotation ( type: self )
1778
- }
1779
1771
func createTypeBuildable( ) -> TypeBuildable {
1780
1772
return createDictionaryType ( )
1781
1773
}
0 commit comments