visitIfStatement method

  1. @override
bool visitIfStatement (
  1. IfStatement node
)
override

Implementation

@override
bool visitIfStatement(IfStatement node) {
  if (identical(node.condition, _oldNode)) {
    node.condition = _newNode as Expression;
    return true;
  } else if (identical(node.thenStatement, _oldNode)) {
    node.thenStatement = _newNode as Statement;
    return true;
  } else if (identical(node.elseStatement, _oldNode)) {
    node.elseStatement = _newNode as Statement;
    return true;
  }
  return visitNode(node);
}