visitAssertInitializer method

  1. @override
bool visitAssertInitializer (AssertInitializer node)
override

Implementation

@override
bool visitAssertInitializer(AssertInitializer node) {
  if (identical(node.condition, _oldNode)) {
    node.condition = _newNode as Expression;
    return true;
  }
  if (identical(node.message, _oldNode)) {
    node.message = _newNode as Expression;
    return true;
  }
  return visitNode(node);
}