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/context_manager.dart'; | 7 import 'package:analysis_server/src/context_manager.dart'; |
8 import 'package:analysis_server/src/server/driver.dart'; | 8 import 'package:analysis_server/src/server/driver.dart'; |
9 import 'package:analysis_server/uri/resolver_provider.dart'; | 9 import 'package:analysis_server/uri/resolver_provider.dart'; |
10 import 'package:analyzer/instrumentation/instrumentation.dart'; | 10 import 'package:analyzer/instrumentation/instrumentation.dart'; |
11 import 'package:plugin/plugin.dart'; | 11 import 'package:plugin/plugin.dart'; |
12 | 12 |
13 /** | 13 /** |
14 * An object that can be used to start an analysis server. | 14 * An object that can be used to start an analysis server. |
| 15 * |
| 16 * Clients are not expected to subtype this class. |
15 */ | 17 */ |
16 abstract class ServerStarter { | 18 abstract class ServerStarter { |
17 /** | 19 /** |
18 * Initialize a newly created starter to start up an analysis server. | 20 * Initialize a newly created starter to start up an analysis server. |
19 */ | 21 */ |
20 factory ServerStarter() = Driver; | 22 factory ServerStarter() = Driver; |
21 | 23 |
22 /** | 24 /** |
23 * Set the context manager used to create analysis contexts within each of the | 25 * Set the context manager used to create analysis contexts within each of the |
24 * analysis roots. | 26 * analysis roots. |
(...skipping 16 matching lines...) Expand all Loading... |
41 /** | 43 /** |
42 * Set the [plugins] that are defined outside the analysis_server package. | 44 * Set the [plugins] that are defined outside the analysis_server package. |
43 */ | 45 */ |
44 void set userDefinedPlugins(List<Plugin> plugins); | 46 void set userDefinedPlugins(List<Plugin> plugins); |
45 | 47 |
46 /** | 48 /** |
47 * Use the given command-line [arguments] to start this server. | 49 * Use the given command-line [arguments] to start this server. |
48 */ | 50 */ |
49 void start(List<String> arguments); | 51 void start(List<String> arguments); |
50 } | 52 } |
OLD | NEW |