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

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

Issue 311653002: Extract analysis/notifications into a separate operation/file. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweak for the test method name. Created 6 years, 7 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.dart
diff --git a/pkg/analysis_server/lib/src/operation/operation.dart b/pkg/analysis_server/lib/src/operation/operation.dart
index e6f4e3402ed4af7baa5bb1e1fc67773d843e9c30..e7ce47a7a6ae8435606371d1f5706d5619a550c1 100644
--- a/pkg/analysis_server/lib/src/operation/operation.dart
+++ b/pkg/analysis_server/lib/src/operation/operation.dart
@@ -5,7 +5,6 @@
library operation;
import 'package:analysis_server/src/analysis_server.dart';
-import 'package:analyzer/src/generated/engine.dart' show AnalysisContext;
/**
@@ -46,28 +45,3 @@ abstract class ServerOperation {
*/
void perform(AnalysisServer server);
}
-
-
-/**
- * Instances of [PerformAnalysisOperation] perform a single analysis task.
- */
-class PerformAnalysisOperation extends ServerOperation {
- final AnalysisContext context;
- final bool isContinue;
-
- PerformAnalysisOperation(this.context, this.isContinue);
-
- @override
- ServerOperationPriority get priority {
- if (isContinue) {
- return ServerOperationPriority.ANALYSIS_CONTINUE;
- } else {
- return ServerOperationPriority.ANALYSIS;
- }
- }
-
- @override
- void perform(AnalysisServer server) {
- server.internalPerformAnalysis(context);
- }
-}

Powered by Google App Engine
This is Rietveld 408576698