Skip to content

Commit 6518791

Browse files
author
Amritpan Kaur
committed
[ASTDumper] Remove list of decl references in Initial Constraints to make AST easier to read.
1 parent ed88700 commit 6518791

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/AST/ASTDumper.cpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2012,15 +2012,7 @@ class PrintExpr : public ExprVisitor<PrintExpr> {
20122012
<< E->getDecls()[0]->getBaseName();
20132013
PrintWithColorRAII(OS, ExprModifierColor)
20142014
<< " number_of_decls=" << E->getDecls().size()
2015-
<< " function_ref=" << getFunctionRefKindStr(E->getFunctionRefKind())
2016-
<< " decls=[\n";
2017-
interleave(E->getDecls(),
2018-
[&](ValueDecl *D) {
2019-
OS.indent(Indent + 2);
2020-
D->dumpRef(PrintWithColorRAII(OS, DeclModifierColor).getOS());
2021-
},
2022-
[&] { PrintWithColorRAII(OS, DeclModifierColor) << ",\n"; });
2023-
PrintWithColorRAII(OS, ExprModifierColor) << "]";
2015+
<< " function_ref=" << getFunctionRefKindStr(E->getFunctionRefKind());
20242016
PrintWithColorRAII(OS, ParenthesisColor) << ')';
20252017
}
20262018
void visitUnresolvedDeclRefExpr(UnresolvedDeclRefExpr *E) {

0 commit comments

Comments
 (0)