From dd98a34b6396759215ac0b2a1248688afc901430 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 7 Sep 2019 12:32:42 +0200 Subject: [PATCH] Fixed missing endlines between parameters in function calls --- .../BoundExpressions/BoundFunctionCallExpression.hpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Binder/BoundExpressions/BoundFunctionCallExpression.hpp b/src/Binder/BoundExpressions/BoundFunctionCallExpression.hpp index ef7c287..b837e7a 100644 --- a/src/Binder/BoundExpressions/BoundFunctionCallExpression.hpp +++ b/src/Binder/BoundExpressions/BoundFunctionCallExpression.hpp @@ -44,14 +44,13 @@ namespace Porygon::Binder { } void GetTreeString(std::stringstream& stream, size_t indents) const final{ - for (size_t i = 0; i < indents; i++) - stream << "\t"; + DrawIndents(stream, indents); stream << "Function Call" << " (" << GetType()->ToString() << ")" << endl; - for (size_t i = 0; i < indents; i++) - stream << "\t"; + DrawIndents(stream, indents); if (!_parameters.empty()){ - stream << "Parameters: " << endl; + stream << "Parameters: "; for (auto p : _parameters){ + stream << endl; p->GetTreeString(stream, indents + 1); } }