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

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

Issue 874373003: Library dependencies server API updates (to pass package maps). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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 | « pkg/analysis_server/doc/api.html ('k') | pkg/analysis_server/lib/src/generated_protocol.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/domain_analysis.dart
===================================================================
--- pkg/analysis_server/lib/src/domain_analysis.dart (revision 43154)
+++ pkg/analysis_server/lib/src/domain_analysis.dart (working copy)
@@ -90,10 +90,12 @@
/// Implement the `analysis.getLibraryDependencies` request.
Response getLibraryDependencies(Request request) {
- Set<String> libraries = new LibraryDependencyCollector(
- server.getAnalysisContexts()).collectLibraryDependencies();
+ LibraryDependencyCollector collector = new LibraryDependencyCollector(
+ server.getAnalysisContexts());
+ Set<String> libraries = collector.collectLibraryDependencies();
+ Map<String, Map<String, List<String>>> packageMap = collector.calculatePackageMap(server.folderMap);
return new AnalysisGetLibraryDependenciesResult(
- libraries.toList(growable: false)).toResponse(request.id);
+ libraries.toList(growable: false), packageMap).toResponse(request.id);
}
@override
« no previous file with comments | « pkg/analysis_server/doc/api.html ('k') | pkg/analysis_server/lib/src/generated_protocol.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698