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

Side by Side Diff: pkg/dev_compiler/tool/input_sdk/patch/io_patch.dart

Issue 2756463006: fix ddc build, adds some unsupported methods to dart:io (Closed)
Patch Set: Created 3 years, 9 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/lib/sdk/ddc_sdk.sum ('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 import 'dart:_js_helper' show patch; 5 import 'dart:_js_helper' show patch;
6 6
7 @patch 7 @patch
8 class _Directory { 8 class _Directory {
9 @patch 9 @patch
10 static _current() { 10 static _current() {
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 static _environment() { 245 static _environment() {
246 throw new UnsupportedError("Platform._environment"); 246 throw new UnsupportedError("Platform._environment");
247 } 247 }
248 248
249 @patch 249 @patch
250 static String _version() { 250 static String _version() {
251 throw new UnsupportedError("Platform._version"); 251 throw new UnsupportedError("Platform._version");
252 } 252 }
253 253
254 @patch 254 @patch
255 static _ansiSupported() { 255 static _ansiSupported() {
vsm 2017/03/17 21:36:50 Looks like this one was removed too at the same ti
Jennifer Messerly 2017/03/17 22:56:59 interesting! maybe we need our patch script to als
256 throw new UnsupportedError("Platform._ansiSupported"); 256 throw new UnsupportedError("Platform._ansiSupported");
257 } 257 }
258 } 258 }
259 259
260 @patch 260 @patch
261 class _ProcessUtils { 261 class _ProcessUtils {
262 @patch 262 @patch
263 static void _exit(int status) { 263 static void _exit(int status) {
264 throw new UnsupportedError("ProcessUtils._exit"); 264 throw new UnsupportedError("ProcessUtils._exit");
265 } 265 }
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 543
544 @patch 544 @patch
545 bool get lineMode { 545 bool get lineMode {
546 throw new UnsupportedError("Stdin.lineMode"); 546 throw new UnsupportedError("Stdin.lineMode");
547 } 547 }
548 548
549 @patch 549 @patch
550 void set lineMode(bool enabled) { 550 void set lineMode(bool enabled) {
551 throw new UnsupportedError("Stdin.lineMode"); 551 throw new UnsupportedError("Stdin.lineMode");
552 } 552 }
553
554 @patch
555 bool get supportsAnsiEscapes {
556 throw new UnsupportedError("Stdin.supportsAnsiEscapes");
557 }
553 } 558 }
554 559
555 @patch 560 @patch
556 class Stdout { 561 class Stdout {
557 @patch 562 @patch
558 bool _hasTerminal(int fd) { 563 bool _hasTerminal(int fd) {
559 throw new UnsupportedError("Stdout.hasTerminal"); 564 throw new UnsupportedError("Stdout.hasTerminal");
560 } 565 }
561 566
562 @patch 567 @patch
563 int _terminalColumns(int fd) { 568 int _terminalColumns(int fd) {
564 throw new UnsupportedError("Stdout.terminalColumns"); 569 throw new UnsupportedError("Stdout.terminalColumns");
565 } 570 }
566 571
567 @patch 572 @patch
568 int _terminalLines(int fd) { 573 int _terminalLines(int fd) {
569 throw new UnsupportedError("Stdout.terminalLines"); 574 throw new UnsupportedError("Stdout.terminalLines");
570 } 575 }
576
577 @patch
578 static bool _supportsAnsiEscapes(int fd) {
579 throw new UnsupportedError("Stdout.supportsAnsiEscapes");
580 }
571 } 581 }
572 582
573 @patch 583 @patch
574 class _FileSystemWatcher { 584 class _FileSystemWatcher {
575 @patch 585 @patch
576 static Stream<FileSystemEvent> _watch( 586 static Stream<FileSystemEvent> _watch(
577 String path, int events, bool recursive) { 587 String path, int events, bool recursive) {
578 throw new UnsupportedError("_FileSystemWatcher.watch"); 588 throw new UnsupportedError("_FileSystemWatcher.watch");
579 } 589 }
580 590
581 @patch 591 @patch
582 static bool get isSupported { 592 static bool get isSupported {
583 throw new UnsupportedError("_FileSystemWatcher.isSupported"); 593 throw new UnsupportedError("_FileSystemWatcher.isSupported");
584 } 594 }
585 } 595 }
586 596
587 @patch 597 @patch
588 class _IOService { 598 class _IOService {
589 @patch 599 @patch
590 static Future _dispatch(int request, List data) { 600 static Future _dispatch(int request, List data) {
591 throw new UnsupportedError("_IOService._dispatch"); 601 throw new UnsupportedError("_IOService._dispatch");
592 } 602 }
593 } 603 }
OLDNEW
« no previous file with comments | « pkg/dev_compiler/lib/sdk/ddc_sdk.sum ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698