@@ -183,6 +183,10 @@ class ValidateSyntaxNodes: XCTestCase {
183
183
node: . conventionWitnessMethodAttributeArguments,
184
184
message: " child 'WitnessMethodLabel' has a single keyword as its only token choice and should thus be named 'Witness_methodKeyword' "
185
185
) ,
186
+ ValidationFailure (
187
+ node: . deinitEffectSpecifiers,
188
+ message: " child 'AsyncSpecifier' has a single keyword as its only token choice and should thus be named 'AsyncKeyword' "
189
+ ) ,
186
190
ValidationFailure (
187
191
node: . derivativeRegistrationAttributeArguments,
188
192
message: " child 'OfLabel' has a single keyword as its only token choice and should thus be named 'OfKeyword' "
@@ -199,10 +203,6 @@ class ValidateSyntaxNodes: XCTestCase {
199
203
node: . genericParameter,
200
204
message: " child 'Each' has a single keyword as its only token choice and should thus be named 'EachKeyword' "
201
205
) ,
202
- ValidationFailure (
203
- node: . importDecl,
204
- message: " child 'ImportTok' has a single keyword as its only token choice and should thus be named 'ImportKeyword' "
205
- ) ,
206
206
ValidationFailure ( node: . isExpr, message: " child 'IsTok' has a single keyword as its only token choice and should thus be named 'IsKeyword' " ) ,
207
207
ValidationFailure (
208
208
node: . originallyDefinedInArguments,
@@ -243,9 +243,6 @@ class ValidateSyntaxNodes: XCTestCase {
243
243
ValidationFailure ( node: . unresolvedAsExpr, message: " child 'AsTok' has a single keyword as its only token choice and should thus be named 'AsKeyword' " ) ,
244
244
ValidationFailure ( node: . unresolvedIsExpr, message: " child 'IsTok' has a single keyword as its only token choice and should thus be named 'IsKeyword' " ) ,
245
245
246
- // MARK:
247
- ValidationFailure ( node: . arrayExpr, message: " child 'LeftSquare' has a token as its only token choice and should thus be named 'LeftSquareBracket' " ) ,
248
- ValidationFailure ( node: . arrayExpr, message: " child 'RightSquare' has a token as its only token choice and should thus be named 'RightSquareBracket' " ) ,
249
246
ValidationFailure ( node: . arrowExpr, message: " child 'ArrowToken' has a token as its only token choice and should thus be named 'Arrow' " ) ,
250
247
ValidationFailure ( node: . assignmentExpr, message: " child 'AssignToken' has a token as its only token choice and should thus be named 'Equal' " ) ,
251
248
ValidationFailure ( node: . attribute, message: " child 'AtSignToken' has a token as its only token choice and should thus be named 'AtSign' " ) ,
@@ -256,26 +253,10 @@ class ValidateSyntaxNodes: XCTestCase {
256
253
message: " child 'OperatorToken' has a token as its only token choice and should thus be named 'BinaryOperator' "
257
254
) ,
258
255
ValidationFailure ( node: . closureCaptureItem, message: " child 'AssignToken' has a token as its only token choice and should thus be named 'Equal' " ) ,
259
- ValidationFailure (
260
- node: . closureCaptureSignature,
261
- message: " child 'LeftSquare' has a token as its only token choice and should thus be named 'LeftSquareBracket' "
262
- ) ,
263
- ValidationFailure (
264
- node: . closureCaptureSignature,
265
- message: " child 'RightSquare' has a token as its only token choice and should thus be named 'RightSquareBracket' "
266
- ) ,
267
256
ValidationFailure (
268
257
node: . designatedTypeElement,
269
258
message: " child 'LeadingComma' has a comma keyword as its only token choice and should thus be named 'Comma' or 'TrailingComma' "
270
259
) ,
271
- ValidationFailure (
272
- node: . dictionaryExpr,
273
- message: " child 'LeftSquare' has a token as its only token choice and should thus be named 'LeftSquareBracket' "
274
- ) ,
275
- ValidationFailure (
276
- node: . dictionaryExpr,
277
- message: " child 'RightSquare' has a token as its only token choice and should thus be named 'RightSquareBracket' "
278
- ) ,
279
260
ValidationFailure (
280
261
node: . differentiableAttributeArguments,
281
262
message: " child 'DiffKindComma' has a comma keyword as its only token choice and should thus be named 'Comma' or 'TrailingComma' "
@@ -313,11 +294,11 @@ class ValidateSyntaxNodes: XCTestCase {
313
294
ValidationFailure ( node: . integerLiteralExpr, message: " child 'Digits' has a token as its only token choice and should thus be named 'IntegerLiteral' " ) ,
314
295
ValidationFailure (
315
296
node: . keyPathSubscriptComponent,
316
- message: " child 'LeftBracket' has a token as its only token choice and should thus be named 'LeftSquareBracket ' "
297
+ message: " child 'LeftBracket' has a token as its only token choice and should thus be named 'LeftSquare ' "
317
298
) ,
318
299
ValidationFailure (
319
300
node: . keyPathSubscriptComponent,
320
- message: " child 'RightBracket' has a token as its only token choice and should thus be named 'RightSquareBracket ' "
301
+ message: " child 'RightBracket' has a token as its only token choice and should thus be named 'RightSquare ' "
321
302
) ,
322
303
ValidationFailure ( node: . labeledStmt, message: " child 'LabelColon' has a token as its only token choice and should thus be named 'Colon' " ) ,
323
304
ValidationFailure ( node: . layoutRequirement, message: " child 'Size' has a token as its only token choice and should thus be named 'IntegerLiteral' " ) ,
@@ -395,11 +376,11 @@ class ValidateSyntaxNodes: XCTestCase {
395
376
ValidationFailure ( node: . stringSegment, message: " child 'Content' has a token as its only token choice and should thus be named 'StringSegment' " ) ,
396
377
ValidationFailure (
397
378
node: . subscriptExpr,
398
- message: " child 'LeftBracket' has a token as its only token choice and should thus be named 'LeftSquareBracket ' "
379
+ message: " child 'LeftBracket' has a token as its only token choice and should thus be named 'LeftSquare ' "
399
380
) ,
400
381
ValidationFailure (
401
382
node: . subscriptExpr,
402
- message: " child 'RightBracket' has a token as its only token choice and should thus be named 'RightSquareBracket ' "
383
+ message: " child 'RightBracket' has a token as its only token choice and should thus be named 'RightSquare ' "
403
384
) ,
404
385
ValidationFailure (
405
386
node: . suppressedType,
@@ -501,10 +482,6 @@ class ValidateSyntaxNodes: XCTestCase {
501
482
node: . precedenceGroupAssociativity,
502
483
message: " child 'Value' only has keywords as its token choices and should thus and with 'Keyword' "
503
484
) ,
504
- ValidationFailure (
505
- node: . precedenceGroupRelation,
506
- message: " child 'HigherThanOrLowerThan' only has keywords as its token choices and should thus and with 'Keyword' "
507
- ) ,
508
485
]
509
486
)
510
487
}
0 commit comments