Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: lib/compiler/implementation/lib/io.dart

Issue 10417053: Add Path class to dart:io, and add unit tests for it. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix 2 bugs. Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/bin/io_sources.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 18 matching lines...) Expand all
29 // Uses native keyword. 29 // Uses native keyword.
30 // #source('../../../../runtime/bin/file_impl.dart'); 30 // #source('../../../../runtime/bin/file_impl.dart');
31 #source('../../../../runtime/bin/http.dart'); 31 #source('../../../../runtime/bin/http.dart');
32 #source('../../../../runtime/bin/http_impl.dart'); 32 #source('../../../../runtime/bin/http_impl.dart');
33 #source('../../../../runtime/bin/http_parser.dart'); 33 #source('../../../../runtime/bin/http_parser.dart');
34 #source('../../../../runtime/bin/http_utils.dart'); 34 #source('../../../../runtime/bin/http_utils.dart');
35 #source('../../../../runtime/bin/input_stream.dart'); 35 #source('../../../../runtime/bin/input_stream.dart');
36 #source('../../../../runtime/bin/list_stream.dart'); 36 #source('../../../../runtime/bin/list_stream.dart');
37 #source('../../../../runtime/bin/list_stream_impl.dart'); 37 #source('../../../../runtime/bin/list_stream_impl.dart');
38 #source('../../../../runtime/bin/output_stream.dart'); 38 #source('../../../../runtime/bin/output_stream.dart');
39 #source('../../../../runtime/bin/stream_util.dart'); 39 #source('../../../../runtime/bin/path.dart');
40 #source('../../../../runtime/bin/string_stream.dart'); 40 #source('../../../../runtime/bin/path_impl.dart');
41 #source('../../../../runtime/bin/platform.dart'); 41 #source('../../../../runtime/bin/platform.dart');
42 // Uses native keyword. 42 // Uses native keyword.
43 // #source('../../../../runtime/bin/platform_impl.dart'); 43 // #source('../../../../runtime/bin/platform_impl.dart');
44 #source('../../../../runtime/bin/process.dart'); 44 #source('../../../../runtime/bin/process.dart');
45 // Uses native keyword. 45 // Uses native keyword.
46 // #source('../../../../runtime/bin/process_impl.dart'); 46 // #source('../../../../runtime/bin/process_impl.dart');
47 #source('../../../../runtime/bin/socket.dart'); 47 #source('../../../../runtime/bin/socket.dart');
48 // Uses native keyword. 48 // Uses native keyword.
49 // #source('../../../../runtime/bin/socket_impl.dart'); 49 // #source('../../../../runtime/bin/socket_impl.dart');
50 #source('../../../../runtime/bin/socket_stream.dart'); 50 #source('../../../../runtime/bin/socket_stream.dart');
51 #source('../../../../runtime/bin/socket_stream_impl.dart'); 51 #source('../../../../runtime/bin/socket_stream_impl.dart');
52 // Uses native keyword. 52 // Uses native keyword.
53 // #source('../../../../runtime/bin/stdio.dart'); 53 // #source('../../../../runtime/bin/stdio.dart');
54 #source('../../../../runtime/bin/stream_util.dart');
55 #source('../../../../runtime/bin/string_stream.dart');
54 #source('../../../../runtime/bin/timer.dart'); 56 #source('../../../../runtime/bin/timer.dart');
55 #source('../../../../runtime/bin/timer_impl.dart'); 57 #source('../../../../runtime/bin/timer_impl.dart');
56 #source('../../../../runtime/bin/websocket.dart'); 58 #source('../../../../runtime/bin/websocket.dart');
57 #source('../../../../runtime/bin/websocket_impl.dart'); 59 #source('../../../../runtime/bin/websocket_impl.dart');
58 60
59 class _File { 61 class _File {
60 factory File(arg) { 62 factory File(arg) {
61 throw new UnsupportedOperationException('new File($arg)'); 63 throw new UnsupportedOperationException('new File($arg)');
62 } 64 }
63 } 65 }
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 static void set _eventHandler(_EventHandler e) { 149 static void set _eventHandler(_EventHandler e) {
148 throw new UnsupportedOperationException('_EventHandler._eventhandler = $e'); 150 throw new UnsupportedOperationException('_EventHandler._eventhandler = $e');
149 } 151 }
150 } 152 }
151 153
152 final InputStream stdin = null; 154 final InputStream stdin = null;
153 155
154 final OutputStream stdout = null; 156 final OutputStream stdout = null;
155 157
156 final OutputStream stderr = null; 158 final OutputStream stderr = null;
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/io_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698