analyzeProject method

Future<List<FileIr>> analyzeProject()

Analyzes all Dart files in the project.

Implementation

Future<List<FileIr>> analyzeProject() async {
  final files = _loader.discoverDartFiles();
  final results = <FileIr>[];

  for (final file in files) {
    final ir = await analyzeFile(file);
    if (ir != null) {
      results.add(ir);
    }
  }

  return results;
}