| 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/plugin/index/index_core.dart'; | 9 import 'package:analysis_server/src/provisional/index/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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 IndexableElement indexable = new IndexableElement(element); | 247 IndexableElement indexable = new IndexableElement(element); |
| 248 add(indexable, relationship, kind); | 248 add(indexable, relationship, kind); |
| 249 } | 249 } |
| 250 | 250 |
| 251 Future<List<SearchMatch>> merge() { | 251 Future<List<SearchMatch>> merge() { |
| 252 return Future.wait(futures).then((List<List<SearchMatch>> matchesList) { | 252 return Future.wait(futures).then((List<List<SearchMatch>> matchesList) { |
| 253 return matchesList.expand((matches) => matches).toList(); | 253 return matchesList.expand((matches) => matches).toList(); |
| 254 }); | 254 }); |
| 255 } | 255 } |
| 256 } | 256 } |
| OLD | NEW |