Refactoring: less indents.
This commit is contained in:
parent
b31feeb4ea
commit
57defac719
12
Nodes.cpp
12
Nodes.cpp
|
@ -111,12 +111,14 @@ void Branch::emit(std::ostream &stream, int indent) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (els != nullptr) {
|
if (els == nullptr) {
|
||||||
stream << " else {\n";
|
return;
|
||||||
els->emit(stream, indent + 1);
|
|
||||||
emitIndent(stream, indent);
|
|
||||||
stream << "}";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stream << " else {\n";
|
||||||
|
els->emit(stream, indent + 1);
|
||||||
|
emitIndent(stream, indent);
|
||||||
|
stream << "}";
|
||||||
}
|
}
|
||||||
|
|
||||||
void VarDeclaration::emit(std::ostream &stream, int indent) {
|
void VarDeclaration::emit(std::ostream &stream, int indent) {
|
||||||
|
|
Reference in New Issue
Block a user