| 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 'package:analyzer/plugin/embedded_resolver_provider.dart'; | 7 import 'package:analyzer/plugin/embedded_resolver_provider.dart'; |
| 8 import 'package:analyzer/plugin/resolver_provider.dart'; | 8 import 'package:analyzer/plugin/resolver_provider.dart'; |
| 9 import 'package:analyzer_cli/src/driver.dart'; | 9 import 'package:analyzer_cli/src/driver.dart'; |
| 10 import 'package:plugin/plugin.dart'; | 10 import 'package:plugin/plugin.dart'; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * Initialize a newly created starter to start up a command-line analysis. | 21 * Initialize a newly created starter to start up a command-line analysis. |
| 22 */ | 22 */ |
| 23 factory CommandLineStarter() = Driver; | 23 factory CommandLineStarter() = Driver; |
| 24 | 24 |
| 25 /** | 25 /** |
| 26 * Set the embedded resolver provider used to override the way embedded | 26 * Set the embedded resolver provider used to override the way embedded |
| 27 * library URI's are resolved in some contexts. The provider should return | 27 * library URI's are resolved in some contexts. The provider should return |
| 28 * `null` if the embedded library URI resolution scheme should be used | 28 * `null` if the embedded library URI resolution scheme should be used |
| 29 * instead. | 29 * instead. |
| 30 */ | 30 */ |
| 31 void set embeddedUriResolverProvider(EmbeddedResolverProvider provider); | 31 set embeddedUriResolverProvider(EmbeddedResolverProvider provider); |
| 32 | 32 |
| 33 /** | 33 /** |
| 34 * Set the package resolver provider used to override the way package URI's | 34 * Set the package resolver provider used to override the way package URI's |
| 35 * are resolved in some contexts. The provider should return `null` if the | 35 * are resolved in some contexts. The provider should return `null` if the |
| 36 * default package resolution scheme should be used instead. | 36 * default package resolution scheme should be used instead. |
| 37 */ | 37 */ |
| 38 void set packageResolverProvider(ResolverProvider provider); | 38 set packageResolverProvider(ResolverProvider provider); |
| 39 | 39 |
| 40 /** | 40 /** |
| 41 * Set the [plugins] that are defined outside the analyzer_cli package. | 41 * Set the [plugins] that are defined outside the analyzer_cli package. |
| 42 */ | 42 */ |
| 43 void set userDefinedPlugins(List<Plugin> plugins); | 43 set userDefinedPlugins(List<Plugin> plugins); |
| 44 | 44 |
| 45 /** | 45 /** |
| 46 * Use the given command-line [arguments] to start this analyzer. | 46 * Use the given command-line [arguments] to start this analyzer. |
| 47 */ | 47 */ |
| 48 void start(List<String> arguments); | 48 void start(List<String> arguments); |
| 49 } | 49 } |
| OLD | NEW |