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

Unified Diff: sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.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
Index: sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart
diff --git a/sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart b/sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart
index b3b179721a819fec5074e022ef8158ccda4dcff9..3c942a20b28369d78fa2433149da350698b6be48 100644
--- a/sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart
+++ b/sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart
@@ -62,9 +62,9 @@ class Dart2JSTransformer extends Transformer implements LazyTransformer {
bool isPrimary(AssetId id) {
if (id.extension != ".dart") return false;
- // These should only contain libraries. For efficiency's sake, we don't
+ // "lib" should only contain libraries. For efficiency's sake, we don't
// look for entrypoints in there.
- return !["asset/", "lib/"].any(id.path.startsWith);
+ return !id.path.startsWith("lib/");
}
Future apply(Transform transform) {

Powered by Google App Engine
This is Rietveld 408576698