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

Unified Diff: pkg/analysis_server/lib/src/operation/operation_analysis.dart

Issue 367793002: Update Element/navigation/outline to use Location. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Forgotten file Created 6 years, 6 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/computer/element.dart ('k') | pkg/analysis_server/test/abstract_context.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/operation/operation_analysis.dart
diff --git a/pkg/analysis_server/lib/src/operation/operation_analysis.dart b/pkg/analysis_server/lib/src/operation/operation_analysis.dart
index 14316a3687799ee94426946fe094b8b862fd19cc..ce9597fabb54b723ebfa514cdab1797998d1b558 100644
--- a/pkg/analysis_server/lib/src/operation/operation_analysis.dart
+++ b/pkg/analysis_server/lib/src/operation/operation_analysis.dart
@@ -84,12 +84,12 @@ void sendAnalysisNotificationNavigation(AnalysisServer server, String file,
}
-void sendAnalysisNotificationOutline(AnalysisServer server, String file,
- CompilationUnit dartUnit) {
+void sendAnalysisNotificationOutline(AnalysisServer server,
+ AnalysisContext context, Source source, CompilationUnit dartUnit) {
Notification notification = new Notification(ANALYSIS_OUTLINE);
- notification.setParameter(FILE, file);
- notification.setParameter(OUTLINE, new DartUnitOutlineComputer(
- dartUnit).compute());
+ notification.setParameter(FILE, source.fullName);
+ notification.setParameter(OUTLINE, new DartUnitOutlineComputer(context,
+ source, dartUnit).compute());
server.sendNotification(notification);
}
@@ -153,7 +153,7 @@ class PerformAnalysisOperation extends ServerOperation {
sendAnalysisNotificationNavigation(server, file, dartUnit);
}
if (server.hasAnalysisSubscription(AnalysisService.OUTLINE, file)) {
- sendAnalysisNotificationOutline(server, file, dartUnit);
+ sendAnalysisNotificationOutline(server, context, source, dartUnit);
}
}
// TODO(scheglov) use default subscriptions
« no previous file with comments | « pkg/analysis_server/lib/src/computer/element.dart ('k') | pkg/analysis_server/test/abstract_context.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698