Skip to content

Commit 3e5751e

Browse files
authored
Merge pull request #545 from kimdv/kimdv/fix-SyntaxBaseKinds
Remove duplicated SYNTAX_BASE_KINDS
2 parents cd86c61 + 2ce2573 commit 3e5751e

File tree

4 files changed

+2
-50
lines changed

4 files changed

+2
-50
lines changed

Package.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ let package = Package(
112112
"ExpressibleAsConformances.swift.gyb",
113113
"ExprNodes.swift.gyb",
114114
"GenericNodes.swift.gyb",
115-
"Kinds.swift.gyb",
116115
"NodeSerializationCodes.swift.gyb",
117116
"PatternNodes.swift.gyb",
118117
"StmtNodes.swift.gyb",

Sources/SwiftSyntaxBuilderGeneration/Kinds.swift.gyb

Lines changed: 0 additions & 24 deletions
This file was deleted.

Sources/SwiftSyntaxBuilderGeneration/Node.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Node {
3030

3131
/// Returns `True` if this node declares one of the base syntax kinds.
3232
var isBase: Bool {
33-
return SyntaxBaseKinds.contains(syntaxKind)
33+
return SYNTAX_BASE_KINDS.contains(syntaxKind)
3434
}
3535

3636
/// Returns `True` if this node is a subclass of SyntaxCollection.
@@ -87,7 +87,7 @@ class Node {
8787
self.children = children
8888
self.baseKind = kind
8989

90-
if !SyntaxBaseKinds.contains(baseKind) {
90+
if !SYNTAX_BASE_KINDS.contains(baseKind) {
9191
fatalError("unknown base kind '\(baseKind)' for node '\(syntaxKind)'")
9292
}
9393

Sources/SwiftSyntaxBuilderGeneration/gyb_generated/Kinds.swift

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)