| 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/spec/generate_files". | 7 // "pkg/analysis_server/spec/generate_files". |
| 8 | 8 |
| 9 part of protocol; | 9 part of protocol; |
| 10 /** | 10 /** |
| (...skipping 8155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8166 | 8166 |
| 8167 /** | 8167 /** |
| 8168 * RequestErrorCode | 8168 * RequestErrorCode |
| 8169 * | 8169 * |
| 8170 * enum { | 8170 * enum { |
| 8171 * GET_ERRORS_INVALID_FILE | 8171 * GET_ERRORS_INVALID_FILE |
| 8172 * INVALID_OVERLAY_CHANGE | 8172 * INVALID_OVERLAY_CHANGE |
| 8173 * INVALID_PARAMETER | 8173 * INVALID_PARAMETER |
| 8174 * INVALID_REQUEST | 8174 * INVALID_REQUEST |
| 8175 * SERVER_ALREADY_STARTED | 8175 * SERVER_ALREADY_STARTED |
| 8176 * SERVER_ERROR |
| 8176 * UNANALYZED_PRIORITY_FILES | 8177 * UNANALYZED_PRIORITY_FILES |
| 8177 * UNKNOWN_REQUEST | 8178 * UNKNOWN_REQUEST |
| 8178 * UNSUPPORTED_FEATURE | 8179 * UNSUPPORTED_FEATURE |
| 8179 * } | 8180 * } |
| 8180 */ | 8181 */ |
| 8181 class RequestErrorCode { | 8182 class RequestErrorCode { |
| 8182 /** | 8183 /** |
| 8183 * An "analysis.getErrors" request specified a FilePath which does not match | 8184 * An "analysis.getErrors" request specified a FilePath which does not match |
| 8184 * a file currently subject to analysis. | 8185 * a file currently subject to analysis. |
| 8185 */ | 8186 */ |
| (...skipping 20 matching lines...) Expand all Loading... |
| 8206 * The analysis server has already been started (and hence won't accept new | 8207 * The analysis server has already been started (and hence won't accept new |
| 8207 * connections). | 8208 * connections). |
| 8208 * | 8209 * |
| 8209 * This error is included for future expansion; at present the analysis | 8210 * This error is included for future expansion; at present the analysis |
| 8210 * server can only speak to one client at a time so this error will never | 8211 * server can only speak to one client at a time so this error will never |
| 8211 * occur. | 8212 * occur. |
| 8212 */ | 8213 */ |
| 8213 static const SERVER_ALREADY_STARTED = const RequestErrorCode._("SERVER_ALREADY
_STARTED"); | 8214 static const SERVER_ALREADY_STARTED = const RequestErrorCode._("SERVER_ALREADY
_STARTED"); |
| 8214 | 8215 |
| 8215 /** | 8216 /** |
| 8217 * An internal error occurred in the analysis server. Also see the |
| 8218 * server.error notification. |
| 8219 */ |
| 8220 static const SERVER_ERROR = const RequestErrorCode._("SERVER_ERROR"); |
| 8221 |
| 8222 /** |
| 8216 * An "analysis.setPriorityFiles" request includes one or more files that are | 8223 * An "analysis.setPriorityFiles" request includes one or more files that are |
| 8217 * not being analyzed. | 8224 * not being analyzed. |
| 8218 * | 8225 * |
| 8219 * This is a legacy error; it will be removed before the API reaches version | 8226 * This is a legacy error; it will be removed before the API reaches version |
| 8220 * 1.0. | 8227 * 1.0. |
| 8221 */ | 8228 */ |
| 8222 static const UNANALYZED_PRIORITY_FILES = const RequestErrorCode._("UNANALYZED_
PRIORITY_FILES"); | 8229 static const UNANALYZED_PRIORITY_FILES = const RequestErrorCode._("UNANALYZED_
PRIORITY_FILES"); |
| 8223 | 8230 |
| 8224 /** | 8231 /** |
| 8225 * A request was received which the analysis server does not recognize, or | 8232 * A request was received which the analysis server does not recognize, or |
| (...skipping 19 matching lines...) Expand all Loading... |
| 8245 case "GET_ERRORS_INVALID_FILE": | 8252 case "GET_ERRORS_INVALID_FILE": |
| 8246 return GET_ERRORS_INVALID_FILE; | 8253 return GET_ERRORS_INVALID_FILE; |
| 8247 case "INVALID_OVERLAY_CHANGE": | 8254 case "INVALID_OVERLAY_CHANGE": |
| 8248 return INVALID_OVERLAY_CHANGE; | 8255 return INVALID_OVERLAY_CHANGE; |
| 8249 case "INVALID_PARAMETER": | 8256 case "INVALID_PARAMETER": |
| 8250 return INVALID_PARAMETER; | 8257 return INVALID_PARAMETER; |
| 8251 case "INVALID_REQUEST": | 8258 case "INVALID_REQUEST": |
| 8252 return INVALID_REQUEST; | 8259 return INVALID_REQUEST; |
| 8253 case "SERVER_ALREADY_STARTED": | 8260 case "SERVER_ALREADY_STARTED": |
| 8254 return SERVER_ALREADY_STARTED; | 8261 return SERVER_ALREADY_STARTED; |
| 8262 case "SERVER_ERROR": |
| 8263 return SERVER_ERROR; |
| 8255 case "UNANALYZED_PRIORITY_FILES": | 8264 case "UNANALYZED_PRIORITY_FILES": |
| 8256 return UNANALYZED_PRIORITY_FILES; | 8265 return UNANALYZED_PRIORITY_FILES; |
| 8257 case "UNKNOWN_REQUEST": | 8266 case "UNKNOWN_REQUEST": |
| 8258 return UNKNOWN_REQUEST; | 8267 return UNKNOWN_REQUEST; |
| 8259 case "UNSUPPORTED_FEATURE": | 8268 case "UNSUPPORTED_FEATURE": |
| 8260 return UNSUPPORTED_FEATURE; | 8269 return UNSUPPORTED_FEATURE; |
| 8261 } | 8270 } |
| 8262 throw new Exception('Illegal enum value: $name'); | 8271 throw new Exception('Illegal enum value: $name'); |
| 8263 } | 8272 } |
| 8264 | 8273 |
| (...skipping 1741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10006 return false; | 10015 return false; |
| 10007 } | 10016 } |
| 10008 | 10017 |
| 10009 @override | 10018 @override |
| 10010 int get hashCode { | 10019 int get hashCode { |
| 10011 int hash = 0; | 10020 int hash = 0; |
| 10012 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); | 10021 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); |
| 10013 return _JenkinsSmiHash.finish(hash); | 10022 return _JenkinsSmiHash.finish(hash); |
| 10014 } | 10023 } |
| 10015 } | 10024 } |
| OLD | NEW |