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.transformer; | 5 library pub.asset.serialize.transformer; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:isolate'; | 8 import 'dart:isolate'; |
9 | 9 |
10 import 'package:barback/barback.dart'; | 10 import 'package:barback/barback.dart'; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 return _serializeTransformer(transformerLike); | 117 return _serializeTransformer(transformerLike); |
118 } else if (transformerLike is TransformerGroup) { | 118 } else if (transformerLike is TransformerGroup) { |
119 return _serializeTransformerGroup(transformerLike); | 119 return _serializeTransformerGroup(transformerLike); |
120 } else { | 120 } else { |
121 // This has to be last, since "transformerLike is AggregateTransformer" will | 121 // This has to be last, since "transformerLike is AggregateTransformer" will |
122 // throw on older versions of barback. | 122 // throw on older versions of barback. |
123 assert(transformerLike is AggregateTransformer); | 123 assert(transformerLike is AggregateTransformer); |
124 return _serializeAggregateTransformer(transformerLike); | 124 return _serializeAggregateTransformer(transformerLike); |
125 } | 125 } |
126 } | 126 } |
OLD | NEW |