| 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 pub.foreign_transformer; | |
| 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 | 9 |
| 12 import '../asset/dart/serialize.dart'; | 10 import '../asset/dart/serialize.dart'; |
| 13 import 'excluding_transformer.dart'; | 11 import 'excluding_transformer.dart'; |
| 14 import 'excluding_aggregate_transformer.dart'; | 12 import 'excluding_aggregate_transformer.dart'; |
| 15 import 'transformer_config.dart'; | 13 import 'transformer_config.dart'; |
| 16 | 14 |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 default: assert(false); | 159 default: assert(false); |
| 162 } | 160 } |
| 163 | 161 |
| 164 if (transformer is Transformer) { | 162 if (transformer is Transformer) { |
| 165 return ExcludingTransformer.wrap(transformer, config); | 163 return ExcludingTransformer.wrap(transformer, config); |
| 166 } else { | 164 } else { |
| 167 assert(transformer is AggregateTransformer); | 165 assert(transformer is AggregateTransformer); |
| 168 return ExcludingAggregateTransformer.wrap(transformer, config); | 166 return ExcludingAggregateTransformer.wrap(transformer, config); |
| 169 } | 167 } |
| 170 } | 168 } |
| OLD | NEW |