Skip to content

Commit e8a8ecd

Browse files
[ASTDumper] Print async let for any_pattern that has an async let bit set e.g. let _: <type> = <expr>
1 parent 5814b43 commit e8a8ecd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/AST/ASTDumper.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,9 @@ namespace {
375375
PrintWithColorRAII(OS, ParenthesisColor) << ')';
376376
}
377377
void visitAnyPattern(AnyPattern *P) {
378+
if (P->isAsyncLet()) {
379+
printCommon(P, "async_let ");
380+
}
378381
printCommon(P, "pattern_any");
379382
PrintWithColorRAII(OS, ParenthesisColor) << ')';
380383
}

0 commit comments

Comments
 (0)