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

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

Issue 488103003: Add SearchResultKind.UNKNOWN to the analysis server API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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/spec/generate_files". 7 // "pkg/analysis_server/spec/generate_files".
8 8
9 part of protocol2; 9 part of protocol2;
10 10
(...skipping 7613 matching lines...) Expand 10 before | Expand all | Expand 10 after
7624 7624
7625 /** 7625 /**
7626 * SearchResultKind 7626 * SearchResultKind
7627 * 7627 *
7628 * enum { 7628 * enum {
7629 * DECLARATION 7629 * DECLARATION
7630 * INVOCATION 7630 * INVOCATION
7631 * READ 7631 * READ
7632 * READ_WRITE 7632 * READ_WRITE
7633 * REFERENCE 7633 * REFERENCE
7634 * UNKNOWN
7634 * WRITE 7635 * WRITE
7635 * } 7636 * }
7636 */ 7637 */
7637 class SearchResultKind { 7638 class SearchResultKind {
7638 /** 7639 /**
7639 * The declaration of an element. 7640 * The declaration of an element.
7640 */ 7641 */
7641 static const DECLARATION = const SearchResultKind._("DECLARATION"); 7642 static const DECLARATION = const SearchResultKind._("DECLARATION");
7642 7643
7643 /** 7644 /**
(...skipping 11 matching lines...) Expand all
7655 * written. 7656 * written.
7656 */ 7657 */
7657 static const READ_WRITE = const SearchResultKind._("READ_WRITE"); 7658 static const READ_WRITE = const SearchResultKind._("READ_WRITE");
7658 7659
7659 /** 7660 /**
7660 * A reference to an element. 7661 * A reference to an element.
7661 */ 7662 */
7662 static const REFERENCE = const SearchResultKind._("REFERENCE"); 7663 static const REFERENCE = const SearchResultKind._("REFERENCE");
7663 7664
7664 /** 7665 /**
7666 * Some other kind of search result.
7667 */
7668 static const UNKNOWN = const SearchResultKind._("UNKNOWN");
7669
7670 /**
7665 * A reference to a field, parameter or variable where it is being written. 7671 * A reference to a field, parameter or variable where it is being written.
7666 */ 7672 */
7667 static const WRITE = const SearchResultKind._("WRITE"); 7673 static const WRITE = const SearchResultKind._("WRITE");
7668 7674
7669 final String name; 7675 final String name;
7670 7676
7671 const SearchResultKind._(this.name); 7677 const SearchResultKind._(this.name);
7672 7678
7673 factory SearchResultKind(String name) { 7679 factory SearchResultKind(String name) {
7674 switch (name) { 7680 switch (name) {
7675 case "DECLARATION": 7681 case "DECLARATION":
7676 return DECLARATION; 7682 return DECLARATION;
7677 case "INVOCATION": 7683 case "INVOCATION":
7678 return INVOCATION; 7684 return INVOCATION;
7679 case "READ": 7685 case "READ":
7680 return READ; 7686 return READ;
7681 case "READ_WRITE": 7687 case "READ_WRITE":
7682 return READ_WRITE; 7688 return READ_WRITE;
7683 case "REFERENCE": 7689 case "REFERENCE":
7684 return REFERENCE; 7690 return REFERENCE;
7691 case "UNKNOWN":
7692 return UNKNOWN;
7685 case "WRITE": 7693 case "WRITE":
7686 return WRITE; 7694 return WRITE;
7687 } 7695 }
7688 throw new Exception('Illegal enum value: $name'); 7696 throw new Exception('Illegal enum value: $name');
7689 } 7697 }
7690 7698
7691 factory SearchResultKind.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob ject json) { 7699 factory SearchResultKind.fromJson(JsonDecoder jsonDecoder, String jsonPath, Ob ject json) {
7692 if (json is String) { 7700 if (json is String) {
7693 try { 7701 try {
7694 return new SearchResultKind(json); 7702 return new SearchResultKind(json);
(...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after
8894 return false; 8902 return false;
8895 } 8903 }
8896 8904
8897 @override 8905 @override
8898 int get hashCode { 8906 int get hashCode {
8899 int hash = 0; 8907 int hash = 0;
8900 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); 8908 hash = _JenkinsSmiHash.combine(hash, newName.hashCode);
8901 return _JenkinsSmiHash.finish(hash); 8909 return _JenkinsSmiHash.finish(hash);
8902 } 8910 }
8903 } 8911 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/doc/api.html ('k') | pkg/analysis_server/test/integration/protocol_matchers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698