| 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. |
| 11 | 11 |
| 12 #library("io"); | 12 #library("dart:io"); |
| 13 #import("dart:coreimpl"); | 13 #import("dart:coreimpl"); |
| 14 #import("dart:isolate"); | 14 #import("dart:isolate"); |
| 15 // TODO(ahe): Should Leg support this library? | 15 // TODO(ahe): Should Leg support this library? |
| 16 // #import("dart:nativewrappers"); | 16 // #import("dart:nativewrappers"); |
| 17 #import("dart:uri"); | 17 #import("dart:uri"); |
| 18 #import("dart:crypto"); | 18 #import("dart:crypto"); |
| 19 #import("dart:utf"); | 19 #import("dart:utf"); |
| 20 #source('../../../../runtime/bin/buffer_list.dart'); | 20 #source('../../../../runtime/bin/buffer_list.dart'); |
| 21 #source('../../../../runtime/bin/common.dart'); | 21 #source('../../../../runtime/bin/common.dart'); |
| 22 #source('../../../../runtime/bin/chunked_stream.dart'); | 22 #source('../../../../runtime/bin/chunked_stream.dart'); |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 static void set _eventHandler(_EventHandler e) { | 156 static void set _eventHandler(_EventHandler e) { |
| 157 throw new UnsupportedOperationException('_EventHandler._eventhandler = $e'); | 157 throw new UnsupportedOperationException('_EventHandler._eventhandler = $e'); |
| 158 } | 158 } |
| 159 } | 159 } |
| 160 | 160 |
| 161 final InputStream stdin = null; | 161 final InputStream stdin = null; |
| 162 | 162 |
| 163 final OutputStream stdout = null; | 163 final OutputStream stdout = null; |
| 164 | 164 |
| 165 final OutputStream stderr = null; | 165 final OutputStream stderr = null; |
| OLD | NEW |