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

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

Issue 19402003: Rename several classes in barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes. Created 7 years, 5 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/phase.dart ('k') | pkg/barback/test/asset_graph/errors_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 84884a7cd31e4043b0e8cb625b8b177c5abc23c5..b17c9a5ba84d98898a9a372b268662061d480734 100644
--- a/pkg/barback/lib/src/transform_node.dart
+++ b/pkg/barback/lib/src/transform_node.dart
@@ -7,7 +7,6 @@ library barback.transform_node;
import 'dart:async';
import 'asset.dart';
-import 'asset_graph.dart';
import 'asset_id.dart';
import 'asset_node.dart';
import 'asset_set.dart';
@@ -62,9 +61,9 @@ class TransformNode {
var newOutputs = new AssetSet();
var transform = createTransform(this, newInputs, newOutputs);
return _transformer.apply(transform).catchError((error) {
- // Catch all transformer errors and pipe them to the results stream.
- // This is so a broken transformer doesn't take down the whole graph.
- phase.graph.reportError(error);
+ // Catch all transformer errors and pipe them to the results stream. This
+ // is so a broken transformer doesn't take down the whole graph.
+ phase.cascade.reportError(error);
// Don't allow partial results from a failed transform.
newOutputs.clear();
@@ -87,13 +86,13 @@ class TransformNode {
// See which outputs are missing from the last run.
var outputIds = newOutputs.map((asset) => asset.id).toSet();
var invalidIds = outputIds
- .where((id) => id.package != phase.graph.package).toSet();
+ .where((id) => id.package != phase.cascade.package).toSet();
outputIds.removeAll(invalidIds);
for (var id in invalidIds) {
// TODO(nweiz): report this as a warning rather than a failing error.
- phase.graph.reportError(
- new InvalidOutputException(phase.graph.package, id));
+ phase.cascade.reportError(
+ new InvalidOutputException(phase.cascade.package, id));
}
var removed = _outputs.difference(outputIds);
« no previous file with comments | « pkg/barback/lib/src/phase.dart ('k') | pkg/barback/test/asset_graph/errors_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698