OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 driver; | 5 library driver; |
6 | 6 |
7 import 'package:analysis_server/src/server/driver.dart'; | 7 import 'package:analysis_server/src/server/driver.dart'; |
8 import 'package:analyzer/instrumentation/instrumentation.dart'; | 8 import 'package:analyzer/instrumentation/instrumentation.dart'; |
9 import 'package:analyzer/plugin/plugin.dart'; | 9 import 'package:plugin/plugin.dart'; |
10 | 10 |
11 /** | 11 /** |
12 * An object that can be used to start an analysis server. | 12 * An object that can be used to start an analysis server. |
13 */ | 13 */ |
14 abstract class ServerStarter { | 14 abstract class ServerStarter { |
15 /** | 15 /** |
16 * Initialize a newly created starter to start up an analysis server. | 16 * Initialize a newly created starter to start up an analysis server. |
17 */ | 17 */ |
18 factory ServerStarter() = Driver; | 18 factory ServerStarter() = Driver; |
19 | 19 |
20 /** | 20 /** |
21 * Set the instrumentation [server] that is to be used by the analysis server. | 21 * Set the instrumentation [server] that is to be used by the analysis server. |
22 */ | 22 */ |
23 void set instrumentationServer(InstrumentationServer server); | 23 void set instrumentationServer(InstrumentationServer server); |
24 | 24 |
25 /** | 25 /** |
26 * Set the [plugins] that are defined outside the analysis_server package. | 26 * Set the [plugins] that are defined outside the analysis_server package. |
27 */ | 27 */ |
28 void set userDefinedPlugins(List<Plugin> plugins); | 28 void set userDefinedPlugins(List<Plugin> plugins); |
29 | 29 |
30 /** | 30 /** |
31 * Use the given command-line [arguments] to start this server. | 31 * Use the given command-line [arguments] to start this server. |
32 */ | 32 */ |
33 void start(List<String> arguments); | 33 void start(List<String> arguments); |
34 } | 34 } |
OLD | NEW |