| 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 analysis_server.plugin.protocol.protocol; | 9 part of analysis_server.plugin.protocol.protocol; |
| 10 | 10 |
| (...skipping 14075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14086 * enum { | 14086 * enum { |
| 14087 * CONTENT_MODIFIED | 14087 * CONTENT_MODIFIED |
| 14088 * FILE_NOT_ANALYZED | 14088 * FILE_NOT_ANALYZED |
| 14089 * FORMAT_INVALID_FILE | 14089 * FORMAT_INVALID_FILE |
| 14090 * FORMAT_WITH_ERRORS | 14090 * FORMAT_WITH_ERRORS |
| 14091 * GET_ERRORS_INVALID_FILE | 14091 * GET_ERRORS_INVALID_FILE |
| 14092 * GET_NAVIGATION_INVALID_FILE | 14092 * GET_NAVIGATION_INVALID_FILE |
| 14093 * GET_REACHABLE_SOURCES_INVALID_FILE | 14093 * GET_REACHABLE_SOURCES_INVALID_FILE |
| 14094 * INVALID_ANALYSIS_ROOT | 14094 * INVALID_ANALYSIS_ROOT |
| 14095 * INVALID_EXECUTION_CONTEXT | 14095 * INVALID_EXECUTION_CONTEXT |
| 14096 * INVALID_FILE_PATH_FORMAT |
| 14096 * INVALID_OVERLAY_CHANGE | 14097 * INVALID_OVERLAY_CHANGE |
| 14097 * INVALID_PARAMETER | 14098 * INVALID_PARAMETER |
| 14098 * INVALID_REQUEST | 14099 * INVALID_REQUEST |
| 14099 * NO_INDEX_GENERATED | 14100 * NO_INDEX_GENERATED |
| 14100 * ORGANIZE_DIRECTIVES_ERROR | 14101 * ORGANIZE_DIRECTIVES_ERROR |
| 14101 * REFACTORING_REQUEST_CANCELLED | 14102 * REFACTORING_REQUEST_CANCELLED |
| 14102 * SERVER_ALREADY_STARTED | 14103 * SERVER_ALREADY_STARTED |
| 14103 * SERVER_ERROR | 14104 * SERVER_ERROR |
| 14104 * SORT_MEMBERS_INVALID_FILE | 14105 * SORT_MEMBERS_INVALID_FILE |
| 14105 * SORT_MEMBERS_PARSE_ERRORS | 14106 * SORT_MEMBERS_PARSE_ERRORS |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14159 * required to be an analysis root, but isn't. | 14160 * required to be an analysis root, but isn't. |
| 14160 */ | 14161 */ |
| 14161 static const INVALID_ANALYSIS_ROOT = const RequestErrorCode._("INVALID_ANALYSI
S_ROOT"); | 14162 static const INVALID_ANALYSIS_ROOT = const RequestErrorCode._("INVALID_ANALYSI
S_ROOT"); |
| 14162 | 14163 |
| 14163 /** | 14164 /** |
| 14164 * The context root used to create an execution context does not exist. | 14165 * The context root used to create an execution context does not exist. |
| 14165 */ | 14166 */ |
| 14166 static const INVALID_EXECUTION_CONTEXT = const RequestErrorCode._("INVALID_EXE
CUTION_CONTEXT"); | 14167 static const INVALID_EXECUTION_CONTEXT = const RequestErrorCode._("INVALID_EXE
CUTION_CONTEXT"); |
| 14167 | 14168 |
| 14168 /** | 14169 /** |
| 14170 * The format of the given file path is invalid, e.g. is not absolute and |
| 14171 * normalized. |
| 14172 */ |
| 14173 static const INVALID_FILE_PATH_FORMAT = const RequestErrorCode._("INVALID_FILE
_PATH_FORMAT"); |
| 14174 |
| 14175 /** |
| 14169 * An "analysis.updateContent" request contained a ChangeContentOverlay | 14176 * An "analysis.updateContent" request contained a ChangeContentOverlay |
| 14170 * object which can't be applied, due to an edit having an offset or length | 14177 * object which can't be applied, due to an edit having an offset or length |
| 14171 * that is out of range. | 14178 * that is out of range. |
| 14172 */ | 14179 */ |
| 14173 static const INVALID_OVERLAY_CHANGE = const RequestErrorCode._("INVALID_OVERLA
Y_CHANGE"); | 14180 static const INVALID_OVERLAY_CHANGE = const RequestErrorCode._("INVALID_OVERLA
Y_CHANGE"); |
| 14174 | 14181 |
| 14175 /** | 14182 /** |
| 14176 * One of the method parameters was invalid. | 14183 * One of the method parameters was invalid. |
| 14177 */ | 14184 */ |
| 14178 static const INVALID_PARAMETER = const RequestErrorCode._("INVALID_PARAMETER")
; | 14185 static const INVALID_PARAMETER = const RequestErrorCode._("INVALID_PARAMETER")
; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14253 * supported. | 14260 * supported. |
| 14254 * | 14261 * |
| 14255 * This is a legacy error; it will be removed before the API reaches version | 14262 * This is a legacy error; it will be removed before the API reaches version |
| 14256 * 1.0. | 14263 * 1.0. |
| 14257 */ | 14264 */ |
| 14258 static const UNSUPPORTED_FEATURE = const RequestErrorCode._("UNSUPPORTED_FEATU
RE"); | 14265 static const UNSUPPORTED_FEATURE = const RequestErrorCode._("UNSUPPORTED_FEATU
RE"); |
| 14259 | 14266 |
| 14260 /** | 14267 /** |
| 14261 * A list containing all of the enum values that are defined. | 14268 * A list containing all of the enum values that are defined. |
| 14262 */ | 14269 */ |
| 14263 static const List<RequestErrorCode> VALUES = const <RequestErrorCode>[CONTENT_
MODIFIED, FILE_NOT_ANALYZED, FORMAT_INVALID_FILE, FORMAT_WITH_ERRORS, GET_ERRORS
_INVALID_FILE, GET_NAVIGATION_INVALID_FILE, GET_REACHABLE_SOURCES_INVALID_FILE,
INVALID_ANALYSIS_ROOT, INVALID_EXECUTION_CONTEXT, INVALID_OVERLAY_CHANGE, INVALI
D_PARAMETER, INVALID_REQUEST, NO_INDEX_GENERATED, ORGANIZE_DIRECTIVES_ERROR, REF
ACTORING_REQUEST_CANCELLED, SERVER_ALREADY_STARTED, SERVER_ERROR, SORT_MEMBERS_I
NVALID_FILE, SORT_MEMBERS_PARSE_ERRORS, UNANALYZED_PRIORITY_FILES, UNKNOWN_REQUE
ST, UNKNOWN_SOURCE, UNSUPPORTED_FEATURE]; | 14270 static const List<RequestErrorCode> VALUES = const <RequestErrorCode>[CONTENT_
MODIFIED, FILE_NOT_ANALYZED, FORMAT_INVALID_FILE, FORMAT_WITH_ERRORS, GET_ERRORS
_INVALID_FILE, GET_NAVIGATION_INVALID_FILE, GET_REACHABLE_SOURCES_INVALID_FILE,
INVALID_ANALYSIS_ROOT, INVALID_EXECUTION_CONTEXT, INVALID_FILE_PATH_FORMAT, INVA
LID_OVERLAY_CHANGE, INVALID_PARAMETER, INVALID_REQUEST, NO_INDEX_GENERATED, ORGA
NIZE_DIRECTIVES_ERROR, REFACTORING_REQUEST_CANCELLED, SERVER_ALREADY_STARTED, SE
RVER_ERROR, SORT_MEMBERS_INVALID_FILE, SORT_MEMBERS_PARSE_ERRORS, UNANALYZED_PRI
ORITY_FILES, UNKNOWN_REQUEST, UNKNOWN_SOURCE, UNSUPPORTED_FEATURE]; |
| 14264 | 14271 |
| 14265 final String name; | 14272 final String name; |
| 14266 | 14273 |
| 14267 const RequestErrorCode._(this.name); | 14274 const RequestErrorCode._(this.name); |
| 14268 | 14275 |
| 14269 factory RequestErrorCode(String name) { | 14276 factory RequestErrorCode(String name) { |
| 14270 switch (name) { | 14277 switch (name) { |
| 14271 case "CONTENT_MODIFIED": | 14278 case "CONTENT_MODIFIED": |
| 14272 return CONTENT_MODIFIED; | 14279 return CONTENT_MODIFIED; |
| 14273 case "FILE_NOT_ANALYZED": | 14280 case "FILE_NOT_ANALYZED": |
| 14274 return FILE_NOT_ANALYZED; | 14281 return FILE_NOT_ANALYZED; |
| 14275 case "FORMAT_INVALID_FILE": | 14282 case "FORMAT_INVALID_FILE": |
| 14276 return FORMAT_INVALID_FILE; | 14283 return FORMAT_INVALID_FILE; |
| 14277 case "FORMAT_WITH_ERRORS": | 14284 case "FORMAT_WITH_ERRORS": |
| 14278 return FORMAT_WITH_ERRORS; | 14285 return FORMAT_WITH_ERRORS; |
| 14279 case "GET_ERRORS_INVALID_FILE": | 14286 case "GET_ERRORS_INVALID_FILE": |
| 14280 return GET_ERRORS_INVALID_FILE; | 14287 return GET_ERRORS_INVALID_FILE; |
| 14281 case "GET_NAVIGATION_INVALID_FILE": | 14288 case "GET_NAVIGATION_INVALID_FILE": |
| 14282 return GET_NAVIGATION_INVALID_FILE; | 14289 return GET_NAVIGATION_INVALID_FILE; |
| 14283 case "GET_REACHABLE_SOURCES_INVALID_FILE": | 14290 case "GET_REACHABLE_SOURCES_INVALID_FILE": |
| 14284 return GET_REACHABLE_SOURCES_INVALID_FILE; | 14291 return GET_REACHABLE_SOURCES_INVALID_FILE; |
| 14285 case "INVALID_ANALYSIS_ROOT": | 14292 case "INVALID_ANALYSIS_ROOT": |
| 14286 return INVALID_ANALYSIS_ROOT; | 14293 return INVALID_ANALYSIS_ROOT; |
| 14287 case "INVALID_EXECUTION_CONTEXT": | 14294 case "INVALID_EXECUTION_CONTEXT": |
| 14288 return INVALID_EXECUTION_CONTEXT; | 14295 return INVALID_EXECUTION_CONTEXT; |
| 14296 case "INVALID_FILE_PATH_FORMAT": |
| 14297 return INVALID_FILE_PATH_FORMAT; |
| 14289 case "INVALID_OVERLAY_CHANGE": | 14298 case "INVALID_OVERLAY_CHANGE": |
| 14290 return INVALID_OVERLAY_CHANGE; | 14299 return INVALID_OVERLAY_CHANGE; |
| 14291 case "INVALID_PARAMETER": | 14300 case "INVALID_PARAMETER": |
| 14292 return INVALID_PARAMETER; | 14301 return INVALID_PARAMETER; |
| 14293 case "INVALID_REQUEST": | 14302 case "INVALID_REQUEST": |
| 14294 return INVALID_REQUEST; | 14303 return INVALID_REQUEST; |
| 14295 case "NO_INDEX_GENERATED": | 14304 case "NO_INDEX_GENERATED": |
| 14296 return NO_INDEX_GENERATED; | 14305 return NO_INDEX_GENERATED; |
| 14297 case "ORGANIZE_DIRECTIVES_ERROR": | 14306 case "ORGANIZE_DIRECTIVES_ERROR": |
| 14298 return ORGANIZE_DIRECTIVES_ERROR; | 14307 return ORGANIZE_DIRECTIVES_ERROR; |
| (...skipping 2608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16907 return false; | 16916 return false; |
| 16908 } | 16917 } |
| 16909 | 16918 |
| 16910 @override | 16919 @override |
| 16911 int get hashCode { | 16920 int get hashCode { |
| 16912 int hash = 0; | 16921 int hash = 0; |
| 16913 hash = JenkinsSmiHash.combine(hash, newName.hashCode); | 16922 hash = JenkinsSmiHash.combine(hash, newName.hashCode); |
| 16914 return JenkinsSmiHash.finish(hash); | 16923 return JenkinsSmiHash.finish(hash); |
| 16915 } | 16924 } |
| 16916 } | 16925 } |
| OLD | NEW |