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

Unified Diff: sdk/lib/io/file_impl.dart

Issue 11661003: Implement toString on File and Directory objects. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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
Index: sdk/lib/io/file_impl.dart
diff --git a/sdk/lib/io/file_impl.dart b/sdk/lib/io/file_impl.dart
index 98519c17a9b8f0132b70000e171ccedb7c3be96d..395e12100e8252271f88366eab5bb8a9fda1dad1 100644
--- a/sdk/lib/io/file_impl.dart
+++ b/sdk/lib/io/file_impl.dart
@@ -704,6 +704,8 @@ class _File extends _FileBase implements File {
String get name => _name;
+ String toString() => "File: '$name'";
Søren Gjesse 2012/12/21 10:16:00 Ditto.
+
void _ensureFileService() {
if (_fileService == null) {
_fileService = _FileUtils._newServicePort();

Powered by Google App Engine
This is Rietveld 408576698