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

Side by Side Diff: utils/lib/file_system_memory.dart

Issue 11358145: Update utils to new library syntax. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « utils/lib/file_system.dart ('k') | utils/lib/file_system_vm.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // TODO(terry): Investigate common library for file I/O shared between frog and tools. 5 // TODO(terry): Investigate common library for file I/O shared between frog and tools.
6 6
7 #library('file_system_memory'); 7 library file_system_memory;
8 8
9 #import('file_system.dart'); 9 import 'file_system.dart';
10 10
11 /** 11 /**
12 * [FileSystem] implementation a memory buffer. 12 * [FileSystem] implementation a memory buffer.
13 */ 13 */
14 class MemoryFileSystem implements FileSystem { 14 class MemoryFileSystem implements FileSystem {
15 StringBuffer buffer; 15 StringBuffer buffer;
16 16
17 MemoryFileSystem() : this.buffer = new StringBuffer(); 17 MemoryFileSystem() : this.buffer = new StringBuffer();
18 18
19 void writeString(String outfile, String text) { 19 void writeString(String outfile, String text) {
(...skipping 11 matching lines...) Expand all
31 void createDirectory(String path, [bool recursive]) { 31 void createDirectory(String path, [bool recursive]) {
32 // TODO(terry): To be implement. 32 // TODO(terry): To be implement.
33 throw 'createDirectory() is not implemented by MemoryFileSystem yet.'; 33 throw 'createDirectory() is not implemented by MemoryFileSystem yet.';
34 } 34 }
35 35
36 void removeDirectory(String path, [bool recursive]) { 36 void removeDirectory(String path, [bool recursive]) {
37 // TODO(terry): To be implement. 37 // TODO(terry): To be implement.
38 throw 'removeDirectory() is not implemented by MemoryFileSystem yet.'; 38 throw 'removeDirectory() is not implemented by MemoryFileSystem yet.';
39 } 39 }
40 } 40 }
OLDNEW
« no previous file with comments | « utils/lib/file_system.dart ('k') | utils/lib/file_system_vm.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698