visitMixinDeclaration method

  1. @override
bool visitMixinDeclaration (
  1. MixinDeclaration node
)
override

Implementation

@override
bool visitMixinDeclaration(MixinDeclaration 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.name = _newNode as SimpleIdentifier;
    return true;
  } else if (identical(node.typeParameters, _oldNode)) {
    (node as MixinDeclarationImpl).typeParameters =
        _newNode as TypeParameterList;
    return true;
  } else if (identical(node.onClause, _oldNode)) {
    (node as MixinDeclarationImpl).onClause = _newNode as OnClause;
    return true;
  } else if (identical(node.implementsClause, _oldNode)) {
    (node as MixinDeclarationImpl).implementsClause =
        _newNode as ImplementsClause;
    return true;
  } else if (_replaceInList(node.members)) {
    return true;
  }
  return visitNode(node);
}