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.transformer_isolate; | 5 library pub.transformer_isolate; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:convert'; | 8 import 'dart:convert'; |
9 import 'dart:isolate'; | 9 import 'dart:isolate'; |
10 | 10 |
11 import 'package:barback/barback.dart'; | 11 import 'package:barback/barback.dart'; |
12 import 'package:source_span/source_span.dart'; | 12 import 'package:source_span/source_span.dart'; |
13 import 'package:stack_trace/stack_trace.dart'; | 13 import 'package:stack_trace/stack_trace.dart'; |
14 | 14 |
15 import '../../../asset/dart/serialize.dart'; | 15 import '../asset/dart/serialize.dart'; |
16 import '../barback.dart'; | 16 import '../barback.dart'; |
17 import '../exceptions.dart'; | 17 import '../exceptions.dart'; |
18 import '../dart.dart' as dart; | 18 import '../dart.dart' as dart; |
19 import '../log.dart' as log; | 19 import '../log.dart' as log; |
20 import '../utils.dart'; | 20 import '../utils.dart'; |
21 import 'asset_environment.dart'; | 21 import 'asset_environment.dart'; |
22 import 'barback_server.dart'; | 22 import 'barback_server.dart'; |
23 import 'foreign_transformer.dart'; | 23 import 'foreign_transformer.dart'; |
24 import 'transformer_config.dart'; | 24 import 'transformer_config.dart'; |
25 import 'transformer_id.dart'; | 25 import 'transformer_id.dart'; |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 /// An error thrown when a transformer fails to load. | 135 /// An error thrown when a transformer fails to load. |
136 class TransformerLoadError extends SourceSpanException | 136 class TransformerLoadError extends SourceSpanException |
137 implements WrappedException { | 137 implements WrappedException { |
138 final CrossIsolateException innerError; | 138 final CrossIsolateException innerError; |
139 Chain get innerChain => innerError.stackTrace; | 139 Chain get innerChain => innerError.stackTrace; |
140 | 140 |
141 TransformerLoadError(CrossIsolateException error, SourceSpan span) | 141 TransformerLoadError(CrossIsolateException error, SourceSpan span) |
142 : innerError = error, | 142 : innerError = error, |
143 super("Error loading transformer: ${error.message}", span); | 143 super("Error loading transformer: ${error.message}", span); |
144 } | 144 } |
OLD | NEW |