Files
sdk/pkg/analyzer_cli/bin/analyzer.dart
T
Brian Wilkerson 36e3bae4fb Enable always_declare_return_types in analyzer_cli
Change-Id: I416b5839fc4833c2e20bd629f847fddd7dcba966
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/133405
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
2020-01-25 23:09:57 +00:00

20 lines
706 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 '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.
void main(List<String> args, [SendPort sendPort]) async {
CommandLineStarter starter = CommandLineStarter();
// Wait for the starter to complete.
await starter.start(args, sendPort: sendPort);
}