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

Unified Diff: sdk/lib/_internal/pub/lib/src/barback/asset_environment.dart

Issue 308773003: Found some more code referring to the special "asset" directory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 | « no previous file | sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/barback/asset_environment.dart
diff --git a/sdk/lib/_internal/pub/lib/src/barback/asset_environment.dart b/sdk/lib/_internal/pub/lib/src/barback/asset_environment.dart
index cea9ca279d391c3b3fc0f901608c3bcc4baec72c..5d36ab478f4de5538500b1a5c9b876d640b4cce9 100644
--- a/sdk/lib/_internal/pub/lib/src/barback/asset_environment.dart
+++ b/sdk/lib/_internal/pub/lib/src/barback/asset_environment.dart
@@ -313,9 +313,8 @@ class AssetEnvironment {
/// Determines if [sourcePath] is contained within any of the directories in
/// the root package that are visible to this build environment.
bool containsPath(String sourcePath) {
- var directories = ["asset", "lib"];
+ var directories = ["lib"];
directories.addAll(_directories.keys);
-
return directories.any((dir) => path.isWithin(dir, sourcePath));
}
@@ -449,15 +448,11 @@ class AssetEnvironment {
///
/// If [watcherType] is not [WatcherType.NONE], enables watching on them.
Future _provideSources() {
- return Future.wait(graph.packages.values.map((package) {
- // Just include the "shared" directories in each package. We'll add the
- // other build directories in the root package by calling
- // [serveDirectory].
- return Future.wait([
- _provideDirectorySources(package, "asset"),
- _provideDirectorySources(package, "lib")
- ]);
- }));
+ // Just include the "lib" directory from each package. We'll add the
+ // other build directories in the root package by calling
+ // [serveDirectory].
+ return Future.wait(graph.packages.values.map(
+ (package) => _provideDirectorySources(package, "lib")));
}
/// Provides all of the source assets within [dir] in [package] to barback.
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698