Index: pkg/analysis_server/lib/src/computer/new_notifications.dart |
diff --git a/pkg/analysis_server/lib/src/computer/new_notifications.dart b/pkg/analysis_server/lib/src/computer/new_notifications.dart |
index edbdc62b561075bfe6fe154c18a0f51c5dc7bbf7..b4e3460c9a052af0e523266015a5f8f0e770af7f 100644 |
--- a/pkg/analysis_server/lib/src/computer/new_notifications.dart |
+++ b/pkg/analysis_server/lib/src/computer/new_notifications.dart |
@@ -4,10 +4,25 @@ |
import 'package:analysis_server/plugin/protocol/protocol.dart' as protocol; |
import 'package:analysis_server/src/analysis_server.dart' show AnalysisServer; |
+import 'package:analysis_server/src/domains/analysis/navigation.dart'; |
+import 'package:analysis_server/src/domains/analysis/navigation_dart.dart'; |
import 'package:analysis_server/src/protocol_server.dart' as protocol; |
import 'package:analyzer/error/error.dart'; |
import 'package:analyzer/src/dart/analysis/driver.dart'; |
+void new_sendDartNotificationNavigation( |
+ AnalysisServer analysisServer, AnalysisResult result) { |
+ var unit = result.unit; |
+ if (unit != null) { |
+ NavigationCollectorImpl collector = new NavigationCollectorImpl(); |
+ computeSimpleDartNavigation(collector, unit); |
+ collector.createRegions(); |
+ var params = new protocol.AnalysisNavigationParams( |
+ result.path, collector.regions, collector.targets, collector.files); |
+ analysisServer.sendNotification(params.toNotification()); |
+ } |
+} |
+ |
void new_sendErrorNotification( |
AnalysisServer analysisServer, AnalysisResult result) { |
var serverErrors = <protocol.AnalysisError>[]; |