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

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

Issue 607813003: Use a separate request for 'Sort members' feature, not a refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 2 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/tool/spec/generate_files". 7 // "pkg/analysis_server/tool/spec/generate_files".
8 8
9 part of protocol; 9 part of protocol;
10 /** 10 /**
(...skipping 3720 matching lines...) Expand 10 before | Expand all | Expand 10 after
3731 hash = _JenkinsSmiHash.combine(hash, optionsProblems.hashCode); 3731 hash = _JenkinsSmiHash.combine(hash, optionsProblems.hashCode);
3732 hash = _JenkinsSmiHash.combine(hash, finalProblems.hashCode); 3732 hash = _JenkinsSmiHash.combine(hash, finalProblems.hashCode);
3733 hash = _JenkinsSmiHash.combine(hash, feedback.hashCode); 3733 hash = _JenkinsSmiHash.combine(hash, feedback.hashCode);
3734 hash = _JenkinsSmiHash.combine(hash, change.hashCode); 3734 hash = _JenkinsSmiHash.combine(hash, change.hashCode);
3735 hash = _JenkinsSmiHash.combine(hash, potentialEdits.hashCode); 3735 hash = _JenkinsSmiHash.combine(hash, potentialEdits.hashCode);
3736 return _JenkinsSmiHash.finish(hash); 3736 return _JenkinsSmiHash.finish(hash);
3737 } 3737 }
3738 } 3738 }
3739 3739
3740 /** 3740 /**
3741 * edit.sortMembers params
3742 *
3743 * {
3744 * "file": FilePath
3745 * }
3746 */
3747 class EditSortMembersParams implements HasToJson {
3748 /**
3749 * The Dart file to sort.
3750 */
3751 String file;
3752
3753 EditSortMembersParams(this.file);
3754
3755 factory EditSortMembersParams.fromJson(JsonDecoder jsonDecoder, String jsonPat h, Object json) {
3756 if (json == null) {
3757 json = {};
3758 }
3759 if (json is Map) {
3760 String file;
3761 if (json.containsKey("file")) {
3762 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]);
3763 } else {
3764 throw jsonDecoder.missingKey(jsonPath, "file");
3765 }
3766 return new EditSortMembersParams(file);
3767 } else {
3768 throw jsonDecoder.mismatch(jsonPath, "edit.sortMembers params");
3769 }
3770 }
3771
3772 factory EditSortMembersParams.fromRequest(Request request) {
3773 return new EditSortMembersParams.fromJson(
3774 new RequestDecoder(request), "params", request._params);
3775 }
3776
3777 Map<String, dynamic> toJson() {
3778 Map<String, dynamic> result = {};
3779 result["file"] = file;
3780 return result;
3781 }
3782
3783 Request toRequest(String id) {
3784 return new Request(id, "edit.sortMembers", toJson());
3785 }
3786
3787 @override
3788 String toString() => JSON.encode(toJson());
3789
3790 @override
3791 bool operator==(other) {
3792 if (other is EditSortMembersParams) {
3793 return file == other.file;
3794 }
3795 return false;
3796 }
3797
3798 @override
3799 int get hashCode {
3800 int hash = 0;
3801 hash = _JenkinsSmiHash.combine(hash, file.hashCode);
3802 return _JenkinsSmiHash.finish(hash);
3803 }
3804 }
3805
3806 /**
3807 * edit.sortMembers result
3808 *
3809 * {
3810 * "edit": SourceFileEdit
3811 * }
3812 */
3813 class EditSortMembersResult implements HasToJson {
3814 /**
3815 * The file edit that is to be applied to the given file to effect the
3816 * sorting.
3817 */
3818 SourceFileEdit edit;
3819
3820 EditSortMembersResult(this.edit);
3821
3822 factory EditSortMembersResult.fromJson(JsonDecoder jsonDecoder, String jsonPat h, Object json) {
3823 if (json == null) {
3824 json = {};
3825 }
3826 if (json is Map) {
3827 SourceFileEdit edit;
3828 if (json.containsKey("edit")) {
3829 edit = new SourceFileEdit.fromJson(jsonDecoder, jsonPath + ".edit", json ["edit"]);
3830 } else {
3831 throw jsonDecoder.missingKey(jsonPath, "edit");
3832 }
3833 return new EditSortMembersResult(edit);
3834 } else {
3835 throw jsonDecoder.mismatch(jsonPath, "edit.sortMembers result");
3836 }
3837 }
3838
3839 factory EditSortMembersResult.fromResponse(Response response) {
3840 return new EditSortMembersResult.fromJson(
3841 new ResponseDecoder(response), "result", response._result);
3842 }
3843
3844 Map<String, dynamic> toJson() {
3845 Map<String, dynamic> result = {};
3846 result["edit"] = edit.toJson();
3847 return result;
3848 }
3849
3850 Response toResponse(String id) {
3851 return new Response(id, result: toJson());
3852 }
3853
3854 @override
3855 String toString() => JSON.encode(toJson());
3856
3857 @override
3858 bool operator==(other) {
3859 if (other is EditSortMembersResult) {
3860 return edit == other.edit;
3861 }
3862 return false;
3863 }
3864
3865 @override
3866 int get hashCode {
3867 int hash = 0;
3868 hash = _JenkinsSmiHash.combine(hash, edit.hashCode);
3869 return _JenkinsSmiHash.finish(hash);
3870 }
3871 }
3872
3873 /**
3741 * execution.createContext params 3874 * execution.createContext params
3742 * 3875 *
3743 * { 3876 * {
3744 * "contextRoot": FilePath 3877 * "contextRoot": FilePath
3745 * } 3878 * }
3746 */ 3879 */
3747 class ExecutionCreateContextParams implements HasToJson { 3880 class ExecutionCreateContextParams implements HasToJson {
3748 /** 3881 /**
3749 * The path of the Dart or HTML file that will be launched. 3882 * The path of the Dart or HTML file that will be launched.
3750 */ 3883 */
(...skipping 6466 matching lines...) Expand 10 before | Expand all | Expand 10 after
10217 return false; 10350 return false;
10218 } 10351 }
10219 10352
10220 @override 10353 @override
10221 int get hashCode { 10354 int get hashCode {
10222 int hash = 0; 10355 int hash = 0;
10223 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); 10356 hash = _JenkinsSmiHash.combine(hash, newName.hashCode);
10224 return _JenkinsSmiHash.finish(hash); 10357 return _JenkinsSmiHash.finish(hash);
10225 } 10358 }
10226 } 10359 }
10227 /**
10228 * sortMembers feedback
10229 */
10230 class SortMembersFeedback {
10231 @override
10232 bool operator==(other) {
10233 if (other is SortMembersFeedback) {
10234 return true;
10235 }
10236 return false;
10237 }
10238
10239 @override
10240 int get hashCode {
10241 return 173473419;
10242 }
10243 }
10244 /**
10245 * sortMembers options
10246 */
10247 class SortMembersOptions {
10248 @override
10249 bool operator==(other) {
10250 if (other is SortMembersOptions) {
10251 return true;
10252 }
10253 return false;
10254 }
10255
10256 @override
10257 int get hashCode {
10258 return 99705880;
10259 }
10260 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698