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

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

Issue 993213003: Support browser caching using hashes in serverMode (fixes #93, fixes #92) (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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 6ddfc64e6762f905d54abbf8a5e023034b3d8b9d..3fa931bcf087c67a44c747c0a8eeda042eed5cdc 100644
--- a/lib/src/codegen/dart_codegen.dart
+++ b/lib/src/codegen/dart_codegen.dart
@@ -452,13 +452,14 @@ class DartGenerator extends codegenerator.CodeGenerator {
libs.forEach(doOne);
}
- void generateLibrary(Iterable<CompilationUnit> units, LibraryInfo info,
+ String generateLibrary(Iterable<CompilationUnit> units, LibraryInfo info,
CheckerReporter reporter) {
_vm = new reifier.VariableManager();
_extraImports = new Set<LibraryElement>();
_generateLibrary(units, info, reporter);
_extraImports = null;
_vm = null;
+ return null;
}
}
@@ -485,7 +486,7 @@ 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,
+ String generateLibrary(Iterable<CompilationUnit> units, LibraryInfo info,
CheckerReporter reporter) {
for (var unit in units) {
var outputDir = makeOutputDirectory(info, unit);
@@ -493,6 +494,7 @@ class EmptyDartGenerator extends codegenerator.CodeGenerator {
generateUnit(unit, info, outputDir);
reporter.leaveSource();
}
+ return null;
}
void generateUnit(CompilationUnit unit, LibraryInfo info, String libraryDir) {
« 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