emit method
Appends str
to the output buffer.
Implementation
void emit(String str) {
if (_prettyPrint) {
if (_startOfLine) {
_startOfLine = false;
_buff.write(' ' * _indent);
}
_buff.write(str);
} else {
_buff.write(str);
}
}