Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Unified Diff: pkg/analysis_server/lib/src/search/search_domain.dart

Issue 480823005: Do proper JSON conversion when returning search results. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/search/search_domain.dart
diff --git a/pkg/analysis_server/lib/src/search/search_domain.dart b/pkg/analysis_server/lib/src/search/search_domain.dart
index 3f59feba2f4c7bef1e16f545b033f6487e84b15d..e80756ed21eddc07de8be897fcdf9d4e3d4bfb12 100644
--- a/pkg/analysis_server/lib/src/search/search_domain.dart
+++ b/pkg/analysis_server/lib/src/search/search_domain.dart
@@ -80,7 +80,7 @@ class SearchDomainHandler implements RequestHandler {
response.setResult(ID, searchId);
if (elements.isNotEmpty) {
var serverElement = new se.Element.fromEngine(elements[0]);
- response.setResult(ELEMENT, serverElement);
+ response.setResult(ELEMENT, objectToJson(serverElement));
}
return response;
}
@@ -182,7 +182,7 @@ class SearchDomainHandler implements RequestHandler {
Notification notification = new Notification(SEARCH_RESULTS);
notification.setParameter(ID, searchId);
notification.setParameter(LAST, isLast);
- notification.setParameter(RESULTS, results);
+ notification.setParameter(RESULTS, objectToJson(results));
server.sendNotification(notification);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698