Skip to content

Commit 10a4c8b

Browse files
committed
[reference-binding] Fix pattern dumping.
1 parent f5156c9 commit 10a4c8b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/AST/ASTDumper.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,10 @@ namespace {
479479
PrintWithColorRAII(OS, ParenthesisColor) << ')';
480480
}
481481
void visitBindingPattern(BindingPattern *P) {
482-
printCommon(P, P->isLet() ? "pattern_let" : "pattern_var");
482+
SmallString<64> name;
483+
name += "pattern_";
484+
name += P->getIntroducerStringRef();
485+
printCommon(P, name.c_str());
483486
OS << '\n';
484487
printRec(P->getSubPattern());
485488
PrintWithColorRAII(OS, ParenthesisColor) << ')';

0 commit comments

Comments
 (0)