| 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; | 5 library pub.foreign_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'; | 
| 11 | 11 | 
| 12 import '../../../asset/dart/serialize.dart'; | 12 import '../asset/dart/serialize.dart'; | 
| 13 import 'excluding_transformer.dart'; | 13 import 'excluding_transformer.dart'; | 
| 14 import 'excluding_aggregate_transformer.dart'; | 14 import 'excluding_aggregate_transformer.dart'; | 
| 15 import 'transformer_config.dart'; | 15 import 'transformer_config.dart'; | 
| 16 | 16 | 
| 17 /// A wrapper for a transformer that's in a different isolate. | 17 /// A wrapper for a transformer that's in a different isolate. | 
| 18 class _ForeignTransformer extends Transformer { | 18 class _ForeignTransformer extends Transformer { | 
| 19   /// The port with which we communicate with the child isolate. | 19   /// The port with which we communicate with the child isolate. | 
| 20   /// | 20   /// | 
| 21   /// This port and all messages sent across it are specific to this | 21   /// This port and all messages sent across it are specific to this | 
| 22   /// transformer. | 22   /// transformer. | 
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 161     default: assert(false); | 161     default: assert(false); | 
| 162   } | 162   } | 
| 163 | 163 | 
| 164   if (transformer is Transformer) { | 164   if (transformer is Transformer) { | 
| 165     return ExcludingTransformer.wrap(transformer, config); | 165     return ExcludingTransformer.wrap(transformer, config); | 
| 166   } else { | 166   } else { | 
| 167     assert(transformer is AggregateTransformer); | 167     assert(transformer is AggregateTransformer); | 
| 168     return ExcludingAggregateTransformer.wrap(transformer, config); | 168     return ExcludingAggregateTransformer.wrap(transformer, config); | 
| 169   } | 169   } | 
| 170 } | 170 } | 
| OLD | NEW | 
|---|