visitGenericTypeAlias method

  1. @override
bool visitGenericTypeAlias (GenericTypeAlias node)
override

Implementation

@override
bool visitGenericTypeAlias(GenericTypeAlias 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.functionType, _oldNode)) {
    node.functionType = _newNode as GenericFunctionType;
    return true;
  } else if (_replaceInList(node.metadata)) {
    return true;
  }
  return visitNode(node);
}