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

Side by Side Diff: pkg/analysis_server/lib/src/plugin/request_converter.dart

Issue 2988743002: Remove the analysus.reanalyze request from the plugin API (Closed)
Patch Set: Restart plugins Created 3 years, 4 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
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 import 'package:analysis_server/protocol/protocol_generated.dart' as server; 5 import 'package:analysis_server/protocol/protocol_generated.dart' as server;
6 import 'package:analysis_server/src/protocol/protocol_internal.dart' as server; 6 import 'package:analysis_server/src/protocol/protocol_internal.dart' as server;
7 import 'package:analyzer_plugin/protocol/protocol_generated.dart' as plugin; 7 import 'package:analyzer_plugin/protocol/protocol_generated.dart' as plugin;
8 8
9 /** 9 /**
10 * An object used to convert between similar objects defined by both the plugin 10 * An object used to convert between similar objects defined by both the plugin
11 * protocol and the server protocol. 11 * protocol and the server protocol.
12 */ 12 */
13 class RequestConverter { 13 class RequestConverter {
14 plugin.AnalysisReanalyzeParams convertAnalysisReanalyzeParams(
15 server.AnalysisReanalyzeParams params) {
16 return new plugin.AnalysisReanalyzeParams(roots: params.roots);
17 }
18
19 plugin.AnalysisService convertAnalysisService( 14 plugin.AnalysisService convertAnalysisService(
20 server.AnalysisService service) { 15 server.AnalysisService service) {
21 return new plugin.AnalysisService(service.name); 16 return new plugin.AnalysisService(service.name);
22 } 17 }
23 18
24 plugin.AnalysisSetPriorityFilesParams convertAnalysisSetPriorityFilesParams( 19 plugin.AnalysisSetPriorityFilesParams convertAnalysisSetPriorityFilesParams(
25 server.AnalysisSetPriorityFilesParams params) { 20 server.AnalysisSetPriorityFilesParams params) {
26 return new plugin.AnalysisSetPriorityFilesParams(params.files); 21 return new plugin.AnalysisSetPriorityFilesParams(params.files);
27 } 22 }
28 23
(...skipping 13 matching lines...) Expand all
42 } 37 }
43 } 38 }
44 return new plugin.AnalysisSetSubscriptionsParams(pluginSubscriptions); 39 return new plugin.AnalysisSetSubscriptionsParams(pluginSubscriptions);
45 } 40 }
46 41
47 plugin.AnalysisUpdateContentParams convertAnalysisUpdateContentParams( 42 plugin.AnalysisUpdateContentParams convertAnalysisUpdateContentParams(
48 server.AnalysisUpdateContentParams params) { 43 server.AnalysisUpdateContentParams params) {
49 return new plugin.AnalysisUpdateContentParams(params.files); 44 return new plugin.AnalysisUpdateContentParams(params.files);
50 } 45 }
51 } 46 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/plugin/plugin_manager.dart ('k') | pkg/analysis_server/test/analysis/reanalyze_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698