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

Side by Side Diff: pkg/analysis_server/lib/src/generated_protocol.dart

Issue 492563002: Make more use of generated classes in analysis server. (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 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 // This file has been automatically generated. Please do not edit it manually. 5 // This file has been automatically generated. Please do not edit it manually.
6 // To regenerate the file, use the script 6 // To regenerate the file, use the script
7 // "pkg/analysis_server/spec/generate_files". 7 // "pkg/analysis_server/spec/generate_files".
8 8
9 part of protocol2; 9 part of protocol2;
10 10
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 } 749 }
750 } 750 }
751 751
752 factory AnalysisSetSubscriptionsParams.fromRequest(Request request) { 752 factory AnalysisSetSubscriptionsParams.fromRequest(Request request) {
753 return new AnalysisSetSubscriptionsParams.fromJson( 753 return new AnalysisSetSubscriptionsParams.fromJson(
754 new RequestDecoder(request), "params", request.params); 754 new RequestDecoder(request), "params", request.params);
755 } 755 }
756 756
757 Map<String, dynamic> toJson() { 757 Map<String, dynamic> toJson() {
758 Map<String, dynamic> result = {}; 758 Map<String, dynamic> result = {};
759 result["subscriptions"] = _mapMap(subscriptions, keyCallback: (AnalysisServi ce value) => value.toJson()); 759 result["subscriptions"] = mapMap(subscriptions, keyCallback: (AnalysisServic e value) => value.toJson());
760 return result; 760 return result;
761 } 761 }
762 762
763 Request toRequest(String id) { 763 Request toRequest(String id) {
764 return new Request(id, "analysis.setSubscriptions", toJson()); 764 return new Request(id, "analysis.setSubscriptions", toJson());
765 } 765 }
766 766
767 @override 767 @override
768 String toString() => JSON.encode(toJson()); 768 String toString() => JSON.encode(toJson());
769 769
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 } 816 }
817 } 817 }
818 818
819 factory AnalysisUpdateContentParams.fromRequest(Request request) { 819 factory AnalysisUpdateContentParams.fromRequest(Request request) {
820 return new AnalysisUpdateContentParams.fromJson( 820 return new AnalysisUpdateContentParams.fromJson(
821 new RequestDecoder(request), "params", request.params); 821 new RequestDecoder(request), "params", request.params);
822 } 822 }
823 823
824 Map<String, dynamic> toJson() { 824 Map<String, dynamic> toJson() {
825 Map<String, dynamic> result = {}; 825 Map<String, dynamic> result = {};
826 result["files"] = _mapMap(files, valueCallback: (dynamic value) => value.toJ son()); 826 result["files"] = mapMap(files, valueCallback: (dynamic value) => value.toJs on());
827 return result; 827 return result;
828 } 828 }
829 829
830 Request toRequest(String id) { 830 Request toRequest(String id) {
831 return new Request(id, "analysis.updateContent", toJson()); 831 return new Request(id, "analysis.updateContent", toJson());
832 } 832 }
833 833
834 @override 834 @override
835 String toString() => JSON.encode(toJson()); 835 String toString() => JSON.encode(toJson());
836 836
(...skipping 8057 matching lines...) Expand 10 before | Expand all | Expand 10 after
8894 return false; 8894 return false;
8895 } 8895 }
8896 8896
8897 @override 8897 @override
8898 int get hashCode { 8898 int get hashCode {
8899 int hash = 0; 8899 int hash = 0;
8900 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); 8900 hash = _JenkinsSmiHash.combine(hash, newName.hashCode);
8901 return _JenkinsSmiHash.finish(hash); 8901 return _JenkinsSmiHash.finish(hash);
8902 } 8902 }
8903 } 8903 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698