visitClassDeclaration method

  1. @override
bool visitClassDeclaration (ClassDeclaration node)
override

Implementation

@override
bool visitClassDeclaration(ClassDeclaration node) {
  if (identical(node.name, _oldNode)) {
    node.name = _newNode as SimpleIdentifier;
    return true;
  } else if (identical(node.typeParameters, _oldNode)) {
    node.typeParameters = _newNode as TypeParameterList;
    return true;
  } else if (identical(node.extendsClause, _oldNode)) {
    node.extendsClause = _newNode as ExtendsClause;
    return true;
  } else if (identical(node.withClause, _oldNode)) {
    node.withClause = _newNode as WithClause;
    return true;
  } else if (identical(node.implementsClause, _oldNode)) {
    node.implementsClause = _newNode as ImplementsClause;
    return true;
  } else if (identical(node.nativeClause, _oldNode)) {
    node.nativeClause = _newNode as NativeClause;
    return true;
  } else if (_replaceInList(node.members)) {
    return true;
  }
  return visitAnnotatedNode(node);
}