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

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

Issue 23199004: Support passing barback assets through phases in which they're unused. (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/package_graph.dart
diff --git a/pkg/barback/lib/src/package_graph.dart b/pkg/barback/lib/src/package_graph.dart
index 307a870f19c9052ad93c6659af245cf312a919c8..c46ed55bcd0a5b45a64bd2c5034803e05418091a 100644
--- a/pkg/barback/lib/src/package_graph.dart
+++ b/pkg/barback/lib/src/package_graph.dart
@@ -85,8 +85,10 @@ class PackageGraph {
/// Gets the asset node identified by [id].
///
/// If [id] is for a generated or transformed asset, this will wait until it
- /// has been created and return it. If the asset cannot be found, returns
- /// null.
+ /// has been created and return it. This means that the returned asset will
+ /// always be [AssetState.AVAILABLE].
+ ///
+ /// If the asset cannot be found, returns null.
Future<AssetNode> getAssetNode(AssetId id) {
var cascade = _cascades[id.package];
if (cascade != null) return cascade.getAssetNode(id);

Powered by Google App Engine
This is Rietveld 408576698