visitIndexExpression method

  1. @override
bool visitIndexExpression (
  1. IndexExpression node
)
override

Implementation

@override
bool visitIndexExpression(IndexExpression node) {
  if (identical(node.target, _oldNode)) {
    node.target = _newNode as Expression;
    return true;
  } else if (identical(node.index, _oldNode)) {
    node.index = _newNode as Expression;
    return true;
  }
  return visitNode(node);
}