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

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
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c653b6eebafe1908d0e228234c3d99ca5b6de86c..61816abfc77dd97d5328a247a56deae4088e0948 100644
--- a/pkg/analyzer/lib/src/generated/engine.dart
+++ b/pkg/analyzer/lib/src/generated/engine.dart
@@ -1295,6 +1295,14 @@ class AnalysisOptionsImpl implements AnalysisOptions {
bool trackCacheDependencies = true;
/**
+ * 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.
*/
@@ -1325,6 +1333,7 @@ class AnalysisOptionsImpl implements AnalysisOptions {
strongMode = options.strongMode;
if (options is AnalysisOptionsImpl) {
strongModeHints = options.strongModeHints;
+ implicitCasts = options.implicitCasts;
}
trackCacheDependencies = options.trackCacheDependencies;
}
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698