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

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

Issue 1734773003: Fix for using the strong mode SDK summary. (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 | « pkg/analyzer/lib/src/generated/sdk_io.dart ('k') | 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 ec2cfef606b5c6cfd047658f1b784bcda0196002..51cacf2a13c421697a1a35e62f59265d221c6ef3 100644
--- a/pkg/analyzer_cli/lib/src/package_analyzer.dart
+++ b/pkg/analyzer_cli/lib/src/package_analyzer.dart
@@ -342,11 +342,9 @@ class PackageAnalyzer {
void _createContext() {
DirectoryBasedDartSdk sdk = DirectoryBasedDartSdk.defaultSdk;
- sdk.useSummary = true;
// Create the context.
context = AnalysisEngine.instance.createAnalysisContext();
- context.typeProvider = sdk.context.typeProvider;
context.sourceFactory = new SourceFactory(<UriResolver>[
new DartUriResolver(sdk),
new InSummaryPackageUriResolver(options.packageSummaryInputs),
@@ -362,7 +360,9 @@ class PackageAnalyzer {
Driver.setAnalysisContextOptions(
context, options, (AnalysisOptionsImpl contextOptions) {});
- // Set the result provider.
+ // Configure using summaries.
+ sdk.useSummary = true;
+ context.typeProvider = sdk.context.typeProvider;
context.resultProvider =
new InputPackagesResultProvider(context, options.packageSummaryInputs);
}
« no previous file with comments | « pkg/analyzer/lib/src/generated/sdk_io.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698