OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 import 'dart:isolate'; |
| 6 |
| 7 import 'package:analyzer_plugin/plugin/plugin.dart'; |
| 8 import 'package:analyzer_plugin/src/driver.dart'; |
| 9 |
| 10 /** |
| 11 * An object that can be used to start an analysis server plugin. This class |
| 12 * exists so that clients can configure a plugin before starting it. |
| 13 * |
| 14 * Clients may not extend, implement or mix-in this class. |
| 15 */ |
| 16 abstract class ServerPluginStarter { |
| 17 /** |
| 18 * Create a starter that can be used to start the given [plugin]. |
| 19 */ |
| 20 factory ServerPluginStarter(ServerPlugin plugin) => new Driver(plugin); |
| 21 |
| 22 /** |
| 23 * Establish the channel used to communicate with the server and start the |
| 24 * plugin. |
| 25 */ |
| 26 void start(SendPort sendPort); |
| 27 } |
OLD | NEW |