| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Fletch 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 library fletchc.driver_isolate; | 5 library fletchc.driver_isolate; |
| 6 | 6 |
| 7 import 'dart:async' show | 7 import 'dart:async' show |
| 8 Completer, | 8 Completer, |
| 9 EventSink, | 9 EventSink, |
| 10 Future, | 10 Future, |
| 11 Stream, | 11 Stream, |
| 12 StreamController, | 12 StreamController, |
| 13 StreamIterator, | 13 StreamIterator, |
| 14 StreamSubscription, | 14 StreamSubscription, |
| 15 StreamTransformer, | 15 StreamTransformer, |
| 16 ZoneSpecification, | 16 ZoneSpecification, |
| 17 runZoned; | 17 runZoned; |
| 18 | 18 |
| 19 import 'dart:isolate' show | 19 import 'dart:isolate' show |
| 20 ReceivePort, | 20 ReceivePort, |
| 21 SendPort; | 21 SendPort; |
| 22 | 22 |
| 23 import 'driver_commands.dart' show | 23 import 'driver_commands.dart' show |
| 24 Command, | 24 Command, |
| 25 CommandSender, | 25 CommandSender, |
| 26 DriverCommand, | 26 DriverCommand; |
| 27 stringifyError; | |
| 28 | 27 |
| 29 import '../diagnostic.dart' show | 28 import '../diagnostic.dart' show |
| 30 DiagnosticKind, | 29 DiagnosticKind, |
| 31 InputError, | 30 InputError, |
| 32 throwInternalError; | 31 throwInternalError; |
| 33 | 32 |
| 34 import 'exit_codes.dart' show | 33 import 'exit_codes.dart' show |
| 35 COMPILER_EXITCODE_CRASH; | 34 COMPILER_EXITCODE_CRASH; |
| 36 | 35 |
| 37 // TODO(ahe): Send DriverCommands directly when they are canonicalized | 36 // TODO(ahe): Send DriverCommands directly when they are canonicalized |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 } | 167 } |
| 169 | 168 |
| 170 void endTask(int exitCode) { | 169 void endTask(int exitCode) { |
| 171 clientIncoming.close(); | 170 clientIncoming.close(); |
| 172 | 171 |
| 173 commandSender.sendExitCode(exitCode); | 172 commandSender.sendExitCode(exitCode); |
| 174 | 173 |
| 175 commandSender.sendClose(); | 174 commandSender.sendClose(); |
| 176 } | 175 } |
| 177 } | 176 } |
| OLD | NEW |