Files
sdk/pkg/analyzer/tool/summary/check_test.dart
T
Konstantin Shcheglov 79396b13bf Migrate analyzer flat buffer generator to null safety.
Change-Id: If16c57cc443002f90f7f94b2e08294eb8bb44225
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/183766
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2021-02-09 17:14:00 +00:00

21 lines
836 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:analyzer_utilities/package_root.dart' as package_root;
import 'package:analyzer_utilities/tools.dart';
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]);
}