f846d0e7ea
Change-Id: I58d1ca58e6d630aee928c6a7cb7fc97822a3be22 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/161449 Auto-Submit: Mike Fairhurst <mfairhurst@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
24 lines
922 B
Dart
24 lines
922 B
Dart
// Copyright (c) 2016, 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.
|
|
|
|
import 'dart:isolate';
|
|
|
|
import 'package:analyzer_cli/src/driver.dart';
|
|
|
|
/// An object that can be used to start a command-line analysis. This class
|
|
/// exists so that clients can configure a command-line analyzer before starting
|
|
/// it.
|
|
///
|
|
/// Clients may not extend, implement or mix-in this class.
|
|
abstract class CommandLineStarter {
|
|
/// Initialize a newly created starter to start up a command-line analysis.
|
|
factory CommandLineStarter() = Driver;
|
|
|
|
/// Use the given command-line [arguments] to start this analyzer.
|
|
///
|
|
/// If [sendPort] is provided it is used for bazel worker communication
|
|
/// instead of stdin/stdout.
|
|
Future<void> start(List<String> arguments, {SendPort sendPort});
|
|
}
|