File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed
SwiftSyntaxBuilderGeneration/gyb_generated Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -1484,18 +1484,26 @@ public extension ExpressibleAsAvailabilityCondition {
1484
1484
return createAvailabilityCondition ( )
1485
1485
}
1486
1486
}
1487
- public protocol ExpressibleAsMatchingPatternCondition : ExpressibleAsSyntaxBuildable {
1487
+ public protocol ExpressibleAsMatchingPatternCondition : ExpressibleAsConditionElement {
1488
1488
func createMatchingPatternCondition( ) -> MatchingPatternCondition
1489
1489
}
1490
1490
public extension ExpressibleAsMatchingPatternCondition {
1491
+ /// Conformance to ExpressibleAsConditionElement
1492
+ func createConditionElement( ) -> ConditionElement {
1493
+ return ConditionElement ( condition: self )
1494
+ }
1491
1495
func createSyntaxBuildable( ) -> SyntaxBuildable {
1492
1496
return createMatchingPatternCondition ( )
1493
1497
}
1494
1498
}
1495
- public protocol ExpressibleAsOptionalBindingCondition : ExpressibleAsSyntaxBuildable {
1499
+ public protocol ExpressibleAsOptionalBindingCondition : ExpressibleAsConditionElement {
1496
1500
func createOptionalBindingCondition( ) -> OptionalBindingCondition
1497
1501
}
1498
1502
public extension ExpressibleAsOptionalBindingCondition {
1503
+ /// Conformance to ExpressibleAsConditionElement
1504
+ func createConditionElement( ) -> ConditionElement {
1505
+ return ConditionElement ( condition: self )
1506
+ }
1499
1507
func createSyntaxBuildable( ) -> SyntaxBuildable {
1500
1508
return createOptionalBindingCondition ( )
1501
1509
}
Original file line number Diff line number Diff line change 21
21
'FunctionCallExpr' : [
22
22
'CodeBlockItem'
23
23
],
24
+ 'MatchingPatternCondition' : [
25
+ 'ConditionElement'
26
+ ],
24
27
'MemberDeclList' : [
25
28
'MemberDeclBlock'
26
29
],
30
+ 'OptionalBindingCondition' : [
31
+ 'ConditionElement'
32
+ ],
27
33
'SequenceExpr' : [
28
34
'CodeBlockItem' ,
29
35
'TupleExprElement'
Original file line number Diff line number Diff line change @@ -35,9 +35,15 @@ let SYNTAX_BUILDABLE_EXPRESSIBLE_AS_CONFORMANCES: [String: [String]] = [
35
35
" FunctionCallExpr " : [
36
36
" CodeBlockItem " ,
37
37
] ,
38
+ " MatchingPatternCondition " : [
39
+ " ConditionElement " ,
40
+ ] ,
38
41
" MemberDeclList " : [
39
42
" MemberDeclBlock " ,
40
43
] ,
44
+ " OptionalBindingCondition " : [
45
+ " ConditionElement " ,
46
+ ] ,
41
47
" SequenceExpr " : [
42
48
" CodeBlockItem " ,
43
49
" TupleExprElement " ,
You can’t perform that action at this time.
0 commit comments