1bbd282d65
Change-Id: I919b6d92342076ed4420dcc4a5ee94853a35ed41 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/96240 Commit-Queue: Mike Fairhurst <mfairhurst@google.com> Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
23 lines
840 B
Dart
23 lines
840 B
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:analysis_tool/tools.dart';
|
|
import 'package:front_end/src/testing/package_root.dart' as package_root;
|
|
import 'package:path/path.dart';
|
|
|
|
import 'generate.dart';
|
|
|
|
/**
|
|
* Check that the target file has been code generated. If it hasn't tell the
|
|
* user to run generate.dart.
|
|
*/
|
|
main() async {
|
|
var idlFolderPath = normalize(
|
|
join(package_root.packageRoot, 'analyzer', 'lib', 'src', 'summary'));
|
|
var idlPath = normalize(join(idlFolderPath, 'idl.dart'));
|
|
await GeneratedContent.checkAll(idlFolderPath,
|
|
'pkg/analyzer/tool/summary/generate.dart', getAllTargets(idlPath),
|
|
args: [idlPath]);
|
|
}
|