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

Unified Diff: lib/src/template/file_system.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/emitters.dart ('k') | lib/src/template/file_system_browser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/template/file_system.dart
diff --git a/lib/src/template/file_system.dart b/lib/src/template/file_system.dart
index 99731c42a66d834dfec03dde10daf71aff99d96b..39ae446532e0bde0a9915d4497435f382c9f1666 100644
--- a/lib/src/template/file_system.dart
+++ b/lib/src/template/file_system.dart
@@ -12,8 +12,17 @@ library file_system;
* environments.
*/
interface FileSystem {
- String readAll(String filename);
+ /**
+ * Apply all pending writes. Until this method is called, writeString is not
+ * guaranteed to have any observable impact.
+ */
+ Future flush();
+ Future<String> readAll(String filename);
+
+ /**
+ * Writes [text] to [outfile]. Call flush to insure that changes are visible.
+ */
void writeString(String outfile, String text);
void createDirectory(String path, [bool recursive]);
« no previous file with comments | « lib/src/template/emitters.dart ('k') | lib/src/template/file_system_browser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698