| 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 analysis_server.starter; | 5 library analysis_server.starter; |
| 6 | 6 |
| 7 import 'package:analysis_server/src/server/driver.dart'; | 7 import 'package:analysis_server/src/server/driver.dart'; |
| 8 import 'package:analysis_server/src/analysis_server.dart'; |
| 8 import 'package:analyzer/instrumentation/instrumentation.dart'; | 9 import 'package:analyzer/instrumentation/instrumentation.dart'; |
| 9 import 'package:analyzer/plugin/resolver_provider.dart'; | 10 import 'package:analyzer/plugin/resolver_provider.dart'; |
| 10 import 'package:plugin/plugin.dart'; | 11 import 'package:plugin/plugin.dart'; |
| 11 | 12 |
| 12 /** | 13 /** |
| 13 * An object that can be used to start an analysis server. This class exists so | 14 * An object that can be used to start an analysis server. This class exists so |
| 14 * that clients can configure an analysis server before starting it. | 15 * that clients can configure an analysis server before starting it. |
| 15 * | 16 * |
| 16 * Clients may not extend, implement or mix-in this class. | 17 * Clients may not extend, implement or mix-in this class. |
| 17 */ | 18 */ |
| (...skipping 22 matching lines...) Expand all Loading... |
| 40 */ | 41 */ |
| 41 void set packageResolverProvider(ResolverProvider provider); | 42 void set packageResolverProvider(ResolverProvider provider); |
| 42 | 43 |
| 43 /** | 44 /** |
| 44 * Set the [plugins] that are defined outside the analysis_server package. | 45 * Set the [plugins] that are defined outside the analysis_server package. |
| 45 */ | 46 */ |
| 46 void set userDefinedPlugins(List<Plugin> plugins); | 47 void set userDefinedPlugins(List<Plugin> plugins); |
| 47 | 48 |
| 48 /** | 49 /** |
| 49 * Use the given command-line [arguments] to start this server. | 50 * Use the given command-line [arguments] to start this server. |
| 51 * |
| 52 * At least temporarily returns AnalysisServer so that consumers of the |
| 53 * starter API can then use the server, this is done as a stopgap for the |
| 54 * angular plugin until the official plugin API is finished. |
| 50 */ | 55 */ |
| 51 void start(List<String> arguments); | 56 AnalysisServer start(List<String> arguments); |
| 52 } | 57 } |
| OLD | NEW |