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

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

Issue 11878015: Default constructor for dart:io Path now handles native Windows paths. Path() now does the same as… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Improve comments. Created 7 years, 11 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
Index: sdk/lib/io/path_impl.dart
diff --git a/sdk/lib/io/path_impl.dart b/sdk/lib/io/path_impl.dart
index d2038381d65d01ca802c4f3331ea2ff46192c307..2b6df862d70442bccd7a405819690f3954b0f3ec 100644
--- a/sdk/lib/io/path_impl.dart
+++ b/sdk/lib/io/path_impl.dart
@@ -8,11 +8,13 @@ class _Path implements Path {
final String _path;
final bool isWindowsShare;
- _Path(String source) : _path = source, isWindowsShare = false;
-
- _Path.fromNative(String source)
+ _Path(String source)
: _path = _clean(source), isWindowsShare = _isWindowsShare(source);
+ _Path.fromNative(String source) : this(source);
+
+ _Path.raw(String source) : _path = source, isWindowsShare = false;
+
_Path._internal(String this._path, bool this.isWindowsShare);
static String _clean(String source) {

Powered by Google App Engine
This is Rietveld 408576698