visitTryStatement method

  1. @override
bool visitTryStatement (
  1. TryStatement node
)
override

Implementation

@override
bool visitTryStatement(TryStatement node) {
  if (identical(node.body, _oldNode)) {
    node.body = _newNode as Block;
    return true;
  } else if (identical(node.finallyBlock, _oldNode)) {
    node.finallyBlock = _newNode as Block;
    return true;
  } else if (_replaceInList(node.catchClauses)) {
    return true;
  }
  return visitNode(node);
}