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

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

Issue 223553008: Only pass an AssetId to isPrimary and declareOutputs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix script_compactor Created 6 years, 8 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/excluding_transformer.dart
diff --git a/sdk/lib/_internal/pub/lib/src/barback/excluding_transformer.dart b/sdk/lib/_internal/pub/lib/src/barback/excluding_transformer.dart
index 03b485b6408165f274bfc9eeaa2bae0cfa8beff2..7ebd55bfdba384520724c848975feabd2feb70f8 100644
--- a/sdk/lib/_internal/pub/lib/src/barback/excluding_transformer.dart
+++ b/sdk/lib/_internal/pub/lib/src/barback/excluding_transformer.dart
@@ -37,19 +37,19 @@ class ExcludingTransformer extends Transformer {
ExcludingTransformer._(this._inner, this._includes, this._excludes);
- Future<bool> isPrimary(Asset asset) {
+ Future<bool> isPrimary(AssetId id) {
// TODO(rnystrom): Support globs in addition to paths. See #17093.
if (_includes != null) {
// If there are any includes, it must match one of them.
- if (!_includes.contains(asset.id.path)) return new Future.value(false);
+ if (!_includes.contains(id.path)) return new Future.value(false);
}
// It must not be excluded.
- if (_excludes != null && _excludes.contains(asset.id.path)) {
+ if (_excludes != null && _excludes.contains(id.path)) {
return new Future.value(false);
}
- return _inner.isPrimary(asset);
+ return _inner.isPrimary(id);
}
Future apply(Transform transform) => _inner.apply(transform);

Powered by Google App Engine
This is Rietveld 408576698