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

Unified Diff: pkg/barback/lib/src/transformer/declaring_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
« no previous file with comments | « pkg/barback/lib/src/transformer/aggregate_transform.dart ('k') | pkg/barback/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/barback/lib/src/transformer/declaring_aggregate_transform.dart
diff --git a/pkg/barback/lib/src/transformer/declaring_aggregate_transform.dart b/pkg/barback/lib/src/transformer/declaring_aggregate_transform.dart
index 5eada09b47a0a54ffc4d054b5d783cee6ec7a973..cfcb782b5d41a16b28c44e1de7f1b572477fbcfb 100644
--- a/pkg/barback/lib/src/transformer/declaring_aggregate_transform.dart
+++ b/pkg/barback/lib/src/transformer/declaring_aggregate_transform.dart
@@ -24,6 +24,9 @@ class DeclaringAggregateTransform extends BaseTransform {
/// the assets in this transform.
final String key;
+ /// The package in which this transform is running.
+ final String package;
+
/// The stream of primary input ids that have been aggregated for this
/// transform.
///
@@ -50,6 +53,7 @@ class DeclaringAggregateTransform extends BaseTransform {
DeclaringAggregateTransform._(TransformNode node)
: key = node.key,
+ package = node.phase.cascade.package,
super(node) {
_idController.stream.listen(_emittedPrimaryIds.add);
// [primaryIds] should be a non-broadcast stream.
« no previous file with comments | « pkg/barback/lib/src/transformer/aggregate_transform.dart ('k') | pkg/barback/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698