blob: 45b7bc3b53f0348fb73d1823b44008e66b33125f [file] [log] [blame]
#!/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 'dart:isolate';
import 'package:analyzer_cli/starter.dart';
/// 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);
}