visitConditionalExpression method

  1. @override
bool visitConditionalExpression (ConditionalExpression node)
override

Implementation

@override
bool visitConditionalExpression(ConditionalExpression node) {
  if (identical(node.condition, _oldNode)) {
    node.condition = _newNode as Expression;
    return true;
  } else if (identical(node.thenExpression, _oldNode)) {
    node.thenExpression = _newNode as Expression;
    return true;
  } else if (identical(node.elseExpression, _oldNode)) {
    node.elseExpression = _newNode as Expression;
    return true;
  }
  return visitNode(node);
}