Refactoring: less indents.

This commit is contained in:
Stefano Sanfilippo 2014-11-28 20:19:19 +01:00
parent b31feeb4ea
commit 57defac719

View File

@ -111,13 +111,15 @@ void Branch::emit(std::ostream &stream, int indent) {
}
}
if (els != nullptr) {
if (els == nullptr) {
return;
}
stream << " else {\n";
els->emit(stream, indent + 1);
emitIndent(stream, indent);
stream << "}";
}
}
void VarDeclaration::emit(std::ostream &stream, int indent) {
stream << type << ' ';