blob: 672ff9d7d98b4d7dbac061f8d8e1f2278fd2508e [file] [log] [blame]
// Copyright (c) 2020, 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.
// @dart = 2.9
import 'analysis_helper.dart';
/// Filter function used to only analysis cfe source code.
bool cfeOnly(Uri uri) {
String text = '$uri';
for (String path in [
]) {
if (text.startsWith(path)) {
return true;
return false;
main(List<String> args) async {
await run(Uri.base.resolve('pkg/front_end/tool/_fasta/compile.dart'),
analyzedUrisFilter: cfeOnly,
verbose: args.contains('-v'),
generate: args.contains('-g'));