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

Unified Diff: pkg/analyzer_cli/lib/src/driver.dart

Issue 1644093002: Set the SDK analysis options in analyzer_cli (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_cli/lib/src/driver.dart
diff --git a/pkg/analyzer_cli/lib/src/driver.dart b/pkg/analyzer_cli/lib/src/driver.dart
index 19b7af4c977dfadd44b981bded9185911cf2d3c9..4998f07fcb2e6f49f087b97b2af49c728c1ec105 100644
--- a/pkg/analyzer_cli/lib/src/driver.dart
+++ b/pkg/analyzer_cli/lib/src/driver.dart
@@ -454,6 +454,7 @@ class Driver {
contextOptions.lint = options.lints;
contextOptions.strongMode = options.strongMode;
context.analysisOptions = contextOptions;
+ sourceFactory.dartSdk.context.analysisOptions = contextOptions;
_context = context;
// Process analysis options file (and notify all interested parties).
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698