@@ -32,7 +32,7 @@ public enum ChildKind {
3232 /// The child always contains a node that matches one of the `choices`.
3333 case nodeChoices( choices: [ Child ] )
3434 /// The child is a collection of `kind`.
35- case collection( kind: SyntaxNodeKind , collectionElementName: String , deprecatedCollectionElementName: String ? = nil )
35+ case collection( kind: SyntaxNodeKind , collectionElementName: String , defaultsToEmpty : Bool = false , deprecatedCollectionElementName: String ? = nil )
3636 /// The child is a token that matches one of the given `choices`.
3737 /// If `requiresLeadingSpace` or `requiresTrailingSpace` is not `nil`, it
3838 /// overrides the default leading/trailing space behavior of the token.
@@ -91,7 +91,7 @@ public class Child {
9191 return kind
9292 case . nodeChoices:
9393 return . syntax
94- case . collection( kind: let kind, _, _) :
94+ case . collection( kind: let kind, _, _, _ ) :
9595 return kind
9696 case . token:
9797 return . token
@@ -150,7 +150,7 @@ public class Child {
150150 /// Whether this child has syntax kind `UnexpectedNodes`.
151151 public var isUnexpectedNodes : Bool {
152152 switch kind {
153- case . collection( kind: . unexpectedNodes, _, _) :
153+ case . collection( kind: . unexpectedNodes, _, _, _ ) :
154154 return true
155155 default :
156156 return false
@@ -165,7 +165,7 @@ public class Child {
165165 return choices. isEmpty
166166 case . node( let kind) :
167167 return kind. isBase
168- case . collection( let kind, _, _) :
168+ case . collection( kind : let kind, _ , _, _) :
169169 return kind. isBase
170170 case . token:
171171 return false
0 commit comments