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

Unified Diff: pkg/analyzer/lib/src/context/builder.dart

Issue 2698133002: Remove PubSummaryManager. (Closed)
Patch Set: Created 3 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/analysis_server/lib/src/server/driver.dart ('k') | pkg/analyzer/lib/src/summary/pub_summary.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/context/builder.dart
diff --git a/pkg/analyzer/lib/src/context/builder.dart b/pkg/analyzer/lib/src/context/builder.dart
index fe6f5c3db81a532b6cd4d621eb3704e0298ba167..2d8b0f14a5ef548f6428bd5219fb070827cc96ab 100644
--- a/pkg/analyzer/lib/src/context/builder.dart
+++ b/pkg/analyzer/lib/src/context/builder.dart
@@ -25,8 +25,6 @@ import 'package:analyzer/src/generated/gn.dart';
import 'package:analyzer/src/generated/sdk.dart';
import 'package:analyzer/src/generated/source.dart';
import 'package:analyzer/src/generated/workspace.dart';
-import 'package:analyzer/src/summary/package_bundle_reader.dart';
-import 'package:analyzer/src/summary/pub_summary.dart';
import 'package:analyzer/src/summary/summary_sdk.dart';
import 'package:analyzer/src/task/options.dart';
import 'package:args/args.dart';
@@ -140,7 +138,6 @@ class ContextBuilder {
context.name = path;
//_processAnalysisOptions(context, optionMap);
declareVariables(context);
- configureSummaries(context);
return context;
}
@@ -164,25 +161,6 @@ class ContextBuilder {
return driver;
}
- /**
- * Configure the context to make use of summaries.
- */
- void configureSummaries(InternalAnalysisContext context) {
- PubSummaryManager manager = builderOptions.pubSummaryManager;
- if (manager != null) {
- List<LinkedPubPackage> linkedBundles = manager.getLinkedBundles(context);
- if (linkedBundles.isNotEmpty) {
- SummaryDataStore store = new SummaryDataStore([]);
- for (LinkedPubPackage package in linkedBundles) {
- store.addBundle(null, package.unlinked);
- store.addBundle(null, package.linked);
- }
- context.resultProvider =
- new InputPackagesResultProvider(context, store);
- }
- }
- }
-
Map<String, List<Folder>> convertPackagesToMap(Packages packages) {
Map<String, List<Folder>> folderMap = new HashMap<String, List<Folder>>();
if (packages != null && packages != Packages.noPackages) {
@@ -628,11 +606,6 @@ class ContextBuilderOptions {
String defaultPackagesDirectoryPath;
/**
- * The manager of pub package summaries.
- */
- PubSummaryManager pubSummaryManager;
-
- /**
* Initialize a newly created set of options
*/
ContextBuilderOptions();
« no previous file with comments | « pkg/analysis_server/lib/src/server/driver.dart ('k') | pkg/analyzer/lib/src/summary/pub_summary.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698