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

Side by Side Diff: pkg/analysis_server/test/analysis_abstract.dart

Issue 2565993002: Remove the command-line plugin (Closed)
Patch Set: remove missed file Created 4 years 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) 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 test.domain.analysis.abstract; 5 library test.domain.analysis.abstract;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/plugin/protocol/protocol.dart' 9 import 'package:analysis_server/plugin/protocol/protocol.dart'
10 hide AnalysisOptions; 10 hide AnalysisOptions;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 return testFile; 112 return testFile;
113 } 113 }
114 114
115 AnalysisServer createAnalysisServer(Index index) { 115 AnalysisServer createAnalysisServer(Index index) {
116 // 116 //
117 // Collect plugins 117 // Collect plugins
118 // 118 //
119 ServerPlugin serverPlugin = new ServerPlugin(); 119 ServerPlugin serverPlugin = new ServerPlugin();
120 List<Plugin> plugins = <Plugin>[]; 120 List<Plugin> plugins = <Plugin>[];
121 plugins.addAll(AnalysisEngine.instance.requiredPlugins); 121 plugins.addAll(AnalysisEngine.instance.requiredPlugins);
122 plugins.add(AnalysisEngine.instance.commandLinePlugin);
123 plugins.add(serverPlugin); 122 plugins.add(serverPlugin);
124 plugins.add(dartCompletionPlugin); 123 plugins.add(dartCompletionPlugin);
125 addServerPlugins(plugins); 124 addServerPlugins(plugins);
126 // 125 //
127 // Process plugins 126 // Process plugins
128 // 127 //
129 ExtensionManager manager = new ExtensionManager(); 128 ExtensionManager manager = new ExtensionManager();
130 manager.processPlugins(plugins); 129 manager.processPlugins(plugins);
131 // 130 //
132 // Create an SDK in the mock file system. 131 // Create an SDK in the mock file system.
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 } 250 }
252 251
253 /** 252 /**
254 * Completes with a successful [Response] for the given [request]. 253 * Completes with a successful [Response] for the given [request].
255 * Otherwise fails. 254 * Otherwise fails.
256 */ 255 */
257 Future<Response> waitResponse(Request request) async { 256 Future<Response> waitResponse(Request request) async {
258 return serverChannel.sendRequest(request); 257 return serverChannel.sendRequest(request);
259 } 258 }
260 } 259 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/server/driver.dart ('k') | pkg/analysis_server/test/context_manager_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698