Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: pkg/analysis_server/lib/src/generated_protocol.dart

Issue 535333003: Clarify some of the analysis server errors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/analysis_server/doc/api.html ('k') | pkg/analysis_server/tool/spec/spec_input.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 8084 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 error occurred during the processing of an "analysis.getErrors"
8104 * request. 8104 * request.
8105 *
8106 * This is a legacy error; it will be removed before the API reaches version
8107 * 1.0.
8105 */ 8108 */
8106 static const GET_ERRORS_ERROR = const RequestErrorCode._("GET_ERRORS_ERROR"); 8109 static const GET_ERRORS_ERROR = const RequestErrorCode._("GET_ERRORS_ERROR");
8107 8110
8108 /** 8111 /**
8109 * One of the method parameters was invalid. 8112 * One of the method parameters was invalid.
8110 */ 8113 */
8111 static const INVALID_PARAMETER = const RequestErrorCode._("INVALID_PARAMETER") ; 8114 static const INVALID_PARAMETER = const RequestErrorCode._("INVALID_PARAMETER") ;
8112 8115
8113 /** 8116 /**
8114 * A malformed request was received. 8117 * A malformed request was received.
8115 */ 8118 */
8116 static const INVALID_REQUEST = const RequestErrorCode._("INVALID_REQUEST"); 8119 static const INVALID_REQUEST = const RequestErrorCode._("INVALID_REQUEST");
8117 8120
8118 /** 8121 /**
8119 * The analysis server has already been started (and hence won't accept new 8122 * The analysis server has already been started (and hence won't accept new
8120 * connections). 8123 * connections).
8124 *
8125 * This error is included for future expansion; at present the analysis
8126 * server can only speak to one client at a time so this error will never
8127 * occur.
8121 */ 8128 */
8122 static const SERVER_ALREADY_STARTED = const RequestErrorCode._("SERVER_ALREADY _STARTED"); 8129 static const SERVER_ALREADY_STARTED = const RequestErrorCode._("SERVER_ALREADY _STARTED");
8123 8130
8124 /** 8131 /**
8125 * An "analysis.setPriorityFiles" request includes one or more files that are 8132 * An "analysis.setPriorityFiles" request includes one or more files that are
8126 * not being analyzed. 8133 * not being analyzed.
8134 *
8135 * This is a legacy error; it will be removed before the API reaches version
8136 * 1.0.
8127 */ 8137 */
8128 static const UNANALYZED_PRIORITY_FILES = const RequestErrorCode._("UNANALYZED_ PRIORITY_FILES"); 8138 static const UNANALYZED_PRIORITY_FILES = const RequestErrorCode._("UNANALYZED_ PRIORITY_FILES");
8129 8139
8130 /** 8140 /**
8131 * A request was received which the analysis server does not recognize, or 8141 * A request was received which the analysis server does not recognize, or
8132 * cannot handle in its current configuation. 8142 * cannot handle in its current configuation.
8133 */ 8143 */
8134 static const UNKNOWN_REQUEST = const RequestErrorCode._("UNKNOWN_REQUEST"); 8144 static const UNKNOWN_REQUEST = const RequestErrorCode._("UNKNOWN_REQUEST");
8135 8145
8136 /** 8146 /**
8137 * The analysis server was requested to perform an action which is not 8147 * The analysis server was requested to perform an action which is not
8138 * supported. 8148 * supported.
8149 *
8150 * This is a legacy error; it will be removed before the API reaches version
8151 * 1.0.
8139 */ 8152 */
8140 static const UNSUPPORTED_FEATURE = const RequestErrorCode._("UNSUPPORTED_FEATU RE"); 8153 static const UNSUPPORTED_FEATURE = const RequestErrorCode._("UNSUPPORTED_FEATU RE");
8141 8154
8142 final String name; 8155 final String name;
8143 8156
8144 const RequestErrorCode._(this.name); 8157 const RequestErrorCode._(this.name);
8145 8158
8146 factory RequestErrorCode(String name) { 8159 factory RequestErrorCode(String name) {
8147 switch (name) { 8160 switch (name) {
8148 case "GET_ERRORS_ERROR": 8161 case "GET_ERRORS_ERROR":
(...skipping 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after
9764 return false; 9777 return false;
9765 } 9778 }
9766 9779
9767 @override 9780 @override
9768 int get hashCode { 9781 int get hashCode {
9769 int hash = 0; 9782 int hash = 0;
9770 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); 9783 hash = _JenkinsSmiHash.combine(hash, newName.hashCode);
9771 return _JenkinsSmiHash.finish(hash); 9784 return _JenkinsSmiHash.finish(hash);
9772 } 9785 }
9773 } 9786 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/doc/api.html ('k') | pkg/analysis_server/tool/spec/spec_input.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698