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 search.domain; | 5 library search.domain; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:analysis_server/src/analysis_server.dart'; | 9 import 'package:analysis_server/src/analysis_server.dart'; |
10 import 'package:analysis_server/src/computer/element.dart' as se; | 10 import 'package:analysis_server/src/computer/element.dart' as se; |
11 import 'package:analysis_server/src/constants.dart'; | 11 import 'package:analysis_server/src/constants.dart'; |
12 import 'package:analysis_server/src/protocol.dart'; | 12 import 'package:analysis_server/src/protocol.dart'; |
13 import 'package:analysis_server/src/search/element_references.dart'; | 13 import 'package:analysis_server/src/search/element_references.dart'; |
14 import 'package:analysis_server/src/search/search_result.dart'; | 14 import 'package:analysis_server/src/search/search_result.dart'; |
15 import 'package:analysis_server/src/search/type_hierarchy.dart'; | 15 import 'package:analysis_server/src/search/type_hierarchy.dart'; |
16 import 'package:analysis_services/constants.dart'; | 16 import 'package:analysis_server/src/services/constants.dart'; |
17 import 'package:analysis_services/json.dart'; | 17 import 'package:analysis_server/src/services/json.dart'; |
18 import 'package:analysis_services/search/search_engine.dart'; | 18 import 'package:analysis_server/src/services/search/search_engine.dart'; |
19 import 'package:analyzer/src/generated/element.dart'; | 19 import 'package:analyzer/src/generated/element.dart'; |
20 | 20 |
21 /** | 21 /** |
22 * Instances of the class [SearchDomainHandler] implement a [RequestHandler] | 22 * Instances of the class [SearchDomainHandler] implement a [RequestHandler] |
23 * that handles requests in the search domain. | 23 * that handles requests in the search domain. |
24 */ | 24 */ |
25 class SearchDomainHandler implements RequestHandler { | 25 class SearchDomainHandler implements RequestHandler { |
26 /** | 26 /** |
27 * The analysis server that is using this handler to process requests. | 27 * The analysis server that is using this handler to process requests. |
28 */ | 28 */ |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 notification.setParameter(ID, searchId); | 184 notification.setParameter(ID, searchId); |
185 notification.setParameter(LAST, isLast); | 185 notification.setParameter(LAST, isLast); |
186 notification.setParameter(RESULTS, results); | 186 notification.setParameter(RESULTS, results); |
187 server.sendNotification(notification); | 187 server.sendNotification(notification); |
188 } | 188 } |
189 | 189 |
190 static SearchResult toResult(SearchMatch match) { | 190 static SearchResult toResult(SearchMatch match) { |
191 return new SearchResult.fromMatch(match); | 191 return new SearchResult.fromMatch(match); |
192 } | 192 } |
193 } | 193 } |
OLD | NEW |