Skip to content

Commit 86ee409

Browse files
committed
Update Unit Tests for Function Parameter Syntax Change
This broke in swiftlang/swift-syntax#793 when I updated the function parameter declaration representation to include isolated and const.
1 parent 5e8dc12 commit 86ee409

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

unittests/Syntax/DeclSyntaxTests.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,10 @@ FunctionParameterSyntax getCannedFunctionParameter(const RC<SyntaxArena> &Arena)
261261
auto Comma = Factory.makeCommaToken("", " ");
262262

263263
return Factory.makeFunctionParameter(
264-
/*UnexpectedNodes=*/None, None, /*UnexpectedNodes=*/None, ExternalName,
264+
/*UnexpectedNodes=*/None, None,
265+
/*UnexpectedNodes=*/None, None,
266+
/*UnexpectedNodes=*/None, None,
267+
/*UnexpectedNodes=*/None, ExternalName,
265268
/*UnexpectedNodes=*/None, LocalName, /*UnexpectedNodes=*/None, Colon,
266269
/*UnexpectedNodes=*/None, Int, /*UnexpectedNodes=*/None, NoEllipsis,
267270
/*UnexpectedNodes=*/None, DefaultArg, /*UnexpectedNodes=*/None, Comma);
@@ -305,7 +308,10 @@ TEST(DeclSyntaxTests, FunctionParameterGetAPIs) {
305308
auto Comma = Factory.makeCommaToken("", "");
306309

307310
auto Param = Factory.makeFunctionParameter(
308-
/*UnexpectedNodes=*/None, None, /*UnexpectedNodes=*/None, ExternalName,
311+
/*UnexpectedNodes=*/None, None,
312+
/*UnexpectedNodes=*/None, None,
313+
/*UnexpectedNodes=*/None, None,
314+
/*UnexpectedNodes=*/None, ExternalName,
309315
/*UnexpectedNodes=*/None, LocalName, /*UnexpectedNodes=*/None, Colon,
310316
/*UnexpectedNodes=*/None, Int, /*UnexpectedNodes=*/None, NoEllipsis,
311317
/*UnexpectedNodes=*/None, DefaultArg, /*UnexpectedNodes=*/None, Comma);

0 commit comments

Comments
 (0)