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

Unified Diff: pkg/barback/lib/src/transformer/aggregate_transform.dart

Issue 299833003: Expose aggregate transformers in barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review 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: pkg/barback/lib/src/transformer/aggregate_transform.dart
diff --git a/pkg/barback/lib/src/transformer/aggregate_transform.dart b/pkg/barback/lib/src/transformer/aggregate_transform.dart
index 27491fb36868dddbe23bbd8f31ed348356efc35c..7678127d83eb588bbfdc4d19b3eb97fcdde106b1 100644
--- a/pkg/barback/lib/src/transformer/aggregate_transform.dart
+++ b/pkg/barback/lib/src/transformer/aggregate_transform.dart
@@ -29,6 +29,9 @@ class AggregateTransform extends BaseTransform {
/// the assets in this transform.
String get key => _node.key;
+ /// The package in which this transform is running.
+ String get package => _node.phase.cascade.package;
+
/// The stream of primary inputs that will be processed by this transform.
///
/// This is exposed as a stream so that the transformer can start working

Powered by Google App Engine
This is Rietveld 408576698