Index: lib/src/codegen/dart_codegen.dart |
diff --git a/lib/src/codegen/dart_codegen.dart b/lib/src/codegen/dart_codegen.dart |
index 8bb7c0edc98a1fd233674951cbd487f878e7a9c6..79aa4dbcf9f1fde15b10c0e9c23bc5d90554a3ad 100644 |
--- a/lib/src/codegen/dart_codegen.dart |
+++ b/lib/src/codegen/dart_codegen.dart |
@@ -485,6 +485,16 @@ class EmptyDartGenerator extends codegenerator.CodeGenerator { |
EmptyDartGenerator(String outDir, Uri root, TypeRules rules, this.options) |
: super(outDir, root, rules); |
+ void generateLibrary(Iterable<CompilationUnit> units, LibraryInfo info, |
+ CheckerReporter reporter) { |
+ for (var unit in units) { |
+ var outputDir = makeOutputDirectory(info, unit); |
+ reporter.enterSource(unit.element.source); |
+ generateUnit(unit, info, outputDir); |
+ reporter.leaveSource(); |
+ } |
+ } |
+ |
void generateUnit(CompilationUnit unit, LibraryInfo info, String libraryDir) { |
var uri = unit.element.source.uri; |
_log.fine("Emitting original unit " + uri.toString()); |