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

Unified Diff: test/dart_codegen/expect/math/rectangle.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/math/point.dart ('k') | test/dart_codegen/expect/typed_data/typed_data » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/dart_codegen/expect/math/rectangle.dart
diff --git a/test/dart_codegen/expect/math/rectangle.dart b/test/dart_codegen/expect/math/rectangle.dart
index f81c728a7516a17b7cd32a2af35219baaaeac0cf..f2948968074dc6e568c2827080d5cee9e214aa93 100644
--- a/test/dart_codegen/expect/math/rectangle.dart
+++ b/test/dart_codegen/expect/math/rectangle.dart
@@ -4,8 +4,8 @@ part of dart.math;
T get top;
T get width;
T get height;
- T get right => ((__x7) => DDC$RT.cast(__x7, num, T, "CastGeneral", """line 33, column 18 of dart:math/rectangle.dart: """, __x7 is T, false))(left + width);
- T get bottom => ((__x8) => DDC$RT.cast(__x8, num, T, "CastGeneral", """line 35, column 19 of dart:math/rectangle.dart: """, __x8 is T, false))(top + height);
+ T get right => ((__x7) => DEVC$RT.cast(__x7, num, T, "CastGeneral", """line 33, column 18 of dart:math/rectangle.dart: """, __x7 is T, false))(left + width);
+ T get bottom => ((__x8) => DEVC$RT.cast(__x8, num, T, "CastGeneral", """line 35, column 19 of dart:math/rectangle.dart: """, __x8 is T, false))(top + height);
String toString() {
return 'Rectangle ($left, $top) $width x $height';
}
@@ -21,7 +21,7 @@ part of dart.math;
var y0 = max(top, other.top);
var y1 = min(top + height, other.top + other.height);
if (y0 <= y1) {
- return new Rectangle<T>(DDC$RT.cast(x0, num, T, "CastGeneral", """line 68, column 33 of dart:math/rectangle.dart: """, x0 is T, false), DDC$RT.cast(y0, num, T, "CastGeneral", """line 68, column 37 of dart:math/rectangle.dart: """, y0 is T, false), ((__x9) => DDC$RT.cast(__x9, num, T, "CastGeneral", """line 68, column 41 of dart:math/rectangle.dart: """, __x9 is T, false))(x1 - x0), ((__x10) => DDC$RT.cast(__x10, num, T, "CastGeneral", """line 68, column 50 of dart:math/rectangle.dart: """, __x10 is T, false))(y1 - y0));
+ return new Rectangle<T>(DEVC$RT.cast(x0, num, T, "CastGeneral", """line 68, column 33 of dart:math/rectangle.dart: """, x0 is T, false), DEVC$RT.cast(y0, num, T, "CastGeneral", """line 68, column 37 of dart:math/rectangle.dart: """, y0 is T, false), ((__x9) => DEVC$RT.cast(__x9, num, T, "CastGeneral", """line 68, column 41 of dart:math/rectangle.dart: """, __x9 is T, false))(x1 - x0), ((__x10) => DEVC$RT.cast(__x10, num, T, "CastGeneral", """line 68, column 50 of dart:math/rectangle.dart: """, __x10 is T, false))(y1 - y0));
}
}
return null;
@@ -34,7 +34,7 @@ part of dart.math;
var bottom = max(this.top + this.height, other.top + other.height);
var left = min(this.left, other.left);
var top = min(this.top, other.top);
- return new Rectangle<T>(DDC$RT.cast(left, num, T, "CastGeneral", """line 95, column 29 of dart:math/rectangle.dart: """, left is T, false), DDC$RT.cast(top, num, T, "CastGeneral", """line 95, column 35 of dart:math/rectangle.dart: """, top is T, false), ((__x11) => DDC$RT.cast(__x11, num, T, "CastGeneral", """line 95, column 40 of dart:math/rectangle.dart: """, __x11 is T, false))(right - left), ((__x12) => DDC$RT.cast(__x12, num, T, "CastGeneral", """line 95, column 54 of dart:math/rectangle.dart: """, __x12 is T, false))(bottom - top));
+ return new Rectangle<T>(DEVC$RT.cast(left, num, T, "CastGeneral", """line 95, column 29 of dart:math/rectangle.dart: """, left is T, false), DEVC$RT.cast(top, num, T, "CastGeneral", """line 95, column 35 of dart:math/rectangle.dart: """, top is T, false), ((__x11) => DEVC$RT.cast(__x11, num, T, "CastGeneral", """line 95, column 40 of dart:math/rectangle.dart: """, __x11 is T, false))(right - left), ((__x12) => DEVC$RT.cast(__x12, num, T, "CastGeneral", """line 95, column 54 of dart:math/rectangle.dart: """, __x12 is T, false))(bottom - top));
}
bool containsRectangle(Rectangle<num> another) {
return left <= another.left && left + width >= another.left + another.width && top <= another.top && top + height >= another.top + another.height;
@@ -43,9 +43,9 @@ part of dart.math;
return another.x >= left && another.x <= left + width && another.y >= top && another.y <= top + height;
}
Point<T> get topLeft => new Point<T>(this.left, this.top);
- Point<T> get topRight => new Point<T>(((__x13) => DDC$RT.cast(__x13, num, T, "CastGeneral", """line 119, column 41 of dart:math/rectangle.dart: """, __x13 is T, false))(this.left + this.width), this.top);
- Point<T> get bottomRight => new Point<T>(((__x14) => DDC$RT.cast(__x14, num, T, "CastGeneral", """line 120, column 44 of dart:math/rectangle.dart: """, __x14 is T, false))(this.left + this.width), ((__x15) => DDC$RT.cast(__x15, num, T, "CastGeneral", """line 121, column 7 of dart:math/rectangle.dart: """, __x15 is T, false))(this.top + this.height));
- Point<T> get bottomLeft => new Point<T>(this.left, ((__x16) => DDC$RT.cast(__x16, num, T, "CastGeneral", """line 123, column 7 of dart:math/rectangle.dart: """, __x16 is T, false))(this.top + this.height));
+ Point<T> get topRight => new Point<T>(((__x13) => DEVC$RT.cast(__x13, num, T, "CastGeneral", """line 119, column 41 of dart:math/rectangle.dart: """, __x13 is T, false))(this.left + this.width), this.top);
+ Point<T> get bottomRight => new Point<T>(((__x14) => DEVC$RT.cast(__x14, num, T, "CastGeneral", """line 120, column 44 of dart:math/rectangle.dart: """, __x14 is T, false))(this.left + this.width), ((__x15) => DEVC$RT.cast(__x15, num, T, "CastGeneral", """line 121, column 7 of dart:math/rectangle.dart: """, __x15 is T, false))(this.top + this.height));
+ Point<T> get bottomLeft => new Point<T>(this.left, ((__x16) => DEVC$RT.cast(__x16, num, T, "CastGeneral", """line 123, column 7 of dart:math/rectangle.dart: """, __x16 is T, false))(this.top + this.height));
}
class Rectangle<T extends num> extends _RectangleBase<T> {final T left;
final T top;
@@ -53,10 +53,10 @@ part of dart.math;
final T height;
const Rectangle(this.left, this.top, T width, T height) : this.width = (width < 0) ? -width * 0 : width, this.height = (height < 0) ? -height * 0 : height;
factory Rectangle.fromPoints(Point<T> a, Point<T> b) {
-T left = ((__x17) => DDC$RT.cast(__x17, num, T, "CastGeneral", """line 167, column 14 of dart:math/rectangle.dart: """, __x17 is T, false))(min(a.x, b.x));
- T width = ((__x18) => DDC$RT.cast(__x18, num, T, "CastGeneral", """line 168, column 15 of dart:math/rectangle.dart: """, __x18 is T, false))(max(a.x, b.x) - left);
- T top = ((__x19) => DDC$RT.cast(__x19, num, T, "CastGeneral", """line 169, column 13 of dart:math/rectangle.dart: """, __x19 is T, false))(min(a.y, b.y));
- T height = ((__x20) => DDC$RT.cast(__x20, num, T, "CastGeneral", """line 170, column 16 of dart:math/rectangle.dart: """, __x20 is T, false))(max(a.y, b.y) - top);
+T left = ((__x17) => DEVC$RT.cast(__x17, num, T, "CastGeneral", """line 167, column 14 of dart:math/rectangle.dart: """, __x17 is T, false))(min(a.x, b.x));
+ T width = ((__x18) => DEVC$RT.cast(__x18, num, T, "CastGeneral", """line 168, column 15 of dart:math/rectangle.dart: """, __x18 is T, false))(max(a.x, b.x) - left);
+ T top = ((__x19) => DEVC$RT.cast(__x19, num, T, "CastGeneral", """line 169, column 13 of dart:math/rectangle.dart: """, __x19 is T, false))(min(a.y, b.y));
+ T height = ((__x20) => DEVC$RT.cast(__x20, num, T, "CastGeneral", """line 170, column 16 of dart:math/rectangle.dart: """, __x20 is T, false))(max(a.y, b.y) - top);
return new Rectangle<T>(left, top, width, height);
}
}
@@ -64,22 +64,22 @@ T left = ((__x17) => DDC$RT.cast(__x17, num, T, "CastGeneral", """line 167, colu
T top;
T _width;
T _height;
- MutableRectangle(this.left, this.top, T width, T height) : this._width = ((__x21) => DDC$RT.cast(__x21, dynamic, T, "CastGeneral", """line 212, column 23 of dart:math/rectangle.dart: """, __x21 is T, false))((width < 0) ? _clampToZero(width) : width), this._height = ((__x22) => DDC$RT.cast(__x22, dynamic, T, "CastGeneral", """line 213, column 24 of dart:math/rectangle.dart: """, __x22 is T, false))((height < 0) ? _clampToZero(height) : height);
+ MutableRectangle(this.left, this.top, T width, T height) : this._width = ((__x21) => DEVC$RT.cast(__x21, dynamic, T, "CastGeneral", """line 212, column 23 of dart:math/rectangle.dart: """, __x21 is T, false))((width < 0) ? _clampToZero(width) : width), this._height = ((__x22) => DEVC$RT.cast(__x22, dynamic, T, "CastGeneral", """line 213, column 24 of dart:math/rectangle.dart: """, __x22 is T, false))((height < 0) ? _clampToZero(height) : height);
factory MutableRectangle.fromPoints(Point<T> a, Point<T> b) {
-T left = ((__x23) => DDC$RT.cast(__x23, num, T, "CastGeneral", """line 228, column 14 of dart:math/rectangle.dart: """, __x23 is T, false))(min(a.x, b.x));
- T width = ((__x24) => DDC$RT.cast(__x24, num, T, "CastGeneral", """line 229, column 15 of dart:math/rectangle.dart: """, __x24 is T, false))(max(a.x, b.x) - left);
- T top = ((__x25) => DDC$RT.cast(__x25, num, T, "CastGeneral", """line 230, column 13 of dart:math/rectangle.dart: """, __x25 is T, false))(min(a.y, b.y));
- T height = ((__x26) => DDC$RT.cast(__x26, num, T, "CastGeneral", """line 231, column 16 of dart:math/rectangle.dart: """, __x26 is T, false))(max(a.y, b.y) - top);
+T left = ((__x23) => DEVC$RT.cast(__x23, num, T, "CastGeneral", """line 228, column 14 of dart:math/rectangle.dart: """, __x23 is T, false))(min(a.x, b.x));
+ T width = ((__x24) => DEVC$RT.cast(__x24, num, T, "CastGeneral", """line 229, column 15 of dart:math/rectangle.dart: """, __x24 is T, false))(max(a.x, b.x) - left);
+ T top = ((__x25) => DEVC$RT.cast(__x25, num, T, "CastGeneral", """line 230, column 13 of dart:math/rectangle.dart: """, __x25 is T, false))(min(a.y, b.y));
+ T height = ((__x26) => DEVC$RT.cast(__x26, num, T, "CastGeneral", """line 231, column 16 of dart:math/rectangle.dart: """, __x26 is T, false))(max(a.y, b.y) - top);
return new MutableRectangle<T>(left, top, width, height);
}
T get width => _width;
void set width(T width) {
-if (width < 0) width = ((__x27) => DDC$RT.cast(__x27, num, T, "CastGeneral", """line 247, column 28 of dart:math/rectangle.dart: """, __x27 is T, false))(_clampToZero(width));
+if (width < 0) width = ((__x27) => DEVC$RT.cast(__x27, num, T, "CastGeneral", """line 247, column 28 of dart:math/rectangle.dart: """, __x27 is T, false))(_clampToZero(width));
_width = width;
}
T get height => _height;
void set height(T height) {
-if (height < 0) height = ((__x28) => DDC$RT.cast(__x28, num, T, "CastGeneral", """line 263, column 30 of dart:math/rectangle.dart: """, __x28 is T, false))(_clampToZero(height));
+if (height < 0) height = ((__x28) => DEVC$RT.cast(__x28, num, T, "CastGeneral", """line 263, column 30 of dart:math/rectangle.dart: """, __x28 is T, false))(_clampToZero(height));
_height = height;
}
}
« no previous file with comments | « test/dart_codegen/expect/math/point.dart ('k') | test/dart_codegen/expect/typed_data/typed_data » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698