You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CodeGeneration/Tests/ValidateSyntaxNodes/ValidateSyntaxNodes.swift
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -462,7 +462,12 @@ class ValidateSyntaxNodes: XCTestCase {
462
462
ValidationFailure(
463
463
node:.qualifiedDeclName,
464
464
message:
465
-
"child 'Arguments' is named inconsistently with 'IdentifierExprSyntax.DeclNameArguments', which has the same type ('DeclNameArgumentsSyntax')"
465
+
"child 'Arguments' is named inconsistently with 'KeyPathPropertyComponentSyntax.DeclNameArguments', which has the same type ('DeclNameArgumentsSyntax')"
466
+
),
467
+
ValidationFailure(
468
+
node:.declReferenceExpr,
469
+
message:
470
+
"child 'ArgumentNames' is named inconsistently with 'KeyPathPropertyComponentSyntax.DeclNameArguments', which has the same type ('DeclNameArgumentsSyntax')"
466
471
),
467
472
// MARK: Alternate names for InitializerClauseSyntax
468
473
// The cases below don’t have intializers but just a syntactic element that happens to be spelled the same
@@ -628,8 +633,7 @@ class ValidateSyntaxNodes: XCTestCase {
628
633
failures,
629
634
expectedFailures:[
630
635
// The identifier expr / pattern nodes do actually have a child that’s the identifier
631
-
ValidationFailure(node:.identifierExpr, message:"child 'Identifier' should generally not contain 'Identifier'"),
632
-
ValidationFailure(node:.identifierPattern, message:"child 'Identifier' should generally not contain 'Identifier'"),
636
+
ValidationFailure(node:.identifierPattern, message:"child 'Identifier' should generally not contain 'Identifier'")
0 commit comments