Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: lib/src/codegen/dart_codegen.dart

Issue 973433003: Initial cut for a development server (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/codegen/code_generator.dart ('k') | lib/src/codegen/html_codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « lib/src/codegen/code_generator.dart ('k') | lib/src/codegen/html_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698