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

Unified Diff: sdk/lib/_internal/pub_generated/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: 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_generated/lib/src/validator/name.dart
diff --git a/sdk/lib/_internal/pub_generated/lib/src/validator/name.dart b/sdk/lib/_internal/pub_generated/lib/src/validator/name.dart
index 10171e1fb2a799dc96d6d8370efed5bfd46f32e9..bdd1df5c53c23b606b1ffc57d6f8b98defe228ce 100644
--- a/sdk/lib/_internal/pub_generated/lib/src/validator/name.dart
+++ b/sdk/lib/_internal/pub_generated/lib/src/validator/name.dart
@@ -64,10 +64,9 @@ class NameValidator extends Validator {
});
}
List<String> get _libraries {
- var libDir = path.join(entrypoint.root.dir, "lib");
- if (!dirExists(libDir)) return [];
+ var libDir = entrypoint.root.path("lib");
return entrypoint.root.listFiles(
- beneath: libDir).map(
+ beneath: "lib").map(
(file) =>
path.relative(
file,

Powered by Google App Engine
This is Rietveld 408576698