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

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

Issue 587553002: API proposal for the MOVE_FILE refactoring. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add MoveFileOptions.java Created 6 years, 3 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 9941 matching lines...) Expand 10 before | Expand all | Expand 10 after
9952 } 9952 }
9953 9953
9954 @override 9954 @override
9955 int get hashCode { 9955 int get hashCode {
9956 int hash = 0; 9956 int hash = 0;
9957 hash = _JenkinsSmiHash.combine(hash, deleteSource.hashCode); 9957 hash = _JenkinsSmiHash.combine(hash, deleteSource.hashCode);
9958 hash = _JenkinsSmiHash.combine(hash, inlineAll.hashCode); 9958 hash = _JenkinsSmiHash.combine(hash, inlineAll.hashCode);
9959 return _JenkinsSmiHash.finish(hash); 9959 return _JenkinsSmiHash.finish(hash);
9960 } 9960 }
9961 } 9961 }
9962 /**
9963 * moveFile feedback
9964 */
9965 class MoveFileFeedback {
9966 @override
9967 bool operator==(other) {
9968 if (other is MoveFileFeedback) {
9969 return true;
9970 }
9971 return false;
9972 }
9973
9974 @override
9975 int get hashCode {
9976 return 438975893;
9977 }
9978 }
9979
9980 /**
9981 * moveFile options
9982 *
9983 * {
9984 * "newFile": FilePath
9985 * }
9986 */
9987 class MoveFileOptions extends RefactoringOptions implements HasToJson {
9988 /**
9989 * The new file path to which the given file is being moved.
9990 */
9991 String newFile;
9992
9993 MoveFileOptions(this.newFile);
9994
9995 factory MoveFileOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj ect json) {
9996 if (json == null) {
9997 json = {};
9998 }
9999 if (json is Map) {
10000 String newFile;
10001 if (json.containsKey("newFile")) {
10002 newFile = jsonDecoder._decodeString(jsonPath + ".newFile", json["newFile "]);
10003 } else {
10004 throw jsonDecoder.missingKey(jsonPath, "newFile");
10005 }
10006 return new MoveFileOptions(newFile);
10007 } else {
10008 throw jsonDecoder.mismatch(jsonPath, "moveFile options");
10009 }
10010 }
10011
10012 factory MoveFileOptions.fromRefactoringParams(EditGetRefactoringParams refacto ringParams, Request request) {
10013 return new MoveFileOptions.fromJson(
10014 new RequestDecoder(request), "options", refactoringParams.options);
10015 }
10016
10017 Map<String, dynamic> toJson() {
10018 Map<String, dynamic> result = {};
10019 result["newFile"] = newFile;
10020 return result;
10021 }
10022
10023 @override
10024 String toString() => JSON.encode(toJson());
10025
10026 @override
10027 bool operator==(other) {
10028 if (other is MoveFileOptions) {
10029 return newFile == other.newFile;
10030 }
10031 return false;
10032 }
10033
10034 @override
10035 int get hashCode {
10036 int hash = 0;
10037 hash = _JenkinsSmiHash.combine(hash, newFile.hashCode);
10038 return _JenkinsSmiHash.finish(hash);
10039 }
10040 }
9962 10041
9963 /** 10042 /**
9964 * rename feedback 10043 * rename feedback
9965 * 10044 *
9966 * { 10045 * {
9967 * "offset": int 10046 * "offset": int
9968 * "length": int 10047 * "length": int
9969 * "elementKindName": String 10048 * "elementKindName": String
9970 * "oldName": String 10049 * "oldName": String
9971 * } 10050 * }
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
10117 return false; 10196 return false;
10118 } 10197 }
10119 10198
10120 @override 10199 @override
10121 int get hashCode { 10200 int get hashCode {
10122 int hash = 0; 10201 int hash = 0;
10123 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); 10202 hash = _JenkinsSmiHash.combine(hash, newName.hashCode);
10124 return _JenkinsSmiHash.finish(hash); 10203 return _JenkinsSmiHash.finish(hash);
10125 } 10204 }
10126 } 10205 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698