LibCpp: Fix busted outln() invocations

This commit is contained in:
Andreas Kling 2021-02-21 21:30:07 +01:00
commit 0bb2729423
Notes: sideshowbarker 2024-07-18 22:02:12 +09:00

View file

@ -99,12 +99,12 @@ void FunctionDefinition::dump(size_t indent) const
{ {
ASTNode::dump(indent); ASTNode::dump(indent);
print_indent(indent); print_indent(indent);
outln("{"); outln("{{");
for (const auto& statement : m_statements) { for (const auto& statement : m_statements) {
statement.dump(indent + 1); statement.dump(indent + 1);
} }
print_indent(indent); print_indent(indent);
outln("}"); outln("}}");
} }
NonnullRefPtrVector<Declaration> FunctionDefinition::declarations() const NonnullRefPtrVector<Declaration> FunctionDefinition::declarations() const