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

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

Issue 2571513002: Implement 'analysis.outline' for the new analysis driver. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | pkg/analysis_server/test/integration/analysis/get_errors_before_analysis_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/analysis_server.dart
diff --git a/pkg/analysis_server/lib/src/analysis_server.dart b/pkg/analysis_server/lib/src/analysis_server.dart
index a241918b8ad5b184209f1df203fbceb0609ebc4c..e1d914d837428c60deb2c29c6adb86a164a0efa3 100644
--- a/pkg/analysis_server/lib/src/analysis_server.dart
+++ b/pkg/analysis_server/lib/src/analysis_server.dart
@@ -1856,11 +1856,20 @@ class ServerContextManagerCallbacks extends ContextManagerCallbacks {
sendAnalysisNotificationOverrides(analysisServer, path, unit);
});
}
+ if (analysisServer._hasAnalysisServiceSubscription(
+ AnalysisService.OUTLINE, path)) {
+ _runDelayed(() {
+ SourceKind sourceKind =
+ unit.directives.any((d) => d is PartOfDirective)
+ ? SourceKind.PART
+ : SourceKind.LIBRARY;
+ sendAnalysisNotificationOutline(
+ analysisServer, path, result.lineInfo, sourceKind, unit);
+ });
+ }
}
// TODO(scheglov) Implement more notifications.
// IMPLEMENTED
- // OCCURRENCES (not used in IDEA)
- // OUTLINE (not used in IDEA)
});
analysisDriver.exceptions.listen((nd.ExceptionResult result) {
AnalysisEngine.instance.logger
« no previous file with comments | « no previous file | pkg/analysis_server/test/integration/analysis/get_errors_before_analysis_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698