| 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 e7ce47a7a6ae8435606371d1f5706d5619a550c1..5ae3e10038852b009b5631d7930e9696630cb4ea 100644
|
| --- a/pkg/analysis_server/lib/src/operation/operation.dart
|
| +++ b/pkg/analysis_server/lib/src/operation/operation.dart
|
| @@ -8,29 +8,6 @@ import 'package:analysis_server/src/analysis_server.dart';
|
|
|
|
|
| /**
|
| - * The enumeration [ServerOperationPriority] defines the priority levels used
|
| - * to organize [ServerOperation]s in an optimal order. A smaller ordinal value
|
| - * equates to a higher priority.
|
| - */
|
| -class ServerOperationPriority {
|
| - final int ordinal;
|
| - final String name;
|
| -
|
| - static const int COUNT = 4;
|
| -
|
| - static const ServerOperationPriority ANALYSIS_CONTINUE = const ServerOperationPriority._(0, "ANALYSIS_CONTINUE");
|
| - static const ServerOperationPriority ANALYSIS = const ServerOperationPriority._(1, "ANALYSIS");
|
| - static const ServerOperationPriority SEARCH = const ServerOperationPriority._(2, "SEARCH");
|
| - static const ServerOperationPriority REFACTORING = const ServerOperationPriority._(3, "REFACTORING");
|
| -
|
| - @override
|
| - String toString() => name;
|
| -
|
| - const ServerOperationPriority._(this.ordinal, this.name);
|
| -}
|
| -
|
| -
|
| -/**
|
| * The class [ServerOperation] defines the behavior of objects used to perform
|
| * operations on a [AnalysisServer].
|
| */
|
| @@ -45,3 +22,30 @@ abstract class ServerOperation {
|
| */
|
| void perform(AnalysisServer server);
|
| }
|
| +
|
| +
|
| +/**
|
| + * The enumeration [ServerOperationPriority] defines the priority levels used
|
| + * to organize [ServerOperation]s in an optimal order. A smaller ordinal value
|
| + * equates to a higher priority.
|
| + */
|
| +class ServerOperationPriority {
|
| + static const int COUNT = 4;
|
| + static const ServerOperationPriority ANALYSIS_CONTINUE =
|
| + const ServerOperationPriority._(0, "ANALYSIS_CONTINUE");
|
| +
|
| + static const ServerOperationPriority ANALYSIS =
|
| + const ServerOperationPriority._(1, "ANALYSIS");
|
| +
|
| + static const ServerOperationPriority SEARCH =
|
| + const ServerOperationPriority._(2, "SEARCH");
|
| + static const ServerOperationPriority REFACTORING =
|
| + const ServerOperationPriority._(3, "REFACTORING");
|
| + final int ordinal;
|
| + final String name;
|
| +
|
| + const ServerOperationPriority._(this.ordinal, this.name);
|
| +
|
| + @override
|
| + String toString() => name;
|
| +}
|
|
|