visitFunctionTypeAlias method

  1. @override
bool visitFunctionTypeAlias (FunctionTypeAlias node)
override

Implementation

@override
bool visitFunctionTypeAlias(FunctionTypeAlias node) {
  if (identical(node.returnType, _oldNode)) {
    node.returnType = _newNode as TypeAnnotation;
    return true;
  } else 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.parameters, _oldNode)) {
    node.parameters = _newNode as FormalParameterList;
    return true;
  }
  return visitAnnotatedNode(node);
}