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