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

Unified Diff: test/dart_codegen/expect/core/errors.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/double.dart ('k') | test/dart_codegen/expect/core/expando.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dart_codegen/expect/core/errors.dart
diff --git a/test/dart_codegen/expect/core/errors.dart b/test/dart_codegen/expect/core/errors.dart
index 68d656aa01eaa9093c1351ec5c10c3cd133bea10..fc92d252c17f53b03547326a2817a21b4fe3051e 100644
--- a/test/dart_codegen/expect/core/errors.dart
+++ b/test/dart_codegen/expect/core/errors.dart
@@ -11,19 +11,19 @@ class Error {
}
return _objectToString(object);
}
- @patch static String _stringToSafeString(String string) {
+ static String _stringToSafeString(String string) {
return ((__x14) => DDC$RT.cast(__x14, dynamic, String, "CastGeneral",
"""line 89, column 12 of dart:core/errors.dart: """, __x14 is String,
true))(jsonEncodeNative(string));
}
- @patch static String _objectToString(Object object) {
+ static String _objectToString(Object object) {
return ((__x15) => DDC$RT.cast(__x15, dynamic, String, "CastGeneral",
- """line 94, column 12 of dart:core/errors.dart: """, __x15 is String,
+ """line 93, column 12 of dart:core/errors.dart: """, __x15 is String,
true))(Primitives.objectToString(object));
}
- @patch StackTrace get stackTrace => ((__x16) => DDC$RT.cast(__x16, dynamic,
+ StackTrace get stackTrace => ((__x16) => DDC$RT.cast(__x16, dynamic,
StackTrace, "CastGeneral",
- """line 98, column 32 of dart:core/errors.dart: """, __x16 is StackTrace,
+ """line 96, column 32 of dart:core/errors.dart: """, __x16 is StackTrace,
true))(Primitives.extractStackTrace(this));
}
class AssertionError extends Error {}
@@ -91,7 +91,7 @@ class RangeError extends ArgumentError {
static void checkValidIndex(int index, var indexable,
[String name, int length, String message]) {
if (length == null) length = DDC$RT.cast(indexable.length, dynamic, int,
- "CastGeneral", """line 287, column 34 of dart:core/errors.dart: """,
+ "CastGeneral", """line 285, column 34 of dart:core/errors.dart: """,
indexable.length is int, true);
if (index < 0 || index >= length) {
if (name == null) name = "index";
@@ -175,7 +175,7 @@ class NoSuchMethodError extends Error {
_arguments = positionalArguments,
_namedArguments = namedArguments,
_existingArgumentNames = existingArgumentNames;
- @patch String toString() {
+ String toString() {
StringBuffer sb = new StringBuffer();
int i = 0;
if (_arguments != null) {
« no previous file with comments | « test/dart_codegen/expect/core/double.dart ('k') | test/dart_codegen/expect/core/expando.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698