@@ -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 ( )
@@ -2527,6 +2529,7 @@ public struct FunctionCallExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
2527
2529
/// `arguments` collection.
2528
2530
/// - returns: A copy of the receiver with the provided `Argument`
2529
2531
/// appended to its `arguments` collection.
2532
+ @available ( * , deprecated, message: " Use node.arguments.append(newElement) instead " )
2530
2533
public func addArgument( _ element: LabeledExprSyntax ) -> FunctionCallExprSyntax {
2531
2534
var collection : RawSyntax
2532
2535
let arena = SyntaxArena ( )
@@ -2605,6 +2608,7 @@ public struct FunctionCallExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
2605
2608
/// `additionalTrailingClosures` collection.
2606
2609
/// - returns: A copy of the receiver with the provided `AdditionalTrailingClosure`
2607
2610
/// appended to its `additionalTrailingClosures` collection.
2611
+ @available ( * , deprecated, message: " Use node.additionalTrailingClosures.append(newElement) instead " )
2608
2612
public func addAdditionalTrailingClosure( _ element: MultipleTrailingClosureElementSyntax ) -> FunctionCallExprSyntax {
2609
2613
var collection : RawSyntax
2610
2614
let arena = SyntaxArena ( )
@@ -3070,6 +3074,7 @@ public struct IfExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
3070
3074
/// `conditions` collection.
3071
3075
/// - returns: A copy of the receiver with the provided `Condition`
3072
3076
/// appended to its `conditions` collection.
3077
+ @available ( * , deprecated, message: " Use node.conditions.append(newElement) instead " )
3073
3078
public func addCondition( _ element: ConditionElementSyntax ) -> IfExprSyntax {
3074
3079
var collection : RawSyntax
3075
3080
let arena = SyntaxArena ( )
@@ -3818,6 +3823,7 @@ public struct KeyPathExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
3818
3823
/// `components` collection.
3819
3824
/// - returns: A copy of the receiver with the provided `KeyPathComponent`
3820
3825
/// appended to its `components` collection.
3826
+ @available ( * , deprecated, message: " Use node.components.append(newElement) instead " )
3821
3827
public func addKeyPathComponent( _ element: KeyPathComponentSyntax ) -> KeyPathExprSyntax {
3822
3828
var collection : RawSyntax
3823
3829
let arena = SyntaxArena ( )
@@ -4064,6 +4070,7 @@ public struct MacroExpansionExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
4064
4070
/// `arguments` collection.
4065
4071
/// - returns: A copy of the receiver with the provided `Argument`
4066
4072
/// appended to its `arguments` collection.
4073
+ @available ( * , deprecated, message: " Use node.arguments.append(newElement) instead " )
4067
4074
public func addArgument( _ element: LabeledExprSyntax ) -> MacroExpansionExprSyntax {
4068
4075
var collection : RawSyntax
4069
4076
let arena = SyntaxArena ( )
@@ -4142,6 +4149,7 @@ public struct MacroExpansionExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
4142
4149
/// `additionalTrailingClosures` collection.
4143
4150
/// - returns: A copy of the receiver with the provided `AdditionalTrailingClosure`
4144
4151
/// appended to its `additionalTrailingClosures` collection.
4152
+ @available ( * , deprecated, message: " Use node.additionalTrailingClosures.append(newElement) instead " )
4145
4153
public func addAdditionalTrailingClosure( _ element: MultipleTrailingClosureElementSyntax ) -> MacroExpansionExprSyntax {
4146
4154
var collection : RawSyntax
4147
4155
let arena = SyntaxArena ( )
@@ -5633,6 +5641,7 @@ public struct SequenceExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
5633
5641
/// `elements` collection.
5634
5642
/// - returns: A copy of the receiver with the provided `Element`
5635
5643
/// appended to its `elements` collection.
5644
+ @available ( * , deprecated, message: " Use node.elements.append(newElement) instead " )
5636
5645
public func addElement( _ element: ExprSyntax ) -> SequenceExprSyntax {
5637
5646
var collection : RawSyntax
5638
5647
let arena = SyntaxArena ( )
@@ -5825,6 +5834,7 @@ public struct StringLiteralExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
5825
5834
/// `segments` collection.
5826
5835
/// - returns: A copy of the receiver with the provided `Segment`
5827
5836
/// appended to its `segments` collection.
5837
+ @available ( * , deprecated, message: " Use node.segments.append(newElement) instead " )
5828
5838
public func addSegment( _ element: Syntax ) -> StringLiteralExprSyntax {
5829
5839
var collection : RawSyntax
5830
5840
let arena = SyntaxArena ( )
@@ -6059,6 +6069,7 @@ public struct SubscriptCallExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
6059
6069
/// `arguments` collection.
6060
6070
/// - returns: A copy of the receiver with the provided `Argument`
6061
6071
/// appended to its `arguments` collection.
6072
+ @available ( * , deprecated, message: " Use node.arguments.append(newElement) instead " )
6062
6073
public func addArgument( _ element: LabeledExprSyntax ) -> SubscriptCallExprSyntax {
6063
6074
var collection : RawSyntax
6064
6075
let arena = SyntaxArena ( )
@@ -6137,6 +6148,7 @@ public struct SubscriptCallExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
6137
6148
/// `additionalTrailingClosures` collection.
6138
6149
/// - returns: A copy of the receiver with the provided `AdditionalTrailingClosure`
6139
6150
/// appended to its `additionalTrailingClosures` collection.
6151
+ @available ( * , deprecated, message: " Use node.additionalTrailingClosures.append(newElement) instead " )
6140
6152
public func addAdditionalTrailingClosure( _ element: MultipleTrailingClosureElementSyntax ) -> SubscriptCallExprSyntax {
6141
6153
var collection : RawSyntax
6142
6154
let arena = SyntaxArena ( )
@@ -6431,6 +6443,7 @@ public struct SwitchExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
6431
6443
/// `cases` collection.
6432
6444
/// - returns: A copy of the receiver with the provided `Case`
6433
6445
/// appended to its `cases` collection.
6446
+ @available ( * , deprecated, message: " Use node.cases.append(newElement) instead " )
6434
6447
public func addCase( _ element: Syntax ) -> SwitchExprSyntax {
6435
6448
var collection : RawSyntax
6436
6449
let arena = SyntaxArena ( )
@@ -6960,6 +6973,7 @@ public struct TupleExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
6960
6973
/// `elements` collection.
6961
6974
/// - returns: A copy of the receiver with the provided `Element`
6962
6975
/// appended to its `elements` collection.
6976
+ @available ( * , deprecated, message: " Use node.elements.append(newElement) instead " )
6963
6977
public func addElement( _ element: LabeledExprSyntax ) -> TupleExprSyntax {
6964
6978
var collection : RawSyntax
6965
6979
let arena = SyntaxArena ( )
0 commit comments