OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 analyzer_cli.starter; | 5 library analyzer_cli.starter; |
6 | 6 |
| 7 import 'dart:async'; |
| 8 |
7 import 'package:analyzer/plugin/resolver_provider.dart'; | 9 import 'package:analyzer/plugin/resolver_provider.dart'; |
8 import 'package:analyzer_cli/src/driver.dart'; | 10 import 'package:analyzer_cli/src/driver.dart'; |
9 import 'package:plugin/plugin.dart'; | 11 import 'package:plugin/plugin.dart'; |
10 | 12 |
11 /** | 13 /** |
12 * An object that can be used to start a command-line analysis. This class | 14 * An object that can be used to start a command-line analysis. This class |
13 * exists so that clients can configure a command-line analyzer before starting | 15 * exists so that clients can configure a command-line analyzer before starting |
14 * it. | 16 * it. |
15 * | 17 * |
16 * Clients may not extend, implement or mix-in this class. | 18 * Clients may not extend, implement or mix-in this class. |
(...skipping 12 matching lines...) Expand all Loading... |
29 void set packageResolverProvider(ResolverProvider provider); | 31 void set packageResolverProvider(ResolverProvider provider); |
30 | 32 |
31 /** | 33 /** |
32 * Set the [plugins] that are defined outside the analyzer_cli package. | 34 * Set the [plugins] that are defined outside the analyzer_cli package. |
33 */ | 35 */ |
34 void set userDefinedPlugins(List<Plugin> plugins); | 36 void set userDefinedPlugins(List<Plugin> plugins); |
35 | 37 |
36 /** | 38 /** |
37 * Use the given command-line [arguments] to start this analyzer. | 39 * Use the given command-line [arguments] to start this analyzer. |
38 */ | 40 */ |
39 void start(List<String> arguments); | 41 Future<Null> start(List<String> arguments); |
40 } | 42 } |
OLD | NEW |