shuffle method

  1. @override
StatementBlock 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
StatementBlock shuffle() {
  return StatementBlock.init(
    statements: statements..shuffle(),
    isIsolated: isIsolated,
  );
}