visitClassTypeAlias method

  1. @override
bool visitClassTypeAlias (
  1. ClassTypeAlias node
)
override

Implementation

@override
bool visitClassTypeAlias(ClassTypeAlias 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.superclass, _oldNode)) {
    node.superclass = _newNode as TypeName;
    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;
  }
  return visitAnnotatedNode(node);
}