[Syntax] Fix type syntax tests for 'async'.

This commit is contained in:
Doug Gregor
2020-08-06 14:04:25 -07:00
parent 6ff46ae2da
commit 6a5522f09a

View File

@@ -471,7 +471,7 @@ TEST(TypeSyntaxTests, FunctionTypeMakeAPIs) {
auto Int = SyntaxFactory::makeTypeIdentifier("Int", {}, {});
auto IntArg = SyntaxFactory::makeBlankTupleTypeElement()
.withType(Int);
auto Async = SyntaxFactory::makeContextualKeyword(
auto Async = SyntaxFactory::makeIdentifier(
"async", { }, { Trivia::spaces(1) });
auto Throws = SyntaxFactory::makeThrowsKeyword({}, { Trivia::spaces(1) });
auto Rethrows = SyntaxFactory::makeRethrowsKeyword({},