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

Unified Diff: pkg/analysis_server/lib/src/context_manager.dart

Issue 800913002: Report pub status (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 6 years 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
Index: pkg/analysis_server/lib/src/context_manager.dart
diff --git a/pkg/analysis_server/lib/src/context_manager.dart b/pkg/analysis_server/lib/src/context_manager.dart
index 02ac2199b521424fee053906a673d3e48b7afc20..38c3c2df3c71c67e91cf0fddd770af0c146efdb3 100644
--- a/pkg/analysis_server/lib/src/context_manager.dart
+++ b/pkg/analysis_server/lib/src/context_manager.dart
@@ -97,6 +97,20 @@ abstract class ContextManager {
void applyChangesToContext(Folder contextFolder, ChangeSet changeSet);
/**
+ * We are about to start computing the package map.
+ */
+ void beginComputePackageMap() {
+ // Do nothing.
+ }
+
+ /**
+ * We have finished computing the package map.
+ */
+ void endComputePackageMap() {
+ // Do nothing.
+ }
+
+ /**
* Returns `true` if the given absolute [path] is in one of the current
* root folders and is not excluded.
*/
@@ -306,8 +320,10 @@ abstract class ContextManager {
packageUriResolver =
new PackageUriResolver([new JavaFile(info.packageRoot)]);
} else {
+ beginComputePackageMap();
PackageMapInfo packageMapInfo =
_packageMapProvider.computePackageMap(folder);
+ endComputePackageMap();
info.packageMapDependencies = packageMapInfo.dependencies;
packageUriResolver =
new PackageMapUriResolver(resourceProvider, packageMapInfo.packageMap);
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_server.dart ('k') | pkg/analysis_server/lib/src/generated_protocol.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698