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