| 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'
; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 /** | 92 /** |
| 93 * Returns references to the given [Element]. | 93 * Returns references to the given [Element]. |
| 94 * | 94 * |
| 95 * [element] - the [Element] being referenced by the found matches. | 95 * [element] - the [Element] being referenced by the found matches. |
| 96 */ | 96 */ |
| 97 Future<List<SearchMatch>> searchReferences(Element element); | 97 Future<List<SearchMatch>> searchReferences(Element element); |
| 98 | 98 |
| 99 /** | 99 /** |
| 100 * Returns subtypes of the given [type]. | 100 * Returns subtypes of the given [type]. |
| 101 * | 101 * |
| 102 * [type] - the [ClassElemnet] being subtyped by the found matches. | 102 * [type] - the [ClassElement] being subtyped by the found matches. |
| 103 */ | 103 */ |
| 104 Future<List<SearchMatch>> searchSubtypes(ClassElement type); | 104 Future<List<SearchMatch>> searchSubtypes(ClassElement type); |
| 105 | 105 |
| 106 /** | 106 /** |
| 107 * Returns all the top-level declarations matching the given pattern. | 107 * Returns all the top-level declarations matching the given pattern. |
| 108 * | 108 * |
| 109 * [pattern] the regular expression used to match the names of the | 109 * [pattern] the regular expression used to match the names of the |
| 110 * declarations to be found. | 110 * declarations to be found. |
| 111 */ | 111 */ |
| 112 Future<List<SearchMatch>> searchTopLevelDeclarations(String pattern); | 112 Future<List<SearchMatch>> searchTopLevelDeclarations(String pattern); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 buffer.write(", range="); | 173 buffer.write(", range="); |
| 174 buffer.write(sourceRange); | 174 buffer.write(sourceRange); |
| 175 buffer.write(", isResolved="); | 175 buffer.write(", isResolved="); |
| 176 buffer.write(isResolved); | 176 buffer.write(isResolved); |
| 177 buffer.write(", isQualified="); | 177 buffer.write(", isQualified="); |
| 178 buffer.write(isQualified); | 178 buffer.write(isQualified); |
| 179 buffer.write(")"); | 179 buffer.write(")"); |
| 180 return buffer.toString(); | 180 return buffer.toString(); |
| 181 } | 181 } |
| 182 } | 182 } |
| OLD | NEW |