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

Unified Diff: pkg/kernel/testcases/reify/runtime_type_test.dart.expect

Issue 2697873007: Merge the work on Generic Types Reification from 'dart-lang/reify' repo (Closed)
Patch Set: Get back parameter erroneously removed by previous commit Created 3 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 | « pkg/kernel/testcases/reify/runtime_type_test.dart ('k') | pkg/kernel/testcases/reify/simple_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/testcases/reify/runtime_type_test.dart.expect
diff --git a/pkg/kernel/testcases/reify/runtime_type_test.dart.expect b/pkg/kernel/testcases/reify/runtime_type_test.dart.expect
new file mode 100644
index 0000000000000000000000000000000000000000..360e853baeb93f77e9bb00b55652c9fab0c29aca
--- /dev/null
+++ b/pkg/kernel/testcases/reify/runtime_type_test.dart.expect
@@ -0,0 +1,66 @@
+library runtime_type_test;
+import self as self;
+import "dart:core" as core;
+import "../../runtime/reify/interceptors.dart" as int;
+import "../../runtime/reify/types.dart" as typ;
+import "./test_base.dart" as tes;
+import "../../runtime/reify/declarations.dart" as dec;
+
+class A extends core::Object implements int::HasRuntimeTypeGetter {
+ final field typ::ReifiedType $type;
+ constructor •(typ::ReifiedType $type) → void
+ : self::A::$type = $type, super core::Object::•()
+ ;
+ get $A$T() → typ::ReifiedType
+ return typ::getTypeArguments(typ::asInstanceOf(this.$type, self::$declarations.[](0))).[](0);
+ get runtimeType() → core::Type
+ return this.{=self::A::$type};
+}
+class X extends core::Object implements int::HasRuntimeTypeGetter {
+ constructor •() → void
+ : super core::Object::•()
+ ;
+ get $type() → typ::ReifiedType
+ return new typ::Interface::•(self::$declarations.[](1));
+}
+class Y extends core::Object implements int::HasRuntimeTypeGetter {
+ constructor •() → void
+ : super core::Object::•()
+ ;
+ get $type() → typ::ReifiedType
+ return new typ::Interface::•(self::$declarations.[](2));
+}
+static final field core::List<dec::Class> $declarations = (core::List<dec::Class> d) → core::List<dec::Class> {
+ dec::init(d, 0, new typ::Interface::•(d.[](16)));
+ dec::init(d, 1, new typ::Interface::•(d.[](16)));
+ dec::init(d, 2, new typ::Interface::•(d.[](16)));
+ dec::init(d, 3, new typ::Interface::•(d.[](16)));
+ dec::init(d, 4, new typ::Interface::•(d.[](16)));
+ dec::init(d, 5, new typ::Interface::•(d.[](16)), <dynamic>[new typ::Interface::•(d.[](18), <dynamic>[new typ::Interface::•(d.[](5))]), new typ::Interface::•(d.[](19))]);
+ dec::init(d, 6, new typ::Interface::•(d.[](20)));
+ dec::init(d, 7, new typ::Interface::•(d.[](20)));
+ dec::init(d, 8, new typ::Interface::•(d.[](16)));
+ dec::init(d, 9, new typ::Interface::•(d.[](21)));
+ dec::init(d, 10, new typ::Interface::•(d.[](21)));
+ dec::init(d, 11, new typ::Interface::•(d.[](21)));
+ dec::init(d, 12, new typ::Interface::•(d.[](21)));
+ dec::init(d, 13, new typ::Interface::•(d.[](16)), <dynamic>[new typ::Interface::•(d.[](22))]);
+ dec::init(d, 14, new typ::Interface::•(d.[](15)));
+ dec::init(d, 15, new typ::Interface::•(d.[](21)));
+ dec::init(d, 16, null);
+ dec::init(d, 18, new typ::Interface::•(d.[](16)));
+ dec::init(d, 19, new typ::Interface::•(d.[](16)));
+ dec::init(d, 20, new typ::Interface::•(d.[](16)), <dynamic>[new typ::Interface::•(d.[](18), <dynamic>[new typ::Interface::•(d.[](20))])]);
+ dec::init(d, 21, new typ::Interface::•(d.[](16)));
+ dec::init(d, 22, new typ::Interface::•(d.[](16)));
+ return d;
+}.call(dec::allocateDeclarations(<dynamic>["A", "X", "Y", "Null", "bool", "String", "int", "double", "Type", "AbstractClassInstantiationError", "NoSuchMethodError", "CyclicInitializationError", "UnsupportedError", "IntegerDivisionByZeroException", "RangeError", "ArgumentError", "Object", "HasRuntimeTypeGetter", "Comparable", "Pattern", "num", "Error", "Exception"], <dynamic>[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0]));
+static method eqt(dynamic a, dynamic b) → core::bool {
+ return a.runtimeType.==(b.runtimeType);
+}
+static method main() → dynamic {
+ tes::expectTrue(self::eqt(new self::A::•(new typ::Interface::•(self::$declarations.[](0), <dynamic>[const typ::Dynamic::•()])), new self::A::•(new typ::Interface::•(self::$declarations.[](0), <dynamic>[const typ::Dynamic::•()]))));
+ tes::expectTrue(self::eqt(new self::A::•(new typ::Interface::•(self::$declarations.[](0), <dynamic>[new typ::Interface::•(self::$declarations.[](1))])), new self::A::•(new typ::Interface::•(self::$declarations.[](0), <dynamic>[new typ::Interface::•(self::$declarations.[](1))]))));
+ tes::expectFalse(self::eqt(new self::A::•(new typ::Interface::•(self::$declarations.[](0), <dynamic>[new typ::Interface::•(self::$declarations.[](1))])), new self::A::•(new typ::Interface::•(self::$declarations.[](0), <dynamic>[const typ::Dynamic::•()]))));
+ tes::expectFalse(self::eqt(new self::A::•(new typ::Interface::•(self::$declarations.[](0), <dynamic>[new typ::Interface::•(self::$declarations.[](1))])), new self::A::•(new typ::Interface::•(self::$declarations.[](0), <dynamic>[new typ::Interface::•(self::$declarations.[](2))]))));
+}
« no previous file with comments | « pkg/kernel/testcases/reify/runtime_type_test.dart ('k') | pkg/kernel/testcases/reify/simple_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698