Chromium Code Reviews| 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 constants; | 5 library constants; |
| 6 | 6 |
| 7 | |
| 8 // | 7 // |
| 9 // Server methods | 8 // Server methods |
| 10 // | 9 // |
| 11 const String METHOD_GET_VERSION = 'server.getVersion'; | 10 const String SERVER_GET_VERSION = 'server.getVersion'; |
|
scheglov
2014/06/15 18:08:15
Great!
| |
| 12 const String METHOD_SHUTDOWN = 'server.shutdown'; | 11 const String SERVER_SHUTDOWN = 'server.shutdown'; |
| 13 const String METHOD_SET_SERVER_SUBSCRIPTIONS = 'server.setSubscriptions'; | 12 const String SERVER_SET_SUBSCRIPTIONS = 'server.setSubscriptions'; |
| 13 | |
| 14 // | |
| 15 // Server notifications | |
| 16 // | |
| 17 const String SERVER_CONNECTED = 'server.connected'; | |
| 18 const String SERVER_ERROR = 'server.error'; | |
| 19 const String SERVER_STATUS = 'server.status'; | |
| 14 | 20 |
| 15 // | 21 // |
| 16 // Analysis methods | 22 // Analysis methods |
| 17 // | 23 // |
| 18 const String METHOD_GET_FIXES = 'analysis.getFixes'; | 24 const String ANALYSIS_SET_ANALYSIS_ROOTS = 'analysis.setAnalysisRoots'; |
| 19 const String METHOD_GET_MINOR_REFACTORINGS = 'analysis.getMinorRefactorings' ; | 25 const String ANALYSIS_SET_PRIORITY_FILES = 'analysis.setPriorityFiles'; |
| 20 const String METHOD_SET_ANALYSIS_ROOTS = 'analysis.setAnalysisRoots'; | 26 const String ANALYSIS_SET_SUBSCRIPTIONS = 'analysis.setSubscriptions'; |
| 21 const String METHOD_SET_PRIORITY_FILES = 'analysis.setPriorityFiles'; | 27 const String ANALYSIS_UPDATE_CONTENT = 'analysis.updateContent'; |
| 22 const String METHOD_SET_ANALYSIS_SUBSCRIPTIONS = 'analysis.setSubscriptions'; | 28 const String ANALYSIS_UPDATE_OPTIONS = 'analysis.updateOptions'; |
| 23 const String METHOD_UPDATE_CONTENT = 'analysis.updateContent'; | 29 const String ANALYSIS_UPDATE_SDKS = 'analysis.updateSdks'; |
| 24 const String METHOD_UPDATE_OPTIONS = 'analysis.updateOptions'; | |
| 25 const String METHOD_UPDATE_SDKS = 'analysis.updateSdks'; | |
| 26 | |
| 27 // | |
| 28 // Server notifications | |
| 29 // | |
| 30 const String NOTIFICATION_CONNECTED = 'server.connected'; | |
| 31 const String NOTIFICATION_STATUS = 'server.status'; | |
| 32 | 30 |
| 33 // | 31 // |
| 34 // Analysis notifications | 32 // Analysis notifications |
| 35 // | 33 // |
| 36 const String NOTIFICATION_ERRORS = 'analysis.errors'; | 34 const String ANALYSIS_ERRORS = 'analysis.errors'; |
| 37 const String NOTIFICATION_HIGHLIGHTS = 'analysis.highlights'; | 35 const String ANALYSIS_HIGHLIGHTS = 'analysis.highlights'; |
| 38 const String NOTIFICATION_NAVIGATION = 'analysis.navigation'; | 36 const String ANALYSIS_NAVIGATION = 'analysis.navigation'; |
| 39 const String NOTIFICATION_OUTLINE = 'analysis.outline'; | 37 const String ANALYSIS_OUTLINE = 'analysis.outline'; |
| 40 | 38 |
| 39 // | |
| 40 // Code Completion methods | |
| 41 // | |
| 42 const String COMPLETION_GET_SUGGESTIONS = 'completion.getSuggestions'; | |
| 41 | 43 |
| 44 // | |
| 45 // Code Completion notifications | |
| 46 // | |
| 47 const String COMPLETION_RESULTS = 'completion.results'; | |
| 48 | |
| 49 // | |
| 50 // Search methods | |
| 51 // | |
| 52 const String SEARCH_FIND_ELEMENT_REFERENCES = 'search.findElementReferences'; | |
| 53 const String SEARCH_FIND_MEMBER_DECLARATIONS = 'search.findMemberDeclarations'; | |
| 54 const String SEARCH_FIND_MEMBER_REFERENCES = 'search.findMemberReferences'; | |
| 55 const String SEARCH_FIND_TOP_LEVEL_DECLARATIONS = | |
| 56 'search.findTopLevelDeclarations'; | |
| 57 | |
| 58 // | |
| 59 // Search notifications | |
| 60 // | |
| 61 const String SEARCH_RESULTS = 'search.results'; | |
| 62 | |
| 63 // | |
| 64 // Edit methods | |
| 65 // | |
| 66 const String EDIT_APPLY_REFACTORING = 'edit.applyRefactoring'; | |
| 67 const String EDIT_CREATE_REFACTORING = 'edit.createRefactoring'; | |
| 68 const String EDIT_DELETE_REFACTORING = 'edit.deleteRefactoring'; | |
| 69 const String EDIT_GET_ASSISTS = 'edit.getAssists'; | |
| 70 const String EDIT_GET_FIXES = 'edit.getFixes'; | |
| 71 const String EDIT_GET_REFACTORINGS = 'edit.getRefactorings'; | |
| 72 const String EDIT_SET_REFACTORING_OPTIONS = 'edit.setRefactoringOptions'; | |
| 73 | |
| 74 // | |
| 75 // Property names | |
| 76 // | |
| 42 const String ADDED = 'added'; | 77 const String ADDED = 'added'; |
| 43 const String CHILDREN = 'children'; | 78 const String CHILDREN = 'children'; |
| 44 const String CONTENT = 'content'; | 79 const String CONTENT = 'content'; |
| 45 const String DEFAULT = 'default'; | 80 const String DEFAULT = 'default'; |
| 46 const String ELEMENT_LENGTH = 'elementLength'; | 81 const String ELEMENT_LENGTH = 'elementLength'; |
| 47 const String ELEMENT_OFFSET = 'elementOffset'; | 82 const String ELEMENT_OFFSET = 'elementOffset'; |
| 48 const String EXCLUDED = 'excluded'; | 83 const String EXCLUDED = 'excluded'; |
| 49 const String ERRORS = 'errors'; | 84 const String ERRORS = 'errors'; |
| 50 const String FILE = 'file'; | 85 const String FILE = 'file'; |
| 51 const String FILES = 'files'; | 86 const String FILES = 'files'; |
| 52 const String FIXES = 'fixes'; | 87 const String FIXES = 'fixes'; |
| 88 const String ID = 'id'; | |
| 53 const String INCLUDED = 'included'; | 89 const String INCLUDED = 'included'; |
| 54 const String IS_ABSTRACT = 'isAbstract'; | 90 const String IS_ABSTRACT = 'isAbstract'; |
| 55 const String IS_STATIC = 'isStatic'; | 91 const String IS_STATIC = 'isStatic'; |
| 56 const String KIND = 'kind'; | 92 const String KIND = 'kind'; |
| 57 const String LENGTH = 'length'; | 93 const String LENGTH = 'length'; |
| 58 const String NAME = 'name'; | 94 const String NAME = 'name'; |
| 59 const String NAME_LENGTH = 'nameLength'; | 95 const String NAME_LENGTH = 'nameLength'; |
| 60 const String NAME_OFFSET = 'nameOffset'; | 96 const String NAME_OFFSET = 'nameOffset'; |
| 61 const String NEW_LENGTH = 'newLength'; | 97 const String NEW_LENGTH = 'newLength'; |
| 62 const String OFFSET = 'offset'; | 98 const String OFFSET = 'offset'; |
| 63 const String OLD_LENGTH = 'oldLength'; | 99 const String OLD_LENGTH = 'oldLength'; |
| 64 const String OPTIONS = 'options'; | 100 const String OPTIONS = 'options'; |
| 65 const String OUTLINE = 'outline'; | 101 const String OUTLINE = 'outline'; |
| 66 const String PARAMETERS = 'parameters'; | 102 const String PARAMETERS = 'parameters'; |
| 103 const String PATTERN = 'pattern'; | |
| 67 const String REFACTORINGS = 'refactorings'; | 104 const String REFACTORINGS = 'refactorings'; |
| 68 const String REGIONS = 'regions'; | 105 const String REGIONS = 'regions'; |
| 69 const String REMOVED = 'removed'; | 106 const String REMOVED = 'removed'; |
| 70 const String RETURN_TYPE = 'returnType'; | 107 const String RETURN_TYPE = 'returnType'; |
| 71 const String SUBSCRIPTIONS = 'subscriptions'; | 108 const String SUBSCRIPTIONS = 'subscriptions'; |
| 72 const String VERSION = 'version'; | 109 const String VERSION = 'version'; |
| OLD | NEW |