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

Side by Side Diff: sdk/lib/io/stdio.dart

Issue 2800453002: Remove _StdSink._isTranslatable field. (Closed)
Patch Set: Update DDC expections. Created 3 years, 8 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
« no previous file with comments | « pkg/dev_compiler/tool/sdk_expected_errors.txt ('k') | no next file » | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 part of dart.io; 5 part of dart.io;
6 6
7 const int _STDIO_HANDLE_TYPE_TERMINAL = 0; 7 const int _STDIO_HANDLE_TYPE_TERMINAL = 0;
8 const int _STDIO_HANDLE_TYPE_PIPE = 1; 8 const int _STDIO_HANDLE_TYPE_PIPE = 1;
9 const int _STDIO_HANDLE_TYPE_FILE = 2; 9 const int _STDIO_HANDLE_TYPE_FILE = 2;
10 const int _STDIO_HANDLE_TYPE_SOCKET = 3; 10 const int _STDIO_HANDLE_TYPE_SOCKET = 3;
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 } 295 }
296 296
297 Future close() { 297 Future close() {
298 _file.closeSync(); 298 _file.closeSync();
299 return new Future.value(); 299 return new Future.value();
300 } 300 }
301 } 301 }
302 302
303 class _StdSink implements IOSink { 303 class _StdSink implements IOSink {
304 final IOSink _sink; 304 final IOSink _sink;
305 final bool _isTranslatable;
306 305
307 _StdSink(this._sink); 306 _StdSink(this._sink);
308 307
309 Encoding get encoding => _sink.encoding; 308 Encoding get encoding => _sink.encoding;
310 void set encoding(Encoding encoding) { 309 void set encoding(Encoding encoding) {
311 _sink.encoding = encoding; 310 _sink.encoding = encoding;
312 } 311 }
313 312
314 void write(object) { 313 void write(object) {
315 _sink.write(object); 314 _sink.write(object);
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 } 422 }
424 423
425 class _StdIOUtils { 424 class _StdIOUtils {
426 external static _getStdioOutputStream(int fd); 425 external static _getStdioOutputStream(int fd);
427 external static Stdin _getStdioInputStream(); 426 external static Stdin _getStdioInputStream();
428 427
429 /// Returns the socket type or `null` if [socket] is not a builtin socket. 428 /// Returns the socket type or `null` if [socket] is not a builtin socket.
430 external static int _socketType(Socket socket); 429 external static int _socketType(Socket socket);
431 external static _getStdioHandleType(int fd); 430 external static _getStdioHandleType(int fd);
432 } 431 }
OLDNEW
« no previous file with comments | « pkg/dev_compiler/tool/sdk_expected_errors.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698