OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of dartiverse_search; | 5 part of dartiverse_search; |
6 | 6 |
7 | 7 |
8 class GithubSearchEngine { | 8 class GithubSearchEngine { |
9 String get name => 'Github'; | 9 String get name => 'Github'; |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 .forEach((item) { | 35 .forEach((item) { |
36 controller.add(new SearchResult( | 36 controller.add(new SearchResult( |
37 item['description'], item['html_url'])); | 37 item['description'], item['html_url'])); |
38 }); | 38 }); |
39 }) | 39 }) |
40 .catchError(controller.addError) | 40 .catchError(controller.addError) |
41 .whenComplete(controller.close); | 41 .whenComplete(controller.close); |
42 return controller.stream; | 42 return controller.stream; |
43 } | 43 } |
44 } | 44 } |
OLD | NEW |