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

Side by Side Diff: pkg/kernel/testcases/reify/literals_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
OLDNEW
(Empty)
1 library literals_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 A 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$List() → core::bool
16 return false;
17 get $is$Map() → core::bool
18 return false;
19 }
20 class B extends core::Object implements int::HasRuntimeTypeGetter {
21 constructor •() → void
22 : super core::Object::•()
23 ;
24 get $type() → typ::ReifiedType
25 return new typ::Interface::•(self::$declarations.[](1));
26 get $is$List() → core::bool
27 return false;
28 get $is$Map() → core::bool
29 return false;
30 }
31 static final field core::List<dec::Class> $declarations = (core::List<dec::Class > d) → core::List<dec::Class> {
32 dec::init(d, 0, new typ::Interface::•(d.[](17)));
33 dec::init(d, 1, new typ::Interface::•(d.[](17)));
34 dec::init(d, 2, new typ::Interface::•(d.[](17)), <dynamic>[new typ::Interface: :•(d.[](19), <dynamic>[d.[](2).variables.[](0)])]);
35 dec::init(d, 3, new typ::Interface::•(d.[](17)));
36 dec::init(d, 4, new typ::Interface::•(d.[](17)));
37 dec::init(d, 5, new typ::Interface::•(d.[](17)));
38 dec::init(d, 6, new typ::Interface::•(d.[](17)), <dynamic>[new typ::Interface: :•(d.[](20), <dynamic>[new typ::Interface::•(d.[](6))]), new typ::Interface::•(d .[](21))]);
39 dec::init(d, 7, new typ::Interface::•(d.[](22)));
40 dec::init(d, 8, new typ::Interface::•(d.[](22)));
41 dec::init(d, 9, new typ::Interface::•(d.[](17)));
42 dec::init(d, 10, new typ::Interface::•(d.[](23)));
43 dec::init(d, 11, new typ::Interface::•(d.[](23)));
44 dec::init(d, 12, new typ::Interface::•(d.[](23)));
45 dec::init(d, 13, new typ::Interface::•(d.[](23)));
46 dec::init(d, 14, new typ::Interface::•(d.[](17)), <dynamic>[new typ::Interface ::•(d.[](24))]);
47 dec::init(d, 15, new typ::Interface::•(d.[](16)));
48 dec::init(d, 16, new typ::Interface::•(d.[](23)));
49 dec::init(d, 17, null);
50 dec::init(d, 19, new typ::Interface::•(d.[](25), <dynamic>[d.[](19).variables. [](0)]));
51 dec::init(d, 20, new typ::Interface::•(d.[](17)));
52 dec::init(d, 21, new typ::Interface::•(d.[](17)));
53 dec::init(d, 22, new typ::Interface::•(d.[](17)), <dynamic>[new typ::Interface ::•(d.[](20), <dynamic>[new typ::Interface::•(d.[](22))])]);
54 dec::init(d, 23, new typ::Interface::•(d.[](17)));
55 dec::init(d, 24, new typ::Interface::•(d.[](17)));
56 dec::init(d, 25, new typ::Interface::•(d.[](17)));
57 return d;
58 }.call(dec::allocateDeclarations(<dynamic>["A", "B", "List", "Map", "Null", "boo l", "String", "int", "double", "Type", "AbstractClassInstantiationError", "NoSuc hMethodError", "CyclicInitializationError", "UnsupportedError", "IntegerDivision ByZeroException", "RangeError", "ArgumentError", "Object", "HasRuntimeTypeGetter ", "EfficientLengthIterable", "Comparable", "Pattern", "num", "Error", "Exceptio n", "Iterable"], <dynamic>[0, 0, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1]));
59 static method main() → dynamic {
60 tes::expectTrue(typ::isSubtypeOf(int::type(int::attachType(<self::A>[], new ty p::Interface::•(self::$declarations.[](2), <dynamic>[new typ::Interface::•(self: :$declarations.[](0))]))), new typ::Interface::•(self::$declarations.[](2), <dyn amic>[new typ::Interface::•(self::$declarations.[](0))])));
61 tes::expectTrue(!typ::isSubtypeOf(int::type(int::attachType(<self::A>[], new t yp::Interface::•(self::$declarations.[](2), <dynamic>[new typ::Interface::•(self ::$declarations.[](0))]))), new typ::Interface::•(self::$declarations.[](2), <dy namic>[new typ::Interface::•(self::$declarations.[](1))])));
62 tes::expectTrue(typ::isSubtypeOf(int::type(int::attachType(<self::A, self::B>{ }, new typ::Interface::•(self::$declarations.[](3), <dynamic>[new typ::Interface ::•(self::$declarations.[](0)), new typ::Interface::•(self::$declarations.[](1)) ]))), new typ::Interface::•(self::$declarations.[](3), <dynamic>[new typ::Interf ace::•(self::$declarations.[](0)), new typ::Interface::•(self::$declarations.[]( 1))])));
63 tes::expectTrue(!typ::isSubtypeOf(int::type(int::attachType(<self::A, self::B> {}, new typ::Interface::•(self::$declarations.[](3), <dynamic>[new typ::Interfac e::•(self::$declarations.[](0)), new typ::Interface::•(self::$declarations.[](1) )]))), new typ::Interface::•(self::$declarations.[](3), <dynamic>[new typ::Inter face::•(self::$declarations.[](0)), new typ::Interface::•(self::$declarations.[] (0))])));
64 tes::expectTrue(!typ::isSubtypeOf(int::type(int::attachType(<self::A, self::B> {}, new typ::Interface::•(self::$declarations.[](3), <dynamic>[new typ::Interfac e::•(self::$declarations.[](0)), new typ::Interface::•(self::$declarations.[](1) )]))), new typ::Interface::•(self::$declarations.[](3), <dynamic>[new typ::Inter face::•(self::$declarations.[](1)), new typ::Interface::•(self::$declarations.[] (1))])));
65 }
OLDNEW
« no previous file with comments | « pkg/kernel/testcases/reify/literals_test.dart ('k') | pkg/kernel/testcases/reify/multiple_variables_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698