anchor.diff:      deleteExisting,
     );
   }
  -
  -DiscoveryApi _discoveryClient(http.Client client) => DiscoveryApi(client);
  
positive.code:       return apis;
      });
  
  Future<List<RestDescription>> fetchDiscoveryDocuments(
      {List<String> ids}) async {
    final client = http.Client();
  
    try {
      final discovery = _discoveryClient(client);
  
      final list = await discovery.apis.list();
  
  
negative.code: 
  import 'src/package_configuration.dart';
  
  Future<List<DirectoryListItems>> _listAllApis() async {
    final client = http.Client();
    try {
      final result = await DiscoveryApi(client).apis.list();
      return result.items;
    } finally {
      client.close();
    }
  }
  
  Future<List<RestDescription>> downloadDiscoveryDocuments(
    String outputDir, {
    List<String> ids,
  }) =>
      fetchDiscoveryDocuments(ids: ids).then((List<RestDescription> apis) {
        final directory = Directory(outputDir);
        if (directory.existsSync()) {
  