| Index: pkg/analysis_server/lib/src/constants.dart
|
| diff --git a/pkg/analysis_server/lib/src/constants.dart b/pkg/analysis_server/lib/src/constants.dart
|
| index 99c6d67b9b91009beeddb4c2123b28c2af96f073..626d8d78aff607b7a891240f8ea5394dcb237d59 100644
|
| --- a/pkg/analysis_server/lib/src/constants.dart
|
| +++ b/pkg/analysis_server/lib/src/constants.dart
|
| @@ -4,41 +4,76 @@
|
|
|
| library constants;
|
|
|
| -
|
| //
|
| // Server methods
|
| //
|
| -const String METHOD_GET_VERSION = 'server.getVersion';
|
| -const String METHOD_SHUTDOWN = 'server.shutdown';
|
| -const String METHOD_SET_SERVER_SUBSCRIPTIONS = 'server.setSubscriptions';
|
| +const String SERVER_GET_VERSION = 'server.getVersion';
|
| +const String SERVER_SHUTDOWN = 'server.shutdown';
|
| +const String SERVER_SET_SUBSCRIPTIONS = 'server.setSubscriptions';
|
|
|
| //
|
| -// Analysis methods
|
| +// Server notifications
|
| //
|
| -const String METHOD_GET_FIXES = 'analysis.getFixes';
|
| -const String METHOD_GET_MINOR_REFACTORINGS = 'analysis.getMinorRefactorings';
|
| -const String METHOD_SET_ANALYSIS_ROOTS = 'analysis.setAnalysisRoots';
|
| -const String METHOD_SET_PRIORITY_FILES = 'analysis.setPriorityFiles';
|
| -const String METHOD_SET_ANALYSIS_SUBSCRIPTIONS = 'analysis.setSubscriptions';
|
| -const String METHOD_UPDATE_CONTENT = 'analysis.updateContent';
|
| -const String METHOD_UPDATE_OPTIONS = 'analysis.updateOptions';
|
| -const String METHOD_UPDATE_SDKS = 'analysis.updateSdks';
|
| +const String SERVER_CONNECTED = 'server.connected';
|
| +const String SERVER_ERROR = 'server.error';
|
| +const String SERVER_STATUS = 'server.status';
|
|
|
| //
|
| -// Server notifications
|
| +// Analysis methods
|
| //
|
| -const String NOTIFICATION_CONNECTED = 'server.connected';
|
| -const String NOTIFICATION_STATUS = 'server.status';
|
| +const String ANALYSIS_SET_ANALYSIS_ROOTS = 'analysis.setAnalysisRoots';
|
| +const String ANALYSIS_SET_PRIORITY_FILES = 'analysis.setPriorityFiles';
|
| +const String ANALYSIS_SET_SUBSCRIPTIONS = 'analysis.setSubscriptions';
|
| +const String ANALYSIS_UPDATE_CONTENT = 'analysis.updateContent';
|
| +const String ANALYSIS_UPDATE_OPTIONS = 'analysis.updateOptions';
|
| +const String ANALYSIS_UPDATE_SDKS = 'analysis.updateSdks';
|
|
|
| //
|
| // Analysis notifications
|
| //
|
| -const String NOTIFICATION_ERRORS = 'analysis.errors';
|
| -const String NOTIFICATION_HIGHLIGHTS = 'analysis.highlights';
|
| -const String NOTIFICATION_NAVIGATION = 'analysis.navigation';
|
| -const String NOTIFICATION_OUTLINE = 'analysis.outline';
|
| +const String ANALYSIS_ERRORS = 'analysis.errors';
|
| +const String ANALYSIS_HIGHLIGHTS = 'analysis.highlights';
|
| +const String ANALYSIS_NAVIGATION = 'analysis.navigation';
|
| +const String ANALYSIS_OUTLINE = 'analysis.outline';
|
|
|
| +//
|
| +// Code Completion methods
|
| +//
|
| +const String COMPLETION_GET_SUGGESTIONS = 'completion.getSuggestions';
|
|
|
| +//
|
| +// Code Completion notifications
|
| +//
|
| +const String COMPLETION_RESULTS = 'completion.results';
|
| +
|
| +//
|
| +// Search methods
|
| +//
|
| +const String SEARCH_FIND_ELEMENT_REFERENCES = 'search.findElementReferences';
|
| +const String SEARCH_FIND_MEMBER_DECLARATIONS = 'search.findMemberDeclarations';
|
| +const String SEARCH_FIND_MEMBER_REFERENCES = 'search.findMemberReferences';
|
| +const String SEARCH_FIND_TOP_LEVEL_DECLARATIONS =
|
| + 'search.findTopLevelDeclarations';
|
| +
|
| +//
|
| +// Search notifications
|
| +//
|
| +const String SEARCH_RESULTS = 'search.results';
|
| +
|
| +//
|
| +// Edit methods
|
| +//
|
| +const String EDIT_APPLY_REFACTORING = 'edit.applyRefactoring';
|
| +const String EDIT_CREATE_REFACTORING = 'edit.createRefactoring';
|
| +const String EDIT_DELETE_REFACTORING = 'edit.deleteRefactoring';
|
| +const String EDIT_GET_ASSISTS = 'edit.getAssists';
|
| +const String EDIT_GET_FIXES = 'edit.getFixes';
|
| +const String EDIT_GET_REFACTORINGS = 'edit.getRefactorings';
|
| +const String EDIT_SET_REFACTORING_OPTIONS = 'edit.setRefactoringOptions';
|
| +
|
| +//
|
| +// Property names
|
| +//
|
| const String ADDED = 'added';
|
| const String CHILDREN = 'children';
|
| const String CONTENT = 'content';
|
| @@ -50,6 +85,7 @@ const String ERRORS = 'errors';
|
| const String FILE = 'file';
|
| const String FILES = 'files';
|
| const String FIXES = 'fixes';
|
| +const String ID = 'id';
|
| const String INCLUDED = 'included';
|
| const String IS_ABSTRACT = 'isAbstract';
|
| const String IS_STATIC = 'isStatic';
|
| @@ -64,6 +100,7 @@ const String OLD_LENGTH = 'oldLength';
|
| const String OPTIONS = 'options';
|
| const String OUTLINE = 'outline';
|
| const String PARAMETERS = 'parameters';
|
| +const String PATTERN = 'pattern';
|
| const String REFACTORINGS = 'refactorings';
|
| const String REGIONS = 'regions';
|
| const String REMOVED = 'removed';
|
|
|