shuffle method

  1. @override
WhileLoopStatement shuffle()
override

Shuffle the contents of the Statement.

This is only relevant for compound Statements, such as ForLoopStatement.

Non-compound statements, e.g., VariableDeclarationStatement, simply return themselves.

Implementation

@override
WhileLoopStatement shuffle() {
  return WhileLoopStatement.init(
    isDoWhile,
    condition,
    bodyStatements.map((e) => e.shuffle()).toList()..shuffle(),
  );
}