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

Unified Diff: test/dart_codegen/expect/core/date_time.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, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/dart_codegen/expect/core/bool.dart ('k') | test/dart_codegen/expect/core/double.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dart_codegen/expect/core/date_time.dart
diff --git a/test/dart_codegen/expect/core/date_time.dart b/test/dart_codegen/expect/core/date_time.dart
index f7d6a828d47154efdf15600fc351c5091c258b3e..04169b9fcf0a534bca261bfe8b7d5aff78dde679 100644
--- a/test/dart_codegen/expect/core/date_time.dart
+++ b/test/dart_codegen/expect/core/date_time.dart
@@ -188,53 +188,53 @@ class DateTime implements Comparable {
int otherMs = other.millisecondsSinceEpoch;
return new Duration(milliseconds: ms - otherMs);
}
- @patch DateTime._internal(int year, int month, int day, int hour, int minute,
+ DateTime._internal(int year, int month, int day, int hour, int minute,
int second, int millisecond, bool isUtc)
: this.isUtc = isUtc is bool ? isUtc : throw new ArgumentError(isUtc),
millisecondsSinceEpoch = checkInt(Primitives.valueFromDecomposedDate(
year, month, day, hour, minute, second, millisecond, isUtc));
- @patch DateTime._now()
+ DateTime._now()
: isUtc = false,
millisecondsSinceEpoch = Primitives.dateNow();
- @patch static int _brokenDownDateToMillisecondsSinceEpoch(int year, int month,
+ static int _brokenDownDateToMillisecondsSinceEpoch(int year, int month,
int day, int hour, int minute, int second, int millisecond, bool isUtc) {
return ((__x0) => DDC$RT.cast(__x0, dynamic, int, "CastGeneral",
- """line 600, column 12 of dart:core/date_time.dart: """,
+ """line 599, column 12 of dart:core/date_time.dart: """,
__x0 is int, true))(Primitives.valueFromDecomposedDate(
year, month, day, hour, minute, second, millisecond, isUtc));
}
- @patch String get timeZoneName {
+ String get timeZoneName {
if (isUtc) return "UTC";
return ((__x1) => DDC$RT.cast(__x1, dynamic, String, "CastGeneral",
- """line 607, column 12 of dart:core/date_time.dart: """, __x1 is String,
+ """line 609, column 12 of dart:core/date_time.dart: """, __x1 is String,
true))(Primitives.getTimeZoneName(this));
}
- @patch Duration get timeZoneOffset {
+ Duration get timeZoneOffset {
if (isUtc) return new Duration();
return new Duration(minutes: Primitives.getTimeZoneOffsetInMinutes(this));
}
- @patch int get year => ((__x2) => DDC$RT.cast(__x2, dynamic, int,
- "CastGeneral", """line 617, column 19 of dart:core/date_time.dart: """,
- __x2 is int, true))(Primitives.getYear(this));
- @patch int get month => ((__x3) => DDC$RT.cast(__x3, dynamic, int,
- "CastGeneral", """line 620, column 20 of dart:core/date_time.dart: """,
- __x3 is int, true))(Primitives.getMonth(this));
- @patch int get day => ((__x4) => DDC$RT.cast(__x4, dynamic, int,
- "CastGeneral", """line 623, column 18 of dart:core/date_time.dart: """,
- __x4 is int, true))(Primitives.getDay(this));
- @patch int get hour => ((__x5) => DDC$RT.cast(__x5, dynamic, int,
- "CastGeneral", """line 626, column 19 of dart:core/date_time.dart: """,
- __x5 is int, true))(Primitives.getHours(this));
- @patch int get minute => ((__x6) => DDC$RT.cast(__x6, dynamic, int,
- "CastGeneral", """line 629, column 21 of dart:core/date_time.dart: """,
- __x6 is int, true))(Primitives.getMinutes(this));
- @patch int get second => ((__x7) => DDC$RT.cast(__x7, dynamic, int,
- "CastGeneral", """line 632, column 21 of dart:core/date_time.dart: """,
- __x7 is int, true))(Primitives.getSeconds(this));
- @patch int get millisecond => ((__x8) => DDC$RT.cast(__x8, dynamic, int,
- "CastGeneral", """line 635, column 26 of dart:core/date_time.dart: """,
+ int get year => ((__x2) => DDC$RT.cast(__x2, dynamic, int, "CastGeneral",
+ """line 633, column 19 of dart:core/date_time.dart: """, __x2 is int,
+ true))(Primitives.getYear(this));
+ int get month => ((__x3) => DDC$RT.cast(__x3, dynamic, int, "CastGeneral",
+ """line 642, column 20 of dart:core/date_time.dart: """, __x3 is int,
+ true))(Primitives.getMonth(this));
+ int get day => ((__x4) => DDC$RT.cast(__x4, dynamic, int, "CastGeneral",
+ """line 650, column 18 of dart:core/date_time.dart: """, __x4 is int,
+ true))(Primitives.getDay(this));
+ int get hour => ((__x5) => DDC$RT.cast(__x5, dynamic, int, "CastGeneral",
+ """line 658, column 19 of dart:core/date_time.dart: """, __x5 is int,
+ true))(Primitives.getHours(this));
+ int get minute => ((__x6) => DDC$RT.cast(__x6, dynamic, int, "CastGeneral",
+ """line 666, column 21 of dart:core/date_time.dart: """, __x6 is int,
+ true))(Primitives.getMinutes(this));
+ int get second => ((__x7) => DDC$RT.cast(__x7, dynamic, int, "CastGeneral",
+ """line 674, column 21 of dart:core/date_time.dart: """, __x7 is int,
+ true))(Primitives.getSeconds(this));
+ int get millisecond => ((__x8) => DDC$RT.cast(__x8, dynamic, int,
+ "CastGeneral", """line 682, column 26 of dart:core/date_time.dart: """,
__x8 is int, true))(Primitives.getMilliseconds(this));
- @patch int get weekday => ((__x9) => DDC$RT.cast(__x9, dynamic, int,
- "CastGeneral", """line 638, column 22 of dart:core/date_time.dart: """,
- __x9 is int, true))(Primitives.getWeekday(this));
+ int get weekday => ((__x9) => DDC$RT.cast(__x9, dynamic, int, "CastGeneral",
+ """line 695, column 22 of dart:core/date_time.dart: """, __x9 is int,
+ true))(Primitives.getWeekday(this));
}
« no previous file with comments | « test/dart_codegen/expect/core/bool.dart ('k') | test/dart_codegen/expect/core/double.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698