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.package_graph; | 5 library barback.graph.package_graph; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:collection'; | 8 import 'dart:collection'; |
9 | 9 |
| 10 import '../asset/asset_id.dart'; |
| 11 import '../asset/asset_node.dart'; |
| 12 import '../asset/asset_set.dart'; |
| 13 import '../build_result.dart'; |
| 14 import '../errors.dart'; |
| 15 import '../log.dart'; |
| 16 import '../package_provider.dart'; |
| 17 import '../transformer/transformer.dart'; |
| 18 import '../utils.dart'; |
10 import 'asset_cascade.dart'; | 19 import 'asset_cascade.dart'; |
11 import 'asset_id.dart'; | |
12 import 'asset_node.dart'; | |
13 import 'asset_set.dart'; | |
14 import 'build_result.dart'; | |
15 import 'errors.dart'; | |
16 import 'log.dart'; | |
17 import 'node_status.dart'; | 20 import 'node_status.dart'; |
18 import 'package_provider.dart'; | |
19 import 'transformer.dart'; | |
20 import 'utils.dart'; | |
21 | 21 |
22 /// The collection of [AssetCascade]s for an entire application. | 22 /// The collection of [AssetCascade]s for an entire application. |
23 /// | 23 /// |
24 /// This tracks each package's [AssetCascade] and routes asset requests between | 24 /// This tracks each package's [AssetCascade] and routes asset requests between |
25 /// them. | 25 /// them. |
26 class PackageGraph { | 26 class PackageGraph { |
27 /// The provider that exposes asset and package information. | 27 /// The provider that exposes asset and package information. |
28 final PackageProvider provider; | 28 final PackageProvider provider; |
29 | 29 |
30 /// The [AssetCascade] for each package. | 30 /// The [AssetCascade] for each package. |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 completer.completeError(error, stackTrace); | 255 completer.completeError(error, stackTrace); |
256 }); | 256 }); |
257 }, onError: (error, stackTrace) { | 257 }, onError: (error, stackTrace) { |
258 _lastUnexpectedError = error; | 258 _lastUnexpectedError = error; |
259 _lastUnexpectedErrorTrace = stackTrace; | 259 _lastUnexpectedErrorTrace = stackTrace; |
260 _resultsController.addError(error, stackTrace); | 260 _resultsController.addError(error, stackTrace); |
261 }); | 261 }); |
262 return completer.future; | 262 return completer.future; |
263 } | 263 } |
264 } | 264 } |
OLD | NEW |