| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // This is a copy of the VM's dart:io library. This API is not usable | 5 // This is a copy of the VM's dart:io library. This API is not usable |
| 6 // when running inside a web browser. Nevertheless, Leg provides a | 6 // when running inside a web browser. Nevertheless, Leg provides a |
| 7 // mock version of the dart:io library so that it can statically | 7 // mock version of the dart:io library so that it can statically |
| 8 // analyze programs that use dart:io. | 8 // analyze programs that use dart:io. |
| 9 | 9 |
| 10 // TODO(ahe): Separate API from implementation details. | 10 // TODO(ahe): Separate API from implementation details. |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 } | 147 } |
| 148 | 148 |
| 149 class _DirectoryLister { | 149 class _DirectoryLister { |
| 150 } | 150 } |
| 151 | 151 |
| 152 void _exit(int exitCode) { | 152 void _exit(int exitCode) { |
| 153 throw new UnsupportedOperationException("exit($exitCode)"); | 153 throw new UnsupportedOperationException("exit($exitCode)"); |
| 154 } | 154 } |
| 155 | 155 |
| 156 class _Process { | 156 class _Process { |
| 157 static Process start(String executable, | 157 static Future<Process> start(String executable, |
| 158 List<String> arguments, | 158 List<String> arguments, |
| 159 [ProcessOptions options]) { | 159 [ProcessOptions options]) { |
| 160 var msg = 'Process.start($executable, $arguments, $options)'; | 160 var msg = 'Process.start($executable, $arguments, $options)'; |
| 161 throw new UnsupportedOperationException(msg); | 161 throw new UnsupportedOperationException(msg); |
| 162 } | 162 } |
| 163 | 163 |
| 164 static Future<ProcessResult> run(String executable, | 164 static Future<ProcessResult> run(String executable, |
| 165 List<String> arguments, | 165 List<String> arguments, |
| 166 [ProcessOptions options]) { | 166 [ProcessOptions options]) { |
| 167 var msg = 'Process.run($executable, $arguments, $options)'; | 167 var msg = 'Process.run($executable, $arguments, $options)'; |
| 168 throw new UnsupportedOperationException(msg); | 168 throw new UnsupportedOperationException(msg); |
| 169 } | 169 } |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 static void set _eventHandler(_EventHandler e) { | 203 static void set _eventHandler(_EventHandler e) { |
| 204 throw new UnsupportedOperationException('_EventHandler._eventhandler = $e'); | 204 throw new UnsupportedOperationException('_EventHandler._eventhandler = $e'); |
| 205 } | 205 } |
| 206 } | 206 } |
| 207 | 207 |
| 208 const InputStream stdin = null; | 208 const InputStream stdin = null; |
| 209 | 209 |
| 210 const OutputStream stdout = null; | 210 const OutputStream stdout = null; |
| 211 | 211 |
| 212 const OutputStream stderr = null; | 212 const OutputStream stderr = null; |
| OLD | NEW |