a3db8a904e
Change-Id: I2ce54bd775e0f7f9e9205c6d24f019d9a395c455 Reviewed-on: https://dart-review.googlesource.com/c/80160 Commit-Queue: David Morgan <davidmorgan@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
19 lines
705 B
Dart
19 lines
705 B
Dart
#!/usr/bin/env 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.
|
|
|
|
import 'package:analyzer_cli/starter.dart';
|
|
import 'dart:isolate';
|
|
|
|
/// The entry point for the command-line analyzer.
|
|
///
|
|
/// [sendPort] may be passed in when started in an isolate. If provided, it is
|
|
/// used for bazel worker communication instead of stdin/stdout.
|
|
main(List<String> args, [SendPort sendPort]) async {
|
|
CommandLineStarter starter = new CommandLineStarter();
|
|
|
|
// Wait for the starter to complete.
|
|
await starter.start(args, sendPort: sendPort);
|
|
}
|