visitProgram method

  1. @override
Future<void> visitProgram(
  1. Program program
)
override

Implementation

@override
Future<void> visitProgram(Program program) async {
  final core = DartSdkPackage(name: 'core');

  await Future.wait([
    _resolvePackage(core),
    for (final import in program.imports) import.accept(this),
  ]);

  for (final statement in program.body) {
    await statement.accept(this);
  }
}