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

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

Issue 1063613002: Add an analysis server option to enable null-aware-operator support. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Roll the analysis server JSON API version. Created 5 years, 8 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 5626 matching lines...) Expand 10 before | Expand all | Expand 10 after
5637 String toJson() => name; 5637 String toJson() => name;
5638 } 5638 }
5639 5639
5640 /** 5640 /**
5641 * AnalysisOptions 5641 * AnalysisOptions
5642 * 5642 *
5643 * { 5643 * {
5644 * "enableAsync": optional bool 5644 * "enableAsync": optional bool
5645 * "enableDeferredLoading": optional bool 5645 * "enableDeferredLoading": optional bool
5646 * "enableEnums": optional bool 5646 * "enableEnums": optional bool
5647 * "enableNullAwareOperators": optional bool
5647 * "generateDart2jsHints": optional bool 5648 * "generateDart2jsHints": optional bool
5648 * "generateHints": optional bool 5649 * "generateHints": optional bool
5649 * "generateLints": optional bool 5650 * "generateLints": optional bool
5650 * } 5651 * }
5651 */ 5652 */
5652 class AnalysisOptions implements HasToJson { 5653 class AnalysisOptions implements HasToJson {
5653 /** 5654 /**
5654 * Deprecated/ 5655 * Deprecated
5655 * 5656 *
5656 * True if the client wants to enable support for the proposed async feature. 5657 * True if the client wants to enable support for the proposed async feature.
5657 */ 5658 */
5658 bool enableAsync; 5659 bool enableAsync;
5659 5660
5660 /** 5661 /**
5661 * Deprecated/ 5662 * Deprecated
5662 * 5663 *
5663 * True if the client wants to enable support for the proposed deferred 5664 * True if the client wants to enable support for the proposed deferred
5664 * loading feature. 5665 * loading feature.
5665 */ 5666 */
5666 bool enableDeferredLoading; 5667 bool enableDeferredLoading;
5667 5668
5668 /** 5669 /**
5669 * Deprecated/ 5670 * Deprecated
5670 * 5671 *
5671 * True if the client wants to enable support for the proposed enum feature. 5672 * True if the client wants to enable support for the proposed enum feature.
5672 */ 5673 */
5673 bool enableEnums; 5674 bool enableEnums;
5674 5675
5675 /** 5676 /**
5677 * True if the client wants to enable support for the proposed "null aware
5678 * operators" feature.
5679 */
5680 bool enableNullAwareOperators;
5681
5682 /**
5676 * True if hints that are specific to dart2js should be generated. This 5683 * True if hints that are specific to dart2js should be generated. This
5677 * option is ignored if generateHints is false. 5684 * option is ignored if generateHints is false.
5678 */ 5685 */
5679 bool generateDart2jsHints; 5686 bool generateDart2jsHints;
5680 5687
5681 /** 5688 /**
5682 * True if hints should be generated as part of generating errors and 5689 * True if hints should be generated as part of generating errors and
5683 * warnings. 5690 * warnings.
5684 */ 5691 */
5685 bool generateHints; 5692 bool generateHints;
5686 5693
5687 /** 5694 /**
5688 * True if lints should be generated as part of generating errors and 5695 * True if lints should be generated as part of generating errors and
5689 * warnings. 5696 * warnings.
5690 */ 5697 */
5691 bool generateLints; 5698 bool generateLints;
5692 5699
5693 AnalysisOptions({this.enableAsync, this.enableDeferredLoading, this.enableEnum s, this.generateDart2jsHints, this.generateHints, this.generateLints}); 5700 AnalysisOptions({this.enableAsync, this.enableDeferredLoading, this.enableEnum s, this.enableNullAwareOperators, this.generateDart2jsHints, this.generateHints, this.generateLints});
5694 5701
5695 factory AnalysisOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj ect json) { 5702 factory AnalysisOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj ect json) {
5696 if (json == null) { 5703 if (json == null) {
5697 json = {}; 5704 json = {};
5698 } 5705 }
5699 if (json is Map) { 5706 if (json is Map) {
5700 bool enableAsync; 5707 bool enableAsync;
5701 if (json.containsKey("enableAsync")) { 5708 if (json.containsKey("enableAsync")) {
5702 enableAsync = jsonDecoder._decodeBool(jsonPath + ".enableAsync", json["e nableAsync"]); 5709 enableAsync = jsonDecoder._decodeBool(jsonPath + ".enableAsync", json["e nableAsync"]);
5703 } 5710 }
5704 bool enableDeferredLoading; 5711 bool enableDeferredLoading;
5705 if (json.containsKey("enableDeferredLoading")) { 5712 if (json.containsKey("enableDeferredLoading")) {
5706 enableDeferredLoading = jsonDecoder._decodeBool(jsonPath + ".enableDefer redLoading", json["enableDeferredLoading"]); 5713 enableDeferredLoading = jsonDecoder._decodeBool(jsonPath + ".enableDefer redLoading", json["enableDeferredLoading"]);
5707 } 5714 }
5708 bool enableEnums; 5715 bool enableEnums;
5709 if (json.containsKey("enableEnums")) { 5716 if (json.containsKey("enableEnums")) {
5710 enableEnums = jsonDecoder._decodeBool(jsonPath + ".enableEnums", json["e nableEnums"]); 5717 enableEnums = jsonDecoder._decodeBool(jsonPath + ".enableEnums", json["e nableEnums"]);
5711 } 5718 }
5719 bool enableNullAwareOperators;
5720 if (json.containsKey("enableNullAwareOperators")) {
5721 enableNullAwareOperators = jsonDecoder._decodeBool(jsonPath + ".enableNu llAwareOperators", json["enableNullAwareOperators"]);
5722 }
5712 bool generateDart2jsHints; 5723 bool generateDart2jsHints;
5713 if (json.containsKey("generateDart2jsHints")) { 5724 if (json.containsKey("generateDart2jsHints")) {
5714 generateDart2jsHints = jsonDecoder._decodeBool(jsonPath + ".generateDart 2jsHints", json["generateDart2jsHints"]); 5725 generateDart2jsHints = jsonDecoder._decodeBool(jsonPath + ".generateDart 2jsHints", json["generateDart2jsHints"]);
5715 } 5726 }
5716 bool generateHints; 5727 bool generateHints;
5717 if (json.containsKey("generateHints")) { 5728 if (json.containsKey("generateHints")) {
5718 generateHints = jsonDecoder._decodeBool(jsonPath + ".generateHints", jso n["generateHints"]); 5729 generateHints = jsonDecoder._decodeBool(jsonPath + ".generateHints", jso n["generateHints"]);
5719 } 5730 }
5720 bool generateLints; 5731 bool generateLints;
5721 if (json.containsKey("generateLints")) { 5732 if (json.containsKey("generateLints")) {
5722 generateLints = jsonDecoder._decodeBool(jsonPath + ".generateLints", jso n["generateLints"]); 5733 generateLints = jsonDecoder._decodeBool(jsonPath + ".generateLints", jso n["generateLints"]);
5723 } 5734 }
5724 return new AnalysisOptions(enableAsync: enableAsync, enableDeferredLoading : enableDeferredLoading, enableEnums: enableEnums, generateDart2jsHints: generat eDart2jsHints, generateHints: generateHints, generateLints: generateLints); 5735 return new AnalysisOptions(enableAsync: enableAsync, enableDeferredLoading : enableDeferredLoading, enableEnums: enableEnums, enableNullAwareOperators: ena bleNullAwareOperators, generateDart2jsHints: generateDart2jsHints, generateHints : generateHints, generateLints: generateLints);
5725 } else { 5736 } else {
5726 throw jsonDecoder.mismatch(jsonPath, "AnalysisOptions"); 5737 throw jsonDecoder.mismatch(jsonPath, "AnalysisOptions");
5727 } 5738 }
5728 } 5739 }
5729 5740
5730 Map<String, dynamic> toJson() { 5741 Map<String, dynamic> toJson() {
5731 Map<String, dynamic> result = {}; 5742 Map<String, dynamic> result = {};
5732 if (enableAsync != null) { 5743 if (enableAsync != null) {
5733 result["enableAsync"] = enableAsync; 5744 result["enableAsync"] = enableAsync;
5734 } 5745 }
5735 if (enableDeferredLoading != null) { 5746 if (enableDeferredLoading != null) {
5736 result["enableDeferredLoading"] = enableDeferredLoading; 5747 result["enableDeferredLoading"] = enableDeferredLoading;
5737 } 5748 }
5738 if (enableEnums != null) { 5749 if (enableEnums != null) {
5739 result["enableEnums"] = enableEnums; 5750 result["enableEnums"] = enableEnums;
5740 } 5751 }
5752 if (enableNullAwareOperators != null) {
5753 result["enableNullAwareOperators"] = enableNullAwareOperators;
5754 }
5741 if (generateDart2jsHints != null) { 5755 if (generateDart2jsHints != null) {
5742 result["generateDart2jsHints"] = generateDart2jsHints; 5756 result["generateDart2jsHints"] = generateDart2jsHints;
5743 } 5757 }
5744 if (generateHints != null) { 5758 if (generateHints != null) {
5745 result["generateHints"] = generateHints; 5759 result["generateHints"] = generateHints;
5746 } 5760 }
5747 if (generateLints != null) { 5761 if (generateLints != null) {
5748 result["generateLints"] = generateLints; 5762 result["generateLints"] = generateLints;
5749 } 5763 }
5750 return result; 5764 return result;
5751 } 5765 }
5752 5766
5753 @override 5767 @override
5754 String toString() => JSON.encode(toJson()); 5768 String toString() => JSON.encode(toJson());
5755 5769
5756 @override 5770 @override
5757 bool operator==(other) { 5771 bool operator==(other) {
5758 if (other is AnalysisOptions) { 5772 if (other is AnalysisOptions) {
5759 return enableAsync == other.enableAsync && 5773 return enableAsync == other.enableAsync &&
5760 enableDeferredLoading == other.enableDeferredLoading && 5774 enableDeferredLoading == other.enableDeferredLoading &&
5761 enableEnums == other.enableEnums && 5775 enableEnums == other.enableEnums &&
5776 enableNullAwareOperators == other.enableNullAwareOperators &&
5762 generateDart2jsHints == other.generateDart2jsHints && 5777 generateDart2jsHints == other.generateDart2jsHints &&
5763 generateHints == other.generateHints && 5778 generateHints == other.generateHints &&
5764 generateLints == other.generateLints; 5779 generateLints == other.generateLints;
5765 } 5780 }
5766 return false; 5781 return false;
5767 } 5782 }
5768 5783
5769 @override 5784 @override
5770 int get hashCode { 5785 int get hashCode {
5771 int hash = 0; 5786 int hash = 0;
5772 hash = _JenkinsSmiHash.combine(hash, enableAsync.hashCode); 5787 hash = _JenkinsSmiHash.combine(hash, enableAsync.hashCode);
5773 hash = _JenkinsSmiHash.combine(hash, enableDeferredLoading.hashCode); 5788 hash = _JenkinsSmiHash.combine(hash, enableDeferredLoading.hashCode);
5774 hash = _JenkinsSmiHash.combine(hash, enableEnums.hashCode); 5789 hash = _JenkinsSmiHash.combine(hash, enableEnums.hashCode);
5790 hash = _JenkinsSmiHash.combine(hash, enableNullAwareOperators.hashCode);
5775 hash = _JenkinsSmiHash.combine(hash, generateDart2jsHints.hashCode); 5791 hash = _JenkinsSmiHash.combine(hash, generateDart2jsHints.hashCode);
5776 hash = _JenkinsSmiHash.combine(hash, generateHints.hashCode); 5792 hash = _JenkinsSmiHash.combine(hash, generateHints.hashCode);
5777 hash = _JenkinsSmiHash.combine(hash, generateLints.hashCode); 5793 hash = _JenkinsSmiHash.combine(hash, generateLints.hashCode);
5778 return _JenkinsSmiHash.finish(hash); 5794 return _JenkinsSmiHash.finish(hash);
5779 } 5795 }
5780 } 5796 }
5781 5797
5782 /** 5798 /**
5783 * AnalysisService 5799 * AnalysisService
5784 * 5800 *
(...skipping 5573 matching lines...) Expand 10 before | Expand all | Expand 10 after
11358 return false; 11374 return false;
11359 } 11375 }
11360 11376
11361 @override 11377 @override
11362 int get hashCode { 11378 int get hashCode {
11363 int hash = 0; 11379 int hash = 0;
11364 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); 11380 hash = _JenkinsSmiHash.combine(hash, newName.hashCode);
11365 return _JenkinsSmiHash.finish(hash); 11381 return _JenkinsSmiHash.finish(hash);
11366 } 11382 }
11367 } 11383 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698