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

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: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/barback/lib/src/package_graph.dart ('k') | pkg/barback/test/asset_set_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 // Pump the event queue to ensure that the removal of the input triggers 504 // Pump the event queue to ensure that the removal of the input triggers
504 // a new build to which we can attach the error. 505 // a new build to which we can attach the error.
505 newFuture(() => cascade.reportError(new AssetCollisionException( 506 newFuture(() => cascade.reportError(new AssetCollisionException(
506 assets.where((asset) => asset.transform != null) 507 assets.where((asset) => asset.transform != null)
507 .map((asset) => asset.transform.info), 508 .map((asset) => asset.transform.info),
508 output.id))); 509 output.id)));
509 } 510 }
510 }); 511 });
511 } 512 }
512 } 513 }
OLDNEW
« no previous file with comments | « pkg/barback/lib/src/package_graph.dart ('k') | pkg/barback/test/asset_set_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698