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

Unified Diff: lib/src/driver.dart

Issue 1398573002: Use task model for strong mode (Closed) Base URL: https://github.com/dart-lang/analyzer_cli.git@master
Patch Set: Update version Created 5 years, 2 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 | « no previous file | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/driver.dart
diff --git a/lib/src/driver.dart b/lib/src/driver.dart
index 925dcf69eb671de50cb9fb036e69bdd332451273..37968dd2617ef713a24b8fe88f438421e05105ee 100644
--- a/lib/src/driver.dart
+++ b/lib/src/driver.dart
@@ -366,7 +366,7 @@ class Driver {
// that.
// TODO(paulberry): simplify this logic when strong mode supports the new
// task model.
- if (options.strongMode || options.disableNewTaskModel) {
+ if (options.disableNewTaskModel) {
AnalysisEngine.instance.useTaskModel = false;
} else {
AnalysisEngine.instance.useTaskModel = true;
@@ -410,6 +410,7 @@ class Driver {
contextOptions.generateImplicitErrors = options.showPackageWarnings;
contextOptions.generateSdkErrors = options.showSdkWarnings;
contextOptions.lint = options.lints;
+ contextOptions.strongMode = options.strongMode;
context.analysisOptions = contextOptions;
_context = context;
« no previous file with comments | « no previous file | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698