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

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

Issue 10908167: Remove dart2js specific core.dart and coreimpl.dart files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
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.
11 11
12 /** 12 /**
13 * The IO library is used for Dart server applications, 13 * The IO library is used for Dart server applications,
14 * which run on a stand-alone Dart VM from the command line. 14 * which run on a stand-alone Dart VM from the command line.
15 * *This library does not work in browser based applications.* 15 * *This library does not work in browser based applications.*
16 * 16 *
17 * This library allows you to work with files, directories, 17 * This library allows you to work with files, directories,
18 * sockets, processes, HTTP servers and clients, and more. 18 * sockets, processes, HTTP servers and clients, and more.
19 */ 19 */
20 #library("dart:io"); 20 #library("dart:io");
21
21 #import("dart:coreimpl"); 22 #import("dart:coreimpl");
22 #import("dart:math"); 23 #import("dart:math");
23 #import("dart:isolate"); 24 #import("dart:isolate");
24 // TODO(ahe): Should Leg support this library? 25 // TODO(ahe): Should Leg support this library?
25 // #import("dart:nativewrappers"); 26 // #import("dart:nativewrappers");
26 #import("dart:uri"); 27 #import("dart:uri");
27 #import("dart:crypto"); 28 #import("dart:crypto");
28 #import("dart:utf"); 29 #import("dart:utf");
30
29 #source('../../../../runtime/bin/buffer_list.dart'); 31 #source('../../../../runtime/bin/buffer_list.dart');
30 #source('../../../../runtime/bin/common.dart'); 32 #source('../../../../runtime/bin/common.dart');
31 #source('../../../../runtime/bin/chunked_stream.dart'); 33 #source('../../../../runtime/bin/chunked_stream.dart');
32 #source('../../../../runtime/bin/directory.dart'); 34 #source('../../../../runtime/bin/directory.dart');
33 // Uses native keyword. 35 // Uses native keyword.
34 // #source('../../../../runtime/bin/directory_impl.dart'); 36 // #source('../../../../runtime/bin/directory_impl.dart');
35 // Uses native keyword. 37 // Uses native keyword.
36 // #source('../../../../runtime/bin/eventhandler.dart'); 38 // #source('../../../../runtime/bin/eventhandler.dart');
37 #source('../../../../runtime/bin/file.dart'); 39 #source('../../../../runtime/bin/file.dart');
38 // Uses native keyword. 40 // Uses native keyword.
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 static void set _eventHandler(_EventHandler e) { 171 static void set _eventHandler(_EventHandler e) {
170 throw new UnsupportedOperationException('_EventHandler._eventhandler = $e'); 172 throw new UnsupportedOperationException('_EventHandler._eventhandler = $e');
171 } 173 }
172 } 174 }
173 175
174 const InputStream stdin = null; 176 const InputStream stdin = null;
175 177
176 const OutputStream stdout = null; 178 const OutputStream stdout = null;
177 179
178 const OutputStream stderr = null; 180 const OutputStream stderr = null;
OLDNEW
« no previous file with comments | « lib/compiler/implementation/lib/interceptors.dart ('k') | lib/compiler/implementation/lib/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698