visitDoStatement method

  1. @override
bool visitDoStatement (
  1. DoStatement node
)
override

Implementation

@override
bool visitDoStatement(DoStatement node) {
  if (identical(node.body, _oldNode)) {
    node.body = _newNode as Statement;
    return true;
  } else if (identical(node.condition, _oldNode)) {
    node.condition = _newNode as Expression;
    return true;
  }
  return visitNode(node);
}