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

Unified Diff: pkg/analysis_server/tool/spec/generated/java/types/AnalysisOptions.java

Issue 1301533003: Plumb "enableSuperMixins" option through analysis server (implements DEP 34). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/tool/spec/generated/java/types/AnalysisOptions.java
diff --git a/pkg/analysis_server/tool/spec/generated/java/types/AnalysisOptions.java b/pkg/analysis_server/tool/spec/generated/java/types/AnalysisOptions.java
index fa91052452f3b7e45a0d02fe4c0b581442608edd..cefc5111d6eaa94064a4a1ccf1f058f717228b2f 100644
--- a/pkg/analysis_server/tool/spec/generated/java/types/AnalysisOptions.java
+++ b/pkg/analysis_server/tool/spec/generated/java/types/AnalysisOptions.java
@@ -73,6 +73,12 @@ public class AnalysisOptions {
private final Boolean enableNullAwareOperators;
/**
+ * True if the client wants to enable spport for the proposed "less restricted mixins" proposal
+ * (DEP 34).
+ */
+ private final Boolean enableSuperMixins;
+
+ /**
* True if hints that are specific to dart2js should be generated. This option is ignored if
* generateHints is false.
*/
@@ -91,11 +97,12 @@ public class AnalysisOptions {
/**
* Constructor for {@link AnalysisOptions}.
*/
- public AnalysisOptions(Boolean enableAsync, Boolean enableDeferredLoading, Boolean enableEnums, Boolean enableNullAwareOperators, Boolean generateDart2jsHints, Boolean generateHints, Boolean generateLints) {
+ public AnalysisOptions(Boolean enableAsync, Boolean enableDeferredLoading, Boolean enableEnums, Boolean enableNullAwareOperators, Boolean enableSuperMixins, Boolean generateDart2jsHints, Boolean generateHints, Boolean generateLints) {
this.enableAsync = enableAsync;
this.enableDeferredLoading = enableDeferredLoading;
this.enableEnums = enableEnums;
this.enableNullAwareOperators = enableNullAwareOperators;
+ this.enableSuperMixins = enableSuperMixins;
this.generateDart2jsHints = generateDart2jsHints;
this.generateHints = generateHints;
this.generateLints = generateLints;
@@ -110,6 +117,7 @@ public class AnalysisOptions {
ObjectUtilities.equals(other.enableDeferredLoading, enableDeferredLoading) &&
ObjectUtilities.equals(other.enableEnums, enableEnums) &&
ObjectUtilities.equals(other.enableNullAwareOperators, enableNullAwareOperators) &&
+ ObjectUtilities.equals(other.enableSuperMixins, enableSuperMixins) &&
ObjectUtilities.equals(other.generateDart2jsHints, generateDart2jsHints) &&
ObjectUtilities.equals(other.generateHints, generateHints) &&
ObjectUtilities.equals(other.generateLints, generateLints);
@@ -122,10 +130,11 @@ public class AnalysisOptions {
Boolean enableDeferredLoading = jsonObject.get("enableDeferredLoading") == null ? null : jsonObject.get("enableDeferredLoading").getAsBoolean();
Boolean enableEnums = jsonObject.get("enableEnums") == null ? null : jsonObject.get("enableEnums").getAsBoolean();
Boolean enableNullAwareOperators = jsonObject.get("enableNullAwareOperators") == null ? null : jsonObject.get("enableNullAwareOperators").getAsBoolean();
+ Boolean enableSuperMixins = jsonObject.get("enableSuperMixins") == null ? null : jsonObject.get("enableSuperMixins").getAsBoolean();
Boolean generateDart2jsHints = jsonObject.get("generateDart2jsHints") == null ? null : jsonObject.get("generateDart2jsHints").getAsBoolean();
Boolean generateHints = jsonObject.get("generateHints") == null ? null : jsonObject.get("generateHints").getAsBoolean();
Boolean generateLints = jsonObject.get("generateLints") == null ? null : jsonObject.get("generateLints").getAsBoolean();
- return new AnalysisOptions(enableAsync, enableDeferredLoading, enableEnums, enableNullAwareOperators, generateDart2jsHints, generateHints, generateLints);
+ return new AnalysisOptions(enableAsync, enableDeferredLoading, enableEnums, enableNullAwareOperators, enableSuperMixins, generateDart2jsHints, generateHints, generateLints);
}
public static List<AnalysisOptions> fromJsonArray(JsonArray jsonArray) {
@@ -177,6 +186,14 @@ public class AnalysisOptions {
}
/**
+ * True if the client wants to enable spport for the proposed "less restricted mixins" proposal
+ * (DEP 34).
+ */
+ public Boolean getEnableSuperMixins() {
+ return enableSuperMixins;
+ }
+
+ /**
* True if hints that are specific to dart2js should be generated. This option is ignored if
* generateHints is false.
*/
@@ -205,6 +222,7 @@ public class AnalysisOptions {
builder.append(enableDeferredLoading);
builder.append(enableEnums);
builder.append(enableNullAwareOperators);
+ builder.append(enableSuperMixins);
builder.append(generateDart2jsHints);
builder.append(generateHints);
builder.append(generateLints);
@@ -225,6 +243,9 @@ public class AnalysisOptions {
if (enableNullAwareOperators != null) {
jsonObject.addProperty("enableNullAwareOperators", enableNullAwareOperators);
}
+ if (enableSuperMixins != null) {
+ jsonObject.addProperty("enableSuperMixins", enableSuperMixins);
+ }
if (generateDart2jsHints != null) {
jsonObject.addProperty("generateDart2jsHints", generateDart2jsHints);
}
@@ -249,6 +270,8 @@ public class AnalysisOptions {
builder.append(enableEnums + ", ");
builder.append("enableNullAwareOperators=");
builder.append(enableNullAwareOperators + ", ");
+ builder.append("enableSuperMixins=");
+ builder.append(enableSuperMixins + ", ");
builder.append("generateDart2jsHints=");
builder.append(generateDart2jsHints + ", ");
builder.append("generateHints=");
« no previous file with comments | « pkg/analysis_server/test/integration/protocol_matchers.dart ('k') | pkg/analysis_server/tool/spec/spec_input.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698