File tree Expand file tree Collapse file tree 3 files changed +49
-0
lines changed
Sources/SwiftSyntaxBuilderGeneration Expand file tree Collapse file tree 3 files changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ let package = Package(
113
113
" NodeSerializationCodes.swift.gyb " ,
114
114
" PatternNodes.swift.gyb " ,
115
115
" StmtNodes.swift.gyb " ,
116
+ " SyntaxBaseKinds.swift.gyb " ,
116
117
" Tokens.swift.gyb " ,
117
118
" Traits.swift.gyb " ,
118
119
" Trivia.swift.gyb " ,
Original file line number Diff line number Diff line change
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
+ ]
Original file line number Diff line number Diff line change
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
+ ]
You can’t perform that action at this time.
0 commit comments