Skip to content

Commit 7ef2cbb

Browse files
committed
Use new SequenceExpr initializer in tests
1 parent 0e312a3 commit 7ef2cbb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Tests/SwiftSyntaxBuilderTest/FunctionTests.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,25 @@ final class FunctionTests: XCTestCase {
2323
},
2424
body: ifCodeBlock)
2525

26-
ReturnStmt(expression: SequenceExpr(elements: ExprList {
26+
ReturnStmt(expression: SequenceExpr {
2727
FunctionCallExpr("fibonacci") {
28-
SequenceExpr(elements: ExprList {
28+
SequenceExpr {
2929
IntegerLiteralExpr(digits: "n")
3030
BinaryOperatorExpr("-")
3131
IntegerLiteralExpr(1)
32-
})
32+
}
3333
}
3434

3535
BinaryOperatorExpr("+")
3636

3737
FunctionCallExpr(MemberAccessExpr(base: "self", name: "fibonacci")) {
38-
SequenceExpr(elements: ExprList {
38+
SequenceExpr {
3939
IntegerLiteralExpr(digits: "n")
4040
BinaryOperatorExpr("-")
4141
IntegerLiteralExpr(2)
42-
})
42+
}
4343
}
44-
}))
44+
})
4545
}
4646
let syntax = buildable.buildSyntax(format: Format(), leadingTrivia: leadingTrivia)
4747

0 commit comments

Comments
 (0)