@@ -21,13 +21,11 @@ import 'package:kernel/target/changed_structure_notifier.dart';
2121import 'package:kernel/target/targets.dart' ;
2222import "package:vm/modular/target/vm.dart" show VmTarget;
2323
24- import 'testing_utils.dart' show getGitFiles ;
24+ import 'testing_utils.dart' show computeSourceFiles ;
2525import "utils/io_utils.dart" ;
2626
2727final Uri repoDir = computeRepoDirUri ();
2828
29- Set <Uri > libUris = {};
30-
3129Future <void > main (List <String > args) async {
3230 api.CompilerOptions compilerOptions = getOptions ();
3331
@@ -39,22 +37,7 @@ Future<void> main(List<String> args) async {
3937
4038 ProcessedOptions options = new ProcessedOptions (options: compilerOptions);
4139
42- libUris.add (repoDir.resolve ("pkg/front_end/lib/" ));
43- libUris.add (repoDir.resolve ("pkg/front_end/test/fasta/" ));
44- libUris.add (repoDir.resolve ("pkg/front_end/tool/" ));
45-
46- for (Uri uri in libUris) {
47- Set <Uri > gitFiles = await getGitFiles (uri);
48- List <FileSystemEntity > entities =
49- new Directory .fromUri (uri).listSync (recursive: true );
50- for (FileSystemEntity entity in entities) {
51- if (entity is File &&
52- entity.path.endsWith (".dart" ) &&
53- gitFiles.contains (entity.uri)) {
54- options.inputs.add (entity.uri);
55- }
56- }
57- }
40+ options.inputs.addAll (await computeSourceFiles (repoDir));
5841
5942 Stopwatch stopwatch = new Stopwatch ()..start ();
6043
0 commit comments