dart-sdk/pkg/analyzer_plugin/tool/spec/check_all_test.dart
Paul Berry e2f77056a5 Eliminate dependencies on pkg/front_end.
The API for pkg/front_end is still in flux so we want to avoid having
any packages depend directly on it (other than analyzer and
back-ends).

This CL re-exports some of the critical pieces of front_end needed by
analyzer clients so that those clients can access them via analyzer,
without having to directly depend on front_end.  It also updates
pkg/analyzer_plugin to make use of those re-exports.

R=scheglov@google.com

Review-Url: https://codereview.chromium.org/2993123002 .
2017-08-07 09:46:30 -07:00

24 lines
813 B
Dart

// Copyright (c) 2017, 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:io';
import 'package:analyzer/src/codegen/tools.dart';
import 'package:path/path.dart';
import 'generate_all.dart';
/**
* Check that all targets have been code generated. If they haven't tell the
* user to run generate_all.dart.
*/
main() {
String script = Platform.script.toFilePath(windows: Platform.isWindows);
List<String> components = split(script);
int index = components.indexOf('analyzer_plugin');
String pkgPath = joinAll(components.sublist(0, index + 1));
GeneratedContent.checkAll(
pkgPath, join('tool', 'spec', 'generate_all.dart'), allTargets);
}