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

Side by Side Diff: pkg/analysis_server/lib/src/domain_analysis.dart

Issue 304273007: Use 'analysis.setSubscriptions' HIGHLIGHTS in Editor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use addAnalysisSubscription/removeAnalysisSubscription Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 domain.analysis; 5 library domain.analysis;
6 6
7 import 'package:analysis_server/src/analysis_server.dart'; 7 import 'package:analysis_server/src/analysis_server.dart';
8 import 'package:analysis_server/src/constants.dart'; 8 import 'package:analysis_server/src/constants.dart';
9 import 'package:analysis_server/src/protocol.dart'; 9 import 'package:analysis_server/src/protocol.dart';
10 10
(...skipping 17 matching lines...) Expand all
28 try { 28 try {
29 String requestName = request.method; 29 String requestName = request.method;
30 if (requestName == METHOD_GET_FIXES) { 30 if (requestName == METHOD_GET_FIXES) {
31 return getFixes(request); 31 return getFixes(request);
32 } else if (requestName == METHOD_GET_MINOR_REFACTORINGS) { 32 } else if (requestName == METHOD_GET_MINOR_REFACTORINGS) {
33 return getMinorRefactorings(request); 33 return getMinorRefactorings(request);
34 } else if (requestName == METHOD_SET_ANALYSIS_ROOTS) { 34 } else if (requestName == METHOD_SET_ANALYSIS_ROOTS) {
35 return setAnalysisRoots(request); 35 return setAnalysisRoots(request);
36 } else if (requestName == METHOD_SET_PRIORITY_FILES) { 36 } else if (requestName == METHOD_SET_PRIORITY_FILES) {
37 return setPriorityFiles(request); 37 return setPriorityFiles(request);
38 } else if (requestName == METHOD_SET_SUBSCRIPTIONS) { 38 } else if (requestName == METHOD_SET_ANALYSIS_SUBSCRIPTIONS) {
39 return setSubscriptions(request); 39 return setSubscriptions(request);
40 } else if (requestName == METHOD_UPDATE_CONTENT) { 40 } else if (requestName == METHOD_UPDATE_CONTENT) {
41 return updateContent(request); 41 return updateContent(request);
42 } else if (requestName == METHOD_UPDATE_OPTIONS) { 42 } else if (requestName == METHOD_UPDATE_OPTIONS) {
43 return updateOptions(request); 43 return updateOptions(request);
44 } else if (requestName == METHOD_UPDATE_SDKS) { 44 } else if (requestName == METHOD_UPDATE_SDKS) {
45 return updateSdks(request); 45 return updateSdks(request);
46 } 46 }
47 } on RequestFailure catch (exception) { 47 } on RequestFailure catch (exception) {
48 return exception.response; 48 return exception.response;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 /** 129 /**
130 * A description of the change to the content of a file. 130 * A description of the change to the content of a file.
131 */ 131 */
132 class ContentChange { 132 class ContentChange {
133 String content; 133 String content;
134 int offset; 134 int offset;
135 int oldLength; 135 int oldLength;
136 int newLength; 136 int newLength;
137 } 137 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/constants.dart ('k') | pkg/analysis_server/lib/src/domain_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698