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

Side by Side Diff: pkg/barback/lib/src/phase.dart

Issue 22824023: Start sketching out a buildAll() method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Don't wrap a single error in an aggregate. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library barback.phase; 5 library barback.phase;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'asset.dart'; 10 import 'asset.dart';
11 import 'asset_cascade.dart'; 11 import 'asset_cascade.dart';
12 import 'asset_id.dart'; 12 import 'asset_id.dart';
13 import 'asset_node.dart'; 13 import 'asset_node.dart';
14 import 'asset_set.dart';
14 import 'errors.dart'; 15 import 'errors.dart';
15 import 'stream_pool.dart'; 16 import 'stream_pool.dart';
16 import 'transform_node.dart'; 17 import 'transform_node.dart';
17 import 'transformer.dart'; 18 import 'transformer.dart';
18 import 'utils.dart'; 19 import 'utils.dart';
19 20
20 /// One phase in the ordered series of transformations in an [AssetCascade]. 21 /// One phase in the ordered series of transformations in an [AssetCascade].
21 /// 22 ///
22 /// Each phase can access outputs from previous phases and can in turn pass 23 /// Each phase can access outputs from previous phases and can in turn pass
23 /// outputs to later phases. Phases are processed strictly serially. All 24 /// outputs to later phases. Phases are processed strictly serially. All
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 // Pump the event queue to ensure that the removal of the input triggers 427 // Pump the event queue to ensure that the removal of the input triggers
427 // a new build to which we can attach the error. 428 // a new build to which we can attach the error.
428 newFuture(() => cascade.reportError(new AssetCollisionException( 429 newFuture(() => cascade.reportError(new AssetCollisionException(
429 assets.where((asset) => asset.transform != null) 430 assets.where((asset) => asset.transform != null)
430 .map((asset) => asset.transform.info), 431 .map((asset) => asset.transform.info),
431 output.id))); 432 output.id)));
432 } 433 }
433 }); 434 });
434 } 435 }
435 } 436 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698