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

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

Issue 604333002: Specify when 'sortMembers' will return an error. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Specify the specific error codes Created 6 years, 2 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
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/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 8380 matching lines...) Expand 10 before | Expand all | Expand 10 after
8391 /** 8391 /**
8392 * RequestErrorCode 8392 * RequestErrorCode
8393 * 8393 *
8394 * enum { 8394 * enum {
8395 * GET_ERRORS_INVALID_FILE 8395 * GET_ERRORS_INVALID_FILE
8396 * INVALID_OVERLAY_CHANGE 8396 * INVALID_OVERLAY_CHANGE
8397 * INVALID_PARAMETER 8397 * INVALID_PARAMETER
8398 * INVALID_REQUEST 8398 * INVALID_REQUEST
8399 * SERVER_ALREADY_STARTED 8399 * SERVER_ALREADY_STARTED
8400 * SERVER_ERROR 8400 * SERVER_ERROR
8401 * SORT_MEMBERS_INVALID_FILE
8402 * SORT_MEMBERS_PARSE_ERRORS
8401 * UNANALYZED_PRIORITY_FILES 8403 * UNANALYZED_PRIORITY_FILES
8402 * UNKNOWN_REQUEST 8404 * UNKNOWN_REQUEST
8403 * UNSUPPORTED_FEATURE 8405 * UNSUPPORTED_FEATURE
8404 * } 8406 * }
8405 */ 8407 */
8406 class RequestErrorCode { 8408 class RequestErrorCode {
8407 /** 8409 /**
8408 * An "analysis.getErrors" request specified a FilePath which does not match 8410 * An "analysis.getErrors" request specified a FilePath which does not match
8409 * a file currently subject to analysis. 8411 * a file currently subject to analysis.
8410 */ 8412 */
(...skipping 26 matching lines...) Expand all
8437 */ 8439 */
8438 static const SERVER_ALREADY_STARTED = const RequestErrorCode._("SERVER_ALREADY _STARTED"); 8440 static const SERVER_ALREADY_STARTED = const RequestErrorCode._("SERVER_ALREADY _STARTED");
8439 8441
8440 /** 8442 /**
8441 * An internal error occurred in the analysis server. Also see the 8443 * An internal error occurred in the analysis server. Also see the
8442 * server.error notification. 8444 * server.error notification.
8443 */ 8445 */
8444 static const SERVER_ERROR = const RequestErrorCode._("SERVER_ERROR"); 8446 static const SERVER_ERROR = const RequestErrorCode._("SERVER_ERROR");
8445 8447
8446 /** 8448 /**
8449 * An "edit.sortMembers" request specified a FilePath which does not match a
8450 * Dart file in an analysis root.
8451 */
8452 static const SORT_MEMBERS_INVALID_FILE = const RequestErrorCode._("SORT_MEMBER S_INVALID_FILE");
8453
8454 /**
8455 * An "edit.sortMembers" request specified a Dart file that has scan or parse
8456 * errors.
8457 */
8458 static const SORT_MEMBERS_PARSE_ERRORS = const RequestErrorCode._("SORT_MEMBER S_PARSE_ERRORS");
8459
8460 /**
8447 * An "analysis.setPriorityFiles" request includes one or more files that are 8461 * An "analysis.setPriorityFiles" request includes one or more files that are
8448 * not being analyzed. 8462 * not being analyzed.
8449 * 8463 *
8450 * This is a legacy error; it will be removed before the API reaches version 8464 * This is a legacy error; it will be removed before the API reaches version
8451 * 1.0. 8465 * 1.0.
8452 */ 8466 */
8453 static const UNANALYZED_PRIORITY_FILES = const RequestErrorCode._("UNANALYZED_ PRIORITY_FILES"); 8467 static const UNANALYZED_PRIORITY_FILES = const RequestErrorCode._("UNANALYZED_ PRIORITY_FILES");
8454 8468
8455 /** 8469 /**
8456 * A request was received which the analysis server does not recognize, or 8470 * A request was received which the analysis server does not recognize, or
(...skipping 21 matching lines...) Expand all
8478 case "INVALID_OVERLAY_CHANGE": 8492 case "INVALID_OVERLAY_CHANGE":
8479 return INVALID_OVERLAY_CHANGE; 8493 return INVALID_OVERLAY_CHANGE;
8480 case "INVALID_PARAMETER": 8494 case "INVALID_PARAMETER":
8481 return INVALID_PARAMETER; 8495 return INVALID_PARAMETER;
8482 case "INVALID_REQUEST": 8496 case "INVALID_REQUEST":
8483 return INVALID_REQUEST; 8497 return INVALID_REQUEST;
8484 case "SERVER_ALREADY_STARTED": 8498 case "SERVER_ALREADY_STARTED":
8485 return SERVER_ALREADY_STARTED; 8499 return SERVER_ALREADY_STARTED;
8486 case "SERVER_ERROR": 8500 case "SERVER_ERROR":
8487 return SERVER_ERROR; 8501 return SERVER_ERROR;
8502 case "SORT_MEMBERS_INVALID_FILE":
8503 return SORT_MEMBERS_INVALID_FILE;
8504 case "SORT_MEMBERS_PARSE_ERRORS":
8505 return SORT_MEMBERS_PARSE_ERRORS;
8488 case "UNANALYZED_PRIORITY_FILES": 8506 case "UNANALYZED_PRIORITY_FILES":
8489 return UNANALYZED_PRIORITY_FILES; 8507 return UNANALYZED_PRIORITY_FILES;
8490 case "UNKNOWN_REQUEST": 8508 case "UNKNOWN_REQUEST":
8491 return UNKNOWN_REQUEST; 8509 return UNKNOWN_REQUEST;
8492 case "UNSUPPORTED_FEATURE": 8510 case "UNSUPPORTED_FEATURE":
8493 return UNSUPPORTED_FEATURE; 8511 return UNSUPPORTED_FEATURE;
8494 } 8512 }
8495 throw new Exception('Illegal enum value: $name'); 8513 throw new Exception('Illegal enum value: $name');
8496 } 8514 }
8497 8515
(...skipping 1852 matching lines...) Expand 10 before | Expand all | Expand 10 after
10350 return false; 10368 return false;
10351 } 10369 }
10352 10370
10353 @override 10371 @override
10354 int get hashCode { 10372 int get hashCode {
10355 int hash = 0; 10373 int hash = 0;
10356 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); 10374 hash = _JenkinsSmiHash.combine(hash, newName.hashCode);
10357 return _JenkinsSmiHash.finish(hash); 10375 return _JenkinsSmiHash.finish(hash);
10358 } 10376 }
10359 } 10377 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/doc/api.html ('k') | pkg/analysis_server/test/integration/integration_test_methods.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698