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

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

Issue 869153003: Prioritize analysis operations for contexts with priority files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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/operation/operation_analysis.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 644435888d35b6736c9f2f0cbb75beb5245b4366..9448ea7d143211606b3bfb6c0af856b75aace656 100644
--- a/pkg/analysis_server/lib/src/analysis_server.dart
+++ b/pkg/analysis_server/lib/src/analysis_server.dart
@@ -647,8 +647,7 @@ class AnalysisServer {
*/
void schedulePerformAnalysisOperation(AnalysisContext context) {
_onAnalysisStartedController.add(context);
- bool isPriority = _isPriorityContext(context);
- scheduleOperation(new PerformAnalysisOperation(context, isPriority, false));
+ scheduleOperation(new PerformAnalysisOperation(context, false));
}
/**
@@ -831,6 +830,7 @@ class AnalysisServer {
}
context.analysisPriorityOrder = sourceList;
});
+ operationQueue.reschedule();
Source firstSource = files.length > 0 ? getSource(files[0]) : null;
_onPriorityChangeController.add(new PriorityChangeEvent(firstSource));
}
@@ -929,14 +929,6 @@ class AnalysisServer {
}
/**
- * Returns `true` if the given [AnalysisContext] is a priority one.
- */
- bool _isPriorityContext(AnalysisContext context) {
- // TODO(scheglov) implement support for priority sources/contexts
- return false;
- }
-
- /**
* Schedules [performOperation] exection.
*/
void _schedulePerformOperation() {
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/operation/operation_analysis.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698