Skip to content

Commit 482db15

Browse files
author
Amritpan Kaur
committed
[ASTDumper] Consolidate series of closing parens into single line at end of AST in Initial Constraints and in the fully Type-checked expression.
1 parent 6518791 commit 482db15

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

lib/AST/ASTDumper.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2590,12 +2590,6 @@ class PrintExpr : public ExprVisitor<PrintExpr> {
25902590
}
25912591
Indent -= 2;
25922592

2593-
// If we printed any args, then print the closing ')' on a new line,
2594-
// otherwise print inline with the '(argument_list'.
2595-
if (!argList->empty()) {
2596-
OS << '\n';
2597-
OS.indent(Indent);
2598-
}
25992593
PrintWithColorRAII(OS, ParenthesisColor) << ')';
26002594

26012595
if (indent)

lib/Sema/TypeCheckConstraints.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,6 +1386,7 @@ void ConstraintSystem::print(raw_ostream &out, Expr *E) const {
13861386
};
13871387

13881388
E->dump(out, getTypeOfExpr, getTypeOfTypeRepr, getTypeOfKeyPathComponent);
1389+
out << "\n";
13891390
}
13901391

13911392
void ConstraintSystem::print(raw_ostream &out) const {

0 commit comments

Comments
 (0)