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
724 B
Dart
21 lines
724 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.
|
|
|
|
/// Generates the file `api.txt`, which describes the analyzer public API.
|
|
library;
|
|
|
|
import 'package:analyzer_testing/package_root.dart' as pkg_root;
|
|
import 'package:analyzer_utilities/tool/api.dart';
|
|
import 'package:analyzer_utilities/tools.dart';
|
|
import 'package:path/path.dart';
|
|
|
|
Future<void> main() async {
|
|
await GeneratedContent.generateAll(analyzerPkgPath, allTargets);
|
|
}
|
|
|
|
/// The path to the `analyzer` package.
|
|
final String analyzerPkgPath = normalize(
|
|
join(pkg_root.packageRoot, 'analyzer'),
|
|
);
|