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.search_engine; | 5 library services.search_engine; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:analysis_services/index/index.dart'; | 9 import 'package:analysis_server/src/services/index/index.dart'; |
10 import 'package:analysis_services/src/search/search_engine.dart'; | 10 import 'package:analysis_server/src/services/search/search_engine_internal.dart'
; |
11 import 'package:analyzer/src/generated/element.dart'; | 11 import 'package:analyzer/src/generated/element.dart'; |
12 import 'package:analyzer/src/generated/java_core.dart'; | 12 import 'package:analyzer/src/generated/java_core.dart'; |
13 import 'package:analyzer/src/generated/source.dart'; | 13 import 'package:analyzer/src/generated/source.dart'; |
14 | 14 |
15 | 15 |
16 /** | 16 /** |
17 * Returns a new [SearchEngine] instance based on the given [Index]. | 17 * Returns a new [SearchEngine] instance based on the given [Index]. |
18 */ | 18 */ |
19 SearchEngine createSearchEngine(Index index) { | 19 SearchEngine createSearchEngine(Index index) { |
20 return new SearchEngineImpl(index); | 20 return new SearchEngineImpl(index); |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 buffer.write(", range="); | 188 buffer.write(", range="); |
189 buffer.write(sourceRange); | 189 buffer.write(sourceRange); |
190 buffer.write(", isResolved="); | 190 buffer.write(", isResolved="); |
191 buffer.write(isResolved); | 191 buffer.write(isResolved); |
192 buffer.write(", isQualified="); | 192 buffer.write(", isQualified="); |
193 buffer.write(isQualified); | 193 buffer.write(isQualified); |
194 buffer.write(")"); | 194 buffer.write(")"); |
195 return buffer.toString(); | 195 return buffer.toString(); |
196 } | 196 } |
197 } | 197 } |
OLD | NEW |