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