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

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

Issue 959073002: Fix new line breaks on } (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/date_time.dart ('k') | test/dart_codegen/expect/core/errors.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 class Duration implements Comparable<Duration> {static const int MICROSECONDS_P ER_MILLISECOND = 1000; 2 class Duration implements Comparable<Duration> {static const int MICROSECONDS_P ER_MILLISECOND = 1000;
3 static const int MILLISECONDS_PER_SECOND = 1000; 3 static const int MILLISECONDS_PER_SECOND = 1000;
4 static const int SECONDS_PER_MINUTE = 60; 4 static const int SECONDS_PER_MINUTE = 60;
5 static const int MINUTES_PER_HOUR = 60; 5 static const int MINUTES_PER_HOUR = 60;
6 static const int HOURS_PER_DAY = 24; 6 static const int HOURS_PER_DAY = 24;
7 static const int MICROSECONDS_PER_SECOND = MICROSECONDS_PER_MILLISECOND * MILLI SECONDS_PER_SECOND; 7 static const int MICROSECONDS_PER_SECOND = MICROSECONDS_PER_MILLISECOND * MILLI SECONDS_PER_SECOND;
8 static const int MICROSECONDS_PER_MINUTE = MICROSECONDS_PER_SECOND * SECONDS_PE R_MINUTE; 8 static const int MICROSECONDS_PER_MINUTE = MICROSECONDS_PER_SECOND * SECONDS_PE R_MINUTE;
9 static const int MICROSECONDS_PER_HOUR = MICROSECONDS_PER_MINUTE * MINUTES_PER_ HOUR; 9 static const int MICROSECONDS_PER_HOUR = MICROSECONDS_PER_MINUTE * MINUTES_PER_ HOUR;
10 static const int MICROSECONDS_PER_DAY = MICROSECONDS_PER_HOUR * HOURS_PER_DAY; 10 static const int MICROSECONDS_PER_DAY = MICROSECONDS_PER_HOUR * HOURS_PER_DAY;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 if (n >= 1000) return "00$n"; 56 if (n >= 1000) return "00$n";
57 if (n >= 100) return "000$n"; 57 if (n >= 100) return "000$n";
58 if (n >= 10) return "0000$n"; 58 if (n >= 10) return "0000$n";
59 return "00000$n"; 59 return "00000$n";
60 } 60 }
61 String twoDigits(int n) { 61 String twoDigits(int n) {
62 if (n >= 10) return "$n"; 62 if (n >= 10) return "$n";
63 return "0$n"; 63 return "0$n";
64 } 64 }
65 if (inMicroseconds < 0) { 65 if (inMicroseconds < 0) {
66 return "-${-this} 66 return "-${-this}";
67 "; 67 }
68 String twoDigitMinutes = twoDigits(((__x0) => DDC$RT.cast(__x0, num, int, "Ca stGeneral", """line 258, column 40 of dart:core/duration.dart: """, __x0 is int, true))(inMinutes.remainder(MINUTES_PER_HOUR)));
69 String twoDigitSeconds = twoDigits(((__x1) => DDC$RT.cast(__x1, num, int, "Ca stGeneral", """line 259, column 40 of dart:core/duration.dart: """, __x1 is int, true))(inSeconds.remainder(SECONDS_PER_MINUTE)));
70 String sixDigitUs = sixDigits(((__x2) => DDC$RT.cast(__x2, num, int, "CastGen eral", """line 261, column 19 of dart:core/duration.dart: """, __x2 is int, true ))(inMicroseconds.remainder(MICROSECONDS_PER_SECOND)));
71 return "$inHours:$twoDigitMinutes:$twoDigitSeconds.$sixDigitUs";
68 } 72 }
69 String twoDigitMinutes = twoDigits(((__x0) => DDC$RT.cast(__x0, num, int, "Cast General", """line 258, column 40 of dart:core/duration.dart: """, __x0 is int, t rue))(inMinutes.remainder(MINUTES_PER_HOUR)));
70 String twoDigitSeconds = twoDigits(((__x1) => DDC$RT.cast(__x1, num, int, "Cast General", """line 259, column 40 of dart:core/duration.dart: """, __x1 is int, t rue))(inSeconds.remainder(SECONDS_PER_MINUTE)));
71 String sixDigitUs = sixDigits(((__x2) => DDC$RT.cast(__x2, num, int, "CastGener al", """line 261, column 19 of dart:core/duration.dart: """, __x2 is int, true)) (inMicroseconds.remainder(MICROSECONDS_PER_SECOND)));
72 return "$inHours:$twoDigitMinutes:$twoDigitSeconds.$sixDigitUs";
73 }
74 bool get isNegative => _duration < 0; 73 bool get isNegative => _duration < 0;
75 Duration abs() => new Duration._microseconds(_duration.abs()); 74 Duration abs() => new Duration._microseconds(_duration.abs());
76 Duration operator -() => new Duration._microseconds(-_duration); 75 Duration operator -() => new Duration._microseconds(-_duration);
77 } 76 }
OLDNEW
« no previous file with comments | « test/dart_codegen/expect/core/date_time.dart ('k') | test/dart_codegen/expect/core/errors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698