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

Unified Diff: lib/src/template/file_system_memory.dart

Issue 11092092: Support compiling templates in the browser. Base URL: git@github.com:dart-lang/dart-web-components.git@master
Patch Set: Created 8 years, 2 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/template/file_system_browser.dart ('k') | lib/src/template/file_system_vm.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/template/file_system_memory.dart
diff --git a/lib/src/template/file_system_memory.dart b/lib/src/template/file_system_memory.dart
index e4d616bae73b4a6fda47825d1822e0fc3734b2aa..1b44ab7423697068791d1c658375fed0825f1462 100644
--- a/lib/src/template/file_system_memory.dart
+++ b/lib/src/template/file_system_memory.dart
@@ -16,12 +16,16 @@ class MemoryFileSystem implements FileSystem {
MemoryFileSystem() : this.buffer = new StringBuffer();
+ Future flush() {
+ return new Future.immediate(null);
+ }
+
void writeString(String outfile, String text) {
buffer.add(text);
}
- String readAll(String filename) {
- return buffer.toString();
+ Future<String> readAll(String filename) {
+ return new Future<String>.immediate(buffer.toString());
}
void createDirectory(String path, [bool recursive]) {
« no previous file with comments | « lib/src/template/file_system_browser.dart ('k') | lib/src/template/file_system_vm.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698