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

Unified Diff: sdk/lib/_internal/pub/lib/src/validator/name.dart

Issue 583853002: Use precompiled dependencies in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 6 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
Index: sdk/lib/_internal/pub/lib/src/validator/name.dart
diff --git a/sdk/lib/_internal/pub/lib/src/validator/name.dart b/sdk/lib/_internal/pub/lib/src/validator/name.dart
index 82e40b7e2a530e59e656c63450c428ccfabd9ee9..cdee078b2ede942718d57a2a4c8a66b108eb6327 100644
--- a/sdk/lib/_internal/pub/lib/src/validator/name.dart
+++ b/sdk/lib/_internal/pub/lib/src/validator/name.dart
@@ -9,7 +9,6 @@ import 'dart:async';
import 'package:path/path.dart' as path;
import '../entrypoint.dart';
-import '../io.dart';
import '../utils.dart';
import '../validator.dart';
@@ -51,7 +50,7 @@ class NameValidator extends Validator {
/// Returns a list of all libraries in the current package as paths relative
/// to the package's root directory.
List<String> get _libraries {
- var libDir = path.join(entrypoint.root.dir, "lib");
+ var libDir = entrypoint.root.path("lib");
return entrypoint.root.listFiles(beneath: "lib")
.map((file) => path.relative(file, from: path.dirname(libDir)))
.where((file) => !path.split(file).contains("src") &&

Powered by Google App Engine
This is Rietveld 408576698