visitTypeParameter method

  1. @override
bool visitTypeParameter (TypeParameter node)
override

Implementation

@override
bool visitTypeParameter(TypeParameter node) {
  if (identical(node.name, _oldNode)) {
    node.name = _newNode as SimpleIdentifier;
    return true;
  } else if (identical(node.bound, _oldNode)) {
    node.bound = _newNode as TypeAnnotation;
    return true;
  }
  return visitNode(node);
}