| 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 stdio.server; | 5 library stdio.server; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:io'; | 8 import 'dart:io'; |
| 9 | 9 |
| 10 import 'package:analysis_server/src/channel/byte_stream_channel.dart'; | 10 import 'package:analysis_server/src/channel/byte_stream_channel.dart'; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 */ | 35 */ |
| 36 Future serveStdio() { | 36 Future serveStdio() { |
| 37 ByteStreamServerChannel serverChannel = new ByteStreamServerChannel( | 37 ByteStreamServerChannel serverChannel = new ByteStreamServerChannel( |
| 38 stdin, | 38 stdin, |
| 39 stdout, | 39 stdout, |
| 40 socketServer.instrumentationService); | 40 socketServer.instrumentationService); |
| 41 socketServer.createAnalysisServer(serverChannel); | 41 socketServer.createAnalysisServer(serverChannel); |
| 42 return serverChannel.closed; | 42 return serverChannel.closed; |
| 43 } | 43 } |
| 44 } | 44 } |
| OLD | NEW |