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

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

Issue 884453002: Issue 22157. Cancel a pending refactoring request on receiving a new one. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 9173 matching lines...) Expand 10 before | Expand all | Expand 10 after
9184 /** 9184 /**
9185 * RequestErrorCode 9185 * RequestErrorCode
9186 * 9186 *
9187 * enum { 9187 * enum {
9188 * CONTENT_MODIFIED 9188 * CONTENT_MODIFIED
9189 * FORMAT_INVALID_FILE 9189 * FORMAT_INVALID_FILE
9190 * GET_ERRORS_INVALID_FILE 9190 * GET_ERRORS_INVALID_FILE
9191 * INVALID_OVERLAY_CHANGE 9191 * INVALID_OVERLAY_CHANGE
9192 * INVALID_PARAMETER 9192 * INVALID_PARAMETER
9193 * INVALID_REQUEST 9193 * INVALID_REQUEST
9194 * REFACTORING_REQUEST_CANCELLED
9194 * SERVER_ALREADY_STARTED 9195 * SERVER_ALREADY_STARTED
9195 * SERVER_ERROR 9196 * SERVER_ERROR
9196 * SORT_MEMBERS_INVALID_FILE 9197 * SORT_MEMBERS_INVALID_FILE
9197 * SORT_MEMBERS_PARSE_ERRORS 9198 * SORT_MEMBERS_PARSE_ERRORS
9198 * UNANALYZED_PRIORITY_FILES 9199 * UNANALYZED_PRIORITY_FILES
9199 * UNKNOWN_REQUEST 9200 * UNKNOWN_REQUEST
9200 * UNSUPPORTED_FEATURE 9201 * UNSUPPORTED_FEATURE
9201 * } 9202 * }
9202 */ 9203 */
9203 class RequestErrorCode implements Enum { 9204 class RequestErrorCode implements Enum {
(...skipping 27 matching lines...) Expand all
9231 * One of the method parameters was invalid. 9232 * One of the method parameters was invalid.
9232 */ 9233 */
9233 static const INVALID_PARAMETER = const RequestErrorCode._("INVALID_PARAMETER") ; 9234 static const INVALID_PARAMETER = const RequestErrorCode._("INVALID_PARAMETER") ;
9234 9235
9235 /** 9236 /**
9236 * A malformed request was received. 9237 * A malformed request was received.
9237 */ 9238 */
9238 static const INVALID_REQUEST = const RequestErrorCode._("INVALID_REQUEST"); 9239 static const INVALID_REQUEST = const RequestErrorCode._("INVALID_REQUEST");
9239 9240
9240 /** 9241 /**
9242 * Another refactoring request was received during processing of this one.
9243 */
9244 static const REFACTORING_REQUEST_CANCELLED = const RequestErrorCode._("REFACTO RING_REQUEST_CANCELLED");
9245
9246 /**
9241 * The analysis server has already been started (and hence won't accept new 9247 * The analysis server has already been started (and hence won't accept new
9242 * connections). 9248 * connections).
9243 * 9249 *
9244 * This error is included for future expansion; at present the analysis 9250 * This error is included for future expansion; at present the analysis
9245 * server can only speak to one client at a time so this error will never 9251 * server can only speak to one client at a time so this error will never
9246 * occur. 9252 * occur.
9247 */ 9253 */
9248 static const SERVER_ALREADY_STARTED = const RequestErrorCode._("SERVER_ALREADY _STARTED"); 9254 static const SERVER_ALREADY_STARTED = const RequestErrorCode._("SERVER_ALREADY _STARTED");
9249 9255
9250 /** 9256 /**
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
9285 * supported. 9291 * supported.
9286 * 9292 *
9287 * This is a legacy error; it will be removed before the API reaches version 9293 * This is a legacy error; it will be removed before the API reaches version
9288 * 1.0. 9294 * 1.0.
9289 */ 9295 */
9290 static const UNSUPPORTED_FEATURE = const RequestErrorCode._("UNSUPPORTED_FEATU RE"); 9296 static const UNSUPPORTED_FEATURE = const RequestErrorCode._("UNSUPPORTED_FEATU RE");
9291 9297
9292 /** 9298 /**
9293 * A list containing all of the enum values that are defined. 9299 * A list containing all of the enum values that are defined.
9294 */ 9300 */
9295 static const List<RequestErrorCode> VALUES = const <RequestErrorCode>[CONTENT_ MODIFIED, FORMAT_INVALID_FILE, GET_ERRORS_INVALID_FILE, INVALID_OVERLAY_CHANGE, INVALID_PARAMETER, INVALID_REQUEST, SERVER_ALREADY_STARTED, SERVER_ERROR, SORT_M EMBERS_INVALID_FILE, SORT_MEMBERS_PARSE_ERRORS, UNANALYZED_PRIORITY_FILES, UNKNO WN_REQUEST, UNSUPPORTED_FEATURE]; 9301 static const List<RequestErrorCode> VALUES = const <RequestErrorCode>[CONTENT_ MODIFIED, FORMAT_INVALID_FILE, GET_ERRORS_INVALID_FILE, INVALID_OVERLAY_CHANGE, INVALID_PARAMETER, INVALID_REQUEST, REFACTORING_REQUEST_CANCELLED, SERVER_ALREAD Y_STARTED, SERVER_ERROR, SORT_MEMBERS_INVALID_FILE, SORT_MEMBERS_PARSE_ERRORS, U NANALYZED_PRIORITY_FILES, UNKNOWN_REQUEST, UNSUPPORTED_FEATURE];
9296 9302
9297 final String name; 9303 final String name;
9298 9304
9299 const RequestErrorCode._(this.name); 9305 const RequestErrorCode._(this.name);
9300 9306
9301 factory RequestErrorCode(String name) { 9307 factory RequestErrorCode(String name) {
9302 switch (name) { 9308 switch (name) {
9303 case "CONTENT_MODIFIED": 9309 case "CONTENT_MODIFIED":
9304 return CONTENT_MODIFIED; 9310 return CONTENT_MODIFIED;
9305 case "FORMAT_INVALID_FILE": 9311 case "FORMAT_INVALID_FILE":
9306 return FORMAT_INVALID_FILE; 9312 return FORMAT_INVALID_FILE;
9307 case "GET_ERRORS_INVALID_FILE": 9313 case "GET_ERRORS_INVALID_FILE":
9308 return GET_ERRORS_INVALID_FILE; 9314 return GET_ERRORS_INVALID_FILE;
9309 case "INVALID_OVERLAY_CHANGE": 9315 case "INVALID_OVERLAY_CHANGE":
9310 return INVALID_OVERLAY_CHANGE; 9316 return INVALID_OVERLAY_CHANGE;
9311 case "INVALID_PARAMETER": 9317 case "INVALID_PARAMETER":
9312 return INVALID_PARAMETER; 9318 return INVALID_PARAMETER;
9313 case "INVALID_REQUEST": 9319 case "INVALID_REQUEST":
9314 return INVALID_REQUEST; 9320 return INVALID_REQUEST;
9321 case "REFACTORING_REQUEST_CANCELLED":
9322 return REFACTORING_REQUEST_CANCELLED;
9315 case "SERVER_ALREADY_STARTED": 9323 case "SERVER_ALREADY_STARTED":
9316 return SERVER_ALREADY_STARTED; 9324 return SERVER_ALREADY_STARTED;
9317 case "SERVER_ERROR": 9325 case "SERVER_ERROR":
9318 return SERVER_ERROR; 9326 return SERVER_ERROR;
9319 case "SORT_MEMBERS_INVALID_FILE": 9327 case "SORT_MEMBERS_INVALID_FILE":
9320 return SORT_MEMBERS_INVALID_FILE; 9328 return SORT_MEMBERS_INVALID_FILE;
9321 case "SORT_MEMBERS_PARSE_ERRORS": 9329 case "SORT_MEMBERS_PARSE_ERRORS":
9322 return SORT_MEMBERS_PARSE_ERRORS; 9330 return SORT_MEMBERS_PARSE_ERRORS;
9323 case "UNANALYZED_PRIORITY_FILES": 9331 case "UNANALYZED_PRIORITY_FILES":
9324 return UNANALYZED_PRIORITY_FILES; 9332 return UNANALYZED_PRIORITY_FILES;
(...skipping 1839 matching lines...) Expand 10 before | Expand all | Expand 10 after
11164 return false; 11172 return false;
11165 } 11173 }
11166 11174
11167 @override 11175 @override
11168 int get hashCode { 11176 int get hashCode {
11169 int hash = 0; 11177 int hash = 0;
11170 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); 11178 hash = _JenkinsSmiHash.combine(hash, newName.hashCode);
11171 return _JenkinsSmiHash.finish(hash); 11179 return _JenkinsSmiHash.finish(hash);
11172 } 11180 }
11173 } 11181 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698