fafad4e03d
Also, add some scripts to generate the analyzer_testing API, and checkin the api.txt file for analyzer_testing. In order to avoid a private analyzer import, I add `isExperimental` and `hasExperimental` support for `@experimental` annotation, and switch to using public APIs in `_dumpElement`. Change-Id: I44319270d4e6083b80973b45933268c472876232 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/426282 Commit-Queue: Samuel Rawlins <srawlins@google.com> Reviewed-by: Paul Berry <paulberry@google.com>
21 lines
640 B
Dart
21 lines
640 B
Dart
// Copyright (c) 2025, 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.
|
|
|
|
// This test verifies that all files generated by `generate.dart` are up to
|
|
// date.
|
|
|
|
import 'package:analyzer_utilities/tool/api.dart';
|
|
import 'package:analyzer_utilities/tools.dart';
|
|
import 'package:path/path.dart';
|
|
|
|
import 'generate.dart';
|
|
|
|
Future<void> main() async {
|
|
await GeneratedContent.checkAll(
|
|
analyzerTestingPkgPath,
|
|
join(analyzerTestingPkgPath, 'tool', 'api', 'generate.dart'),
|
|
allTargets,
|
|
);
|
|
}
|