| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library services.src.search.search_engine; | 5 library services.src.search.search_engine; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analysis_server/analysis/index/index_core.dart'; | 9 import 'package:analysis_server/analysis/index_core.dart'; |
| 10 import 'package:analysis_server/src/services/correction/source_range.dart'; | 10 import 'package:analysis_server/src/services/correction/source_range.dart'; |
| 11 import 'package:analysis_server/src/services/index/index.dart'; | 11 import 'package:analysis_server/src/services/index/index.dart'; |
| 12 import 'package:analysis_server/src/services/index/indexable_element.dart'; | 12 import 'package:analysis_server/src/services/index/indexable_element.dart'; |
| 13 import 'package:analysis_server/src/services/search/search_engine.dart'; | 13 import 'package:analysis_server/src/services/search/search_engine.dart'; |
| 14 import 'package:analyzer/src/generated/element.dart'; | 14 import 'package:analyzer/src/generated/element.dart'; |
| 15 import 'package:analyzer/src/generated/source.dart'; | 15 import 'package:analyzer/src/generated/source.dart'; |
| 16 | 16 |
| 17 /** | 17 /** |
| 18 * A [SearchEngine] implementation. | 18 * A [SearchEngine] implementation. |
| 19 */ | 19 */ |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 IndexableElement indexable = new IndexableElement(element); | 239 IndexableElement indexable = new IndexableElement(element); |
| 240 add(indexable, relationship, kind); | 240 add(indexable, relationship, kind); |
| 241 } | 241 } |
| 242 | 242 |
| 243 Future<List<SearchMatch>> merge() { | 243 Future<List<SearchMatch>> merge() { |
| 244 return Future.wait(futures).then((List<List<SearchMatch>> matchesList) { | 244 return Future.wait(futures).then((List<List<SearchMatch>> matchesList) { |
| 245 return matchesList.expand((matches) => matches).toList(); | 245 return matchesList.expand((matches) => matches).toList(); |
| 246 }); | 246 }); |
| 247 } | 247 } |
| 248 } | 248 } |
| OLD | NEW |