| 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 8146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8157 hash = _JenkinsSmiHash.combine(hash, data.hashCode); | 8157 hash = _JenkinsSmiHash.combine(hash, data.hashCode); |
| 8158 return _JenkinsSmiHash.finish(hash); | 8158 return _JenkinsSmiHash.finish(hash); |
| 8159 } | 8159 } |
| 8160 } | 8160 } |
| 8161 | 8161 |
| 8162 /** | 8162 /** |
| 8163 * RequestErrorCode | 8163 * RequestErrorCode |
| 8164 * | 8164 * |
| 8165 * enum { | 8165 * enum { |
| 8166 * GET_ERRORS_INVALID_FILE | 8166 * GET_ERRORS_INVALID_FILE |
| 8167 * INVALID_OVERLAY_CHANGE |
| 8167 * INVALID_PARAMETER | 8168 * INVALID_PARAMETER |
| 8168 * INVALID_REQUEST | 8169 * INVALID_REQUEST |
| 8169 * SERVER_ALREADY_STARTED | 8170 * SERVER_ALREADY_STARTED |
| 8170 * UNANALYZED_PRIORITY_FILES | 8171 * UNANALYZED_PRIORITY_FILES |
| 8171 * UNKNOWN_REQUEST | 8172 * UNKNOWN_REQUEST |
| 8172 * UNSUPPORTED_FEATURE | 8173 * UNSUPPORTED_FEATURE |
| 8173 * } | 8174 * } |
| 8174 */ | 8175 */ |
| 8175 class RequestErrorCode { | 8176 class RequestErrorCode { |
| 8176 /** | 8177 /** |
| 8177 * An "analysis.getErrors" request specified a FilePath which does not match | 8178 * An "analysis.getErrors" request specified a FilePath which does not match |
| 8178 * a file currently subject to analysis. | 8179 * a file currently subject to analysis. |
| 8179 */ | 8180 */ |
| 8180 static const GET_ERRORS_INVALID_FILE = const RequestErrorCode._("GET_ERRORS_IN
VALID_FILE"); | 8181 static const GET_ERRORS_INVALID_FILE = const RequestErrorCode._("GET_ERRORS_IN
VALID_FILE"); |
| 8181 | 8182 |
| 8182 /** | 8183 /** |
| 8184 * An analysis.updateContent request contained a ChangeContentOverlay object |
| 8185 * which can't be applied, due to an edit having an offset or length that is |
| 8186 * out of range. |
| 8187 */ |
| 8188 static const INVALID_OVERLAY_CHANGE = const RequestErrorCode._("INVALID_OVERLA
Y_CHANGE"); |
| 8189 |
| 8190 /** |
| 8183 * One of the method parameters was invalid. | 8191 * One of the method parameters was invalid. |
| 8184 */ | 8192 */ |
| 8185 static const INVALID_PARAMETER = const RequestErrorCode._("INVALID_PARAMETER")
; | 8193 static const INVALID_PARAMETER = const RequestErrorCode._("INVALID_PARAMETER")
; |
| 8186 | 8194 |
| 8187 /** | 8195 /** |
| 8188 * A malformed request was received. | 8196 * A malformed request was received. |
| 8189 */ | 8197 */ |
| 8190 static const INVALID_REQUEST = const RequestErrorCode._("INVALID_REQUEST"); | 8198 static const INVALID_REQUEST = const RequestErrorCode._("INVALID_REQUEST"); |
| 8191 | 8199 |
| 8192 /** | 8200 /** |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8224 static const UNSUPPORTED_FEATURE = const RequestErrorCode._("UNSUPPORTED_FEATU
RE"); | 8232 static const UNSUPPORTED_FEATURE = const RequestErrorCode._("UNSUPPORTED_FEATU
RE"); |
| 8225 | 8233 |
| 8226 final String name; | 8234 final String name; |
| 8227 | 8235 |
| 8228 const RequestErrorCode._(this.name); | 8236 const RequestErrorCode._(this.name); |
| 8229 | 8237 |
| 8230 factory RequestErrorCode(String name) { | 8238 factory RequestErrorCode(String name) { |
| 8231 switch (name) { | 8239 switch (name) { |
| 8232 case "GET_ERRORS_INVALID_FILE": | 8240 case "GET_ERRORS_INVALID_FILE": |
| 8233 return GET_ERRORS_INVALID_FILE; | 8241 return GET_ERRORS_INVALID_FILE; |
| 8242 case "INVALID_OVERLAY_CHANGE": |
| 8243 return INVALID_OVERLAY_CHANGE; |
| 8234 case "INVALID_PARAMETER": | 8244 case "INVALID_PARAMETER": |
| 8235 return INVALID_PARAMETER; | 8245 return INVALID_PARAMETER; |
| 8236 case "INVALID_REQUEST": | 8246 case "INVALID_REQUEST": |
| 8237 return INVALID_REQUEST; | 8247 return INVALID_REQUEST; |
| 8238 case "SERVER_ALREADY_STARTED": | 8248 case "SERVER_ALREADY_STARTED": |
| 8239 return SERVER_ALREADY_STARTED; | 8249 return SERVER_ALREADY_STARTED; |
| 8240 case "UNANALYZED_PRIORITY_FILES": | 8250 case "UNANALYZED_PRIORITY_FILES": |
| 8241 return UNANALYZED_PRIORITY_FILES; | 8251 return UNANALYZED_PRIORITY_FILES; |
| 8242 case "UNKNOWN_REQUEST": | 8252 case "UNKNOWN_REQUEST": |
| 8243 return UNKNOWN_REQUEST; | 8253 return UNKNOWN_REQUEST; |
| (...skipping 1620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9864 return false; | 9874 return false; |
| 9865 } | 9875 } |
| 9866 | 9876 |
| 9867 @override | 9877 @override |
| 9868 int get hashCode { | 9878 int get hashCode { |
| 9869 int hash = 0; | 9879 int hash = 0; |
| 9870 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); | 9880 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); |
| 9871 return _JenkinsSmiHash.finish(hash); | 9881 return _JenkinsSmiHash.finish(hash); |
| 9872 } | 9882 } |
| 9873 } | 9883 } |
| OLD | NEW |