Fixed missing endlines between parameters in function calls

This commit is contained in:
Deukhoofd 2019-09-07 12:32:42 +02:00
parent 1235e8893f
commit dd98a34b63
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 4 additions and 5 deletions

View File

@ -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);
}
}