| 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; | |
| 6 | |
| 7 import 'dart:async'; | 5 import 'dart:async'; |
| 8 import 'dart:convert'; | 6 import 'dart:convert'; |
| 9 import 'dart:isolate'; | 7 import 'dart:isolate'; |
| 10 | 8 |
| 11 import 'package:barback/barback.dart'; | 9 import 'package:barback/barback.dart'; |
| 12 import 'package:source_span/source_span.dart'; | 10 import 'package:source_span/source_span.dart'; |
| 13 import 'package:stack_trace/stack_trace.dart'; | 11 import 'package:stack_trace/stack_trace.dart'; |
| 14 | 12 |
| 15 import '../asset/dart/serialize.dart'; | 13 import '../asset/dart/serialize.dart'; |
| 16 import '../barback.dart'; | 14 import '../barback.dart'; |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 /// An error thrown when a transformer fails to load. | 133 /// An error thrown when a transformer fails to load. |
| 136 class TransformerLoadError extends SourceSpanException | 134 class TransformerLoadError extends SourceSpanException |
| 137 implements WrappedException { | 135 implements WrappedException { |
| 138 final CrossIsolateException innerError; | 136 final CrossIsolateException innerError; |
| 139 Chain get innerChain => innerError.stackTrace; | 137 Chain get innerChain => innerError.stackTrace; |
| 140 | 138 |
| 141 TransformerLoadError(CrossIsolateException error, SourceSpan span) | 139 TransformerLoadError(CrossIsolateException error, SourceSpan span) |
| 142 : innerError = error, | 140 : innerError = error, |
| 143 super("Error loading transformer: ${error.message}", span); | 141 super("Error loading transformer: ${error.message}", span); |
| 144 } | 142 } |
| OLD | NEW |