Skip to content

Commit 2222351

Browse files
committed
Add SYNTAX_BASE_KINDS
1 parent 7e79dde commit 2222351

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ let package = Package(
113113
"NodeSerializationCodes.swift.gyb",
114114
"PatternNodes.swift.gyb",
115115
"StmtNodes.swift.gyb",
116+
"SyntaxBaseKinds.swift.gyb",
116117
"Tokens.swift.gyb",
117118
"Traits.swift.gyb",
118119
"Trivia.swift.gyb",
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
%{
2+
from gyb_syntax_support import *
3+
from gyb_syntax_support.kinds import SYNTAX_BASE_KINDS
4+
# -*- mode: Swift -*-
5+
# Ignore the following admonition; it applies to the resulting .swift file only
6+
}%
7+
//// Automatically Generated From SyntaxBaseKinds.swift.gyb.
8+
//// Do Not Edit Directly!
9+
//===----------------------------------------------------------------------===//
10+
//
11+
// This source file is part of the Swift.org open source project
12+
//
13+
// Copyright (c) 2014 - 2022 Apple Inc. and the Swift project authors
14+
// Licensed under Apache License v2.0 with Runtime Library Exception
15+
//
16+
// See https://swift.org/LICENSE.txt for license information
17+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
18+
//
19+
//===----------------------------------------------------------------------===//
20+
21+
let SYNTAX_BASE_KINDS: Set<String> = [
22+
% for name in SYNTAX_BASE_KINDS:
23+
"${name}",
24+
% end
25+
]
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//// Automatically Generated From SyntaxBaseKinds.swift.gyb.
2+
//// Do Not Edit Directly!
3+
//===----------------------------------------------------------------------===//
4+
//
5+
// This source file is part of the Swift.org open source project
6+
//
7+
// Copyright (c) 2014 - 2022 Apple Inc. and the Swift project authors
8+
// Licensed under Apache License v2.0 with Runtime Library Exception
9+
//
10+
// See https://swift.org/LICENSE.txt for license information
11+
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
12+
//
13+
//===----------------------------------------------------------------------===//
14+
15+
let SYNTAX_BASE_KINDS: Set<String> = [
16+
"Decl",
17+
"Expr",
18+
"Pattern",
19+
"Stmt",
20+
"Syntax",
21+
"SyntaxCollection",
22+
"Type",
23+
]

0 commit comments

Comments
 (0)