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

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

Issue 589843002: Reset refactoring manager on any analysis. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | « no previous file | pkg/analysis_server/lib/src/domain_execution.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 1236eb9f99d5135c3241124678f4db8cbd63f3e3..447af90be2a6a997ba97cda0a4f08c478ed822bf 100644
--- a/pkg/analysis_server/lib/src/analysis_server.dart
+++ b/pkg/analysis_server/lib/src/analysis_server.dart
@@ -256,6 +256,7 @@ class AnalysisServer {
* Schedules analysis of the given context.
*/
void schedulePerformAnalysisOperation(AnalysisContext context) {
+ _notifyAnalysisStarted(context);
scheduleOperation(new PerformAnalysisOperation(context, false));
}
@@ -903,6 +904,15 @@ class AnalysisServer {
}
/**
+ * Notify all listeners that analysis of [context] is started.
+ */
+ void _notifyAnalysisStarted(AnalysisContext context) {
+ listeners.forEach((AnalysisServerListener listener) {
+ listener.analysisStarted(context);
+ });
+ }
+
+ /**
* Notify all listeners that analysis is complete.
*/
void _notifyAnalysisComplete() {
@@ -953,6 +963,11 @@ abstract class AnalysisServerListener {
* Analysis is complete.
*/
void analysisComplete();
+
+ /**
+ * Analysis is started.
+ */
+ void analysisStarted(AnalysisContext context);
}
typedef void OptionUpdater(AnalysisOptionsImpl options);
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/domain_execution.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698