Skip to content

Commit 19694ab

Browse files
committed
Sort nodes
1 parent c1d6b43 commit 19694ab

File tree

2 files changed

+1312
-1312
lines changed

2 files changed

+1312
-1312
lines changed

Sources/SwiftSyntax/Raw/RawSyntaxValidation.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func validateLayout(layout: RawSyntaxBuffer, as kind: SyntaxKind) {
9393
switch kind {
9494
case .token:
9595
assertionFailure("validateLayout for .token kind is not supported")
96-
% for node in NON_BASE_SYNTAX_NODES:
96+
% for node in sorted(NON_BASE_SYNTAX_NODES, key=lambda x: x.name):
9797
case .${node.swift_syntax_kind}:
9898
% if node.is_buildable() or node.is_missing():
9999
assert(layout.count == ${len(node.children)})

0 commit comments

Comments
 (0)