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

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

Issue 967933005: rename ddc -> dev_compiler, fixes #84 (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/duration.dart ('k') | test/dart_codegen/expect/core/exceptions.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 0c18c14d983bb3c67042a9a778a72fee7527af92..909f89d3edc58b503de19e3292e06dfd197b5668 100644
--- a/test/dart_codegen/expect/core/errors.dart
+++ b/test/dart_codegen/expect/core/errors.dart
@@ -52,7 +52,7 @@ throw new RangeError.range(value, minValue, maxValue, name, message);
}
}
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 281, column 34 of dart:core/errors.dart: """, indexable.length is int, true);
+if (length == null) length = DEVC$RT.cast(indexable.length, dynamic, int, "CastGeneral", """line 281, column 34 of dart:core/errors.dart: """, indexable.length is int, true);
if (index < 0 || index >= length) {
if (name == null) name = "index";
throw new RangeError.index(index, indexable, name, message, length);
@@ -97,7 +97,7 @@ explanation = ": Only valid value is $start";
}
class IndexError extends ArgumentError implements RangeError {final indexable;
final int length;
- IndexError(int invalidValue, indexable, [String name, String message, int length]) : this.indexable = indexable, this.length = ((__x3) => DDC$RT.cast(__x3, dynamic, int, "CastGeneral", """line 371, column 23 of dart:core/errors.dart: """, __x3 is int, true))((length != null) ? length : indexable.length), super.value(invalidValue, name, (message != null) ? message : "Index out of range");
+ IndexError(int invalidValue, indexable, [String name, String message, int length]) : this.indexable = indexable, this.length = ((__x3) => DEVC$RT.cast(__x3, dynamic, int, "CastGeneral", """line 371, column 23 of dart:core/errors.dart: """, __x3 is int, true))((length != null) ? length : indexable.length), super.value(invalidValue, name, (message != null) ? message : "Index out of range");
int get start => 0;
int get end => length - 1;
String toString() {
« no previous file with comments | « test/dart_codegen/expect/core/duration.dart ('k') | test/dart_codegen/expect/core/exceptions.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698