| 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 12076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12087 return _JenkinsSmiHash.finish(hash); | 12087 return _JenkinsSmiHash.finish(hash); |
| 12088 } | 12088 } |
| 12089 } | 12089 } |
| 12090 | 12090 |
| 12091 /** | 12091 /** |
| 12092 * RequestErrorCode | 12092 * RequestErrorCode |
| 12093 * | 12093 * |
| 12094 * enum { | 12094 * enum { |
| 12095 * CONTENT_MODIFIED | 12095 * CONTENT_MODIFIED |
| 12096 * FORMAT_INVALID_FILE | 12096 * FORMAT_INVALID_FILE |
| 12097 * FORMAT_WITH_ERRORS |
| 12097 * GET_ERRORS_INVALID_FILE | 12098 * GET_ERRORS_INVALID_FILE |
| 12098 * INVALID_ANALYSIS_ROOT | 12099 * INVALID_ANALYSIS_ROOT |
| 12099 * INVALID_EXECUTION_CONTEXT | 12100 * INVALID_EXECUTION_CONTEXT |
| 12100 * INVALID_OVERLAY_CHANGE | 12101 * INVALID_OVERLAY_CHANGE |
| 12101 * INVALID_PARAMETER | 12102 * INVALID_PARAMETER |
| 12102 * INVALID_REQUEST | 12103 * INVALID_REQUEST |
| 12103 * NO_INDEX_GENERATED | 12104 * NO_INDEX_GENERATED |
| 12104 * REFACTORING_REQUEST_CANCELLED | 12105 * REFACTORING_REQUEST_CANCELLED |
| 12105 * SERVER_ALREADY_STARTED | 12106 * SERVER_ALREADY_STARTED |
| 12106 * SERVER_ERROR | 12107 * SERVER_ERROR |
| (...skipping 13 matching lines...) Expand all Loading... |
| 12120 */ | 12121 */ |
| 12121 static const CONTENT_MODIFIED = const RequestErrorCode._("CONTENT_MODIFIED"); | 12122 static const CONTENT_MODIFIED = const RequestErrorCode._("CONTENT_MODIFIED"); |
| 12122 | 12123 |
| 12123 /** | 12124 /** |
| 12124 * An "edit.format" request specified a FilePath which does not match a Dart | 12125 * An "edit.format" request specified a FilePath which does not match a Dart |
| 12125 * file in an analysis root. | 12126 * file in an analysis root. |
| 12126 */ | 12127 */ |
| 12127 static const FORMAT_INVALID_FILE = const RequestErrorCode._("FORMAT_INVALID_FI
LE"); | 12128 static const FORMAT_INVALID_FILE = const RequestErrorCode._("FORMAT_INVALID_FI
LE"); |
| 12128 | 12129 |
| 12129 /** | 12130 /** |
| 12131 * An "edit.format" request specified a file that contains syntax errors. |
| 12132 */ |
| 12133 static const FORMAT_WITH_ERRORS = const RequestErrorCode._("FORMAT_WITH_ERRORS
"); |
| 12134 |
| 12135 /** |
| 12130 * An "analysis.getErrors" request specified a FilePath which does not match | 12136 * An "analysis.getErrors" request specified a FilePath which does not match |
| 12131 * a file currently subject to analysis. | 12137 * a file currently subject to analysis. |
| 12132 */ | 12138 */ |
| 12133 static const GET_ERRORS_INVALID_FILE = const RequestErrorCode._("GET_ERRORS_IN
VALID_FILE"); | 12139 static const GET_ERRORS_INVALID_FILE = const RequestErrorCode._("GET_ERRORS_IN
VALID_FILE"); |
| 12134 | 12140 |
| 12135 /** | 12141 /** |
| 12136 * A path passed as an argument to a request (such as analysis.reanalyze) is | 12142 * A path passed as an argument to a request (such as analysis.reanalyze) is |
| 12137 * required to be an analysis root, but isn't. | 12143 * required to be an analysis root, but isn't. |
| 12138 */ | 12144 */ |
| 12139 static const INVALID_ANALYSIS_ROOT = const RequestErrorCode._("INVALID_ANALYSI
S_ROOT"); | 12145 static const INVALID_ANALYSIS_ROOT = const RequestErrorCode._("INVALID_ANALYSI
S_ROOT"); |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12225 * supported. | 12231 * supported. |
| 12226 * | 12232 * |
| 12227 * This is a legacy error; it will be removed before the API reaches version | 12233 * This is a legacy error; it will be removed before the API reaches version |
| 12228 * 1.0. | 12234 * 1.0. |
| 12229 */ | 12235 */ |
| 12230 static const UNSUPPORTED_FEATURE = const RequestErrorCode._("UNSUPPORTED_FEATU
RE"); | 12236 static const UNSUPPORTED_FEATURE = const RequestErrorCode._("UNSUPPORTED_FEATU
RE"); |
| 12231 | 12237 |
| 12232 /** | 12238 /** |
| 12233 * A list containing all of the enum values that are defined. | 12239 * A list containing all of the enum values that are defined. |
| 12234 */ | 12240 */ |
| 12235 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, UNKNOWN_SOURCE, UNSUPPORTED_FEATURE]; | 12241 static const List<RequestErrorCode> VALUES = const <RequestErrorCode>[CONTENT_
MODIFIED, FORMAT_INVALID_FILE, FORMAT_WITH_ERRORS, GET_ERRORS_INVALID_FILE, INVA
LID_ANALYSIS_ROOT, INVALID_EXECUTION_CONTEXT, INVALID_OVERLAY_CHANGE, INVALID_PA
RAMETER, INVALID_REQUEST, NO_INDEX_GENERATED, REFACTORING_REQUEST_CANCELLED, SER
VER_ALREADY_STARTED, SERVER_ERROR, SORT_MEMBERS_INVALID_FILE, SORT_MEMBERS_PARSE
_ERRORS, UNANALYZED_PRIORITY_FILES, UNKNOWN_REQUEST, UNKNOWN_SOURCE, UNSUPPORTED
_FEATURE]; |
| 12236 | 12242 |
| 12237 final String name; | 12243 final String name; |
| 12238 | 12244 |
| 12239 const RequestErrorCode._(this.name); | 12245 const RequestErrorCode._(this.name); |
| 12240 | 12246 |
| 12241 factory RequestErrorCode(String name) { | 12247 factory RequestErrorCode(String name) { |
| 12242 switch (name) { | 12248 switch (name) { |
| 12243 case "CONTENT_MODIFIED": | 12249 case "CONTENT_MODIFIED": |
| 12244 return CONTENT_MODIFIED; | 12250 return CONTENT_MODIFIED; |
| 12245 case "FORMAT_INVALID_FILE": | 12251 case "FORMAT_INVALID_FILE": |
| 12246 return FORMAT_INVALID_FILE; | 12252 return FORMAT_INVALID_FILE; |
| 12253 case "FORMAT_WITH_ERRORS": |
| 12254 return FORMAT_WITH_ERRORS; |
| 12247 case "GET_ERRORS_INVALID_FILE": | 12255 case "GET_ERRORS_INVALID_FILE": |
| 12248 return GET_ERRORS_INVALID_FILE; | 12256 return GET_ERRORS_INVALID_FILE; |
| 12249 case "INVALID_ANALYSIS_ROOT": | 12257 case "INVALID_ANALYSIS_ROOT": |
| 12250 return INVALID_ANALYSIS_ROOT; | 12258 return INVALID_ANALYSIS_ROOT; |
| 12251 case "INVALID_EXECUTION_CONTEXT": | 12259 case "INVALID_EXECUTION_CONTEXT": |
| 12252 return INVALID_EXECUTION_CONTEXT; | 12260 return INVALID_EXECUTION_CONTEXT; |
| 12253 case "INVALID_OVERLAY_CHANGE": | 12261 case "INVALID_OVERLAY_CHANGE": |
| 12254 return INVALID_OVERLAY_CHANGE; | 12262 return INVALID_OVERLAY_CHANGE; |
| 12255 case "INVALID_PARAMETER": | 12263 case "INVALID_PARAMETER": |
| 12256 return INVALID_PARAMETER; | 12264 return INVALID_PARAMETER; |
| (...skipping 2512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14769 return false; | 14777 return false; |
| 14770 } | 14778 } |
| 14771 | 14779 |
| 14772 @override | 14780 @override |
| 14773 int get hashCode { | 14781 int get hashCode { |
| 14774 int hash = 0; | 14782 int hash = 0; |
| 14775 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); | 14783 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); |
| 14776 return _JenkinsSmiHash.finish(hash); | 14784 return _JenkinsSmiHash.finish(hash); |
| 14777 } | 14785 } |
| 14778 } | 14786 } |
| OLD | NEW |