Skip to content

Commit 2f04248

Browse files
authored
Merge pull request #553 from fwcd/is-garbage-nodes-swift
Add `Child.isGarbageNodes`
2 parents cbdc9a4 + 4f12be8 commit 2f04248

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/SwiftSyntaxBuilderGeneration/Child.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ class Child {
6363
return tokenChoices.first
6464
}
6565

66+
/// Whether this child has syntax kind `GarbageNodes`.
67+
var isGarbageNodes: Bool {
68+
syntaxKind == "GarbageNodes"
69+
}
70+
6671
/// If a classification is passed, it specifies the color identifiers in
6772
/// that subtree should inherit for syntax coloring. Must be a member of
6873
/// SyntaxClassification in SyntaxClassifier.h.gyb

0 commit comments

Comments
 (0)