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

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

Issue 2054443002: Add analysis option that will be used to fix #26583 (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 6d41c4fb044afd87ebad885f5740ee7c495735ed..2c4c4df8cfae9243efb4fae7aad6a98393b51604 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -1284,6 +1284,14 @@ class AnalysisOptionsImpl implements AnalysisOptions {
bool strongModeHints = false;
/**
+ * A flag indicating whether implicit casts are allowed in [strongMode]
+ * (they are always allowed in Dart 1.0 mode).
+ *
+ * This option is experimental and subject to change.
+ */
+ bool implicitCasts = true;
+
+ /**
* Initialize a newly created set of analysis options to have their default
* values.
*/
@@ -1314,6 +1322,7 @@ class AnalysisOptionsImpl implements AnalysisOptions {
strongMode = options.strongMode;
if (options is AnalysisOptionsImpl) {
strongModeHints = options.strongModeHints;
+ implicitCasts = options.implicitCasts;
}
}

Powered by Google App Engine
This is Rietveld 408576698