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 7522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7533 } | 7533 } |
7534 | 7534 |
7535 /** | 7535 /** |
7536 * AnalysisOptions | 7536 * AnalysisOptions |
7537 * | 7537 * |
7538 * { | 7538 * { |
7539 * "enableAsync": optional bool | 7539 * "enableAsync": optional bool |
7540 * "enableDeferredLoading": optional bool | 7540 * "enableDeferredLoading": optional bool |
7541 * "enableEnums": optional bool | 7541 * "enableEnums": optional bool |
7542 * "enableNullAwareOperators": optional bool | 7542 * "enableNullAwareOperators": optional bool |
| 7543 * "enableSuperMixins": optional bool |
7543 * "generateDart2jsHints": optional bool | 7544 * "generateDart2jsHints": optional bool |
7544 * "generateHints": optional bool | 7545 * "generateHints": optional bool |
7545 * "generateLints": optional bool | 7546 * "generateLints": optional bool |
7546 * } | 7547 * } |
7547 */ | 7548 */ |
7548 class AnalysisOptions implements HasToJson { | 7549 class AnalysisOptions implements HasToJson { |
7549 bool _enableAsync; | 7550 bool _enableAsync; |
7550 | 7551 |
7551 bool _enableDeferredLoading; | 7552 bool _enableDeferredLoading; |
7552 | 7553 |
7553 bool _enableEnums; | 7554 bool _enableEnums; |
7554 | 7555 |
7555 bool _enableNullAwareOperators; | 7556 bool _enableNullAwareOperators; |
7556 | 7557 |
| 7558 bool _enableSuperMixins; |
| 7559 |
7557 bool _generateDart2jsHints; | 7560 bool _generateDart2jsHints; |
7558 | 7561 |
7559 bool _generateHints; | 7562 bool _generateHints; |
7560 | 7563 |
7561 bool _generateLints; | 7564 bool _generateLints; |
7562 | 7565 |
7563 /** | 7566 /** |
7564 * Deprecated: this feature is always enabled. | 7567 * Deprecated: this feature is always enabled. |
7565 * | 7568 * |
7566 * True if the client wants to enable support for the proposed async feature. | 7569 * True if the client wants to enable support for the proposed async feature. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7622 * Deprecated: this feature is always enabled. | 7625 * Deprecated: this feature is always enabled. |
7623 * | 7626 * |
7624 * True if the client wants to enable support for the proposed "null aware | 7627 * True if the client wants to enable support for the proposed "null aware |
7625 * operators" feature. | 7628 * operators" feature. |
7626 */ | 7629 */ |
7627 void set enableNullAwareOperators(bool value) { | 7630 void set enableNullAwareOperators(bool value) { |
7628 this._enableNullAwareOperators = value; | 7631 this._enableNullAwareOperators = value; |
7629 } | 7632 } |
7630 | 7633 |
7631 /** | 7634 /** |
| 7635 * True if the client wants to enable spport for the proposed "less |
| 7636 * restricted mixins" proposal (DEP 34). |
| 7637 */ |
| 7638 bool get enableSuperMixins => _enableSuperMixins; |
| 7639 |
| 7640 /** |
| 7641 * True if the client wants to enable spport for the proposed "less |
| 7642 * restricted mixins" proposal (DEP 34). |
| 7643 */ |
| 7644 void set enableSuperMixins(bool value) { |
| 7645 this._enableSuperMixins = value; |
| 7646 } |
| 7647 |
| 7648 /** |
7632 * True if hints that are specific to dart2js should be generated. This | 7649 * True if hints that are specific to dart2js should be generated. This |
7633 * option is ignored if generateHints is false. | 7650 * option is ignored if generateHints is false. |
7634 */ | 7651 */ |
7635 bool get generateDart2jsHints => _generateDart2jsHints; | 7652 bool get generateDart2jsHints => _generateDart2jsHints; |
7636 | 7653 |
7637 /** | 7654 /** |
7638 * True if hints that are specific to dart2js should be generated. This | 7655 * True if hints that are specific to dart2js should be generated. This |
7639 * option is ignored if generateHints is false. | 7656 * option is ignored if generateHints is false. |
7640 */ | 7657 */ |
7641 void set generateDart2jsHints(bool value) { | 7658 void set generateDart2jsHints(bool value) { |
(...skipping 21 matching lines...) Expand all Loading... |
7663 bool get generateLints => _generateLints; | 7680 bool get generateLints => _generateLints; |
7664 | 7681 |
7665 /** | 7682 /** |
7666 * True if lints should be generated as part of generating errors and | 7683 * True if lints should be generated as part of generating errors and |
7667 * warnings. | 7684 * warnings. |
7668 */ | 7685 */ |
7669 void set generateLints(bool value) { | 7686 void set generateLints(bool value) { |
7670 this._generateLints = value; | 7687 this._generateLints = value; |
7671 } | 7688 } |
7672 | 7689 |
7673 AnalysisOptions({bool enableAsync, bool enableDeferredLoading, bool enableEnum
s, bool enableNullAwareOperators, bool generateDart2jsHints, bool generateHints,
bool generateLints}) { | 7690 AnalysisOptions({bool enableAsync, bool enableDeferredLoading, bool enableEnum
s, bool enableNullAwareOperators, bool enableSuperMixins, bool generateDart2jsHi
nts, bool generateHints, bool generateLints}) { |
7674 this.enableAsync = enableAsync; | 7691 this.enableAsync = enableAsync; |
7675 this.enableDeferredLoading = enableDeferredLoading; | 7692 this.enableDeferredLoading = enableDeferredLoading; |
7676 this.enableEnums = enableEnums; | 7693 this.enableEnums = enableEnums; |
7677 this.enableNullAwareOperators = enableNullAwareOperators; | 7694 this.enableNullAwareOperators = enableNullAwareOperators; |
| 7695 this.enableSuperMixins = enableSuperMixins; |
7678 this.generateDart2jsHints = generateDart2jsHints; | 7696 this.generateDart2jsHints = generateDart2jsHints; |
7679 this.generateHints = generateHints; | 7697 this.generateHints = generateHints; |
7680 this.generateLints = generateLints; | 7698 this.generateLints = generateLints; |
7681 } | 7699 } |
7682 | 7700 |
7683 factory AnalysisOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { | 7701 factory AnalysisOptions.fromJson(JsonDecoder jsonDecoder, String jsonPath, Obj
ect json) { |
7684 if (json == null) { | 7702 if (json == null) { |
7685 json = {}; | 7703 json = {}; |
7686 } | 7704 } |
7687 if (json is Map) { | 7705 if (json is Map) { |
7688 bool enableAsync; | 7706 bool enableAsync; |
7689 if (json.containsKey("enableAsync")) { | 7707 if (json.containsKey("enableAsync")) { |
7690 enableAsync = jsonDecoder._decodeBool(jsonPath + ".enableAsync", json["e
nableAsync"]); | 7708 enableAsync = jsonDecoder._decodeBool(jsonPath + ".enableAsync", json["e
nableAsync"]); |
7691 } | 7709 } |
7692 bool enableDeferredLoading; | 7710 bool enableDeferredLoading; |
7693 if (json.containsKey("enableDeferredLoading")) { | 7711 if (json.containsKey("enableDeferredLoading")) { |
7694 enableDeferredLoading = jsonDecoder._decodeBool(jsonPath + ".enableDefer
redLoading", json["enableDeferredLoading"]); | 7712 enableDeferredLoading = jsonDecoder._decodeBool(jsonPath + ".enableDefer
redLoading", json["enableDeferredLoading"]); |
7695 } | 7713 } |
7696 bool enableEnums; | 7714 bool enableEnums; |
7697 if (json.containsKey("enableEnums")) { | 7715 if (json.containsKey("enableEnums")) { |
7698 enableEnums = jsonDecoder._decodeBool(jsonPath + ".enableEnums", json["e
nableEnums"]); | 7716 enableEnums = jsonDecoder._decodeBool(jsonPath + ".enableEnums", json["e
nableEnums"]); |
7699 } | 7717 } |
7700 bool enableNullAwareOperators; | 7718 bool enableNullAwareOperators; |
7701 if (json.containsKey("enableNullAwareOperators")) { | 7719 if (json.containsKey("enableNullAwareOperators")) { |
7702 enableNullAwareOperators = jsonDecoder._decodeBool(jsonPath + ".enableNu
llAwareOperators", json["enableNullAwareOperators"]); | 7720 enableNullAwareOperators = jsonDecoder._decodeBool(jsonPath + ".enableNu
llAwareOperators", json["enableNullAwareOperators"]); |
7703 } | 7721 } |
| 7722 bool enableSuperMixins; |
| 7723 if (json.containsKey("enableSuperMixins")) { |
| 7724 enableSuperMixins = jsonDecoder._decodeBool(jsonPath + ".enableSuperMixi
ns", json["enableSuperMixins"]); |
| 7725 } |
7704 bool generateDart2jsHints; | 7726 bool generateDart2jsHints; |
7705 if (json.containsKey("generateDart2jsHints")) { | 7727 if (json.containsKey("generateDart2jsHints")) { |
7706 generateDart2jsHints = jsonDecoder._decodeBool(jsonPath + ".generateDart
2jsHints", json["generateDart2jsHints"]); | 7728 generateDart2jsHints = jsonDecoder._decodeBool(jsonPath + ".generateDart
2jsHints", json["generateDart2jsHints"]); |
7707 } | 7729 } |
7708 bool generateHints; | 7730 bool generateHints; |
7709 if (json.containsKey("generateHints")) { | 7731 if (json.containsKey("generateHints")) { |
7710 generateHints = jsonDecoder._decodeBool(jsonPath + ".generateHints", jso
n["generateHints"]); | 7732 generateHints = jsonDecoder._decodeBool(jsonPath + ".generateHints", jso
n["generateHints"]); |
7711 } | 7733 } |
7712 bool generateLints; | 7734 bool generateLints; |
7713 if (json.containsKey("generateLints")) { | 7735 if (json.containsKey("generateLints")) { |
7714 generateLints = jsonDecoder._decodeBool(jsonPath + ".generateLints", jso
n["generateLints"]); | 7736 generateLints = jsonDecoder._decodeBool(jsonPath + ".generateLints", jso
n["generateLints"]); |
7715 } | 7737 } |
7716 return new AnalysisOptions(enableAsync: enableAsync, enableDeferredLoading
: enableDeferredLoading, enableEnums: enableEnums, enableNullAwareOperators: ena
bleNullAwareOperators, generateDart2jsHints: generateDart2jsHints, generateHints
: generateHints, generateLints: generateLints); | 7738 return new AnalysisOptions(enableAsync: enableAsync, enableDeferredLoading
: enableDeferredLoading, enableEnums: enableEnums, enableNullAwareOperators: ena
bleNullAwareOperators, enableSuperMixins: enableSuperMixins, generateDart2jsHint
s: generateDart2jsHints, generateHints: generateHints, generateLints: generateLi
nts); |
7717 } else { | 7739 } else { |
7718 throw jsonDecoder.mismatch(jsonPath, "AnalysisOptions", json); | 7740 throw jsonDecoder.mismatch(jsonPath, "AnalysisOptions", json); |
7719 } | 7741 } |
7720 } | 7742 } |
7721 | 7743 |
7722 Map<String, dynamic> toJson() { | 7744 Map<String, dynamic> toJson() { |
7723 Map<String, dynamic> result = {}; | 7745 Map<String, dynamic> result = {}; |
7724 if (enableAsync != null) { | 7746 if (enableAsync != null) { |
7725 result["enableAsync"] = enableAsync; | 7747 result["enableAsync"] = enableAsync; |
7726 } | 7748 } |
7727 if (enableDeferredLoading != null) { | 7749 if (enableDeferredLoading != null) { |
7728 result["enableDeferredLoading"] = enableDeferredLoading; | 7750 result["enableDeferredLoading"] = enableDeferredLoading; |
7729 } | 7751 } |
7730 if (enableEnums != null) { | 7752 if (enableEnums != null) { |
7731 result["enableEnums"] = enableEnums; | 7753 result["enableEnums"] = enableEnums; |
7732 } | 7754 } |
7733 if (enableNullAwareOperators != null) { | 7755 if (enableNullAwareOperators != null) { |
7734 result["enableNullAwareOperators"] = enableNullAwareOperators; | 7756 result["enableNullAwareOperators"] = enableNullAwareOperators; |
7735 } | 7757 } |
| 7758 if (enableSuperMixins != null) { |
| 7759 result["enableSuperMixins"] = enableSuperMixins; |
| 7760 } |
7736 if (generateDart2jsHints != null) { | 7761 if (generateDart2jsHints != null) { |
7737 result["generateDart2jsHints"] = generateDart2jsHints; | 7762 result["generateDart2jsHints"] = generateDart2jsHints; |
7738 } | 7763 } |
7739 if (generateHints != null) { | 7764 if (generateHints != null) { |
7740 result["generateHints"] = generateHints; | 7765 result["generateHints"] = generateHints; |
7741 } | 7766 } |
7742 if (generateLints != null) { | 7767 if (generateLints != null) { |
7743 result["generateLints"] = generateLints; | 7768 result["generateLints"] = generateLints; |
7744 } | 7769 } |
7745 return result; | 7770 return result; |
7746 } | 7771 } |
7747 | 7772 |
7748 @override | 7773 @override |
7749 String toString() => JSON.encode(toJson()); | 7774 String toString() => JSON.encode(toJson()); |
7750 | 7775 |
7751 @override | 7776 @override |
7752 bool operator==(other) { | 7777 bool operator==(other) { |
7753 if (other is AnalysisOptions) { | 7778 if (other is AnalysisOptions) { |
7754 return enableAsync == other.enableAsync && | 7779 return enableAsync == other.enableAsync && |
7755 enableDeferredLoading == other.enableDeferredLoading && | 7780 enableDeferredLoading == other.enableDeferredLoading && |
7756 enableEnums == other.enableEnums && | 7781 enableEnums == other.enableEnums && |
7757 enableNullAwareOperators == other.enableNullAwareOperators && | 7782 enableNullAwareOperators == other.enableNullAwareOperators && |
| 7783 enableSuperMixins == other.enableSuperMixins && |
7758 generateDart2jsHints == other.generateDart2jsHints && | 7784 generateDart2jsHints == other.generateDart2jsHints && |
7759 generateHints == other.generateHints && | 7785 generateHints == other.generateHints && |
7760 generateLints == other.generateLints; | 7786 generateLints == other.generateLints; |
7761 } | 7787 } |
7762 return false; | 7788 return false; |
7763 } | 7789 } |
7764 | 7790 |
7765 @override | 7791 @override |
7766 int get hashCode { | 7792 int get hashCode { |
7767 int hash = 0; | 7793 int hash = 0; |
7768 hash = _JenkinsSmiHash.combine(hash, enableAsync.hashCode); | 7794 hash = _JenkinsSmiHash.combine(hash, enableAsync.hashCode); |
7769 hash = _JenkinsSmiHash.combine(hash, enableDeferredLoading.hashCode); | 7795 hash = _JenkinsSmiHash.combine(hash, enableDeferredLoading.hashCode); |
7770 hash = _JenkinsSmiHash.combine(hash, enableEnums.hashCode); | 7796 hash = _JenkinsSmiHash.combine(hash, enableEnums.hashCode); |
7771 hash = _JenkinsSmiHash.combine(hash, enableNullAwareOperators.hashCode); | 7797 hash = _JenkinsSmiHash.combine(hash, enableNullAwareOperators.hashCode); |
| 7798 hash = _JenkinsSmiHash.combine(hash, enableSuperMixins.hashCode); |
7772 hash = _JenkinsSmiHash.combine(hash, generateDart2jsHints.hashCode); | 7799 hash = _JenkinsSmiHash.combine(hash, generateDart2jsHints.hashCode); |
7773 hash = _JenkinsSmiHash.combine(hash, generateHints.hashCode); | 7800 hash = _JenkinsSmiHash.combine(hash, generateHints.hashCode); |
7774 hash = _JenkinsSmiHash.combine(hash, generateLints.hashCode); | 7801 hash = _JenkinsSmiHash.combine(hash, generateLints.hashCode); |
7775 return _JenkinsSmiHash.finish(hash); | 7802 return _JenkinsSmiHash.finish(hash); |
7776 } | 7803 } |
7777 } | 7804 } |
7778 | 7805 |
7779 /** | 7806 /** |
7780 * AnalysisService | 7807 * AnalysisService |
7781 * | 7808 * |
(...skipping 7756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15538 return false; | 15565 return false; |
15539 } | 15566 } |
15540 | 15567 |
15541 @override | 15568 @override |
15542 int get hashCode { | 15569 int get hashCode { |
15543 int hash = 0; | 15570 int hash = 0; |
15544 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); | 15571 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); |
15545 return _JenkinsSmiHash.finish(hash); | 15572 return _JenkinsSmiHash.finish(hash); |
15546 } | 15573 } |
15547 } | 15574 } |
OLD | NEW |