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_server/src/services/index/index.dart'; | 9 import 'package:analysis_server/src/services/index/index.dart'; |
10 import 'package:analysis_server/src/services/search/search_engine_internal.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/dart/element/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 * Returns a new [SearchEngine] instance based on the given [Index]. | 16 * Returns a new [SearchEngine] instance based on the given [Index]. |
17 */ | 17 */ |
18 SearchEngine createSearchEngine(Index index) { | 18 SearchEngine createSearchEngine(Index index) { |
19 return new SearchEngineImpl(index); | 19 return new SearchEngineImpl(index); |
20 } | 20 } |
21 | 21 |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 buffer.write(", range="); | 180 buffer.write(", range="); |
181 buffer.write(sourceRange); | 181 buffer.write(sourceRange); |
182 buffer.write(", isResolved="); | 182 buffer.write(", isResolved="); |
183 buffer.write(isResolved); | 183 buffer.write(isResolved); |
184 buffer.write(", isQualified="); | 184 buffer.write(", isQualified="); |
185 buffer.write(isQualified); | 185 buffer.write(isQualified); |
186 buffer.write(")"); | 186 buffer.write(")"); |
187 return buffer.toString(); | 187 return buffer.toString(); |
188 } | 188 } |
189 } | 189 } |
OLD | NEW |