| 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 8071 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8082 hash = _JenkinsSmiHash.combine(hash, message.hashCode); | 8082 hash = _JenkinsSmiHash.combine(hash, message.hashCode); |
| 8083 hash = _JenkinsSmiHash.combine(hash, data.hashCode); | 8083 hash = _JenkinsSmiHash.combine(hash, data.hashCode); |
| 8084 return _JenkinsSmiHash.finish(hash); | 8084 return _JenkinsSmiHash.finish(hash); |
| 8085 } | 8085 } |
| 8086 } | 8086 } |
| 8087 | 8087 |
| 8088 /** | 8088 /** |
| 8089 * RequestErrorCode | 8089 * RequestErrorCode |
| 8090 * | 8090 * |
| 8091 * enum { | 8091 * enum { |
| 8092 * GET_ERRORS_ERROR | 8092 * GET_ERRORS_INVALID_FILE |
| 8093 * INVALID_PARAMETER | 8093 * INVALID_PARAMETER |
| 8094 * INVALID_REQUEST | 8094 * INVALID_REQUEST |
| 8095 * SERVER_ALREADY_STARTED | 8095 * SERVER_ALREADY_STARTED |
| 8096 * UNANALYZED_PRIORITY_FILES | 8096 * UNANALYZED_PRIORITY_FILES |
| 8097 * UNKNOWN_REQUEST | 8097 * UNKNOWN_REQUEST |
| 8098 * UNSUPPORTED_FEATURE | 8098 * UNSUPPORTED_FEATURE |
| 8099 * } | 8099 * } |
| 8100 */ | 8100 */ |
| 8101 class RequestErrorCode { | 8101 class RequestErrorCode { |
| 8102 /** | 8102 /** |
| 8103 * An error occurred during the processing of an "analysis.getErrors" | 8103 * An "analysis.getErrors" request specified a FilePath which does not match |
| 8104 * request. | 8104 * a file currently subject to analysis. |
| 8105 * | |
| 8106 * This is a legacy error; it will be removed before the API reaches version | |
| 8107 * 1.0. | |
| 8108 */ | 8105 */ |
| 8109 static const GET_ERRORS_ERROR = const RequestErrorCode._("GET_ERRORS_ERROR"); | 8106 static const GET_ERRORS_INVALID_FILE = const RequestErrorCode._("GET_ERRORS_IN
VALID_FILE"); |
| 8110 | 8107 |
| 8111 /** | 8108 /** |
| 8112 * One of the method parameters was invalid. | 8109 * One of the method parameters was invalid. |
| 8113 */ | 8110 */ |
| 8114 static const INVALID_PARAMETER = const RequestErrorCode._("INVALID_PARAMETER")
; | 8111 static const INVALID_PARAMETER = const RequestErrorCode._("INVALID_PARAMETER")
; |
| 8115 | 8112 |
| 8116 /** | 8113 /** |
| 8117 * A malformed request was received. | 8114 * A malformed request was received. |
| 8118 */ | 8115 */ |
| 8119 static const INVALID_REQUEST = const RequestErrorCode._("INVALID_REQUEST"); | 8116 static const INVALID_REQUEST = const RequestErrorCode._("INVALID_REQUEST"); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8151 * 1.0. | 8148 * 1.0. |
| 8152 */ | 8149 */ |
| 8153 static const UNSUPPORTED_FEATURE = const RequestErrorCode._("UNSUPPORTED_FEATU
RE"); | 8150 static const UNSUPPORTED_FEATURE = const RequestErrorCode._("UNSUPPORTED_FEATU
RE"); |
| 8154 | 8151 |
| 8155 final String name; | 8152 final String name; |
| 8156 | 8153 |
| 8157 const RequestErrorCode._(this.name); | 8154 const RequestErrorCode._(this.name); |
| 8158 | 8155 |
| 8159 factory RequestErrorCode(String name) { | 8156 factory RequestErrorCode(String name) { |
| 8160 switch (name) { | 8157 switch (name) { |
| 8161 case "GET_ERRORS_ERROR": | 8158 case "GET_ERRORS_INVALID_FILE": |
| 8162 return GET_ERRORS_ERROR; | 8159 return GET_ERRORS_INVALID_FILE; |
| 8163 case "INVALID_PARAMETER": | 8160 case "INVALID_PARAMETER": |
| 8164 return INVALID_PARAMETER; | 8161 return INVALID_PARAMETER; |
| 8165 case "INVALID_REQUEST": | 8162 case "INVALID_REQUEST": |
| 8166 return INVALID_REQUEST; | 8163 return INVALID_REQUEST; |
| 8167 case "SERVER_ALREADY_STARTED": | 8164 case "SERVER_ALREADY_STARTED": |
| 8168 return SERVER_ALREADY_STARTED; | 8165 return SERVER_ALREADY_STARTED; |
| 8169 case "UNANALYZED_PRIORITY_FILES": | 8166 case "UNANALYZED_PRIORITY_FILES": |
| 8170 return UNANALYZED_PRIORITY_FILES; | 8167 return UNANALYZED_PRIORITY_FILES; |
| 8171 case "UNKNOWN_REQUEST": | 8168 case "UNKNOWN_REQUEST": |
| 8172 return UNKNOWN_REQUEST; | 8169 return UNKNOWN_REQUEST; |
| (...skipping 1604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9777 return false; | 9774 return false; |
| 9778 } | 9775 } |
| 9779 | 9776 |
| 9780 @override | 9777 @override |
| 9781 int get hashCode { | 9778 int get hashCode { |
| 9782 int hash = 0; | 9779 int hash = 0; |
| 9783 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); | 9780 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); |
| 9784 return _JenkinsSmiHash.finish(hash); | 9781 return _JenkinsSmiHash.finish(hash); |
| 9785 } | 9782 } |
| 9786 } | 9783 } |
| OLD | NEW |