void While::doPrint(PrintContext &context) const { context.out() << "while ("; condition()->print(context); context.out() << ") "; printNestedStatement(body(), context); }
void Switch::doPrint(PrintContext &context) const { context.out() << "switch ("; expression()->print(context); context.out() << ") "; printNestedStatement(body(), context); }