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

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: Don't change tools/version.dart until the binaries are updated. 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
« no previous file with comments | « sdk/lib/io/path.dart ('k') | tests/compiler/dart2js/mirrors_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a7623b05d321c12774825924bc1fe7dd2e1a9418 100644
--- a/sdk/lib/io/path_impl.dart
+++ b/sdk/lib/io/path_impl.dart
@@ -8,11 +8,11 @@ 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.raw(String source) : _path = source, isWindowsShare = false;
+
_Path._internal(String this._path, bool this.isWindowsShare);
static String _clean(String source) {
« no previous file with comments | « sdk/lib/io/path.dart ('k') | tests/compiler/dart2js/mirrors_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698