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

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

Issue 155213002: Add a bunch of toString methods to internal Barback classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/phase_output.dart
diff --git a/pkg/barback/lib/src/phase_output.dart b/pkg/barback/lib/src/phase_output.dart
index 17a613f02adc21382ccabb24a639195e6272d2d4..50d39c3638d5aa0fe413a2e690cd5ceb65b1562e 100644
--- a/pkg/barback/lib/src/phase_output.dart
+++ b/pkg/barback/lib/src/phase_output.dart
@@ -28,6 +28,9 @@ class PhaseOutput {
/// The phase for which this is an output.
final Phase _phase;
+ /// A string describing the location of [this] in the transformer graph.
+ final String _location;
+
/// The asset node for this output.
AssetNode get output => _outputForwarder.node;
AssetForwarder _outputForwarder;
@@ -53,7 +56,7 @@ class PhaseOutput {
output.id);
}
- PhaseOutput(this._phase, AssetNode output)
+ PhaseOutput(this._phase, AssetNode output, this._location)
: _outputForwarder = new AssetForwarder(output) {
assert(!output.state.isRemoved);
add(output);
@@ -109,4 +112,6 @@ class PhaseOutput {
}
});
}
+
+ String toString() => "phase output in $_location for $output";
}

Powered by Google App Engine
This is Rietveld 408576698