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

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

Issue 1232393005: Add notification of analyzed files (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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
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 ebe71e739983767ac35d9ce4267b3db052f427e6..228e0ae5c38313a5461b70d77c400ded69e07242 100644
--- a/pkg/analysis_server/lib/src/operation/operation_analysis.dart
+++ b/pkg/analysis_server/lib/src/operation/operation_analysis.dart
@@ -12,6 +12,7 @@ import 'package:analysis_server/src/computer/computer_outline.dart';
import 'package:analysis_server/src/computer/computer_overrides.dart';
import 'package:analysis_server/src/operation/operation.dart';
import 'package:analysis_server/src/protocol_server.dart' as protocol;
+import 'package:analysis_server/src/services/dependencies/library_dependencies.dart';
import 'package:analysis_server/src/services/index/index.dart';
import 'package:analyzer/src/generated/ast.dart';
import 'package:analyzer/src/generated/engine.dart';
@@ -98,6 +99,17 @@ void scheduleNotificationOperations(AnalysisServer server, String file,
}
}
+void sendAnalysisNotificationAnalyzedFiles(AnalysisServer server) {
+ _sendNotification(server, () {
+ LibraryDependencyCollector collector =
+ new LibraryDependencyCollector(server.getAnalysisContexts().toList());
+ Set<String> directories = collector.collectLibraryDependencies();
+ protocol.AnalysisAnalyzedFilesParams params =
+ new protocol.AnalysisAnalyzedFilesParams(directories.toList());
+ server.sendNotification(params.toNotification());
+ });
+}
+
void sendAnalysisNotificationErrors(AnalysisServer server, String file,
LineInfo lineInfo, List<AnalysisError> errors) {
_sendNotification(server, () {

Powered by Google App Engine
This is Rietveld 408576698