visitDoWhile method
dynamic
visitDoWhile(
- DoWhileStatement node
)
Implementation
@override
visitDoWhile(DoWhileStatement node) {
final String? loopLabel = _nextStatementLabel;
_nextStatementLabel = null;
do {
try {
node.body.visitBy(this);
} on ControlFlowBreakException catch (e) {
if (e.label == loopLabel) break;
if (e.label != null) rethrow;
break;
} on ControlFlowContinueException catch (e) {
if (e.label == loopLabel) continue;
if (e.label != null) rethrow;
continue;
}
} while (toBoolean(getValueFromNode(node.condition)));
}