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

Unified Diff: runtime/bin/path_impl.dart

Issue 10872033: Change getters syntax in dart:io library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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/path.dart ('k') | runtime/bin/platform.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/path_impl.dart
diff --git a/runtime/bin/path_impl.dart b/runtime/bin/path_impl.dart
index 40b6aa7e095ececc5943a87dd5c7e11c1f6eb198..05c026ccf0121d7eff1d889e31a85cfc6e4f5cfd 100644
--- a/runtime/bin/path_impl.dart
+++ b/runtime/bin/path_impl.dart
@@ -29,9 +29,9 @@ class _Path implements Path {
return clean;
}
- bool get isEmpty() => _path.isEmpty();
- bool get isAbsolute() => _path.startsWith('/');
- bool get hasTrailingSeparator() => _path.endsWith('/');
+ bool get isEmpty => _path.isEmpty();
+ bool get isAbsolute => _path.startsWith('/');
+ bool get hasTrailingSeparator => _path.endsWith('/');
String toString() => _path;
@@ -77,7 +77,7 @@ class _Path implements Path {
return makeCanonical();
}
- bool get isCanonical() {
+ bool get isCanonical {
// Contains no consecutive path separators.
// Contains no segments that are '.'.
// Absolute paths have no segments that are '..'.
@@ -190,27 +190,27 @@ class _Path implements Path {
}
}
- String get filenameWithoutExtension() {
+ String get filenameWithoutExtension {
var name = filename;
if (name == '.' || name == '..') return name;
int pos = name.lastIndexOf('.');
return (pos < 0) ? name : name.substring(0, pos);
}
- String get extension() {
+ String get extension {
var name = filename;
int pos = name.lastIndexOf('.');
return (pos < 0) ? '' : name.substring(pos + 1);
}
- Path get directoryPath() {
+ Path get directoryPath {
int pos = _path.lastIndexOf('/');
if (pos < 0) return new Path('');
while (pos > 0 && _path[pos - 1] == '/') --pos;
return new Path((pos > 0) ? _path.substring(0, pos) : '/');
}
- String get filename() {
+ String get filename {
int pos = _path.lastIndexOf('/');
return _path.substring(pos + 1);
}
« no previous file with comments | « runtime/bin/path.dart ('k') | runtime/bin/platform.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698