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

Side by Side Diff: test/dart_codegen/expect/core/int.dart

Issue 959913003: cleanup patch generation to preseve comments and remove @patch (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 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 | « test/dart_codegen/expect/core/identical.dart ('k') | test/dart_codegen/expect/core/list.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 part of dart.core; 1 part of dart.core;
2 2
3 abstract class int extends num { 3 abstract class int extends num {
4 @patch factory int.fromEnvironment(String name, {int defaultValue}) { 4 factory int.fromEnvironment(String name, {int defaultValue}) {
5 throw new UnsupportedError( 5 throw new UnsupportedError(
6 'int.fromEnvironment can only be used as a const constructor'); 6 'int.fromEnvironment can only be used as a const constructor');
7 } 7 }
8 int operator &(int other); 8 int operator &(int other);
9 int operator |(int other); 9 int operator |(int other);
10 int operator ^(int other); 10 int operator ^(int other);
11 int operator ~(); 11 int operator ~();
12 int operator <<(int shiftAmount); 12 int operator <<(int shiftAmount);
13 int operator >>(int shiftAmount); 13 int operator >>(int shiftAmount);
14 bool get isEven; 14 bool get isEven;
15 bool get isOdd; 15 bool get isOdd;
16 int get bitLength; 16 int get bitLength;
17 int toUnsigned(int width); 17 int toUnsigned(int width);
18 int toSigned(int width); 18 int toSigned(int width);
19 int operator -(); 19 int operator -();
20 int abs(); 20 int abs();
21 int get sign; 21 int get sign;
22 int round(); 22 int round();
23 int floor(); 23 int floor();
24 int ceil(); 24 int ceil();
25 int truncate(); 25 int truncate();
26 double roundToDouble(); 26 double roundToDouble();
27 double floorToDouble(); 27 double floorToDouble();
28 double ceilToDouble(); 28 double ceilToDouble();
29 double truncateToDouble(); 29 double truncateToDouble();
30 String toString(); 30 String toString();
31 String toRadixString(int radix); 31 String toRadixString(int radix);
32 @patch static int parse(String source, 32 static int parse(String source, {int radix, int onError(String source)}) {
33 {int radix, int onError(String source)}) {
34 return ((__x24) => DDC$RT.cast(__x24, dynamic, int, "CastGeneral", 33 return ((__x24) => DDC$RT.cast(__x24, dynamic, int, "CastGeneral",
35 """line 246, column 12 of dart:core/int.dart: """, __x24 is int, 34 """line 281, column 12 of dart:core/int.dart: """, __x24 is int,
36 true))(Primitives.parseInt(source, radix, onError)); 35 true))(Primitives.parseInt(source, radix, onError));
37 } 36 }
38 } 37 }
OLDNEW
« no previous file with comments | « test/dart_codegen/expect/core/identical.dart ('k') | test/dart_codegen/expect/core/list.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698