| 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.declaring_transform; | 5 library barback.transformer.declaring_transform; |
| 6 | 6 |
| 7 import 'asset_id.dart'; | 7 import '../asset/asset_id.dart'; |
| 8 import '../graph/transform_node.dart'; |
| 8 import 'base_transform.dart'; | 9 import 'base_transform.dart'; |
| 9 import 'transform_node.dart'; | |
| 10 | 10 |
| 11 /// A transform for [DeclaringTransform]ers that allows them to declare the ids | 11 /// A transform for [DeclaringTransform]ers that allows them to declare the ids |
| 12 /// of the outputs they'll generate without generating the concrete bodies of | 12 /// of the outputs they'll generate without generating the concrete bodies of |
| 13 /// those outputs. | 13 /// those outputs. |
| 14 class DeclaringTransform extends BaseTransform { | 14 class DeclaringTransform extends BaseTransform { |
| 15 final _outputIds = new Set<AssetId>(); | 15 final _outputIds = new Set<AssetId>(); |
| 16 | 16 |
| 17 final AssetId primaryId; | 17 final AssetId primaryId; |
| 18 | 18 |
| 19 DeclaringTransform._(TransformNode node) | 19 DeclaringTransform._(TransformNode node) |
| (...skipping 18 matching lines...) Expand all Loading... |
| 38 class DeclaringTransformController extends BaseTransformController { | 38 class DeclaringTransformController extends BaseTransformController { |
| 39 DeclaringTransform get transform => super.transform; | 39 DeclaringTransform get transform => super.transform; |
| 40 | 40 |
| 41 /// The set of ids that the transformer declares it will emit for the given | 41 /// The set of ids that the transformer declares it will emit for the given |
| 42 /// primary input. | 42 /// primary input. |
| 43 Set<AssetId> get outputIds => transform._outputIds; | 43 Set<AssetId> get outputIds => transform._outputIds; |
| 44 | 44 |
| 45 DeclaringTransformController(TransformNode node) | 45 DeclaringTransformController(TransformNode node) |
| 46 : super(new DeclaringTransform._(node)); | 46 : super(new DeclaringTransform._(node)); |
| 47 } | 47 } |
| OLD | NEW |