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

Unified Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 2093523002: fix #25573, add option to disable implicit dynamic (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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/analyzer/lib/src/generated/engine.dart
diff --git a/pkg/analyzer/lib/src/generated/engine.dart b/pkg/analyzer/lib/src/generated/engine.dart
index 4e677928657cb3e4f227e36f17f5adf0be735fbb..3eecc29548bf4f64b72a3cc7e81bea669e187711 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -1310,6 +1310,18 @@ class AnalysisOptionsImpl implements AnalysisOptions {
bool implicitCasts = true;
/**
+ * A flag indicating whether implicit dynamic type is allowed, on by default.
+ *
+ * This flag can be used without necessarily enabling [strongMode], but it is
+ * designed with strong mode's type inference in mind. Without type inference,
+ * it will raise many errors. Also it does not provide type safety without
+ * strong mode.
+ *
+ * This option is experimental and subject to change.
+ */
+ bool implicitDynamic = true;
+
+ /**
* Initialize a newly created set of analysis options to have their default
* values.
*/
@@ -1341,6 +1353,7 @@ class AnalysisOptionsImpl implements AnalysisOptions {
if (options is AnalysisOptionsImpl) {
strongModeHints = options.strongModeHints;
implicitCasts = options.implicitCasts;
+ implicitDynamic = options.implicitDynamic;
}
trackCacheDependencies = options.trackCacheDependencies;
}

Powered by Google App Engine
This is Rietveld 408576698