@@ -9548,7 +9548,7 @@ public struct SimpleTypeIdentifier: TypeBuildable {
95489548 }
95499549}
95509550
9551- public protocol ExpressibleAsSimpleTypeIdentifier {
9551+ public protocol ExpressibleAsSimpleTypeIdentifier : ExpressibleAsTypeAnnotation , ExpressibleAsTypeBuildable , ExpressibleAsTypeExpr {
95529552 func createSimpleTypeIdentifier( ) -> SimpleTypeIdentifier
95539553}
95549554
@@ -10624,7 +10624,7 @@ public struct IdentifierPattern: PatternBuildable {
1062410624 }
1062510625}
1062610626
10627- public protocol ExpressibleAsIdentifierPattern {
10627+ public protocol ExpressibleAsIdentifierPattern : ExpressibleAsPatternBuildable {
1062810628 func createIdentifierPattern( ) -> IdentifierPattern
1062910629}
1063010630
@@ -11178,15 +11178,27 @@ extension TokenSyntax: ExpressibleAsTokenSyntax {
1117811178
1117911179// MARK: - Syntax buildable expressible as conformances
1118011180
11181+ extension ExpressibleAsSimpleTypeIdentifier {
11182+ public func createTypeAnnotation( ) -> TypeAnnotation {
11183+ TypeAnnotation ( type: self )
11184+ }
11185+ }
11186+
11187+ extension ExpressibleAsSimpleTypeIdentifier {
11188+ public func createTypeExpr( ) -> TypeExpr {
11189+ TypeExpr ( type: self )
11190+ }
11191+ }
11192+
1118111193extension ExpressibleAsStmtBuildable {
1118211194 public func createCodeBlockItem( ) -> CodeBlockItem {
1118311195 CodeBlockItem ( item: self )
1118411196 }
1118511197}
1118611198
11187- extension ExpressibleAsExprList {
11188- public func createConditionElement ( ) -> ConditionElement {
11189- ConditionElement ( condition : self )
11199+ extension ExpressibleAsConditionElement {
11200+ public func createConditionElementList ( ) -> ConditionElementList {
11201+ ConditionElementList ( [ self ] )
1119011202 }
1119111203}
1119211204
@@ -11202,9 +11214,9 @@ extension ExpressibleAsDeclBuildable {
1120211214 }
1120311215}
1120411216
11205- extension ExpressibleAsConditionElement {
11206- public func createConditionElementList ( ) -> ConditionElementList {
11207- ConditionElementList ( [ self ] )
11217+ extension ExpressibleAsExprList {
11218+ public func createConditionElement ( ) -> ConditionElement {
11219+ ConditionElement ( condition : self )
1120811220 }
1120911221}
1121011222
0 commit comments