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.asset.serialize.transform; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 import 'dart:isolate'; | 6 import 'dart:isolate'; |
9 | 7 |
10 import 'package:barback/barback.dart'; | 8 import 'package:barback/barback.dart'; |
11 // TODO(nweiz): don't import from "src" once issue 14966 is fixed. | 9 // TODO(nweiz): don't import from "src" once issue 14966 is fixed. |
12 import 'package:barback/src/internal_asset.dart'; | 10 import 'package:barback/src/internal_asset.dart'; |
13 | 11 |
14 import '../serialize.dart'; | 12 import '../serialize.dart'; |
15 import 'get_input_transform.dart'; | 13 import 'get_input_transform.dart'; |
16 | 14 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 : primaryId = deserializeId(transform['primaryId']), | 138 : primaryId = deserializeId(transform['primaryId']), |
141 super(transform); | 139 super(transform); |
142 | 140 |
143 void declareOutput(AssetId id) { | 141 void declareOutput(AssetId id) { |
144 call(_port, { | 142 call(_port, { |
145 'type': 'declareOutput', | 143 'type': 'declareOutput', |
146 'output': serializeId(id) | 144 'output': serializeId(id) |
147 }); | 145 }); |
148 } | 146 } |
149 } | 147 } |
OLD | NEW |