| 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 8984 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8995 hash = _JenkinsSmiHash.combine(hash, stackTrace.hashCode); | 8995 hash = _JenkinsSmiHash.combine(hash, stackTrace.hashCode); |
| 8996 return _JenkinsSmiHash.finish(hash); | 8996 return _JenkinsSmiHash.finish(hash); |
| 8997 } | 8997 } |
| 8998 } | 8998 } |
| 8999 | 8999 |
| 9000 /** | 9000 /** |
| 9001 * RequestErrorCode | 9001 * RequestErrorCode |
| 9002 * | 9002 * |
| 9003 * enum { | 9003 * enum { |
| 9004 * CONTENT_MODIFIED | 9004 * CONTENT_MODIFIED |
| 9005 * FORMAT_INVALID_FILE |
| 9005 * GET_ERRORS_INVALID_FILE | 9006 * GET_ERRORS_INVALID_FILE |
| 9006 * INVALID_OVERLAY_CHANGE | 9007 * INVALID_OVERLAY_CHANGE |
| 9007 * INVALID_PARAMETER | 9008 * INVALID_PARAMETER |
| 9008 * INVALID_REQUEST | 9009 * INVALID_REQUEST |
| 9009 * SERVER_ALREADY_STARTED | 9010 * SERVER_ALREADY_STARTED |
| 9010 * SERVER_ERROR | 9011 * SERVER_ERROR |
| 9011 * SORT_MEMBERS_INVALID_FILE | 9012 * SORT_MEMBERS_INVALID_FILE |
| 9012 * SORT_MEMBERS_PARSE_ERRORS | 9013 * SORT_MEMBERS_PARSE_ERRORS |
| 9013 * UNANALYZED_PRIORITY_FILES | 9014 * UNANALYZED_PRIORITY_FILES |
| 9014 * UNKNOWN_REQUEST | 9015 * UNKNOWN_REQUEST |
| 9015 * UNSUPPORTED_FEATURE | 9016 * UNSUPPORTED_FEATURE |
| 9016 * } | 9017 * } |
| 9017 */ | 9018 */ |
| 9018 class RequestErrorCode implements Enum { | 9019 class RequestErrorCode implements Enum { |
| 9019 /** | 9020 /** |
| 9020 * An "analysis.getErrors" or "analysis.getNavigation" request could not be | 9021 * An "analysis.getErrors" or "analysis.getNavigation" request could not be |
| 9021 * satisfied because the content of the file changed before the requested | 9022 * satisfied because the content of the file changed before the requested |
| 9022 * results could be computed. | 9023 * results could be computed. |
| 9023 */ | 9024 */ |
| 9024 static const CONTENT_MODIFIED = const RequestErrorCode._("CONTENT_MODIFIED"); | 9025 static const CONTENT_MODIFIED = const RequestErrorCode._("CONTENT_MODIFIED"); |
| 9025 | 9026 |
| 9026 /** | 9027 /** |
| 9028 * An "edit.format" request specified a FilePath which does not match a Dart |
| 9029 * file in an analysis root. |
| 9030 */ |
| 9031 static const FORMAT_INVALID_FILE = const RequestErrorCode._("FORMAT_INVALID_FI
LE"); |
| 9032 |
| 9033 /** |
| 9027 * An "analysis.getErrors" request specified a FilePath which does not match | 9034 * An "analysis.getErrors" request specified a FilePath which does not match |
| 9028 * a file currently subject to analysis. | 9035 * a file currently subject to analysis. |
| 9029 */ | 9036 */ |
| 9030 static const GET_ERRORS_INVALID_FILE = const RequestErrorCode._("GET_ERRORS_IN
VALID_FILE"); | 9037 static const GET_ERRORS_INVALID_FILE = const RequestErrorCode._("GET_ERRORS_IN
VALID_FILE"); |
| 9031 | 9038 |
| 9032 /** | 9039 /** |
| 9033 * An analysis.updateContent request contained a ChangeContentOverlay object | 9040 * An analysis.updateContent request contained a ChangeContentOverlay object |
| 9034 * which can't be applied, due to an edit having an offset or length that is | 9041 * which can't be applied, due to an edit having an offset or length that is |
| 9035 * out of range. | 9042 * out of range. |
| 9036 */ | 9043 */ |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9099 static const UNSUPPORTED_FEATURE = const RequestErrorCode._("UNSUPPORTED_FEATU
RE"); | 9106 static const UNSUPPORTED_FEATURE = const RequestErrorCode._("UNSUPPORTED_FEATU
RE"); |
| 9100 | 9107 |
| 9101 final String name; | 9108 final String name; |
| 9102 | 9109 |
| 9103 const RequestErrorCode._(this.name); | 9110 const RequestErrorCode._(this.name); |
| 9104 | 9111 |
| 9105 factory RequestErrorCode(String name) { | 9112 factory RequestErrorCode(String name) { |
| 9106 switch (name) { | 9113 switch (name) { |
| 9107 case "CONTENT_MODIFIED": | 9114 case "CONTENT_MODIFIED": |
| 9108 return CONTENT_MODIFIED; | 9115 return CONTENT_MODIFIED; |
| 9116 case "FORMAT_INVALID_FILE": |
| 9117 return FORMAT_INVALID_FILE; |
| 9109 case "GET_ERRORS_INVALID_FILE": | 9118 case "GET_ERRORS_INVALID_FILE": |
| 9110 return GET_ERRORS_INVALID_FILE; | 9119 return GET_ERRORS_INVALID_FILE; |
| 9111 case "INVALID_OVERLAY_CHANGE": | 9120 case "INVALID_OVERLAY_CHANGE": |
| 9112 return INVALID_OVERLAY_CHANGE; | 9121 return INVALID_OVERLAY_CHANGE; |
| 9113 case "INVALID_PARAMETER": | 9122 case "INVALID_PARAMETER": |
| 9114 return INVALID_PARAMETER; | 9123 return INVALID_PARAMETER; |
| 9115 case "INVALID_REQUEST": | 9124 case "INVALID_REQUEST": |
| 9116 return INVALID_REQUEST; | 9125 return INVALID_REQUEST; |
| 9117 case "SERVER_ALREADY_STARTED": | 9126 case "SERVER_ALREADY_STARTED": |
| 9118 return SERVER_ALREADY_STARTED; | 9127 return SERVER_ALREADY_STARTED; |
| (...skipping 1837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10956 return false; | 10965 return false; |
| 10957 } | 10966 } |
| 10958 | 10967 |
| 10959 @override | 10968 @override |
| 10960 int get hashCode { | 10969 int get hashCode { |
| 10961 int hash = 0; | 10970 int hash = 0; |
| 10962 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); | 10971 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); |
| 10963 return _JenkinsSmiHash.finish(hash); | 10972 return _JenkinsSmiHash.finish(hash); |
| 10964 } | 10973 } |
| 10965 } | 10974 } |
| OLD | NEW |