| OLD | NEW |
| 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.transform_node; | 5 library barback.graph.transform_node; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'asset.dart'; | 9 import '../asset/asset.dart'; |
| 10 import 'asset_id.dart'; | 10 import '../asset/asset_id.dart'; |
| 11 import 'asset_node.dart'; | 11 import '../asset/asset_node.dart'; |
| 12 import 'declaring_transform.dart'; | 12 import '../errors.dart'; |
| 13 import 'declaring_transformer.dart'; | 13 import '../log.dart'; |
| 14 import 'errors.dart'; | 14 import '../transformer/declaring_transform.dart'; |
| 15 import 'lazy_transformer.dart'; | 15 import '../transformer/declaring_transformer.dart'; |
| 16 import 'log.dart'; | 16 import '../transformer/lazy_transformer.dart'; |
| 17 import '../transformer/transform.dart'; |
| 18 import '../transformer/transformer.dart'; |
| 19 import '../utils.dart'; |
| 17 import 'node_status.dart'; | 20 import 'node_status.dart'; |
| 18 import 'node_streams.dart'; | 21 import 'node_streams.dart'; |
| 19 import 'phase.dart'; | 22 import 'phase.dart'; |
| 20 import 'transform.dart'; | |
| 21 import 'transformer.dart'; | |
| 22 import 'utils.dart'; | |
| 23 | 23 |
| 24 /// Describes a transform on a set of assets and its relationship to the build | 24 /// Describes a transform on a set of assets and its relationship to the build |
| 25 /// dependency graph. | 25 /// dependency graph. |
| 26 /// | 26 /// |
| 27 /// Keeps track of whether it's dirty and needs to be run and which assets it | 27 /// Keeps track of whether it's dirty and needs to be run and which assets it |
| 28 /// depends on. | 28 /// depends on. |
| 29 class TransformNode { | 29 class TransformNode { |
| 30 /// The [Phase] that this transform runs in. | 30 /// The [Phase] that this transform runs in. |
| 31 final Phase phase; | 31 final Phase phase; |
| 32 | 32 |
| (...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 /// If an input changes, this will transition to [DECLARED] if the transform | 526 /// If an input changes, this will transition to [DECLARED] if the transform |
| 527 /// is deferred and [APPLYING] otherwise. | 527 /// is deferred and [APPLYING] otherwise. |
| 528 static final APPLIED = const _State._("applied"); | 528 static final APPLIED = const _State._("applied"); |
| 529 | 529 |
| 530 final String name; | 530 final String name; |
| 531 | 531 |
| 532 const _State._(this.name); | 532 const _State._(this.name); |
| 533 | 533 |
| 534 String toString() => name; | 534 String toString() => name; |
| 535 } | 535 } |
| OLD | NEW |