OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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.transformer_classifier; | 5 library barback.graph.transformer_classifier; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'asset_forwarder.dart'; | 9 import '../asset/asset_forwarder.dart'; |
10 import 'asset_node.dart'; | 10 import '../asset/asset_node.dart'; |
11 import 'errors.dart'; | 11 import '../errors.dart'; |
12 import 'log.dart'; | 12 import '../log.dart'; |
| 13 import '../transformer/transformer.dart'; |
| 14 import '../utils.dart'; |
13 import 'node_status.dart'; | 15 import 'node_status.dart'; |
14 import 'node_streams.dart'; | 16 import 'node_streams.dart'; |
15 import 'phase.dart'; | 17 import 'phase.dart'; |
16 import 'transform_node.dart'; | 18 import 'transform_node.dart'; |
17 import 'transformer.dart'; | |
18 import 'utils.dart'; | |
19 | 19 |
20 /// A class for classifying the primary inputs for a transformer according to | 20 /// A class for classifying the primary inputs for a transformer according to |
21 /// its `classifyPrimary` method. | 21 /// its `classifyPrimary` method. |
22 /// | 22 /// |
23 /// This is used for non-aggregate transformers; they're modeled as aggregate | 23 /// This is used for non-aggregate transformers; they're modeled as aggregate |
24 /// transformers that return the primary path if `isPrimary` is true and `null` | 24 /// transformers that return the primary path if `isPrimary` is true and `null` |
25 /// if `isPrimary` is `null`. | 25 /// if `isPrimary` is `null`. |
26 class TransformerClassifier { | 26 class TransformerClassifier { |
27 /// The containing [Phase]. | 27 /// The containing [Phase]. |
28 final Phase _phase; | 28 final Phase _phase; |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 118 |
119 /// Force all deferred transforms to begin producing concrete assets. | 119 /// Force all deferred transforms to begin producing concrete assets. |
120 void forceAllTransforms() { | 120 void forceAllTransforms() { |
121 for (var transform in _transforms.values) { | 121 for (var transform in _transforms.values) { |
122 transform.force(); | 122 transform.force(); |
123 } | 123 } |
124 } | 124 } |
125 | 125 |
126 String toString() => "classifier in $_location for $transformer"; | 126 String toString() => "classifier in $_location for $transformer"; |
127 } | 127 } |
OLD | NEW |