copy method

  1. @override
WhileLoopStatement copy()
override

Create a deep copy of the Statement.

Implementation

@override
WhileLoopStatement copy() {
  return WhileLoopStatement.init(
    isDoWhile,
    condition.copy(),
    List.from(bodyStatements.map((e) => e.copy())),
  );
}