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

Side by Side Diff: pkg/analysis_server/lib/protocol/protocol_constants.dart

Issue 2960073002: Generate constants in server as we do in plugin (Closed)
Patch Set: improve names Created 3 years, 5 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
OLDNEW
(Empty)
1 // Copyright (c) 2017, 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 // This file has been automatically generated. Please do not edit it manually.
6 // To regenerate the file, use the script
7 // "pkg/analysis_server/tool/spec/generate_files".
8
9 const String ANALYSIS_NOTIFICATION_ANALYZED_FILES = 'analysis.analyzedFiles';
10 const String ANALYSIS_NOTIFICATION_ANALYZED_FILES_DIRECTORIES = 'directories';
11 const String ANALYSIS_NOTIFICATION_ERRORS = 'analysis.errors';
12 const String ANALYSIS_NOTIFICATION_ERRORS_ERRORS = 'errors';
13 const String ANALYSIS_NOTIFICATION_ERRORS_FILE = 'file';
14 const String ANALYSIS_NOTIFICATION_FLUSH_RESULTS = 'analysis.flushResults';
15 const String ANALYSIS_NOTIFICATION_FLUSH_RESULTS_FILES = 'files';
16 const String ANALYSIS_NOTIFICATION_FOLDING = 'analysis.folding';
17 const String ANALYSIS_NOTIFICATION_FOLDING_FILE = 'file';
18 const String ANALYSIS_NOTIFICATION_FOLDING_REGIONS = 'regions';
19 const String ANALYSIS_NOTIFICATION_HIGHLIGHTS = 'analysis.highlights';
20 const String ANALYSIS_NOTIFICATION_HIGHLIGHTS_FILE = 'file';
21 const String ANALYSIS_NOTIFICATION_HIGHLIGHTS_REGIONS = 'regions';
22 const String ANALYSIS_NOTIFICATION_IMPLEMENTED = 'analysis.implemented';
23 const String ANALYSIS_NOTIFICATION_IMPLEMENTED_CLASSES = 'classes';
24 const String ANALYSIS_NOTIFICATION_IMPLEMENTED_FILE = 'file';
25 const String ANALYSIS_NOTIFICATION_IMPLEMENTED_MEMBERS = 'members';
26 const String ANALYSIS_NOTIFICATION_INVALIDATE = 'analysis.invalidate';
27 const String ANALYSIS_NOTIFICATION_INVALIDATE_DELTA = 'delta';
28 const String ANALYSIS_NOTIFICATION_INVALIDATE_FILE = 'file';
29 const String ANALYSIS_NOTIFICATION_INVALIDATE_LENGTH = 'length';
30 const String ANALYSIS_NOTIFICATION_INVALIDATE_OFFSET = 'offset';
31 const String ANALYSIS_NOTIFICATION_NAVIGATION = 'analysis.navigation';
32 const String ANALYSIS_NOTIFICATION_NAVIGATION_FILE = 'file';
33 const String ANALYSIS_NOTIFICATION_NAVIGATION_FILES = 'files';
34 const String ANALYSIS_NOTIFICATION_NAVIGATION_REGIONS = 'regions';
35 const String ANALYSIS_NOTIFICATION_NAVIGATION_TARGETS = 'targets';
36 const String ANALYSIS_NOTIFICATION_OCCURRENCES = 'analysis.occurrences';
37 const String ANALYSIS_NOTIFICATION_OCCURRENCES_FILE = 'file';
38 const String ANALYSIS_NOTIFICATION_OCCURRENCES_OCCURRENCES = 'occurrences';
39 const String ANALYSIS_NOTIFICATION_OUTLINE = 'analysis.outline';
40 const String ANALYSIS_NOTIFICATION_OUTLINE_FILE = 'file';
41 const String ANALYSIS_NOTIFICATION_OUTLINE_KIND = 'kind';
42 const String ANALYSIS_NOTIFICATION_OUTLINE_LIBRARY_NAME = 'libraryName';
43 const String ANALYSIS_NOTIFICATION_OUTLINE_OUTLINE = 'outline';
44 const String ANALYSIS_NOTIFICATION_OVERRIDES = 'analysis.overrides';
45 const String ANALYSIS_NOTIFICATION_OVERRIDES_FILE = 'file';
46 const String ANALYSIS_NOTIFICATION_OVERRIDES_OVERRIDES = 'overrides';
47 const String ANALYSIS_REQUEST_GET_ERRORS = 'analysis.getErrors';
48 const String ANALYSIS_REQUEST_GET_ERRORS_FILE = 'file';
49 const String ANALYSIS_REQUEST_GET_HOVER = 'analysis.getHover';
50 const String ANALYSIS_REQUEST_GET_HOVER_FILE = 'file';
51 const String ANALYSIS_REQUEST_GET_HOVER_OFFSET = 'offset';
52 const String ANALYSIS_REQUEST_GET_LIBRARY_DEPENDENCIES =
53 'analysis.getLibraryDependencies';
54 const String ANALYSIS_REQUEST_GET_NAVIGATION = 'analysis.getNavigation';
55 const String ANALYSIS_REQUEST_GET_NAVIGATION_FILE = 'file';
56 const String ANALYSIS_REQUEST_GET_NAVIGATION_LENGTH = 'length';
57 const String ANALYSIS_REQUEST_GET_NAVIGATION_OFFSET = 'offset';
58 const String ANALYSIS_REQUEST_GET_REACHABLE_SOURCES =
59 'analysis.getReachableSources';
60 const String ANALYSIS_REQUEST_GET_REACHABLE_SOURCES_FILE = 'file';
61 const String ANALYSIS_REQUEST_REANALYZE = 'analysis.reanalyze';
62 const String ANALYSIS_REQUEST_REANALYZE_ROOTS = 'roots';
63 const String ANALYSIS_REQUEST_SET_ANALYSIS_ROOTS = 'analysis.setAnalysisRoots';
64 const String ANALYSIS_REQUEST_SET_ANALYSIS_ROOTS_EXCLUDED = 'excluded';
65 const String ANALYSIS_REQUEST_SET_ANALYSIS_ROOTS_INCLUDED = 'included';
66 const String ANALYSIS_REQUEST_SET_ANALYSIS_ROOTS_PACKAGE_ROOTS = 'packageRoots';
67 const String ANALYSIS_REQUEST_SET_GENERAL_SUBSCRIPTIONS =
68 'analysis.setGeneralSubscriptions';
69 const String ANALYSIS_REQUEST_SET_GENERAL_SUBSCRIPTIONS_SUBSCRIPTIONS =
70 'subscriptions';
71 const String ANALYSIS_REQUEST_SET_PRIORITY_FILES = 'analysis.setPriorityFiles';
72 const String ANALYSIS_REQUEST_SET_PRIORITY_FILES_FILES = 'files';
73 const String ANALYSIS_REQUEST_SET_SUBSCRIPTIONS = 'analysis.setSubscriptions';
74 const String ANALYSIS_REQUEST_SET_SUBSCRIPTIONS_SUBSCRIPTIONS = 'subscriptions';
75 const String ANALYSIS_REQUEST_UPDATE_CONTENT = 'analysis.updateContent';
76 const String ANALYSIS_REQUEST_UPDATE_CONTENT_FILES = 'files';
77 const String ANALYSIS_REQUEST_UPDATE_OPTIONS = 'analysis.updateOptions';
78 const String ANALYSIS_REQUEST_UPDATE_OPTIONS_OPTIONS = 'options';
79 const String ANALYSIS_RESPONSE_GET_ERRORS_ERRORS = 'errors';
80 const String ANALYSIS_RESPONSE_GET_HOVER_HOVERS = 'hovers';
81 const String ANALYSIS_RESPONSE_GET_LIBRARY_DEPENDENCIES_LIBRARIES = 'libraries';
82 const String ANALYSIS_RESPONSE_GET_LIBRARY_DEPENDENCIES_PACKAGE_MAP =
83 'packageMap';
84 const String ANALYSIS_RESPONSE_GET_NAVIGATION_FILES = 'files';
85 const String ANALYSIS_RESPONSE_GET_NAVIGATION_REGIONS = 'regions';
86 const String ANALYSIS_RESPONSE_GET_NAVIGATION_TARGETS = 'targets';
87 const String ANALYSIS_RESPONSE_GET_REACHABLE_SOURCES_SOURCES = 'sources';
88 const String ANALYTICS_REQUEST_ENABLE = 'analytics.enable';
89 const String ANALYTICS_REQUEST_ENABLE_VALUE = 'value';
90 const String ANALYTICS_REQUEST_IS_ENABLED = 'analytics.isEnabled';
91 const String ANALYTICS_REQUEST_SEND_EVENT = 'analytics.sendEvent';
92 const String ANALYTICS_REQUEST_SEND_EVENT_ACTION = 'action';
93 const String ANALYTICS_REQUEST_SEND_TIMING = 'analytics.sendTiming';
94 const String ANALYTICS_REQUEST_SEND_TIMING_EVENT = 'event';
95 const String ANALYTICS_REQUEST_SEND_TIMING_MILLIS = 'millis';
96 const String ANALYTICS_RESPONSE_IS_ENABLED_ENABLED = 'enabled';
97 const String COMPLETION_NOTIFICATION_RESULTS = 'completion.results';
98 const String COMPLETION_NOTIFICATION_RESULTS_ID = 'id';
99 const String COMPLETION_NOTIFICATION_RESULTS_IS_LAST = 'isLast';
100 const String COMPLETION_NOTIFICATION_RESULTS_REPLACEMENT_LENGTH =
101 'replacementLength';
102 const String COMPLETION_NOTIFICATION_RESULTS_REPLACEMENT_OFFSET =
103 'replacementOffset';
104 const String COMPLETION_NOTIFICATION_RESULTS_RESULTS = 'results';
105 const String COMPLETION_REQUEST_GET_SUGGESTIONS = 'completion.getSuggestions';
106 const String COMPLETION_REQUEST_GET_SUGGESTIONS_FILE = 'file';
107 const String COMPLETION_REQUEST_GET_SUGGESTIONS_OFFSET = 'offset';
108 const String COMPLETION_RESPONSE_GET_SUGGESTIONS_ID = 'id';
109 const String DIAGNOSTIC_REQUEST_GET_DIAGNOSTICS = 'diagnostic.getDiagnostics';
110 const String DIAGNOSTIC_REQUEST_GET_SERVER_PORT = 'diagnostic.getServerPort';
111 const String DIAGNOSTIC_RESPONSE_GET_DIAGNOSTICS_CONTEXTS = 'contexts';
112 const String DIAGNOSTIC_RESPONSE_GET_SERVER_PORT_PORT = 'port';
113 const String EDIT_REQUEST_FORMAT = 'edit.format';
114 const String EDIT_REQUEST_FORMAT_FILE = 'file';
115 const String EDIT_REQUEST_FORMAT_LINE_LENGTH = 'lineLength';
116 const String EDIT_REQUEST_FORMAT_SELECTION_LENGTH = 'selectionLength';
117 const String EDIT_REQUEST_FORMAT_SELECTION_OFFSET = 'selectionOffset';
118 const String EDIT_REQUEST_GET_ASSISTS = 'edit.getAssists';
119 const String EDIT_REQUEST_GET_ASSISTS_FILE = 'file';
120 const String EDIT_REQUEST_GET_ASSISTS_LENGTH = 'length';
121 const String EDIT_REQUEST_GET_ASSISTS_OFFSET = 'offset';
122 const String EDIT_REQUEST_GET_AVAILABLE_REFACTORINGS =
123 'edit.getAvailableRefactorings';
124 const String EDIT_REQUEST_GET_AVAILABLE_REFACTORINGS_FILE = 'file';
125 const String EDIT_REQUEST_GET_AVAILABLE_REFACTORINGS_LENGTH = 'length';
126 const String EDIT_REQUEST_GET_AVAILABLE_REFACTORINGS_OFFSET = 'offset';
127 const String EDIT_REQUEST_GET_FIXES = 'edit.getFixes';
128 const String EDIT_REQUEST_GET_FIXES_FILE = 'file';
129 const String EDIT_REQUEST_GET_FIXES_OFFSET = 'offset';
130 const String EDIT_REQUEST_GET_POSTFIX_COMPLETION = 'edit.getPostfixCompletion';
131 const String EDIT_REQUEST_GET_POSTFIX_COMPLETION_FILE = 'file';
132 const String EDIT_REQUEST_GET_POSTFIX_COMPLETION_KEY = 'key';
133 const String EDIT_REQUEST_GET_POSTFIX_COMPLETION_OFFSET = 'offset';
134 const String EDIT_REQUEST_GET_REFACTORING = 'edit.getRefactoring';
135 const String EDIT_REQUEST_GET_REFACTORING_FILE = 'file';
136 const String EDIT_REQUEST_GET_REFACTORING_KIND = 'kind';
137 const String EDIT_REQUEST_GET_REFACTORING_LENGTH = 'length';
138 const String EDIT_REQUEST_GET_REFACTORING_OFFSET = 'offset';
139 const String EDIT_REQUEST_GET_REFACTORING_OPTIONS = 'options';
140 const String EDIT_REQUEST_GET_REFACTORING_VALIDATE_ONLY = 'validateOnly';
141 const String EDIT_REQUEST_GET_STATEMENT_COMPLETION =
142 'edit.getStatementCompletion';
143 const String EDIT_REQUEST_GET_STATEMENT_COMPLETION_FILE = 'file';
144 const String EDIT_REQUEST_GET_STATEMENT_COMPLETION_OFFSET = 'offset';
145 const String EDIT_REQUEST_IS_POSTFIX_COMPLETION_APPLICABLE =
146 'edit.isPostfixCompletionApplicable';
147 const String EDIT_REQUEST_IS_POSTFIX_COMPLETION_APPLICABLE_FILE = 'file';
148 const String EDIT_REQUEST_IS_POSTFIX_COMPLETION_APPLICABLE_KEY = 'key';
149 const String EDIT_REQUEST_IS_POSTFIX_COMPLETION_APPLICABLE_OFFSET = 'offset';
150 const String EDIT_REQUEST_LIST_POSTFIX_COMPLETION_TEMPLATES =
151 'edit.listPostfixCompletionTemplates';
152 const String EDIT_REQUEST_ORGANIZE_DIRECTIVES = 'edit.organizeDirectives';
153 const String EDIT_REQUEST_ORGANIZE_DIRECTIVES_FILE = 'file';
154 const String EDIT_REQUEST_SORT_MEMBERS = 'edit.sortMembers';
155 const String EDIT_REQUEST_SORT_MEMBERS_FILE = 'file';
156 const String EDIT_RESPONSE_FORMAT_EDITS = 'edits';
157 const String EDIT_RESPONSE_FORMAT_SELECTION_LENGTH = 'selectionLength';
158 const String EDIT_RESPONSE_FORMAT_SELECTION_OFFSET = 'selectionOffset';
159 const String EDIT_RESPONSE_GET_ASSISTS_ASSISTS = 'assists';
160 const String EDIT_RESPONSE_GET_AVAILABLE_REFACTORINGS_KINDS = 'kinds';
161 const String EDIT_RESPONSE_GET_FIXES_FIXES = 'fixes';
162 const String EDIT_RESPONSE_GET_POSTFIX_COMPLETION_CHANGE = 'change';
163 const String EDIT_RESPONSE_GET_REFACTORING_CHANGE = 'change';
164 const String EDIT_RESPONSE_GET_REFACTORING_FEEDBACK = 'feedback';
165 const String EDIT_RESPONSE_GET_REFACTORING_FINAL_PROBLEMS = 'finalProblems';
166 const String EDIT_RESPONSE_GET_REFACTORING_INITIAL_PROBLEMS = 'initialProblems';
167 const String EDIT_RESPONSE_GET_REFACTORING_OPTIONS_PROBLEMS = 'optionsProblems';
168 const String EDIT_RESPONSE_GET_REFACTORING_POTENTIAL_EDITS = 'potentialEdits';
169 const String EDIT_RESPONSE_GET_STATEMENT_COMPLETION_CHANGE = 'change';
170 const String EDIT_RESPONSE_GET_STATEMENT_COMPLETION_WHITESPACE_ONLY =
171 'whitespaceOnly';
172 const String EDIT_RESPONSE_IS_POSTFIX_COMPLETION_APPLICABLE_VALUE = 'value';
173 const String EDIT_RESPONSE_LIST_POSTFIX_COMPLETION_TEMPLATES_TEMPLATES =
174 'templates';
175 const String EDIT_RESPONSE_ORGANIZE_DIRECTIVES_EDIT = 'edit';
176 const String EDIT_RESPONSE_SORT_MEMBERS_EDIT = 'edit';
177 const String EXECUTION_NOTIFICATION_LAUNCH_DATA = 'execution.launchData';
178 const String EXECUTION_NOTIFICATION_LAUNCH_DATA_FILE = 'file';
179 const String EXECUTION_NOTIFICATION_LAUNCH_DATA_KIND = 'kind';
180 const String EXECUTION_NOTIFICATION_LAUNCH_DATA_REFERENCED_FILES =
181 'referencedFiles';
182 const String EXECUTION_REQUEST_CREATE_CONTEXT = 'execution.createContext';
183 const String EXECUTION_REQUEST_CREATE_CONTEXT_CONTEXT_ROOT = 'contextRoot';
184 const String EXECUTION_REQUEST_DELETE_CONTEXT = 'execution.deleteContext';
185 const String EXECUTION_REQUEST_DELETE_CONTEXT_ID = 'id';
186 const String EXECUTION_REQUEST_MAP_URI = 'execution.mapUri';
187 const String EXECUTION_REQUEST_MAP_URI_FILE = 'file';
188 const String EXECUTION_REQUEST_MAP_URI_ID = 'id';
189 const String EXECUTION_REQUEST_MAP_URI_URI = 'uri';
190 const String EXECUTION_REQUEST_SET_SUBSCRIPTIONS = 'execution.setSubscriptions';
191 const String EXECUTION_REQUEST_SET_SUBSCRIPTIONS_SUBSCRIPTIONS =
192 'subscriptions';
193 const String EXECUTION_RESPONSE_CREATE_CONTEXT_ID = 'id';
194 const String EXECUTION_RESPONSE_MAP_URI_FILE = 'file';
195 const String EXECUTION_RESPONSE_MAP_URI_URI = 'uri';
196 const String SEARCH_NOTIFICATION_RESULTS = 'search.results';
197 const String SEARCH_NOTIFICATION_RESULTS_ID = 'id';
198 const String SEARCH_NOTIFICATION_RESULTS_IS_LAST = 'isLast';
199 const String SEARCH_NOTIFICATION_RESULTS_RESULTS = 'results';
200 const String SEARCH_REQUEST_FIND_ELEMENT_REFERENCES =
201 'search.findElementReferences';
202 const String SEARCH_REQUEST_FIND_ELEMENT_REFERENCES_FILE = 'file';
203 const String SEARCH_REQUEST_FIND_ELEMENT_REFERENCES_INCLUDE_POTENTIAL =
204 'includePotential';
205 const String SEARCH_REQUEST_FIND_ELEMENT_REFERENCES_OFFSET = 'offset';
206 const String SEARCH_REQUEST_FIND_MEMBER_DECLARATIONS =
207 'search.findMemberDeclarations';
208 const String SEARCH_REQUEST_FIND_MEMBER_DECLARATIONS_NAME = 'name';
209 const String SEARCH_REQUEST_FIND_MEMBER_REFERENCES =
210 'search.findMemberReferences';
211 const String SEARCH_REQUEST_FIND_MEMBER_REFERENCES_NAME = 'name';
212 const String SEARCH_REQUEST_FIND_TOP_LEVEL_DECLARATIONS =
213 'search.findTopLevelDeclarations';
214 const String SEARCH_REQUEST_FIND_TOP_LEVEL_DECLARATIONS_PATTERN = 'pattern';
215 const String SEARCH_REQUEST_GET_TYPE_HIERARCHY = 'search.getTypeHierarchy';
216 const String SEARCH_REQUEST_GET_TYPE_HIERARCHY_FILE = 'file';
217 const String SEARCH_REQUEST_GET_TYPE_HIERARCHY_OFFSET = 'offset';
218 const String SEARCH_REQUEST_GET_TYPE_HIERARCHY_SUPER_ONLY = 'superOnly';
219 const String SEARCH_RESPONSE_FIND_ELEMENT_REFERENCES_ELEMENT = 'element';
220 const String SEARCH_RESPONSE_FIND_ELEMENT_REFERENCES_ID = 'id';
221 const String SEARCH_RESPONSE_FIND_MEMBER_DECLARATIONS_ID = 'id';
222 const String SEARCH_RESPONSE_FIND_MEMBER_REFERENCES_ID = 'id';
223 const String SEARCH_RESPONSE_FIND_TOP_LEVEL_DECLARATIONS_ID = 'id';
224 const String SEARCH_RESPONSE_GET_TYPE_HIERARCHY_HIERARCHY_ITEMS =
225 'hierarchyItems';
226 const String SERVER_NOTIFICATION_CONNECTED = 'server.connected';
227 const String SERVER_NOTIFICATION_CONNECTED_PID = 'pid';
228 const String SERVER_NOTIFICATION_CONNECTED_SESSION_ID = 'sessionId';
229 const String SERVER_NOTIFICATION_CONNECTED_VERSION = 'version';
230 const String SERVER_NOTIFICATION_ERROR = 'server.error';
231 const String SERVER_NOTIFICATION_ERROR_IS_FATAL = 'isFatal';
232 const String SERVER_NOTIFICATION_ERROR_MESSAGE = 'message';
233 const String SERVER_NOTIFICATION_ERROR_STACK_TRACE = 'stackTrace';
234 const String SERVER_NOTIFICATION_STATUS = 'server.status';
235 const String SERVER_NOTIFICATION_STATUS_ANALYSIS = 'analysis';
236 const String SERVER_NOTIFICATION_STATUS_PUB = 'pub';
237 const String SERVER_REQUEST_GET_VERSION = 'server.getVersion';
238 const String SERVER_REQUEST_SET_SUBSCRIPTIONS = 'server.setSubscriptions';
239 const String SERVER_REQUEST_SET_SUBSCRIPTIONS_SUBSCRIPTIONS = 'subscriptions';
240 const String SERVER_REQUEST_SHUTDOWN = 'server.shutdown';
241 const String SERVER_RESPONSE_GET_VERSION_VERSION = 'version';
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698