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.transformer_isolate; | 5 library pub.asset.transformer_isolate; |
6 | 6 |
7 import 'dart:convert'; | 7 import 'dart:convert'; |
8 import 'dart:isolate'; | 8 import 'dart:isolate'; |
9 import 'dart:mirrors'; | 9 import 'dart:mirrors'; |
10 | 10 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 // Older barbacks don't support [AggregateTransformer], and calling | 104 // Older barbacks don't support [AggregateTransformer], and calling |
105 // [reflectClass] on an undefined class will throw an error, so we just define a | 105 // [reflectClass] on an undefined class will throw an error, so we just define a |
106 // null getter for them. | 106 // null getter for them. |
107 //# if barback >=0.14.1 | 107 //# if barback >=0.14.1 |
108 ClassMirror get _aggregateTransformerClass => | 108 ClassMirror get _aggregateTransformerClass => |
109 reflectClass(AggregateTransformer); | 109 reflectClass(AggregateTransformer); |
110 //# else | 110 //# else |
111 //> ClassMirror get _aggregateTransformerClass => null; | 111 //> ClassMirror get _aggregateTransformerClass => null; |
112 //# end | 112 //# end |
OLD | NEW |