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 9320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9331 } | 9331 } |
9332 } | 9332 } |
9333 | 9333 |
9334 /** | 9334 /** |
9335 * RequestErrorCode | 9335 * RequestErrorCode |
9336 * | 9336 * |
9337 * enum { | 9337 * enum { |
9338 * CONTENT_MODIFIED | 9338 * CONTENT_MODIFIED |
9339 * FORMAT_INVALID_FILE | 9339 * FORMAT_INVALID_FILE |
9340 * GET_ERRORS_INVALID_FILE | 9340 * GET_ERRORS_INVALID_FILE |
| 9341 * INVALID_ANALYSIS_ROOT |
9341 * INVALID_EXECUTION_CONTEXT | 9342 * INVALID_EXECUTION_CONTEXT |
9342 * INVALID_OVERLAY_CHANGE | 9343 * INVALID_OVERLAY_CHANGE |
9343 * INVALID_PARAMETER | 9344 * INVALID_PARAMETER |
9344 * INVALID_REQUEST | 9345 * INVALID_REQUEST |
9345 * NO_INDEX_GENERATED | 9346 * NO_INDEX_GENERATED |
9346 * REFACTORING_REQUEST_CANCELLED | 9347 * REFACTORING_REQUEST_CANCELLED |
9347 * SERVER_ALREADY_STARTED | 9348 * SERVER_ALREADY_STARTED |
9348 * SERVER_ERROR | 9349 * SERVER_ERROR |
9349 * SORT_MEMBERS_INVALID_FILE | 9350 * SORT_MEMBERS_INVALID_FILE |
9350 * SORT_MEMBERS_PARSE_ERRORS | 9351 * SORT_MEMBERS_PARSE_ERRORS |
(...skipping 16 matching lines...) Expand all Loading... |
9367 */ | 9368 */ |
9368 static const FORMAT_INVALID_FILE = const RequestErrorCode._("FORMAT_INVALID_FI
LE"); | 9369 static const FORMAT_INVALID_FILE = const RequestErrorCode._("FORMAT_INVALID_FI
LE"); |
9369 | 9370 |
9370 /** | 9371 /** |
9371 * An "analysis.getErrors" request specified a FilePath which does not match | 9372 * An "analysis.getErrors" request specified a FilePath which does not match |
9372 * a file currently subject to analysis. | 9373 * a file currently subject to analysis. |
9373 */ | 9374 */ |
9374 static const GET_ERRORS_INVALID_FILE = const RequestErrorCode._("GET_ERRORS_IN
VALID_FILE"); | 9375 static const GET_ERRORS_INVALID_FILE = const RequestErrorCode._("GET_ERRORS_IN
VALID_FILE"); |
9375 | 9376 |
9376 /** | 9377 /** |
| 9378 * A path passed as an argument to a request (such as analysis.reanalyze) is |
| 9379 * required to be an analysis root, but isn't. |
| 9380 */ |
| 9381 static const INVALID_ANALYSIS_ROOT = const RequestErrorCode._("INVALID_ANALYSI
S_ROOT"); |
| 9382 |
| 9383 /** |
9377 * The context root used to create an execution context does not exist. | 9384 * The context root used to create an execution context does not exist. |
9378 */ | 9385 */ |
9379 static const INVALID_EXECUTION_CONTEXT = const RequestErrorCode._("INVALID_EXE
CUTION_CONTEXT"); | 9386 static const INVALID_EXECUTION_CONTEXT = const RequestErrorCode._("INVALID_EXE
CUTION_CONTEXT"); |
9380 | 9387 |
9381 /** | 9388 /** |
9382 * An "analysis.updateContent" request contained a ChangeContentOverlay | 9389 * An "analysis.updateContent" request contained a ChangeContentOverlay |
9383 * object which can't be applied, due to an edit having an offset or length | 9390 * object which can't be applied, due to an edit having an offset or length |
9384 * that is out of range. | 9391 * that is out of range. |
9385 */ | 9392 */ |
9386 static const INVALID_OVERLAY_CHANGE = const RequestErrorCode._("INVALID_OVERLA
Y_CHANGE"); | 9393 static const INVALID_OVERLAY_CHANGE = const RequestErrorCode._("INVALID_OVERLA
Y_CHANGE"); |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_ANALYSIS_ROOT, I
NVALID_EXECUTION_CONTEXT, INVALID_OVERLAY_CHANGE, INVALID_PARAMETER, INVALID_REQ
UEST, NO_INDEX_GENERATED, REFACTORING_REQUEST_CANCELLED, SERVER_ALREADY_STARTED,
SERVER_ERROR, SORT_MEMBERS_INVALID_FILE, SORT_MEMBERS_PARSE_ERRORS, UNANALYZED_
PRIORITY_FILES, UNKNOWN_REQUEST, 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": |
9475 return FORMAT_INVALID_FILE; | 9482 return FORMAT_INVALID_FILE; |
9476 case "GET_ERRORS_INVALID_FILE": | 9483 case "GET_ERRORS_INVALID_FILE": |
9477 return GET_ERRORS_INVALID_FILE; | 9484 return GET_ERRORS_INVALID_FILE; |
| 9485 case "INVALID_ANALYSIS_ROOT": |
| 9486 return INVALID_ANALYSIS_ROOT; |
9478 case "INVALID_EXECUTION_CONTEXT": | 9487 case "INVALID_EXECUTION_CONTEXT": |
9479 return INVALID_EXECUTION_CONTEXT; | 9488 return INVALID_EXECUTION_CONTEXT; |
9480 case "INVALID_OVERLAY_CHANGE": | 9489 case "INVALID_OVERLAY_CHANGE": |
9481 return INVALID_OVERLAY_CHANGE; | 9490 return INVALID_OVERLAY_CHANGE; |
9482 case "INVALID_PARAMETER": | 9491 case "INVALID_PARAMETER": |
9483 return INVALID_PARAMETER; | 9492 return INVALID_PARAMETER; |
9484 case "INVALID_REQUEST": | 9493 case "INVALID_REQUEST": |
9485 return INVALID_REQUEST; | 9494 return INVALID_REQUEST; |
9486 case "NO_INDEX_GENERATED": | 9495 case "NO_INDEX_GENERATED": |
9487 return NO_INDEX_GENERATED; | 9496 return NO_INDEX_GENERATED; |
(...skipping 1852 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 |