@@ -40,9 +40,6 @@ public class Node {
40
40
/// The kind of node’s supertype. This kind must have `isBase == true`
41
41
public let base : SyntaxNodeKind
42
42
43
- /// If this syntax node has been deprecated, a message that describes the deprecation.
44
- public let deprecationMessage : String ?
45
-
46
43
/// The experimental feature the node is part of, or `nil` if this isn't
47
44
/// for an experimental feature.
48
45
public let experimentalFeature : ExperimentalFeature ?
@@ -109,9 +106,6 @@ public class Node {
109
106
"""
110
107
experimentalSPI. with ( \. trailingTrivia, . newline)
111
108
}
112
- if let deprecationMessage {
113
- " @available(*, deprecated, message: \( literal: deprecationMessage) ) "
114
- }
115
109
if forRaw {
116
110
" @_spi(RawSyntax) "
117
111
}
@@ -133,7 +127,6 @@ public class Node {
133
127
init (
134
128
kind: SyntaxNodeKind ,
135
129
base: SyntaxNodeKind ,
136
- deprecationMessage: String ? = nil ,
137
130
experimentalFeature: ExperimentalFeature ? = nil ,
138
131
nameForDiagnostics: String ? ,
139
132
documentation: String ? = nil ,
@@ -146,7 +139,6 @@ public class Node {
146
139
147
140
self . kind = kind
148
141
self . base = base
149
- self . deprecationMessage = deprecationMessage
150
142
self . experimentalFeature = experimentalFeature
151
143
self . nameForDiagnostics = nameForDiagnostics
152
144
self . documentation = SwiftSyntax . Trivia. docCommentTrivia ( from: documentation)
@@ -265,7 +257,7 @@ public class Node {
265
257
266
258
let list =
267
259
SYNTAX_NODES
268
- . filter { $0. base == self . kind && !$0. isExperimental }
260
+ . filter { $0. base == self . kind && !$0. isExperimental && !$0 . kind . isDeprecated }
269
261
. map { " - \( $0. kind. doccLink) " }
270
262
. joined ( separator: " \n " )
271
263
@@ -288,7 +280,6 @@ public class Node {
288
280
init (
289
281
kind: SyntaxNodeKind ,
290
282
base: SyntaxNodeKind ,
291
- deprecationMessage: String ? = nil ,
292
283
experimentalFeature: ExperimentalFeature ? = nil ,
293
284
nameForDiagnostics: String ? ,
294
285
documentation: String ? = nil ,
@@ -298,7 +289,6 @@ public class Node {
298
289
self . kind = kind
299
290
precondition ( base == . syntaxCollection)
300
291
self . base = base
301
- self . deprecationMessage = deprecationMessage
302
292
self . experimentalFeature = experimentalFeature
303
293
self . nameForDiagnostics = nameForDiagnostics
304
294
self . documentation = SwiftSyntax . Trivia. docCommentTrivia ( from: documentation)
0 commit comments