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

Unified Diff: pkg/barback/lib/src/phase.dart

Issue 108853003: Pass logs through transformer groups. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix test suite name. Created 7 years 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 | pkg/barback/test/logger_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/barback/lib/src/phase.dart
diff --git a/pkg/barback/lib/src/phase.dart b/pkg/barback/lib/src/phase.dart
index d7123542df97294ecf43fdda65b2557560dc7bb3..2136a1281e94d65e04d1914441a4b94ec7faeb90 100644
--- a/pkg/barback/lib/src/phase.dart
+++ b/pkg/barback/lib/src/phase.dart
@@ -116,8 +116,10 @@ class Phase {
_onDirtyPool.add(_onDirtyController.stream);
for (var group in transformers.where((op) => op is TransformerGroup)) {
- _groups[group] = new GroupRunner(cascade, group);
- _onDirtyPool.add(_groups[group].onDirty);
+ var runner = new GroupRunner(cascade, group);
+ _groups[group] = runner;
+ _onDirtyPool.add(runner.onDirty);
+ _onLogPool.add(runner.onLog);
}
}
@@ -206,6 +208,7 @@ class Phase {
var runner = new GroupRunner(cascade, added);
_groups[added] = runner;
_onDirtyPool.add(runner.onDirty);
+ _onLogPool.add(runner.onLog);
for (var input in _inputs.values) {
runner.addInput(input.input);
}
« no previous file with comments | « no previous file | pkg/barback/test/logger_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698