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

Side by Side Diff: pkg/analysis_server/lib/src/search/search_domain.dart

Issue 389413002: Use HasToJson when set Reponse/Notification parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/search/element_references.dart'; 10 import 'package:analysis_server/src/search/element_references.dart';
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 return exception.response; 107 return exception.response;
108 } 108 }
109 return null; 109 return null;
110 } 110 }
111 111
112 void _sendSearchNotification(String searchId, bool isLast, 112 void _sendSearchNotification(String searchId, bool isLast,
113 List<SearchResult> results) { 113 List<SearchResult> results) {
114 Notification notification = new Notification(SEARCH_RESULTS); 114 Notification notification = new Notification(SEARCH_RESULTS);
115 notification.setParameter(ID, searchId); 115 notification.setParameter(ID, searchId);
116 notification.setParameter(LAST, isLast); 116 notification.setParameter(LAST, isLast);
117 notification.setParameter( 117 notification.setParameter(RESULTS, results);
118 RESULTS,
119 results.map(SearchResult.asJson).toList());
120 server.sendNotification(notification); 118 server.sendNotification(notification);
121 } 119 }
122 } 120 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/protocol.dart ('k') | pkg/analysis_server/lib/src/search/search_result.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698