OLD | NEW |
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 // | |
6 // Server methods | |
7 // | |
8 const String ADD = 'add'; | 5 const String ADD = 'add'; |
9 const String ADDED = 'added'; | 6 const String ADDED = 'added'; |
10 const String ANALYSIS_ANALYZED_FILES = 'analysis.analyzedFiles'; | |
11 | |
12 // | |
13 // Server notifications | |
14 // | |
15 const String ANALYSIS_ERRORS = 'analysis.errors'; | |
16 const String ANALYSIS_GET_ERRORS = 'analysis.getErrors'; | |
17 const String ANALYSIS_GET_HOVER = 'analysis.getHover'; | |
18 | |
19 // | |
20 // Analysis methods | |
21 // | |
22 const String ANALYSIS_GET_LIBRARY_DEPENDENCIES = | |
23 'analysis.getLibraryDependencies'; | |
24 const String ANALYSIS_GET_NAVIGATION = 'analysis.getNavigation'; | |
25 const String ANALYSIS_GET_REACHABLE_SOURCES = 'analysis.getReachableSources'; | |
26 const String ANALYSIS_HIGHLIGHTS = 'analysis.highlights'; | |
27 const String ANALYSIS_IMPLEMENTED = 'analysis.implemented'; | |
28 const String ANALYSIS_NAVIGATION = 'analysis.navigation'; | |
29 const String ANALYSIS_OCCURRENCES = 'analysis.occurrences'; | |
30 const String ANALYSIS_OUTLINE = 'analysis.outline'; | |
31 const String ANALYSIS_OVERRIDES = 'analysis.overrides'; | |
32 const String ANALYSIS_REANALYZE = 'analysis.reanalyze'; | |
33 const String ANALYSIS_SET_ANALYSIS_ROOTS = 'analysis.setAnalysisRoots'; | |
34 const String ANALYSIS_SET_GENERAL_SUBSCRIPTIONS = | |
35 'analysis.setGeneralSubscriptions'; | |
36 | |
37 // | |
38 // Analysis notifications | |
39 // | |
40 const String ANALYSIS_SET_PRIORITY_FILES = 'analysis.setPriorityFiles'; | |
41 const String ANALYSIS_SET_SUBSCRIPTIONS = 'analysis.setSubscriptions'; | |
42 const String ANALYSIS_UPDATE_CONTENT = 'analysis.updateContent'; | |
43 const String ANALYSIS_UPDATE_OPTIONS = 'analysis.updateOptions'; | |
44 const String ANALYTICS_ENABLE = 'analytics.enable'; | |
45 const String ANALYTICS_IS_ENABLED = 'analytics.isEnabled'; | |
46 const String ANALYTICS_SEND_EVENT = 'analytics.sendEvent'; | |
47 const String ANALYTICS_SEND_TIMING = 'analytics.sendTiming'; | |
48 | |
49 // | |
50 // Code Completion methods | |
51 // | |
52 const String ASSISTS = 'assists'; | 7 const String ASSISTS = 'assists'; |
53 | |
54 // | |
55 // Code Completion notifications | |
56 // | |
57 const String CHANGE = 'change'; | 8 const String CHANGE = 'change'; |
58 | |
59 // | |
60 // Search methods | |
61 // | |
62 const String CHILDREN = 'children'; | 9 const String CHILDREN = 'children'; |
63 const String CLASS_ELEMENT = 'classElement'; | 10 const String CLASS_ELEMENT = 'classElement'; |
64 const String CLASS_NAME = 'className'; | 11 const String CLASS_NAME = 'className'; |
65 const String CODE = 'code'; | 12 const String CODE = 'code'; |
66 const String COMPLETION = 'completion'; | 13 const String COMPLETION = 'completion'; |
67 | |
68 // | |
69 // Search notifications | |
70 // | |
71 const String COMPLETION_GET_SUGGESTIONS = 'completion.getSuggestions'; | |
72 | |
73 // | |
74 // Edit methods | |
75 // | |
76 const String COMPLETION_RESULTS = 'completion.results'; | 14 const String COMPLETION_RESULTS = 'completion.results'; |
77 const String CONTAINING_LIBRARY_NAME = 'containingLibraryName'; | 15 const String CONTAINING_LIBRARY_NAME = 'containingLibraryName'; |
78 const String CONTAINING_LIBRARY_PATH = 'containingLibraryPath'; | 16 const String CONTAINING_LIBRARY_PATH = 'containingLibraryPath'; |
79 const String CONTENT = 'content'; | 17 const String CONTENT = 'content'; |
80 const String CORRECTION = 'correction'; | 18 const String CORRECTION = 'correction'; |
81 const String DART_DOC = 'dartdoc'; | 19 const String DART_DOC = 'dartdoc'; |
82 const String DEFAULT = 'default'; | 20 const String DEFAULT = 'default'; |
83 const String DIAGNOSTIC_GET_DIAGNOSTICS = 'diagnostic.getDiagnostics'; | |
84 | |
85 // | |
86 // Diagnostic methods | |
87 // | |
88 const String DIAGNOSTIC_GET_SERVER_PORT = 'diagnostic.getServerPort'; | |
89 const String DISPLAY_NAME = 'displayName'; | 21 const String DISPLAY_NAME = 'displayName'; |
90 | |
91 // | |
92 // Analytics methods | |
93 // | |
94 const String EDIT_FORMAT = 'edit.format'; | |
95 const String EDIT_GET_ASSISTS = 'edit.getAssists'; | |
96 const String EDIT_GET_AVAILABLE_REFACTORINGS = 'edit.getAvailableRefactorings'; | |
97 const String EDIT_GET_FIXES = 'edit.getFixes'; | |
98 //const String EDIT_GET_REFACTORING = 'edit.getRefactoring'; | |
99 const String EDIT_GET_STATEMENT_COMPLETION = "edit.getStatementCompletion"; | |
100 const String EDIT_GET_POSTFIX_COMPLETION = "edit.getPostfixCompletion"; | |
101 const String EDIT_IS_POSTFIX_COMPLETION_APPLICABLE = | |
102 "edit.isPostfixCompletionApplicable"; | |
103 const String EDIT_LIST_POSTFIX_COMPLETION_TEMPLATES = | |
104 "edit.listPostfixCompletionTemplates"; | |
105 | |
106 // | |
107 // Execution methods | |
108 // | |
109 const String EDIT_GET_REFACTORING = 'edit.getRefactoring'; | |
110 //const String EDIT_GET_STATEMENT_COMPLETION = "edit.getStatementCompletion"; | |
111 const String EDIT_ORGANIZE_DIRECTIVES = 'edit.organizeDirectives'; | |
112 const String EDIT_SORT_MEMBERS = 'edit.sortMembers'; | |
113 | |
114 // | |
115 // Execution notifications | |
116 // | |
117 const String EDITS = 'edits'; | 22 const String EDITS = 'edits'; |
118 | |
119 // | |
120 // Analysis option names | |
121 // | |
122 const String ELEMENT = 'element'; // boolean | 23 const String ELEMENT = 'element'; // boolean |
123 const String ELEMENT_DESCRIPTION = 'elementDescription'; // boolean | 24 const String ELEMENT_DESCRIPTION = 'elementDescription'; // boolean |
124 const String ELEMENT_KIND = 'elementKind'; // boolean | 25 const String ELEMENT_KIND = 'elementKind'; // boolean |
125 const String ENABLE_ASYNC = 'enableAsync'; // boolean | 26 const String ENABLE_ASYNC = 'enableAsync'; // boolean |
126 const String ENABLE_DEFERRED_LOADING = 'enableDeferredLoading'; // boolean | 27 const String ENABLE_DEFERRED_LOADING = 'enableDeferredLoading'; // boolean |
127 | |
128 // | |
129 // Property names | |
130 // | |
131 const String ENABLE_ENUMS = 'enableEnums'; | 28 const String ENABLE_ENUMS = 'enableEnums'; |
132 const String ERROR = 'error'; | 29 const String ERROR = 'error'; |
133 const String ERRORS = 'errors'; | 30 const String ERRORS = 'errors'; |
134 const String EXCLUDED = 'excluded'; | 31 const String EXCLUDED = 'excluded'; |
135 const String EXECUTION_CREATE_CONTEXT = 'execution.createContext'; | |
136 const String EXECUTION_DELETE_CONTEXT = 'execution.deleteContext'; | |
137 const String EXECUTION_LAUNCH_DATA = 'execution.launchData'; | |
138 const String EXECUTION_MAP_URI = 'execution.mapUri'; | |
139 const String EXECUTION_SET_SUBSCRIPTIONS = 'execution.setSubscriptions'; | |
140 const String FATAL = 'fatal'; | 32 const String FATAL = 'fatal'; |
141 const String FILE = 'file'; | 33 const String FILE = 'file'; |
142 const String FILE_STAMP = 'fileStamp'; | 34 const String FILE_STAMP = 'fileStamp'; |
143 const String FILES = 'files'; | 35 const String FILES = 'files'; |
144 const String FIXES = 'fixes'; | 36 const String FIXES = 'fixes'; |
145 const String FLAGS = 'flags'; | 37 const String FLAGS = 'flags'; |
146 const String GENERATE_DART2JS_HINTS = 'generateDart2jsHints'; | 38 const String GENERATE_DART2JS_HINTS = 'generateDart2jsHints'; |
147 const String GENERATE_HINTS = 'generateHints'; | 39 const String GENERATE_HINTS = 'generateHints'; |
148 const String HAS_FIX = 'hasFix'; | 40 const String HAS_FIX = 'hasFix'; |
149 const String HIERARCHY_ITEMS = 'hierarchyItems'; | 41 const String HIERARCHY_ITEMS = 'hierarchyItems'; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 const String REFACTORINGS = 'refactorings'; | 74 const String REFACTORINGS = 'refactorings'; |
183 const String REGIONS = 'regions'; | 75 const String REGIONS = 'regions'; |
184 const String RELEVANCE = 'relevance'; | 76 const String RELEVANCE = 'relevance'; |
185 const String REMOVE = 'remove'; | 77 const String REMOVE = 'remove'; |
186 const String REMOVED = 'removed'; | 78 const String REMOVED = 'removed'; |
187 const String REPLACEMENT = 'replacement'; | 79 const String REPLACEMENT = 'replacement'; |
188 const String REPLACEMENT_LENGTH = 'replacementLength'; | 80 const String REPLACEMENT_LENGTH = 'replacementLength'; |
189 const String REPLACEMENT_OFFSET = 'replacementOffset'; | 81 const String REPLACEMENT_OFFSET = 'replacementOffset'; |
190 const String RESULTS = 'results'; | 82 const String RESULTS = 'results'; |
191 const String RETURN_TYPE = 'returnType'; | 83 const String RETURN_TYPE = 'returnType'; |
192 const String SEARCH_FIND_ELEMENT_REFERENCES = 'search.findElementReferences'; | |
193 const String SEARCH_FIND_MEMBER_DECLARATIONS = 'search.findMemberDeclarations'; | |
194 const String SEARCH_FIND_MEMBER_REFERENCES = 'search.findMemberReferences'; | |
195 const String SEARCH_FIND_TOP_LEVEL_DECLARATIONS = | |
196 'search.findTopLevelDeclarations'; | |
197 const String SEARCH_GET_TYPE_HIERARCHY = 'search.getTypeHierarchy'; | |
198 const String SEARCH_RESULTS = 'search.results'; | |
199 const String SELECTION = 'selection'; | 84 const String SELECTION = 'selection'; |
200 const String SELECTION_LENGTH = 'selectionLength'; | 85 const String SELECTION_LENGTH = 'selectionLength'; |
201 const String SELECTION_OFFSET = 'selectionOffset'; | 86 const String SELECTION_OFFSET = 'selectionOffset'; |
202 const String SERVER_CONNECTED = 'server.connected'; | |
203 const String SERVER_ERROR = 'server.error'; | |
204 const String SERVER_GET_VERSION = 'server.getVersion'; | |
205 const String SERVER_SET_SUBSCRIPTIONS = 'server.setSubscriptions'; | |
206 const String SERVER_SHUTDOWN = 'server.shutdown'; | |
207 const String SERVER_STATUS = 'server.status'; | |
208 const String SEVERITY = 'severity'; | 87 const String SEVERITY = 'severity'; |
209 const String STACK_TRACE = 'stackTrace'; | 88 const String STACK_TRACE = 'stackTrace'; |
210 const String START_COLUMN = 'startColumn'; | 89 const String START_COLUMN = 'startColumn'; |
211 const String START_LINE = 'startLine'; | 90 const String START_LINE = 'startLine'; |
212 const String STATIC_TYPE = 'staticType'; | 91 const String STATIC_TYPE = 'staticType'; |
213 const String SUBCLASSES = 'subclasses'; | 92 const String SUBCLASSES = 'subclasses'; |
214 const String SUBSCRIPTIONS = 'subscriptions'; | 93 const String SUBSCRIPTIONS = 'subscriptions'; |
215 const String SUGGESTIONS = 'suggestions'; | 94 const String SUGGESTIONS = 'suggestions'; |
216 const String SUPER_CLASS_MEMBER = 'superclassMember'; | 95 const String SUPER_CLASS_MEMBER = 'superclassMember'; |
217 const String SUPERCLASS = 'superclass'; | 96 const String SUPERCLASS = 'superclass'; |
218 const String TARGETS = 'targets'; | 97 const String TARGETS = 'targets'; |
219 const String TYPE = 'type'; | 98 const String TYPE = 'type'; |
220 const String VALUE = 'value'; | 99 const String VALUE = 'value'; |
221 const String VERSION = 'version'; | 100 const String VERSION = 'version'; |
OLD | NEW |