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

Side by Side Diff: pkg/kernel/testcases/reify/is1_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 unified diff | Download patch
« no previous file with comments | « pkg/kernel/testcases/reify/is1_test.dart ('k') | pkg/kernel/testcases/reify/literals_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 library is1_test;
2 import self as self;
3 import "dart:core" as core;
4 import "../../runtime/reify/interceptors.dart" as int;
5 import "../../runtime/reify/types.dart" as typ;
6 import "./test_base.dart" as tes;
7 import "../../runtime/reify/declarations.dart" as dec;
8
9 class N extends core::Object implements int::HasRuntimeTypeGetter {
10 constructor •() → void
11 : super core::Object::•()
12 ;
13 get $type() → typ::ReifiedType
14 return new typ::Interface::•(self::$declarations.[](0));
15 get $is$A() → core::bool
16 return false;
17 }
18 class I extends self::N implements int::HasRuntimeTypeGetter {
19 constructor •() → void
20 : super self::N::•()
21 ;
22 get $type() → typ::ReifiedType
23 return new typ::Interface::•(self::$declarations.[](1));
24 get $is$A() → core::bool
25 return false;
26 }
27 class D extends self::N implements int::HasRuntimeTypeGetter {
28 constructor •() → void
29 : super self::N::•()
30 ;
31 get $type() → typ::ReifiedType
32 return new typ::Interface::•(self::$declarations.[](2));
33 get $is$A() → core::bool
34 return false;
35 }
36 class A extends core::Object implements int::HasRuntimeTypeGetter {
37 final field typ::ReifiedType $type;
38 constructor •(typ::ReifiedType $type) → void
39 : self::A::$type = $type, super core::Object::•()
40 ;
41 get $A$T() → typ::ReifiedType
42 return typ::getTypeArguments(typ::asInstanceOf(this.$type, self::$declaratio ns.[](3))).[](0);
43 get $is$A() → core::bool
44 return true;
45 get runtimeType() → core::Type
46 return this.{=self::A::$type};
47 }
48 static final field core::List<dec::Class> $declarations = (core::List<dec::Class > d) → core::List<dec::Class> {
49 dec::init(d, 0, new typ::Interface::•(d.[](17)));
50 dec::init(d, 1, new typ::Interface::•(d.[](0)));
51 dec::init(d, 2, new typ::Interface::•(d.[](0)));
52 dec::init(d, 3, new typ::Interface::•(d.[](17)));
53 dec::init(d, 4, new typ::Interface::•(d.[](17)));
54 dec::init(d, 5, new typ::Interface::•(d.[](17)));
55 dec::init(d, 6, new typ::Interface::•(d.[](17)), <dynamic>[new typ::Interface: :•(d.[](19), <dynamic>[new typ::Interface::•(d.[](6))]), new typ::Interface::•(d .[](20))]);
56 dec::init(d, 7, new typ::Interface::•(d.[](21)));
57 dec::init(d, 8, new typ::Interface::•(d.[](21)));
58 dec::init(d, 9, new typ::Interface::•(d.[](17)));
59 dec::init(d, 10, new typ::Interface::•(d.[](22)));
60 dec::init(d, 11, new typ::Interface::•(d.[](22)));
61 dec::init(d, 12, new typ::Interface::•(d.[](22)));
62 dec::init(d, 13, new typ::Interface::•(d.[](22)));
63 dec::init(d, 14, new typ::Interface::•(d.[](17)), <dynamic>[new typ::Interface ::•(d.[](23))]);
64 dec::init(d, 15, new typ::Interface::•(d.[](16)));
65 dec::init(d, 16, new typ::Interface::•(d.[](22)));
66 dec::init(d, 17, null);
67 dec::init(d, 19, new typ::Interface::•(d.[](17)));
68 dec::init(d, 20, new typ::Interface::•(d.[](17)));
69 dec::init(d, 21, new typ::Interface::•(d.[](17)), <dynamic>[new typ::Interface ::•(d.[](19), <dynamic>[new typ::Interface::•(d.[](21))])]);
70 dec::init(d, 22, new typ::Interface::•(d.[](17)));
71 dec::init(d, 23, new typ::Interface::•(d.[](17)));
72 return d;
73 }.call(dec::allocateDeclarations(<dynamic>["N", "I", "D", "A", "Null", "bool", " String", "int", "double", "Type", "AbstractClassInstantiationError", "NoSuchMeth odError", "CyclicInitializationError", "UnsupportedError", "IntegerDivisionByZer oException", "RangeError", "ArgumentError", "Object", "HasRuntimeTypeGetter", "C omparable", "Pattern", "num", "Error", "Exception"], <dynamic>[0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0]));
74 static method main() → dynamic {
75 dynamic x = new self::A::•(new typ::Interface::•(self::$declarations.[](3), <d ynamic>[new typ::Interface::•(self::$declarations.[](1))]));
76 tes::expectTrue(let dynamic #t1 = x in #t1 is int::HasRuntimeTypeGetter && #t1 .$is$A && (let dynamic #t2 = new typ::Interface::•(self::$declarations.[](3), <d ynamic>[new typ::Interface::•(self::$declarations.[](0))]) in typ::isSubtypeOf(# t1.$type, #t2)));
77 tes::expectTrue(let dynamic #t3 = x in #t3 is int::HasRuntimeTypeGetter && #t3 .$is$A && (let dynamic #t4 = new typ::Interface::•(self::$declarations.[](3), <d ynamic>[new typ::Interface::•(self::$declarations.[](1))]) in typ::isSubtypeOf(# t3.$type, #t4)));
78 tes::expectFalse(let dynamic #t5 = x in #t5 is int::HasRuntimeTypeGetter && #t 5.$is$A && (let dynamic #t6 = new typ::Interface::•(self::$declarations.[](3), < dynamic>[new typ::Interface::•(self::$declarations.[](2))]) in typ::isSubtypeOf( #t5.$type, #t6)));
79 dynamic y = new self::A::•(new typ::Interface::•(self::$declarations.[](3), <d ynamic>[const typ::Dynamic::•()]));
80 tes::expectTrue(let dynamic #t7 = y in #t7 is int::HasRuntimeTypeGetter && #t7 .$is$A && (let dynamic #t8 = new typ::Interface::•(self::$declarations.[](3), <d ynamic>[new typ::Interface::•(self::$declarations.[](0))]) in typ::isSubtypeOf(# t7.$type, #t8)));
81 tes::expectTrue(let dynamic #t9 = y in #t9 is int::HasRuntimeTypeGetter && #t9 .$is$A && (let dynamic #t10 = new typ::Interface::•(self::$declarations.[](3), < dynamic>[new typ::Interface::•(self::$declarations.[](1))]) in typ::isSubtypeOf( #t9.$type, #t10)));
82 tes::expectTrue(let dynamic #t11 = y in #t11 is int::HasRuntimeTypeGetter && # t11.$is$A && (let dynamic #t12 = new typ::Interface::•(self::$declarations.[](3) , <dynamic>[new typ::Interface::•(self::$declarations.[](2))]) in typ::isSubtype Of(#t11.$type, #t12)));
83 }
OLDNEW
« no previous file with comments | « pkg/kernel/testcases/reify/is1_test.dart ('k') | pkg/kernel/testcases/reify/literals_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698