visitCatchClause method

  1. @override
bool visitCatchClause (
  1. CatchClause node
)
override

Implementation

@override
bool visitCatchClause(CatchClause node) {
  if (identical(node.exceptionType, _oldNode)) {
    node.exceptionType = _newNode as TypeAnnotation;
    return true;
  } else if (identical(node.exceptionParameter, _oldNode)) {
    node.exceptionParameter = _newNode as SimpleIdentifier;
    return true;
  } else if (identical(node.stackTraceParameter, _oldNode)) {
    node.stackTraceParameter = _newNode as SimpleIdentifier;
    return true;
  }
  return visitNode(node);
}