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 9332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9343 * INVALID_PARAMETER | 9343 * INVALID_PARAMETER |
9344 * INVALID_REQUEST | 9344 * INVALID_REQUEST |
9345 * NO_INDEX_GENERATED | 9345 * NO_INDEX_GENERATED |
9346 * REFACTORING_REQUEST_CANCELLED | 9346 * REFACTORING_REQUEST_CANCELLED |
9347 * SERVER_ALREADY_STARTED | 9347 * SERVER_ALREADY_STARTED |
9348 * SERVER_ERROR | 9348 * SERVER_ERROR |
9349 * SORT_MEMBERS_INVALID_FILE | 9349 * SORT_MEMBERS_INVALID_FILE |
9350 * SORT_MEMBERS_PARSE_ERRORS | 9350 * SORT_MEMBERS_PARSE_ERRORS |
9351 * UNANALYZED_PRIORITY_FILES | 9351 * UNANALYZED_PRIORITY_FILES |
9352 * UNKNOWN_REQUEST | 9352 * UNKNOWN_REQUEST |
| 9353 * UNKNOWN_SOURCE |
9353 * UNSUPPORTED_FEATURE | 9354 * UNSUPPORTED_FEATURE |
9354 * } | 9355 * } |
9355 */ | 9356 */ |
9356 class RequestErrorCode implements Enum { | 9357 class RequestErrorCode implements Enum { |
9357 /** | 9358 /** |
9358 * An "analysis.getErrors" or "analysis.getNavigation" request could not be | 9359 * An "analysis.getErrors" or "analysis.getNavigation" request could not be |
9359 * satisfied because the content of the file changed before the requested | 9360 * satisfied because the content of the file changed before the requested |
9360 * results could be computed. | 9361 * results could be computed. |
9361 */ | 9362 */ |
9362 static const CONTENT_MODIFIED = const RequestErrorCode._("CONTENT_MODIFIED"); | 9363 static const CONTENT_MODIFIED = const RequestErrorCode._("CONTENT_MODIFIED"); |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9443 */ | 9444 */ |
9444 static const UNANALYZED_PRIORITY_FILES = const RequestErrorCode._("UNANALYZED_
PRIORITY_FILES"); | 9445 static const UNANALYZED_PRIORITY_FILES = const RequestErrorCode._("UNANALYZED_
PRIORITY_FILES"); |
9445 | 9446 |
9446 /** | 9447 /** |
9447 * A request was received which the analysis server does not recognize, or | 9448 * A request was received which the analysis server does not recognize, or |
9448 * cannot handle in its current configuation. | 9449 * cannot handle in its current configuation. |
9449 */ | 9450 */ |
9450 static const UNKNOWN_REQUEST = const RequestErrorCode._("UNKNOWN_REQUEST"); | 9451 static const UNKNOWN_REQUEST = const RequestErrorCode._("UNKNOWN_REQUEST"); |
9451 | 9452 |
9452 /** | 9453 /** |
| 9454 * The analysis server was requested to perform an action on a source that |
| 9455 * does not exist. |
| 9456 */ |
| 9457 static const UNKNOWN_SOURCE = const RequestErrorCode._("UNKNOWN_SOURCE"); |
| 9458 |
| 9459 /** |
9453 * The analysis server was requested to perform an action which is not | 9460 * The analysis server was requested to perform an action which is not |
9454 * supported. | 9461 * supported. |
9455 * | 9462 * |
9456 * This is a legacy error; it will be removed before the API reaches version | 9463 * This is a legacy error; it will be removed before the API reaches version |
9457 * 1.0. | 9464 * 1.0. |
9458 */ | 9465 */ |
9459 static const UNSUPPORTED_FEATURE = const RequestErrorCode._("UNSUPPORTED_FEATU
RE"); | 9466 static const UNSUPPORTED_FEATURE = const RequestErrorCode._("UNSUPPORTED_FEATU
RE"); |
9460 | 9467 |
9461 /** | 9468 /** |
9462 * A list containing all of the enum values that are defined. | 9469 * A list containing all of the enum values that are defined. |
9463 */ | 9470 */ |
9464 static const List<RequestErrorCode> VALUES = const <RequestErrorCode>[CONTENT_
MODIFIED, FORMAT_INVALID_FILE, GET_ERRORS_INVALID_FILE, INVALID_EXECUTION_CONTEX
T, INVALID_OVERLAY_CHANGE, INVALID_PARAMETER, INVALID_REQUEST, NO_INDEX_GENERATE
D, REFACTORING_REQUEST_CANCELLED, SERVER_ALREADY_STARTED, SERVER_ERROR, SORT_MEM
BERS_INVALID_FILE, SORT_MEMBERS_PARSE_ERRORS, UNANALYZED_PRIORITY_FILES, UNKNOWN
_REQUEST, UNSUPPORTED_FEATURE]; | 9471 static const List<RequestErrorCode> VALUES = const <RequestErrorCode>[CONTENT_
MODIFIED, FORMAT_INVALID_FILE, GET_ERRORS_INVALID_FILE, INVALID_EXECUTION_CONTEX
T, INVALID_OVERLAY_CHANGE, INVALID_PARAMETER, INVALID_REQUEST, NO_INDEX_GENERATE
D, REFACTORING_REQUEST_CANCELLED, SERVER_ALREADY_STARTED, SERVER_ERROR, SORT_MEM
BERS_INVALID_FILE, SORT_MEMBERS_PARSE_ERRORS, UNANALYZED_PRIORITY_FILES, UNKNOWN
_REQUEST, UNKNOWN_SOURCE, UNSUPPORTED_FEATURE]; |
9465 | 9472 |
9466 final String name; | 9473 final String name; |
9467 | 9474 |
9468 const RequestErrorCode._(this.name); | 9475 const RequestErrorCode._(this.name); |
9469 | 9476 |
9470 factory RequestErrorCode(String name) { | 9477 factory RequestErrorCode(String name) { |
9471 switch (name) { | 9478 switch (name) { |
9472 case "CONTENT_MODIFIED": | 9479 case "CONTENT_MODIFIED": |
9473 return CONTENT_MODIFIED; | 9480 return CONTENT_MODIFIED; |
9474 case "FORMAT_INVALID_FILE": | 9481 case "FORMAT_INVALID_FILE": |
(...skipping 17 matching lines...) Expand all Loading... |
9492 case "SERVER_ERROR": | 9499 case "SERVER_ERROR": |
9493 return SERVER_ERROR; | 9500 return SERVER_ERROR; |
9494 case "SORT_MEMBERS_INVALID_FILE": | 9501 case "SORT_MEMBERS_INVALID_FILE": |
9495 return SORT_MEMBERS_INVALID_FILE; | 9502 return SORT_MEMBERS_INVALID_FILE; |
9496 case "SORT_MEMBERS_PARSE_ERRORS": | 9503 case "SORT_MEMBERS_PARSE_ERRORS": |
9497 return SORT_MEMBERS_PARSE_ERRORS; | 9504 return SORT_MEMBERS_PARSE_ERRORS; |
9498 case "UNANALYZED_PRIORITY_FILES": | 9505 case "UNANALYZED_PRIORITY_FILES": |
9499 return UNANALYZED_PRIORITY_FILES; | 9506 return UNANALYZED_PRIORITY_FILES; |
9500 case "UNKNOWN_REQUEST": | 9507 case "UNKNOWN_REQUEST": |
9501 return UNKNOWN_REQUEST; | 9508 return UNKNOWN_REQUEST; |
| 9509 case "UNKNOWN_SOURCE": |
| 9510 return UNKNOWN_SOURCE; |
9502 case "UNSUPPORTED_FEATURE": | 9511 case "UNSUPPORTED_FEATURE": |
9503 return UNSUPPORTED_FEATURE; | 9512 return UNSUPPORTED_FEATURE; |
9504 } | 9513 } |
9505 throw new Exception('Illegal enum value: $name'); | 9514 throw new Exception('Illegal enum value: $name'); |
9506 } | 9515 } |
9507 | 9516 |
9508 factory RequestErrorCode.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { | 9517 factory RequestErrorCode.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob
ject json) { |
9509 if (json is String) { | 9518 if (json is String) { |
9510 try { | 9519 try { |
9511 return new RequestErrorCode(json); | 9520 return new RequestErrorCode(json); |
(...skipping 1828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11340 return false; | 11349 return false; |
11341 } | 11350 } |
11342 | 11351 |
11343 @override | 11352 @override |
11344 int get hashCode { | 11353 int get hashCode { |
11345 int hash = 0; | 11354 int hash = 0; |
11346 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); | 11355 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); |
11347 return _JenkinsSmiHash.finish(hash); | 11356 return _JenkinsSmiHash.finish(hash); |
11348 } | 11357 } |
11349 } | 11358 } |
OLD | NEW |