generate abstract method
Generates both reflection metadata and concrete reflector classes.
This is the main entry point that processes all libraries in the mirror system (plus any force-loaded mirrors) and generates complete reflection metadata.
Parameters:
dartFiles: A list of Dart files to process via analyzer
Returns: A list of LibraryDeclaration objects representing the reflected libraries
Example:
final libraries = await generator.generate(dartFiles);
for (final library in libraries) {
print('Library: ${library.uri}');
for (final declaration in library.declarations) {
print(' - ${declaration.name}');
}
}
Implementation
Future<void> generate(List<File> dartFiles);