| Index: pkg/analyzer_cli/bin/analyzer.dart
|
| diff --git a/pkg/analyzer_cli/bin/analyzer.dart b/pkg/analyzer_cli/bin/analyzer.dart
|
| index 3172b0fab730f9adbc26652bfc058dcb5d13936a..f225b841b3830596d4c7e62b7d2b385c91e1cd53 100644
|
| --- a/pkg/analyzer_cli/bin/analyzer.dart
|
| +++ b/pkg/analyzer_cli/bin/analyzer.dart
|
| @@ -3,10 +3,18 @@
|
| // 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:io';
|
| +
|
| import 'package:analyzer_cli/starter.dart';
|
|
|
| /// The entry point for the command-line analyzer.
|
| -void main(List<String> args) {
|
| +main(List<String> args) async {
|
| CommandLineStarter starter = new CommandLineStarter();
|
| - starter.start(args);
|
| +
|
| + // Wait for the starter to complete.
|
| + await starter.start(args);
|
| +
|
| + // Call exit() explicitly. Analytics calls could still be ongoing, but we
|
| + // don't want to delay returning the analysis results because of them.
|
| + exit(exitCode);
|
| }
|
|
|