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

Unified Diff: runtime/bin/path.dart

Issue 10938010: Switch from interfaces to abstract classes in dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Add test binaries. Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/output_stream.dart ('k') | runtime/bin/path_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/path.dart
diff --git a/runtime/bin/path.dart b/runtime/bin/path.dart
index 32ec3123545b935c0485dc1793abacfa86f81999..d2d754fc997e405dee3270e02463ee7f126881da 100644
--- a/runtime/bin/path.dart
+++ b/runtime/bin/path.dart
@@ -9,14 +9,13 @@
* useful path manipulations and queries. Joining of paths and normalization
* interpret '.' and '..' in the usual way.
*/
-interface Path extends Hashable default _Path {
+abstract class Path extends Hashable {
/**
* Creates a Path from the String [source]. [source] is used as-is, so if
* the string does not consist of segments separated by forward slashes, the
- * behavior may not be as expected. Paths are immutable, and constant
- * Path objects may be constructed from constant Strings.
+ * behavior may not be as expected. Paths are immutable.
*/
- const Path(String source);
+ factory Path(String source) => new _Path(source);
/**
* Creates a Path from a String that uses the native filesystem's conventions.
@@ -24,7 +23,7 @@ interface Path extends Hashable default _Path {
* A path starting with '/c:/' (or any other character instead of 'c') is
* treated specially. Backwards links ('..') cannot cancel the drive letter.
*/
- Path.fromNative(String source);
+ factory Path.fromNative(String source) => new _Path.fromNative(source);
/**
* Is this path the empty string?
« no previous file with comments | « runtime/bin/output_stream.dart ('k') | runtime/bin/path_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698