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

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

Issue 178223024: Refactor the Transform classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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_output; 5 library barback.phase_output;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'asset_cascade.dart';
11 import 'asset_forwarder.dart'; 10 import 'asset_forwarder.dart';
12 import 'asset_node.dart'; 11 import 'asset_node.dart';
13 import 'errors.dart'; 12 import 'errors.dart';
14 import 'phase.dart'; 13 import 'phase.dart';
15 import 'utils.dart'; 14 import 'utils.dart';
16 15
17 /// A class that handles a single output of a phase. 16 /// A class that handles a single output of a phase.
18 /// 17 ///
19 /// Normally there's only a single [AssetNode] for a phase's output, but it's 18 /// Normally there's only a single [AssetNode] for a phase's output, but it's
20 /// possible that multiple transformers in the same phase emit assets with the 19 /// possible that multiple transformers in the same phase emit assets with the
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // Pump the event queue to ensure that the removal of the input triggers 107 // Pump the event queue to ensure that the removal of the input triggers
109 // a new build to which we can attach the error. 108 // a new build to which we can attach the error.
110 // TODO(nweiz): report this through the output asset. 109 // TODO(nweiz): report this through the output asset.
111 newFuture(() => _phase.cascade.reportError(collisionException)); 110 newFuture(() => _phase.cascade.reportError(collisionException));
112 } 111 }
113 }); 112 });
114 } 113 }
115 114
116 String toString() => "phase output in $_location for $output"; 115 String toString() => "phase output in $_location for $output";
117 } 116 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698