OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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 part of fletch.vm_session; | 5 part of fletch.vm_session; |
6 | 6 |
7 class SessionCommandTransformerBuilder | 7 class SessionCommandTransformerBuilder |
8 extends CommandTransformerBuilder<VmCommand> { | 8 extends CommandTransformerBuilder<VmCommand> { |
9 | 9 |
10 VmCommand makeCommand(int code, ByteData payload) { | 10 VmCommand makeCommand(int code, ByteData payload) { |
11 return new VmCommand.fromBuffer( | 11 return new VmCommand.fromBuffer( |
(...skipping 25 matching lines...) Expand all Loading... |
37 if (command is StdoutData) { | 37 if (command is StdoutData) { |
38 if (stdoutSink != null) stdoutSink.add(command.value); | 38 if (stdoutSink != null) stdoutSink.add(command.value); |
39 } else if (command is StderrData) { | 39 } else if (command is StderrData) { |
40 if (stderrSink != null) stderrSink.add(command.value); | 40 if (stderrSink != null) stderrSink.add(command.value); |
41 } else { | 41 } else { |
42 yield command; | 42 yield command; |
43 } | 43 } |
44 } | 44 } |
45 } | 45 } |
46 } | 46 } |
OLD | NEW |