Skip to content

Commit bf957a9

Browse files
committed
Sort raw syntax nodes
1 parent c6f709c commit bf957a9

File tree

2 files changed

+8311
-8311
lines changed

2 files changed

+8311
-8311
lines changed

Sources/SwiftSyntax/Raw/RawSyntaxNodes.swift.gyb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
//
1919
//===----------------------------------------------------------------------===//
2020

21-
% for node in SYNTAX_NODES:
21+
% for node in sorted(SYNTAX_NODES, key=lambda x: x.name):
2222
% if node.is_base():
2323
@_spi(RawSyntax)
2424
public protocol Raw${node.name}NodeProtocol: Raw${node.base_type}NodeProtocol {}
2525
% end
2626
% end
2727

28-
% for node in SYNTAX_NODES:
28+
% for node in sorted(SYNTAX_NODES, key=lambda x: x.name):
2929

3030
@_spi(RawSyntax)
3131
public struct Raw${node.name}: Raw${node.name if node.is_base() else node.base_type}NodeProtocol {

0 commit comments

Comments
 (0)