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

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

Issue 3007053002: Fix DDC SDK gen
Patch Set: git cl issue 0 Created 3 years, 2 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') | pkg/dev_compiler/tool/sdk_expected_errors.txt » ('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 // Patch file for dart:core classes. 5 // Patch file for dart:core classes.
6 import "dart:_internal" as _symbol_dev; 6 import "dart:_internal" as _symbol_dev;
7 import 'dart:_interceptors'; 7 import 'dart:_interceptors';
8 import 'dart:_js_helper' 8 import 'dart:_js_helper'
9 show 9 show
10 patch, 10 patch,
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 NoSuchMethodError(Object receiver, Symbol memberName, 563 NoSuchMethodError(Object receiver, Symbol memberName,
564 List positionalArguments, Map<Symbol, dynamic> namedArguments, 564 List positionalArguments, Map<Symbol, dynamic> namedArguments,
565 [List existingArgumentNames = null]) 565 [List existingArgumentNames = null])
566 : _receiver = receiver, 566 : _receiver = receiver,
567 _memberName = memberName, 567 _memberName = memberName,
568 _arguments = positionalArguments, 568 _arguments = positionalArguments,
569 _namedArguments = namedArguments, 569 _namedArguments = namedArguments,
570 _existingArgumentNames = existingArgumentNames; 570 _existingArgumentNames = existingArgumentNames;
571 571
572 @patch 572 @patch
573 NoSuchMethodError.withInvocation(Object receiver, Invocation invocation) {
574 throw new UnsupportedError(
575 "'NoSuchMethodError.withInvocation' is not supported");
576 }
577
578 @patch
573 String toString() { 579 String toString() {
574 StringBuffer sb = new StringBuffer(''); 580 StringBuffer sb = new StringBuffer('');
575 String comma = ''; 581 String comma = '';
576 if (_arguments != null) { 582 if (_arguments != null) {
577 for (var argument in _arguments) { 583 for (var argument in _arguments) {
578 sb.write(comma); 584 sb.write(comma);
579 sb.write(Error.safeToString(argument)); 585 sb.write(Error.safeToString(argument));
580 comma = ', '; 586 comma = ', ';
581 } 587 }
582 } 588 }
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 static StackTrace get current { 680 static StackTrace get current {
675 return getTraceFromException(JS('', 'new Error()')); 681 return getTraceFromException(JS('', 'new Error()'));
676 } 682 }
677 } 683 }
678 684
679 @patch 685 @patch
680 class _ConstantExpressionError { 686 class _ConstantExpressionError {
681 @patch 687 @patch
682 _throw(error) => throw error; 688 _throw(error) => throw error;
683 } 689 }
OLDNEW
« no previous file with comments | « pkg/dev_compiler/lib/sdk/ddc_sdk.sum ('k') | pkg/dev_compiler/tool/sdk_expected_errors.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698