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

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

Issue 869793002: Move indexing into 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
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/operation/operation_analysis.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 = 5; 33 static const int COUNT = 6;
34 34
35 static const ServerOperationPriority ANALYSIS_NOTIFICATION = 35 static const ServerOperationPriority ANALYSIS_NOTIFICATION =
36 const ServerOperationPriority._(0, "ANALYSIS_NOTIFICATION"); 36 const ServerOperationPriority._(0, "ANALYSIS_NOTIFICATION");
37 37
38 static const ServerOperationPriority ANALYSIS_INDEX =
39 const ServerOperationPriority._(1, "ANALYSIS_INDEX");
40
38 static const ServerOperationPriority PRIORITY_ANALYSIS_CONTINUE = 41 static const ServerOperationPriority PRIORITY_ANALYSIS_CONTINUE =
39 const ServerOperationPriority._(1, "PRIORITY_ANALYSIS_CONTINUE"); 42 const ServerOperationPriority._(2, "PRIORITY_ANALYSIS_CONTINUE");
40 43
41 static const ServerOperationPriority PRIORITY_ANALYSIS = 44 static const ServerOperationPriority PRIORITY_ANALYSIS =
42 const ServerOperationPriority._(2, "PRIORITY_ANALYSIS"); 45 const ServerOperationPriority._(3, "PRIORITY_ANALYSIS");
43 46
44 static const ServerOperationPriority ANALYSIS_CONTINUE = 47 static const ServerOperationPriority ANALYSIS_CONTINUE =
45 const ServerOperationPriority._(3, "ANALYSIS_CONTINUE"); 48 const ServerOperationPriority._(4, "ANALYSIS_CONTINUE");
46 49
47 static const ServerOperationPriority ANALYSIS = 50 static const ServerOperationPriority ANALYSIS =
48 const ServerOperationPriority._(4, "ANALYSIS"); 51 const ServerOperationPriority._(5, "ANALYSIS");
49 52
50 final int ordinal; 53 final int ordinal;
51 final String name; 54 final String name;
52 55
53 const ServerOperationPriority._(this.ordinal, this.name); 56 const ServerOperationPriority._(this.ordinal, this.name);
54 57
55 @override 58 @override
56 String toString() => name; 59 String toString() => name;
57 } 60 }
OLDNEW
« 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