Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(439)

Side by Side Diff: lib/src/barback/foreign_transformer.dart

Issue 1145973003: Move assets into lib/src. (Closed) Base URL: git@github.com:dart-lang/pub_test@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/src/asset/dart/utils.dart ('k') | lib/src/barback/transformer_isolate.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « lib/src/asset/dart/utils.dart ('k') | lib/src/barback/transformer_isolate.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698