4a8c341ecf
R=scheglov@google.com Review URL: https://codereview.chromium.org//795833005 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@42780 260f80e4-7a28-3924-810f-c04153c831b5
35 lines
1.0 KiB
Dart
35 lines
1.0 KiB
Dart
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
library driver;
|
|
|
|
import 'package:analysis_server/plugin/plugin.dart';
|
|
import 'package:analysis_server/src/server/driver.dart';
|
|
import 'package:analyzer/instrumentation/instrumentation.dart';
|
|
|
|
/**
|
|
* An object that can be used to start an analysis server.
|
|
*/
|
|
abstract class ServerStarter {
|
|
/**
|
|
* Initialize a newly created starter to start up an analysis server.
|
|
*/
|
|
factory ServerStarter() = Driver;
|
|
|
|
/**
|
|
* Set the instrumentation [server] that is to be used by the analysis server.
|
|
*/
|
|
void set instrumentationServer(InstrumentationServer server);
|
|
|
|
/**
|
|
* Set the [plugins] that are defined outside the analysis_server package.
|
|
*/
|
|
void set userDefinedPlugins(List<Plugin> plugins);
|
|
|
|
/**
|
|
* Use the given command-line [arguments] to start this server.
|
|
*/
|
|
void start(List<String> arguments);
|
|
}
|