@@ -127,6 +127,7 @@ public struct ArrayExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
127
127
/// `elements` collection.
128
128
/// - returns: A copy of the receiver with the provided `Element`
129
129
/// appended to its `elements` collection.
130
+ @available ( * , deprecated, message: " Use node.elements.append(newElement) instead " )
130
131
public func addElement( _ element: ArrayElementSyntax ) -> ArrayExprSyntax {
131
132
var collection : RawSyntax
132
133
let arena = SyntaxArena ( )
@@ -1507,6 +1508,7 @@ public struct ClosureExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
1507
1508
/// `statements` collection.
1508
1509
/// - returns: A copy of the receiver with the provided `Statement`
1509
1510
/// appended to its `statements` collection.
1511
+ @available ( * , deprecated, message: " Use node.statements.append(newElement) instead " )
1510
1512
public func addStatement( _ element: CodeBlockItemSyntax ) -> ClosureExprSyntax {
1511
1513
var collection : RawSyntax
1512
1514
let arena = SyntaxArena ( )
@@ -2658,6 +2660,7 @@ public struct FunctionCallExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
2658
2660
/// `arguments` collection.
2659
2661
/// - returns: A copy of the receiver with the provided `Argument`
2660
2662
/// appended to its `arguments` collection.
2663
+ @available ( * , deprecated, message: " Use node.arguments.append(newElement) instead " )
2661
2664
public func addArgument( _ element: LabeledExprSyntax ) -> FunctionCallExprSyntax {
2662
2665
var collection : RawSyntax
2663
2666
let arena = SyntaxArena ( )
@@ -2736,6 +2739,7 @@ public struct FunctionCallExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
2736
2739
/// `additionalTrailingClosures` collection.
2737
2740
/// - returns: A copy of the receiver with the provided `AdditionalTrailingClosure`
2738
2741
/// appended to its `additionalTrailingClosures` collection.
2742
+ @available ( * , deprecated, message: " Use node.additionalTrailingClosures.append(newElement) instead " )
2739
2743
public func addAdditionalTrailingClosure( _ element: MultipleTrailingClosureElementSyntax ) -> FunctionCallExprSyntax {
2740
2744
var collection : RawSyntax
2741
2745
let arena = SyntaxArena ( )
@@ -3079,6 +3083,7 @@ public struct IfExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
3079
3083
/// `conditions` collection.
3080
3084
/// - returns: A copy of the receiver with the provided `Condition`
3081
3085
/// appended to its `conditions` collection.
3086
+ @available ( * , deprecated, message: " Use node.conditions.append(newElement) instead " )
3082
3087
public func addCondition( _ element: ConditionElementSyntax ) -> IfExprSyntax {
3083
3088
var collection : RawSyntax
3084
3089
let arena = SyntaxArena ( )
@@ -3827,6 +3832,7 @@ public struct KeyPathExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
3827
3832
/// `components` collection.
3828
3833
/// - returns: A copy of the receiver with the provided `KeyPathComponent`
3829
3834
/// appended to its `components` collection.
3835
+ @available ( * , deprecated, message: " Use node.components.append(newElement) instead " )
3830
3836
public func addKeyPathComponent( _ element: KeyPathComponentSyntax ) -> KeyPathExprSyntax {
3831
3837
var collection : RawSyntax
3832
3838
let arena = SyntaxArena ( )
@@ -4073,6 +4079,7 @@ public struct MacroExpansionExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
4073
4079
/// `arguments` collection.
4074
4080
/// - returns: A copy of the receiver with the provided `Argument`
4075
4081
/// appended to its `arguments` collection.
4082
+ @available ( * , deprecated, message: " Use node.arguments.append(newElement) instead " )
4076
4083
public func addArgument( _ element: LabeledExprSyntax ) -> MacroExpansionExprSyntax {
4077
4084
var collection : RawSyntax
4078
4085
let arena = SyntaxArena ( )
@@ -4151,6 +4158,7 @@ public struct MacroExpansionExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
4151
4158
/// `additionalTrailingClosures` collection.
4152
4159
/// - returns: A copy of the receiver with the provided `AdditionalTrailingClosure`
4153
4160
/// appended to its `additionalTrailingClosures` collection.
4161
+ @available ( * , deprecated, message: " Use node.additionalTrailingClosures.append(newElement) instead " )
4154
4162
public func addAdditionalTrailingClosure( _ element: MultipleTrailingClosureElementSyntax ) -> MacroExpansionExprSyntax {
4155
4163
var collection : RawSyntax
4156
4164
let arena = SyntaxArena ( )
@@ -5615,6 +5623,7 @@ public struct SequenceExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
5615
5623
/// `elements` collection.
5616
5624
/// - returns: A copy of the receiver with the provided `Element`
5617
5625
/// appended to its `elements` collection.
5626
+ @available ( * , deprecated, message: " Use node.elements.append(newElement) instead " )
5618
5627
public func addElement( _ element: ExprSyntax ) -> SequenceExprSyntax {
5619
5628
var collection : RawSyntax
5620
5629
let arena = SyntaxArena ( )
@@ -5807,6 +5816,7 @@ public struct StringLiteralExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
5807
5816
/// `segments` collection.
5808
5817
/// - returns: A copy of the receiver with the provided `Segment`
5809
5818
/// appended to its `segments` collection.
5819
+ @available ( * , deprecated, message: " Use node.segments.append(newElement) instead " )
5810
5820
public func addSegment( _ element: Syntax ) -> StringLiteralExprSyntax {
5811
5821
var collection : RawSyntax
5812
5822
let arena = SyntaxArena ( )
@@ -6041,6 +6051,7 @@ public struct SubscriptCallExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
6041
6051
/// `arguments` collection.
6042
6052
/// - returns: A copy of the receiver with the provided `Argument`
6043
6053
/// appended to its `arguments` collection.
6054
+ @available ( * , deprecated, message: " Use node.arguments.append(newElement) instead " )
6044
6055
public func addArgument( _ element: LabeledExprSyntax ) -> SubscriptCallExprSyntax {
6045
6056
var collection : RawSyntax
6046
6057
let arena = SyntaxArena ( )
@@ -6119,6 +6130,7 @@ public struct SubscriptCallExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
6119
6130
/// `additionalTrailingClosures` collection.
6120
6131
/// - returns: A copy of the receiver with the provided `AdditionalTrailingClosure`
6121
6132
/// appended to its `additionalTrailingClosures` collection.
6133
+ @available ( * , deprecated, message: " Use node.additionalTrailingClosures.append(newElement) instead " )
6122
6134
public func addAdditionalTrailingClosure( _ element: MultipleTrailingClosureElementSyntax ) -> SubscriptCallExprSyntax {
6123
6135
var collection : RawSyntax
6124
6136
let arena = SyntaxArena ( )
@@ -6413,6 +6425,7 @@ public struct SwitchExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
6413
6425
/// `cases` collection.
6414
6426
/// - returns: A copy of the receiver with the provided `Case`
6415
6427
/// appended to its `cases` collection.
6428
+ @available ( * , deprecated, message: " Use node.cases.append(newElement) instead " )
6416
6429
public func addCase( _ element: Syntax ) -> SwitchExprSyntax {
6417
6430
var collection : RawSyntax
6418
6431
let arena = SyntaxArena ( )
@@ -6942,6 +6955,7 @@ public struct TupleExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
6942
6955
/// `elements` collection.
6943
6956
/// - returns: A copy of the receiver with the provided `Element`
6944
6957
/// appended to its `elements` collection.
6958
+ @available ( * , deprecated, message: " Use node.elements.append(newElement) instead " )
6945
6959
public func addElement( _ element: LabeledExprSyntax ) -> TupleExprSyntax {
6946
6960
var collection : RawSyntax
6947
6961
let arena = SyntaxArena ( )
0 commit comments