@@ -85,7 +85,7 @@ public extension ExpressibleAsSyntaxBuildable {
85
85
return SwitchCaseList ( [ self ] )
86
86
}
87
87
}
88
- public protocol ExpressibleAsTypeBuildable : ExpressibleAsReturnClause , ExpressibleAsTypeInitializerClause {
88
+ public protocol ExpressibleAsTypeBuildable : ExpressibleAsReturnClause , ExpressibleAsTypeInitializerClause , ExpressibleAsTypeAnnotation {
89
89
func createTypeBuildable( ) -> TypeBuildable
90
90
}
91
91
public extension ExpressibleAsTypeBuildable {
@@ -97,6 +97,10 @@ public extension ExpressibleAsTypeBuildable {
97
97
func createTypeInitializerClause( ) -> TypeInitializerClause {
98
98
return TypeInitializerClause ( value: self )
99
99
}
100
+ /// Conformance to ExpressibleAsTypeAnnotation
101
+ func createTypeAnnotation( ) -> TypeAnnotation {
102
+ return TypeAnnotation ( type: self )
103
+ }
100
104
}
101
105
public protocol ExpressibleAsCodeBlockItem : ExpressibleAsCodeBlockItemList {
102
106
func createCodeBlockItem( ) -> CodeBlockItem
@@ -1737,14 +1741,10 @@ public extension ExpressibleAsPrimaryAssociatedTypeClause {
1737
1741
return createPrimaryAssociatedTypeClause ( )
1738
1742
}
1739
1743
}
1740
- public protocol ExpressibleAsSimpleTypeIdentifier : ExpressibleAsTypeAnnotation , ExpressibleAsTypeExpr , ExpressibleAsTypeBuildable {
1744
+ public protocol ExpressibleAsSimpleTypeIdentifier : ExpressibleAsTypeExpr , ExpressibleAsTypeBuildable {
1741
1745
func createSimpleTypeIdentifier( ) -> SimpleTypeIdentifier
1742
1746
}
1743
1747
public extension ExpressibleAsSimpleTypeIdentifier {
1744
- /// Conformance to ExpressibleAsTypeAnnotation
1745
- func createTypeAnnotation( ) -> TypeAnnotation {
1746
- return TypeAnnotation ( type: self )
1747
- }
1748
1748
/// Conformance to ExpressibleAsTypeExpr
1749
1749
func createTypeExpr( ) -> TypeExpr {
1750
1750
return TypeExpr ( type: self )
@@ -1769,26 +1769,18 @@ public extension ExpressibleAsClassRestrictionType {
1769
1769
return createClassRestrictionType ( )
1770
1770
}
1771
1771
}
1772
- public protocol ExpressibleAsArrayType : ExpressibleAsTypeAnnotation , ExpressibleAsTypeBuildable {
1772
+ public protocol ExpressibleAsArrayType : ExpressibleAsTypeBuildable {
1773
1773
func createArrayType( ) -> ArrayType
1774
1774
}
1775
1775
public extension ExpressibleAsArrayType {
1776
- /// Conformance to ExpressibleAsTypeAnnotation
1777
- func createTypeAnnotation( ) -> TypeAnnotation {
1778
- return TypeAnnotation ( type: self )
1779
- }
1780
1776
func createTypeBuildable( ) -> TypeBuildable {
1781
1777
return createArrayType ( )
1782
1778
}
1783
1779
}
1784
- public protocol ExpressibleAsDictionaryType : ExpressibleAsTypeAnnotation , ExpressibleAsTypeBuildable {
1780
+ public protocol ExpressibleAsDictionaryType : ExpressibleAsTypeBuildable {
1785
1781
func createDictionaryType( ) -> DictionaryType
1786
1782
}
1787
1783
public extension ExpressibleAsDictionaryType {
1788
- /// Conformance to ExpressibleAsTypeAnnotation
1789
- func createTypeAnnotation( ) -> TypeAnnotation {
1790
- return TypeAnnotation ( type: self )
1791
- }
1792
1784
func createTypeBuildable( ) -> TypeBuildable {
1793
1785
return createDictionaryType ( )
1794
1786
}
0 commit comments