visitExtensionDeclaration method

bool visitExtensionDeclaration (ExtensionDeclaration node)
override

Implementation

bool visitExtensionDeclaration(ExtensionDeclaration node) {
  if (identical(node.documentationComment, _oldNode)) {
    node.documentationComment = _newNode as Comment;
    return true;
  } else if (_replaceInList(node.metadata)) {
    return true;
  } else if (identical(node.name, _oldNode)) {
    (node as ExtensionDeclarationImpl).name = _newNode as SimpleIdentifier;
    return true;
  } else if (identical(node.typeParameters, _oldNode)) {
    (node as ExtensionDeclarationImpl).typeParameters =
        _newNode as TypeParameterList;
    return true;
  } else if (identical(node.extendedType, _oldNode)) {
    (node as ExtensionDeclarationImpl).extendedType =
        _newNode as TypeAnnotation;
    return true;
  } else if (_replaceInList(node.members)) {
    return true;
  }
  return visitNode(node);
}