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

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

Issue 1722343002: Use the 'analysisOption.strongMode' option in package analyzer. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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/package_analyzer.dart
diff --git a/pkg/analyzer_cli/lib/src/package_analyzer.dart b/pkg/analyzer_cli/lib/src/package_analyzer.dart
index 1b9c978dda138b4f4f05789f0501550315f150da..b4563c3c047b2eeac81829a9dd99a4a021f39391 100644
--- a/pkg/analyzer_cli/lib/src/package_analyzer.dart
+++ b/pkg/analyzer_cli/lib/src/package_analyzer.dart
@@ -96,7 +96,7 @@ class FileBasedSummaryResynthesizer extends SummaryResynthesizer {
}
/**
- * The [ResourceProvider] that provides results from input package summaries.
+ * The [ResultProvider] that provides results from input package summaries.
*/
class InputPackagesResultProvider extends ResultProvider {
final InternalAnalysisContext context;
@@ -116,7 +116,7 @@ class InputPackagesResultProvider extends ResultProvider {
context,
context.typeProvider,
context.sourceFactory,
- false,
+ context.analysisOptions.strongMode,
packageSummaryInputs.values.toList());
}
@@ -358,12 +358,14 @@ class PackageAnalyzer {
}),
new FileUriResolver()
]);
- context.resultProvider =
- new InputPackagesResultProvider(context, options.packageSummaryInputs);
// Set context options.
Driver.setAnalysisContextOptions(
context, options, (AnalysisOptionsImpl contextOptions) {});
+
+ // Set the result provider.
+ context.resultProvider =
+ new InputPackagesResultProvider(context, options.packageSummaryInputs);
}
/**
« 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