| 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/plugin/analysis/resolver_provider.dart'; | 7 import 'package:analysis_server/plugin/analysis/resolver_provider.dart'; | 
| 8 import 'package:analysis_server/src/server/driver.dart'; | 8 import 'package:analysis_server/src/server/driver.dart'; | 
| 9 import 'package:analyzer/instrumentation/instrumentation.dart'; | 9 import 'package:analyzer/instrumentation/instrumentation.dart'; | 
| 10 import 'package:plugin/plugin.dart'; | 10 import 'package:plugin/plugin.dart'; | 
| 11 | 11 | 
| 12 /** | 12 /** | 
| 13  * An object that can be used to start an analysis server. | 13  * 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. | 
| 14  * | 15  * | 
| 15  * Clients are not expected to subtype this class. | 16  * Clients may not extend, implement or mix-in this class. | 
| 16  */ | 17  */ | 
| 17 abstract class ServerStarter { | 18 abstract class ServerStarter { | 
| 18   /** | 19   /** | 
| 19    * Initialize a newly created starter to start up an analysis server. | 20    * Initialize a newly created starter to start up an analysis server. | 
| 20    */ | 21    */ | 
| 21   factory ServerStarter() = Driver; | 22   factory ServerStarter() = Driver; | 
| 22 | 23 | 
| 23   /** | 24   /** | 
| 24    * Set the instrumentation [server] that is to be used by the analysis server. | 25    * Set the instrumentation [server] that is to be used by the analysis server. | 
| 25    */ | 26    */ | 
| 26   void set instrumentationServer(InstrumentationServer server); | 27   void set instrumentationServer(InstrumentationServer server); | 
| 27 | 28 | 
| 28   /** | 29   /** | 
| 29    * Set the package resolver provider used to override the way package URI's | 30    * Set the package resolver provider used to override the way package URI's | 
| 30    * are resolved in some contexts. The provider should return `null` if the | 31    * are resolved in some contexts. The provider should return `null` if the | 
| 31    * default package resolution scheme should be used instead. | 32    * default package resolution scheme should be used instead. | 
| 32    */ | 33    */ | 
| 33   void set packageResolverProvider(ResolverProvider provider); | 34   void set packageResolverProvider(ResolverProvider provider); | 
| 34 | 35 | 
| 35   /** | 36   /** | 
| 36    * Set the [plugins] that are defined outside the analysis_server package. | 37    * Set the [plugins] that are defined outside the analysis_server package. | 
| 37    */ | 38    */ | 
| 38   void set userDefinedPlugins(List<Plugin> plugins); | 39   void set userDefinedPlugins(List<Plugin> plugins); | 
| 39 | 40 | 
| 40   /** | 41   /** | 
| 41    * Use the given command-line [arguments] to start this server. | 42    * Use the given command-line [arguments] to start this server. | 
| 42    */ | 43    */ | 
| 43   void start(List<String> arguments); | 44   void start(List<String> arguments); | 
| 44 } | 45 } | 
| OLD | NEW | 
|---|