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

Unified Diff: test/dart_codegen/expect/core/exceptions.dart

Issue 959003003: Typecheck constructor initializers properly (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rebase 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/errors.dart ('k') | test/dart_codegen/expect/core/iterable.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dart_codegen/expect/core/exceptions.dart
diff --git a/test/dart_codegen/expect/core/exceptions.dart b/test/dart_codegen/expect/core/exceptions.dart
index e3dc9622f101c597ac6823c5b5d09224be3301e2..a9afb0e63077bdc298de22325829d2684ecb05a2 100644
--- a/test/dart_codegen/expect/core/exceptions.dart
+++ b/test/dart_codegen/expect/core/exceptions.dart
@@ -28,7 +28,7 @@ if (offset != -1) {
offset = -1;
}
if (offset == -1) {
-String source = ((__x3) => DDC$RT.cast(__x3, dynamic, String, "CastGeneral", """line 113, column 23 of dart:core/exceptions.dart: """, __x3 is String, true))(this.source);
+String source = ((__x5) => DDC$RT.cast(__x5, dynamic, String, "CastGeneral", """line 113, column 23 of dart:core/exceptions.dart: """, __x5 is String, true))(this.source);
if (source.length > 78) {
source = source.substring(0, 75) + "...";
}
@@ -38,7 +38,7 @@ String source = ((__x3) => DDC$RT.cast(__x3, dynamic, String, "CastGeneral", """
int lineStart = 0;
bool lastWasCR;
for (int i = 0; i < offset; i++) {
-int char = ((__x4) => DDC$RT.cast(__x4, dynamic, int, "CastGeneral", """line 123, column 18 of dart:core/exceptions.dart: """, __x4 is int, true))(source.codeUnitAt(i));
+int char = ((__x6) => DDC$RT.cast(__x6, dynamic, int, "CastGeneral", """line 123, column 18 of dart:core/exceptions.dart: """, __x6 is int, true))(source.codeUnitAt(i));
if (char == 0x0a) {
if (lineStart != i || !lastWasCR) {
lineNum++;
@@ -60,7 +60,7 @@ report += " (at character ${offset + 1})\n";
}
int lineEnd = DDC$RT.cast(source.length, dynamic, int, "CastGeneral", """line 141, column 19 of dart:core/exceptions.dart: """, source.length is int, true);
for (int i = offset; i < source.length; i++) {
-int char = ((__x5) => DDC$RT.cast(__x5, dynamic, int, "CastGeneral", """line 143, column 18 of dart:core/exceptions.dart: """, __x5 is int, true))(source.codeUnitAt(i));
+int char = ((__x7) => DDC$RT.cast(__x7, dynamic, int, "CastGeneral", """line 143, column 18 of dart:core/exceptions.dart: """, __x7 is int, true))(source.codeUnitAt(i));
if (char == 0x0a || char == 0x0d) {
lineEnd = i;
break;
@@ -87,7 +87,7 @@ int index = offset - lineStart;
prefix = postfix = "...";
}
}
- String slice = ((__x6) => DDC$RT.cast(__x6, dynamic, String, "CastGeneral", """line 171, column 20 of dart:core/exceptions.dart: """, __x6 is String, true))(source.substring(start, end));
+ String slice = ((__x8) => DDC$RT.cast(__x8, dynamic, String, "CastGeneral", """line 171, column 20 of dart:core/exceptions.dart: """, __x8 is String, true))(source.substring(start, end));
int markOffset = offset - start + prefix.length;
return "$report$prefix$slice$postfix\n${" " * markOffset}^\n";
}
« no previous file with comments | « test/dart_codegen/expect/core/errors.dart ('k') | test/dart_codegen/expect/core/iterable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698