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 pub.barback.transformer_cache; | |
6 | |
7 import 'package:path/path.dart' as p; | 5 import 'package:path/path.dart' as p; |
8 | 6 |
9 import '../io.dart'; | 7 import '../io.dart'; |
10 import '../log.dart' as log; | 8 import '../log.dart' as log; |
11 import '../package_graph.dart'; | 9 import '../package_graph.dart'; |
12 import '../sdk.dart' as sdk; | 10 import '../sdk.dart' as sdk; |
13 import '../utils.dart'; | 11 import '../utils.dart'; |
14 import 'transformer_id.dart'; | 12 import 'transformer_id.dart'; |
15 | 13 |
16 /// A cache for managing a snapshot of the first "stage" of transformers to | 14 /// A cache for managing a snapshot of the first "stage" of transformers to |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 return new Set(); | 133 return new Set(); |
136 } | 134 } |
137 | 135 |
138 /// The second line of the manifest is a list of transformer ids used to | 136 /// The second line of the manifest is a list of transformer ids used to |
139 /// create the existing snapshot. | 137 /// create the existing snapshot. |
140 return manifest.single.split(",") | 138 return manifest.single.split(",") |
141 .map((id) => new TransformerId.parse(id, null)) | 139 .map((id) => new TransformerId.parse(id, null)) |
142 .toSet(); | 140 .toSet(); |
143 } | 141 } |
144 } | 142 } |
OLD | NEW |