visitForPartsWithDeclarations method

  1. @override
bool visitForPartsWithDeclarations (ForPartsWithDeclarations node)
override

Implementation

@override
bool visitForPartsWithDeclarations(ForPartsWithDeclarations node) {
  if (identical(node.variables, _oldNode)) {
    (node as ForPartsWithDeclarationsImpl).variables =
        _newNode as VariableDeclarationList;
    return true;
  } else if (identical(node.condition, _oldNode)) {
    (node as ForPartsWithDeclarationsImpl).condition = _newNode as Expression;
    return true;
  } else if (_replaceInList(node.updaters)) {
    return true;
  }
  return visitNode(node);
}