| 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.graph.phase; | 5 library barback.graph.phase; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import '../asset/asset_id.dart'; | 9 import '../asset/asset_id.dart'; |
| 10 import '../asset/asset_node.dart'; | 10 import '../asset/asset_node.dart'; |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 assert(asset.state.isDirty); | 387 assert(asset.state.isDirty); |
| 388 asset.force(); | 388 asset.force(); |
| 389 asset.whenStateChanges().then((state) { | 389 asset.whenStateChanges().then((state) { |
| 390 if (state.isRemoved) return getOutput(asset.id); | 390 if (state.isRemoved) return getOutput(asset.id); |
| 391 return asset; | 391 return asset; |
| 392 }).then(request.complete).catchError(request.completeError); | 392 }).then(request.complete).catchError(request.completeError); |
| 393 } | 393 } |
| 394 | 394 |
| 395 String toString() => "phase $_location.$_index"; | 395 String toString() => "phase $_location.$_index"; |
| 396 } | 396 } |
| OLD | NEW |