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

Side by Side Diff: pkg/polymer/lib/src/file_system/console.dart

Issue 23619002: readd accidentally removed import. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 library console; 5 library console;
6 6
7 import 'dart:async';
7 import 'dart:convert'; 8 import 'dart:convert';
8 import 'dart:io'; 9 import 'dart:io';
9 import 'package:polymer/src/file_system.dart'; 10 import 'package:polymer/src/file_system.dart';
10 11
11 /** File system implementation for console VM (i.e. no browser). */ 12 /** File system implementation for console VM (i.e. no browser). */
12 class ConsoleFileSystem implements FileSystem { 13 class ConsoleFileSystem implements FileSystem {
13 14
14 /** Pending futures for file write requests. */ 15 /** Pending futures for file write requests. */
15 final _pending = <String, Future>{}; 16 final _pending = <String, Future>{};
16 17
(...skipping 20 matching lines...) Expand all
37 .then((_) => file.close()) 38 .then((_) => file.close())
38 .then((_) => buffer); 39 .then((_) => buffer);
39 })); 40 }));
40 } 41 }
41 42
42 // TODO(jmesserly): do we support any encoding other than UTF-8 for Dart? 43 // TODO(jmesserly): do we support any encoding other than UTF-8 for Dart?
43 Future<String> readText(String path) { 44 Future<String> readText(String path) {
44 return readTextOrBytes(path).then(UTF8.decode); 45 return readTextOrBytes(path).then(UTF8.decode);
45 } 46 }
46 } 47 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698