@@ -47,7 +47,8 @@ public enum ChildKind {
47
47
kind: SyntaxNodeKind ,
48
48
collectionElementName: String ? = nil ,
49
49
defaultsToEmpty: Bool = false ,
50
- deprecatedCollectionElementName: String ? = nil
50
+ deprecatedCollectionElementName: String ? = nil ,
51
+ generateDeprecatedAddFunction: Bool = true
51
52
)
52
53
/// The child is a token that matches one of the given `choices`.
53
54
/// If `requiresLeadingSpace` or `requiresTrailingSpace` is not `nil`, it
@@ -132,7 +133,7 @@ public class Child: NodeChoiceConvertible {
132
133
return kind
133
134
case . nodeChoices:
134
135
return . syntax
135
- case . collection( kind: let kind, _, _, _) :
136
+ case . collection( kind: let kind, _, _, _, _ ) :
136
137
return kind
137
138
case . token:
138
139
return . token
@@ -268,7 +269,7 @@ public class Child: NodeChoiceConvertible {
268
269
/// Whether this child has syntax kind `UnexpectedNodes`.
269
270
public var isUnexpectedNodes : Bool {
270
271
switch kind {
271
- case . collection( kind: . unexpectedNodes, _, _, _) :
272
+ case . collection( kind: . unexpectedNodes, _, _, _, _ ) :
272
273
return true
273
274
default :
274
275
return false
@@ -283,7 +284,7 @@ public class Child: NodeChoiceConvertible {
283
284
return choices. isEmpty
284
285
case . node( let kind) :
285
286
return kind. isBase
286
- case . collection( kind: let kind, _, _, _) :
287
+ case . collection( kind: let kind, _, _, _, _ ) :
287
288
return kind. isBase
288
289
case . token:
289
290
return false
0 commit comments