| OLD | NEW |
| 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 9189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9200 /** | 9200 /** |
| 9201 * RequestErrorCode | 9201 * RequestErrorCode |
| 9202 * | 9202 * |
| 9203 * enum { | 9203 * enum { |
| 9204 * CONTENT_MODIFIED | 9204 * CONTENT_MODIFIED |
| 9205 * FORMAT_INVALID_FILE | 9205 * FORMAT_INVALID_FILE |
| 9206 * GET_ERRORS_INVALID_FILE | 9206 * GET_ERRORS_INVALID_FILE |
| 9207 * INVALID_OVERLAY_CHANGE | 9207 * INVALID_OVERLAY_CHANGE |
| 9208 * INVALID_PARAMETER | 9208 * INVALID_PARAMETER |
| 9209 * INVALID_REQUEST | 9209 * INVALID_REQUEST |
| 9210 * REFACTORING_REQUEST_CANCELLED |
| 9210 * SERVER_ALREADY_STARTED | 9211 * SERVER_ALREADY_STARTED |
| 9211 * SERVER_ERROR | 9212 * SERVER_ERROR |
| 9212 * SORT_MEMBERS_INVALID_FILE | 9213 * SORT_MEMBERS_INVALID_FILE |
| 9213 * SORT_MEMBERS_PARSE_ERRORS | 9214 * SORT_MEMBERS_PARSE_ERRORS |
| 9214 * UNANALYZED_PRIORITY_FILES | 9215 * UNANALYZED_PRIORITY_FILES |
| 9215 * UNKNOWN_REQUEST | 9216 * UNKNOWN_REQUEST |
| 9216 * UNSUPPORTED_FEATURE | 9217 * UNSUPPORTED_FEATURE |
| 9217 * } | 9218 * } |
| 9218 */ | 9219 */ |
| 9219 class RequestErrorCode implements Enum { | 9220 class RequestErrorCode implements Enum { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 9247 * One of the method parameters was invalid. | 9248 * One of the method parameters was invalid. |
| 9248 */ | 9249 */ |
| 9249 static const INVALID_PARAMETER = const RequestErrorCode._("INVALID_PARAMETER")
; | 9250 static const INVALID_PARAMETER = const RequestErrorCode._("INVALID_PARAMETER")
; |
| 9250 | 9251 |
| 9251 /** | 9252 /** |
| 9252 * A malformed request was received. | 9253 * A malformed request was received. |
| 9253 */ | 9254 */ |
| 9254 static const INVALID_REQUEST = const RequestErrorCode._("INVALID_REQUEST"); | 9255 static const INVALID_REQUEST = const RequestErrorCode._("INVALID_REQUEST"); |
| 9255 | 9256 |
| 9256 /** | 9257 /** |
| 9258 * Another refactoring request was received during processing of this one. |
| 9259 */ |
| 9260 static const REFACTORING_REQUEST_CANCELLED = const RequestErrorCode._("REFACTO
RING_REQUEST_CANCELLED"); |
| 9261 |
| 9262 /** |
| 9257 * The analysis server has already been started (and hence won't accept new | 9263 * The analysis server has already been started (and hence won't accept new |
| 9258 * connections). | 9264 * connections). |
| 9259 * | 9265 * |
| 9260 * This error is included for future expansion; at present the analysis | 9266 * This error is included for future expansion; at present the analysis |
| 9261 * server can only speak to one client at a time so this error will never | 9267 * server can only speak to one client at a time so this error will never |
| 9262 * occur. | 9268 * occur. |
| 9263 */ | 9269 */ |
| 9264 static const SERVER_ALREADY_STARTED = const RequestErrorCode._("SERVER_ALREADY
_STARTED"); | 9270 static const SERVER_ALREADY_STARTED = const RequestErrorCode._("SERVER_ALREADY
_STARTED"); |
| 9265 | 9271 |
| 9266 /** | 9272 /** |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9301 * supported. | 9307 * supported. |
| 9302 * | 9308 * |
| 9303 * This is a legacy error; it will be removed before the API reaches version | 9309 * This is a legacy error; it will be removed before the API reaches version |
| 9304 * 1.0. | 9310 * 1.0. |
| 9305 */ | 9311 */ |
| 9306 static const UNSUPPORTED_FEATURE = const RequestErrorCode._("UNSUPPORTED_FEATU
RE"); | 9312 static const UNSUPPORTED_FEATURE = const RequestErrorCode._("UNSUPPORTED_FEATU
RE"); |
| 9307 | 9313 |
| 9308 /** | 9314 /** |
| 9309 * A list containing all of the enum values that are defined. | 9315 * A list containing all of the enum values that are defined. |
| 9310 */ | 9316 */ |
| 9311 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]; | 9317 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]; |
| 9312 | 9318 |
| 9313 final String name; | 9319 final String name; |
| 9314 | 9320 |
| 9315 const RequestErrorCode._(this.name); | 9321 const RequestErrorCode._(this.name); |
| 9316 | 9322 |
| 9317 factory RequestErrorCode(String name) { | 9323 factory RequestErrorCode(String name) { |
| 9318 switch (name) { | 9324 switch (name) { |
| 9319 case "CONTENT_MODIFIED": | 9325 case "CONTENT_MODIFIED": |
| 9320 return CONTENT_MODIFIED; | 9326 return CONTENT_MODIFIED; |
| 9321 case "FORMAT_INVALID_FILE": | 9327 case "FORMAT_INVALID_FILE": |
| 9322 return FORMAT_INVALID_FILE; | 9328 return FORMAT_INVALID_FILE; |
| 9323 case "GET_ERRORS_INVALID_FILE": | 9329 case "GET_ERRORS_INVALID_FILE": |
| 9324 return GET_ERRORS_INVALID_FILE; | 9330 return GET_ERRORS_INVALID_FILE; |
| 9325 case "INVALID_OVERLAY_CHANGE": | 9331 case "INVALID_OVERLAY_CHANGE": |
| 9326 return INVALID_OVERLAY_CHANGE; | 9332 return INVALID_OVERLAY_CHANGE; |
| 9327 case "INVALID_PARAMETER": | 9333 case "INVALID_PARAMETER": |
| 9328 return INVALID_PARAMETER; | 9334 return INVALID_PARAMETER; |
| 9329 case "INVALID_REQUEST": | 9335 case "INVALID_REQUEST": |
| 9330 return INVALID_REQUEST; | 9336 return INVALID_REQUEST; |
| 9337 case "REFACTORING_REQUEST_CANCELLED": |
| 9338 return REFACTORING_REQUEST_CANCELLED; |
| 9331 case "SERVER_ALREADY_STARTED": | 9339 case "SERVER_ALREADY_STARTED": |
| 9332 return SERVER_ALREADY_STARTED; | 9340 return SERVER_ALREADY_STARTED; |
| 9333 case "SERVER_ERROR": | 9341 case "SERVER_ERROR": |
| 9334 return SERVER_ERROR; | 9342 return SERVER_ERROR; |
| 9335 case "SORT_MEMBERS_INVALID_FILE": | 9343 case "SORT_MEMBERS_INVALID_FILE": |
| 9336 return SORT_MEMBERS_INVALID_FILE; | 9344 return SORT_MEMBERS_INVALID_FILE; |
| 9337 case "SORT_MEMBERS_PARSE_ERRORS": | 9345 case "SORT_MEMBERS_PARSE_ERRORS": |
| 9338 return SORT_MEMBERS_PARSE_ERRORS; | 9346 return SORT_MEMBERS_PARSE_ERRORS; |
| 9339 case "UNANALYZED_PRIORITY_FILES": | 9347 case "UNANALYZED_PRIORITY_FILES": |
| 9340 return UNANALYZED_PRIORITY_FILES; | 9348 return UNANALYZED_PRIORITY_FILES; |
| (...skipping 1839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11180 return false; | 11188 return false; |
| 11181 } | 11189 } |
| 11182 | 11190 |
| 11183 @override | 11191 @override |
| 11184 int get hashCode { | 11192 int get hashCode { |
| 11185 int hash = 0; | 11193 int hash = 0; |
| 11186 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); | 11194 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); |
| 11187 return _JenkinsSmiHash.finish(hash); | 11195 return _JenkinsSmiHash.finish(hash); |
| 11188 } | 11196 } |
| 11189 } | 11197 } |
| OLD | NEW |