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

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

Issue 2491843002: Support for AnalysisService.OVERRIDES with the new analysis driver. (Closed)
Patch Set: Created 4 years, 1 month 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 | no next file » | 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 4a1cb93bbe862c625c074a049ac90794ce9b6cbe..8571810fa13f6366e1045ffb0a4f17d3acbc55a6 100644
--- a/pkg/analysis_server/lib/src/analysis_server.dart
+++ b/pkg/analysis_server/lib/src/analysis_server.dart
@@ -1772,25 +1772,31 @@ class ServerContextManagerCallbacks extends ContextManagerCallbacks {
_runDelayed(() {
new_sendErrorNotification(analysisServer, result);
});
+ String path = result.path;
CompilationUnit unit = result.unit;
if (unit != null) {
if (analysisServer._hasAnalysisServiceSubscription(
- AnalysisService.HIGHLIGHTS, result.path)) {
+ AnalysisService.HIGHLIGHTS, path)) {
_runDelayed(() {
sendAnalysisNotificationHighlights(
- analysisServer, result.path, unit);
+ analysisServer, path, unit);
});
}
if (analysisServer._hasAnalysisServiceSubscription(
- AnalysisService.NAVIGATION, result.path)) {
+ AnalysisService.NAVIGATION, path)) {
_runDelayed(() {
new_sendDartNotificationNavigation(analysisServer, result);
});
}
+ if (analysisServer._hasAnalysisServiceSubscription(
+ AnalysisService.OVERRIDES, path)) {
+ _runDelayed(() {
+ sendAnalysisNotificationOverrides(analysisServer, path, unit);
+ });
+ }
}
// TODO(scheglov) Implement more notifications.
// IMPLEMENTED
- // OVERRIDES
// OCCURRENCES (not used in IDEA)
// OUTLINE (not used in IDEA)
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698