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

Side by Side Diff: pkg/analysis_server/lib/src/operation/operation.dart

Issue 847663005: Send notifications using separate server operations. (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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library operation; 5 library operation;
6 6
7 import 'package:analysis_server/src/analysis_server.dart'; 7 import 'package:analysis_server/src/analysis_server.dart';
8 8
9 9
10 /** 10 /**
(...skipping 12 matching lines...) Expand all
23 void perform(AnalysisServer server); 23 void perform(AnalysisServer server);
24 } 24 }
25 25
26 26
27 /** 27 /**
28 * The enumeration [ServerOperationPriority] defines the priority levels used 28 * The enumeration [ServerOperationPriority] defines the priority levels used
29 * to organize [ServerOperation]s in an optimal order. A smaller ordinal value 29 * to organize [ServerOperation]s in an optimal order. A smaller ordinal value
30 * equates to a higher priority. 30 * equates to a higher priority.
31 */ 31 */
32 class ServerOperationPriority { 32 class ServerOperationPriority {
33 static const int COUNT = 4; 33 static const int COUNT = 5;
34
35 static const ServerOperationPriority ANALYSIS_NOTIFICATION =
36 const ServerOperationPriority._(0, "ANALYSIS_NOTIFICATION");
37
38 static const ServerOperationPriority PRIORITY_ANALYSIS_CONTINUE =
39 const ServerOperationPriority._(1, "PRIORITY_ANALYSIS_CONTINUE");
40
41 static const ServerOperationPriority PRIORITY_ANALYSIS =
42 const ServerOperationPriority._(2, "PRIORITY_ANALYSIS");
43
34 static const ServerOperationPriority ANALYSIS_CONTINUE = 44 static const ServerOperationPriority ANALYSIS_CONTINUE =
35 const ServerOperationPriority._(0, "ANALYSIS_CONTINUE"); 45 const ServerOperationPriority._(3, "ANALYSIS_CONTINUE");
36 46
37 static const ServerOperationPriority ANALYSIS = 47 static const ServerOperationPriority ANALYSIS =
38 const ServerOperationPriority._(1, "ANALYSIS"); 48 const ServerOperationPriority._(4, "ANALYSIS");
39 49
40 static const ServerOperationPriority SEARCH =
41 const ServerOperationPriority._(2, "SEARCH");
42 static const ServerOperationPriority REFACTORING =
43 const ServerOperationPriority._(3, "REFACTORING");
44 final int ordinal; 50 final int ordinal;
45 final String name; 51 final String name;
46 52
47 const ServerOperationPriority._(this.ordinal, this.name); 53 const ServerOperationPriority._(this.ordinal, this.name);
48 54
49 @override 55 @override
50 String toString() => name; 56 String toString() => name;
51 } 57 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698