generate method

String generate()

Implementation

String generate() {
  final libs = LibraryGeneration(
    options,
    context,
    locale,
    messages,
    localeToResourceInfo,
  ).generate();

  assert(libs.isNotEmpty);

  final emitter = DartEmitter(orderDirectives: true);
  final source = '${libs.first.accept(emitter)}';
  return DartFormatter().format(source);
}