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

Unified Diff: utils/pub/package.dart

Issue 12255016: Get rid of old redundant methods in io.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise and update to latest. Created 7 years, 10 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 | « utils/pub/oauth2.dart ('k') | utils/pub/pub.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/package.dart
diff --git a/utils/pub/package.dart b/utils/pub/package.dart
index 5485b65e78b33eb9228f5343a6183b93f4d861d9..dd988cb61efd79bfb03a3b15356adb879ccc1ca0 100644
--- a/utils/pub/package.dart
+++ b/utils/pub/package.dart
@@ -5,6 +5,9 @@
library package;
import 'dart:async';
+
+import '../../pkg/path/lib/path.dart' as path;
+
import 'io.dart';
import 'pubspec.dart';
import 'source.dart';
@@ -21,7 +24,7 @@ class Package {
/// The name of the package.
String get name {
if (pubspec.name != null) return pubspec.name;
- if (dir != null) return basename(dir);
+ if (dir != null) return path.basename(dir);
return null;
}
« no previous file with comments | « utils/pub/oauth2.dart ('k') | utils/pub/pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698