Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(301)

Unified Diff: pkg/analysis_server/lib/src/domain_analysis.dart

Issue 2960073002: Generate constants in server as we do in plugin (Closed)
Patch Set: improve names Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/lib/src/constants.dart ('k') | pkg/analysis_server/lib/src/domain_analytics.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « pkg/analysis_server/lib/src/constants.dart ('k') | pkg/analysis_server/lib/src/domain_analytics.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698