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

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

Issue 22685006: Better handling of asset collisions in barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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/transform_node.dart
diff --git a/pkg/barback/lib/src/transform_node.dart b/pkg/barback/lib/src/transform_node.dart
index a7241aed2ef2dffcab7a16ac393793ae7f61640d..011345de5746ce2fe32d00d0c0151e09c6dcfa72 100644
--- a/pkg/barback/lib/src/transform_node.dart
+++ b/pkg/barback/lib/src/transform_node.dart
@@ -98,6 +98,8 @@ class TransformNode {
/// Returns a set of asset nodes representing the outputs from this transform
/// that weren't emitted last time it was run.
Future<Set<AssetNode>> apply() {
+ assert(!_onDirtyController.isClosed);
+
var newOutputs = new AssetSet();
var transform = createTransform(this, newOutputs);

Powered by Google App Engine
This is Rietveld 408576698