visitForElement method

  1. @override
bool visitForElement (
  1. ForElement node
)
override

Implementation

@override
bool visitForElement(ForElement node) {
  if (identical(node.forLoopParts, _oldNode)) {
    (node as ForElementImpl).forLoopParts = _newNode as ForLoopParts;
    return true;
  } else if (identical(node.body, _oldNode)) {
    (node as ForElementImpl).body = _newNode as CollectionElement;
    return true;
  }
  return visitNode(node);
}