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

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

Issue 308703005: Extract constants into separate libarary. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 library constants;
6
7
8 //
9 // Server methods
10 //
11 const String METHOD_GET_VERSION = 'server.getVersion';
12 const String METHOD_SHUTDOWN = 'server.shutdown';
13
14 //
15 // Analysis methods
16 //
17 const String METHOD_GET_FIXES = 'analysis.getFixes';
18 const String METHOD_GET_MINOR_REFACTORINGS = 'analysis.getMinorRefactorings';
19 const String METHOD_SET_ANALYSIS_ROOTS = 'analysis.setAnalysisRoots';
20 const String METHOD_SET_PRIORITY_FILES = 'analysis.setPriorityFiles';
21 const String METHOD_SET_SUBSCRIPTIONS = 'analysis.setSubscriptions';
22 const String METHOD_UPDATE_CONTENT = 'analysis.updateContent';
23 const String METHOD_UPDATE_OPTIONS = 'analysis.updateOptions';
24 const String METHOD_UPDATE_SDKS = 'analysis.updateSdks';
25
26 //
27 // Server notifications
28 //
29 const String NOTIFICATION_CONNECTED = 'server.connected';
30 const String NOTIFICATION_STATUS = 'server.status';
31
32 //
33 // Analysis notifications
34 //
35 const String NOTIFICATION_ERRORS = 'analysis.errors';
36 const String NOTIFICATION_HIGHLIGHTS = 'analysis.highlights';
37 const String NOTIFICATION_NAVIGATION = 'analysis.navigation';
38 const String NOTIFICATION_OUTLINE = 'analysis.outline';
39
40
41 const String ADDED = 'added';
42 const String CONTENT = 'content';
43 const String DEFAULT = 'default';
44 const String EXCLUDED = 'excluded';
45 const String ERRORS = 'errors';
46 const String FILE = 'file';
47 const String FILES = 'files';
48 const String FIXES = 'fixes';
49 const String INCLUDED = 'included';
50 const String LENGTH = 'length';
51 const String NEW_LENGTH = 'newLength';
52 const String OFFSET = 'offset';
53 const String OLD_LENGTH = 'oldLength';
54 const String OPTIONS = 'options';
55 const String OUTLINE = 'outline';
56 const String REFACTORINGS = 'refactorings';
57 const String REGIONS = 'regions';
58 const String REMOVED = 'removed';
59 const String SUBSCRIPTIONS = 'subscriptions';
60 const String VERSION = 'version';
61
62
63 // TODO(scheglov) remove it with ContextDomain
64 const String APPLY_CHANGES_NAME = 'context.applyChanges';
65 const String GET_FIXES_NAME = 'context.getFixes';
66 const String SET_OPTIONS_NAME = 'context.setOptions';
67 const String SET_PRIORITY_SOURCES_NAME = 'context.setPrioritySources';
68 const String CHANGES_PARAM = 'changes';
69 const String CONTEXT_ID_PARAM = 'contextId';
70 const String MODIFIED_PARAM = "modified";
71 const String SOURCES_PARAM = 'sources';
72 const String CACHE_SIZE_OPTION = 'cacheSize';
73 const String GENERATE_HINTS_OPTION = 'generateHints';
74 const String GENERATE_DART2JS_OPTION = 'generateDart2jsHints';
75 const String PROVIDE_ERRORS_OPTION = 'provideErrors';
76 const String PROVIDE_NAVIGATION_OPTION = 'provideNavigation';
77 const String PROVIDE_OUTLINE_OPTION = 'provideOutline';
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/analysis_server.dart ('k') | pkg/analysis_server/lib/src/domain_analysis.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698