Index: pkg/analysis_server/lib/src/domain_analysis.dart |
diff --git a/pkg/analysis_server/lib/src/domain_analysis.dart b/pkg/analysis_server/lib/src/domain_analysis.dart |
index af09edfa39c51b5a1653d7efb03c8554e1e5171f..eb75faacdb19bf845e022a1e7a51a6cba44a99f1 100644 |
--- a/pkg/analysis_server/lib/src/domain_analysis.dart |
+++ b/pkg/analysis_server/lib/src/domain_analysis.dart |
@@ -6,9 +6,9 @@ import 'dart:async'; |
import 'dart:core'; |
import 'package:analysis_server/plugin/analysis/analysis_domain.dart'; |
+import 'package:analysis_server/protocol/protocol_constants.dart'; |
import 'package:analysis_server/src/analysis_server.dart'; |
import 'package:analysis_server/src/computer/computer_hover.dart'; |
-import 'package:analysis_server/src/constants.dart'; |
import 'package:analysis_server/src/domain_abstract.dart'; |
import 'package:analysis_server/src/domains/analysis/navigation.dart'; |
import 'package:analysis_server/src/domains/analysis/navigation_dart.dart'; |
@@ -210,32 +210,32 @@ class AnalysisDomainHandler extends AbstractRequestHandler { |
Response handleRequest(Request request) { |
try { |
String requestName = request.method; |
- if (requestName == ANALYSIS_GET_ERRORS) { |
+ if (requestName == ANALYSIS_REQUEST_GET_ERRORS) { |
getErrors(request); |
return Response.DELAYED_RESPONSE; |
- } else if (requestName == ANALYSIS_GET_HOVER) { |
+ } else if (requestName == ANALYSIS_REQUEST_GET_HOVER) { |
getHover(request); |
return Response.DELAYED_RESPONSE; |
- } else if (requestName == ANALYSIS_GET_LIBRARY_DEPENDENCIES) { |
+ } else if (requestName == ANALYSIS_REQUEST_GET_LIBRARY_DEPENDENCIES) { |
return getLibraryDependencies(request); |
- } else if (requestName == ANALYSIS_GET_NAVIGATION) { |
+ } else if (requestName == ANALYSIS_REQUEST_GET_NAVIGATION) { |
getNavigation(request); |
return Response.DELAYED_RESPONSE; |
- } else if (requestName == ANALYSIS_GET_REACHABLE_SOURCES) { |
+ } else if (requestName == ANALYSIS_REQUEST_GET_REACHABLE_SOURCES) { |
return getReachableSources(request); |
- } else if (requestName == ANALYSIS_REANALYZE) { |
+ } else if (requestName == ANALYSIS_REQUEST_REANALYZE) { |
return reanalyze(request); |
- } else if (requestName == ANALYSIS_SET_ANALYSIS_ROOTS) { |
+ } else if (requestName == ANALYSIS_REQUEST_SET_ANALYSIS_ROOTS) { |
return setAnalysisRoots(request); |
- } else if (requestName == ANALYSIS_SET_GENERAL_SUBSCRIPTIONS) { |
+ } else if (requestName == ANALYSIS_REQUEST_SET_GENERAL_SUBSCRIPTIONS) { |
return setGeneralSubscriptions(request); |
- } else if (requestName == ANALYSIS_SET_PRIORITY_FILES) { |
+ } else if (requestName == ANALYSIS_REQUEST_SET_PRIORITY_FILES) { |
return setPriorityFiles(request); |
- } else if (requestName == ANALYSIS_SET_SUBSCRIPTIONS) { |
+ } else if (requestName == ANALYSIS_REQUEST_SET_SUBSCRIPTIONS) { |
return setSubscriptions(request); |
- } else if (requestName == ANALYSIS_UPDATE_CONTENT) { |
+ } else if (requestName == ANALYSIS_REQUEST_UPDATE_CONTENT) { |
return updateContent(request); |
- } else if (requestName == ANALYSIS_UPDATE_OPTIONS) { |
+ } else if (requestName == ANALYSIS_REQUEST_UPDATE_OPTIONS) { |
return updateOptions(request); |
} |
} on RequestFailure catch (exception) { |