| 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 /// A library for compiling Dart code and manipulating analyzer parse trees. | 5 /// A library for compiling Dart code and manipulating analyzer parse trees. |
| 6 library pub.dart; | |
| 7 | |
| 8 import 'dart:async'; | 6 import 'dart:async'; |
| 9 import 'dart:io'; | 7 import 'dart:io'; |
| 10 import 'dart:isolate'; | 8 import 'dart:isolate'; |
| 11 | 9 |
| 12 import 'package:analyzer/analyzer.dart'; | 10 import 'package:analyzer/analyzer.dart'; |
| 13 import 'package:compiler_unsupported/compiler.dart' as compiler; | 11 import 'package:compiler_unsupported/compiler.dart' as compiler; |
| 14 import 'package:compiler_unsupported/src/filenames.dart' | 12 import 'package:compiler_unsupported/src/filenames.dart' |
| 15 show appendSlash; | 13 show appendSlash; |
| 16 import 'package:path/path.dart' as p; | 14 import 'package:path/path.dart' as p; |
| 17 | 15 |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 Isolate.spawnUri(Uri.parse(message['uri']), [], message['message'], | 219 Isolate.spawnUri(Uri.parse(message['uri']), [], message['message'], |
| 222 packageRoot: packageRoot) | 220 packageRoot: packageRoot) |
| 223 .then((_) => replyTo.send({'type': 'success'})) | 221 .then((_) => replyTo.send({'type': 'success'})) |
| 224 .catchError((e, stack) { | 222 .catchError((e, stack) { |
| 225 replyTo.send({ | 223 replyTo.send({ |
| 226 'type': 'error', | 224 'type': 'error', |
| 227 'error': CrossIsolateException.serialize(e, stack) | 225 'error': CrossIsolateException.serialize(e, stack) |
| 228 }); | 226 }); |
| 229 }); | 227 }); |
| 230 } | 228 } |
| OLD | NEW |