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

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

Issue 22824023: Start sketching out a buildAll() method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. 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/asset_cascade.dart
diff --git a/pkg/barback/lib/src/asset_cascade.dart b/pkg/barback/lib/src/asset_cascade.dart
index 802c8fd6f953a8671848d08eab27a65604490f40..f23d02bb9d66a9f8d3129ae96f426253c212d77e 100644
--- a/pkg/barback/lib/src/asset_cascade.dart
+++ b/pkg/barback/lib/src/asset_cascade.dart
@@ -10,6 +10,7 @@ import 'dart:collection';
import 'asset.dart';
import 'asset_id.dart';
import 'asset_node.dart';
+import 'asset_set.dart';
import 'build_result.dart';
import 'cancelable_future.dart';
import 'errors.dart';
@@ -82,6 +83,9 @@ class AssetCascade {
/// last began.
var _newChanges = false;
+ /// Returns all currently-available output assets from this cascade.
+ AssetSet get availableOutputs => _phases.last.availableOutputs;
+
/// Creates a new [AssetCascade].
///
/// It loads source assets within [package] using [provider] and then uses

Powered by Google App Engine
This is Rietveld 408576698