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

Side by Side Diff: pkg/front_end/test/fasta/super_rasta_copy.dart.direct.expect

Issue 2704143003: Implement super operators. (Closed)
Patch Set: 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;
2 import self as self;
3 import "dart:core" as core;
4
5 class A extends core::Object {
6 field dynamic a = null;
7 field dynamic b = null;
8 field dynamic c = null;
9 field dynamic d = null;
10 final field dynamic f = null;
11 constructor •() → void
12 : super core::Object::•()
13 ;
14 get e() → dynamic
15 return null;
16 set g(dynamic _) → dynamic {}
17 set h(dynamic _) → dynamic {}
18 get h() → dynamic
19 return null;
20 get i() → dynamic
21 return null;
22 operator [](dynamic _) → dynamic
23 return null;
24 operator []=(dynamic a, dynamic b) → dynamic {}
25 operator ~() → dynamic
26 return 117;
27 operator unary-() → dynamic
28 return 117;
29 operator ==(dynamic other) → dynamic
30 return true;
31 method m() → void {}
32 }
33 class B extends self::A {
34 final field dynamic d = null;
35 constructor •() → void
36 : super self::A::•()
37 ;
38 get b() → dynamic
39 return null;
40 set c(dynamic x) → dynamic {}
41 set i(dynamic x) → dynamic {}
42 }
43 class C extends self::B {
44 constructor •() → void
45 : super self::B::•()
46 ;
47 method test() → dynamic {
48 this.{=self::A::~}();
49 self::use(this.{=self::A::~}());
50 this.{=self::A::unary-}();
51 self::use(this.{=self::A::unary-}());
52 this.{=self::A::==}(87);
53 self::use(this.{=self::A::==}(87));
54 !this.{=self::A::==}(87);
55 self::use(!this.{=self::A::==}(87));
56 this.{=self::A::a};
57 self::use(this.{=self::A::a});
58 this.{=self::B::b};
59 self::use(this.{=self::B::b});
60 this.{=self::A::c};
61 self::use(this.{=self::A::c});
62 this.{=self::B::d};
63 self::use(this.{=self::B::d});
64 this.{=self::A::e};
65 self::use(this.{=self::A::e});
66 this.{=self::A::f};
67 self::use(this.{=self::A::f});
68 throw new core::NoSuchMethodError::•(null, #g, <dynamic>[], <dynamic, dynami c>{}, null);
69 self::use(throw new core::NoSuchMethodError::•(null, #g, <dynamic>[], <dynam ic, dynamic>{}, null));
70 this.{=self::A::h};
71 self::use(this.{=self::A::h});
72 this.{=self::A::i};
73 self::use(this.{=self::A::i});
74 this.{=self::A::[]}(87);
75 self::use(this.{=self::A::[]}(87));
76 this.{=self::A::m};
77 self::use(this.{=self::A::m});
78 this.{=self::A::a} = this.{=self::A::a}.+(1);
79 self::use(let final dynamic #t1 = this.{=self::A::a} in let final dynamic #t 2 = this.{=self::A::a} = #t1.+(1) in #t1);
80 this.{=self::A::b} = this.{=self::B::b}.+(1);
81 self::use(let final dynamic #t3 = this.{=self::B::b} in let final dynamic #t 4 = this.{=self::A::b} = #t3.+(1) in #t3);
82 this.{=self::B::c} = this.{=self::A::c}.+(1);
83 self::use(let final dynamic #t5 = this.{=self::A::c} in let final dynamic #t 6 = this.{=self::B::c} = #t5.+(1) in #t5);
84 this.{=self::A::d} = this.{=self::B::d}.+(1);
85 self::use(let final dynamic #t7 = this.{=self::B::d} in let final dynamic #t 8 = this.{=self::A::d} = #t7.+(1) in #t7);
86 throw new core::NoSuchMethodError::•(null, #e, <dynamic>[this.{=self::A::e}. +(1)], <dynamic, dynamic>{}, null);
87 self::use(let final dynamic #t9 = this.{=self::A::e} in let final dynamic #t 10 = throw new core::NoSuchMethodError::•(null, #e, <dynamic>[#t9.+(1)], <dynami c, dynamic>{}, null) in #t9);
88 throw new core::NoSuchMethodError::•(null, #f, <dynamic>[this.{=self::A::f}. +(1)], <dynamic, dynamic>{}, null);
89 self::use(let final dynamic #t11 = this.{=self::A::f} in let final dynamic # t12 = throw new core::NoSuchMethodError::•(null, #f, <dynamic>[#t11.+(1)], <dyna mic, dynamic>{}, null) in #t11);
90 this.{=self::A::g} = (throw new core::NoSuchMethodError::•(null, #g, <dynami c>[], <dynamic, dynamic>{}, null)).+(1);
91 self::use(let final dynamic #t13 = throw new core::NoSuchMethodError::•(null , #g, <dynamic>[], <dynamic, dynamic>{}, null) in let final dynamic #t14 = this. {=self::A::g} = #t13.+(1) in #t13);
92 this.{=self::A::h} = this.{=self::A::h}.+(1);
93 self::use(let final dynamic #t15 = this.{=self::A::h} in let final dynamic # t16 = this.{=self::A::h} = #t15.+(1) in #t15);
94 this.{=self::B::i} = this.{=self::A::i}.+(1);
95 self::use(let final dynamic #t17 = this.{=self::A::i} in let final dynamic # t18 = this.{=self::B::i} = #t17.+(1) in #t17);
96 let final dynamic #t19 = 87 in this.{=self::A::[]=}(#t19, this.{=self::A::[] }(#t19).+(1));
97 self::use(let final dynamic #t20 = 87 in let final dynamic #t21 = this.{=sel f::A::[]}(#t20) in let final dynamic #t22 = this.{=self::A::[]=}(#t20, #t21.+(1) ) in #t21);
98 throw new core::NoSuchMethodError::•(null, #m, <dynamic>[this.{=self::A::m}. +(1)], <dynamic, dynamic>{}, null);
99 self::use(let final dynamic #t23 = this.{=self::A::m} in let final dynamic # t24 = throw new core::NoSuchMethodError::•(null, #m, <dynamic>[#t23.+(1)], <dyna mic, dynamic>{}, null) in #t23);
100 this.{=self::A::a} = this.{=self::A::a}.+(1);
101 self::use(this.{=self::A::a} = this.{=self::A::a}.+(1));
102 this.{=self::A::b} = this.{=self::B::b}.+(1);
103 self::use(this.{=self::A::b} = this.{=self::B::b}.+(1));
104 this.{=self::B::c} = this.{=self::A::c}.+(1);
105 self::use(this.{=self::B::c} = this.{=self::A::c}.+(1));
106 this.{=self::A::d} = this.{=self::B::d}.+(1);
107 self::use(this.{=self::A::d} = this.{=self::B::d}.+(1));
108 throw new core::NoSuchMethodError::•(null, #e, <dynamic>[this.{=self::A::e}. +(1)], <dynamic, dynamic>{}, null);
109 self::use(throw new core::NoSuchMethodError::•(null, #e, <dynamic>[this.{=se lf::A::e}.+(1)], <dynamic, dynamic>{}, null));
110 throw new core::NoSuchMethodError::•(null, #f, <dynamic>[this.{=self::A::f}. +(1)], <dynamic, dynamic>{}, null);
111 self::use(throw new core::NoSuchMethodError::•(null, #f, <dynamic>[this.{=se lf::A::f}.+(1)], <dynamic, dynamic>{}, null));
112 this.{=self::A::g} = (throw new core::NoSuchMethodError::•(null, #g, <dynami c>[], <dynamic, dynamic>{}, null)).+(1);
113 self::use(this.{=self::A::g} = (throw new core::NoSuchMethodError::•(null, # g, <dynamic>[], <dynamic, dynamic>{}, null)).+(1));
114 this.{=self::A::h} = this.{=self::A::h}.+(1);
115 self::use(this.{=self::A::h} = this.{=self::A::h}.+(1));
116 this.{=self::B::i} = this.{=self::A::i}.+(1);
117 self::use(this.{=self::B::i} = this.{=self::A::i}.+(1));
118 let final dynamic #t25 = 87 in let final dynamic #t26 = this.{=self::A::[]}( #t25).+(1) in let final dynamic #t27 = this.{=self::A::[]=}(#t25, #t26) in #t26;
119 self::use(let final dynamic #t28 = 87 in let final dynamic #t29 = this.{=sel f::A::[]}(#t28).+(1) in let final dynamic #t30 = this.{=self::A::[]=}(#t28, #t29 ) in #t29);
120 throw new core::NoSuchMethodError::•(null, #m, <dynamic>[this.{=self::A::m}. +(1)], <dynamic, dynamic>{}, null);
121 self::use(throw new core::NoSuchMethodError::•(null, #m, <dynamic>[this.{=se lf::A::m}.+(1)], <dynamic, dynamic>{}, null));
122 this.{=self::A::a}.call();
123 self::use(this.{=self::A::a}.call());
124 this.{=self::B::b}.call();
125 self::use(this.{=self::B::b}.call());
126 this.{=self::A::c}.call();
127 self::use(this.{=self::A::c}.call());
128 this.{=self::B::d}.call();
129 self::use(this.{=self::B::d}.call());
130 this.{=self::A::e}.call();
131 self::use(this.{=self::A::e}.call());
132 this.{=self::A::f}.call();
133 self::use(this.{=self::A::f}.call());
134 throw new core::NoSuchMethodError::•(null, #g, <dynamic>[], <dynamic, dynami c>{}, null);
135 self::use(throw new core::NoSuchMethodError::•(null, #g, <dynamic>[], <dynam ic, dynamic>{}, null));
136 this.{=self::A::h}.call();
137 self::use(this.{=self::A::h}.call());
138 this.{=self::A::i}.call();
139 self::use(this.{=self::A::i}.call());
140 this.{=self::A::[]}(87).call();
141 self::use(this.{=self::A::[]}(87).call());
142 this.{=self::A::m}();
143 self::use(this.{=self::A::m}());
144 this.{=core::Object::noSuchMethod}(new core::_InvocationMirror::•("m", core: :List::from<dynamic>(<dynamic>[2, 2], growable: false), core::List::from<dynamic >(<dynamic>[this, 87], growable: false), true));
145 self::use(this.{=core::Object::noSuchMethod}(new core::_InvocationMirror::•( "m", core::List::from<dynamic>(<dynamic>[2, 2], growable: false), core::List::fr om<dynamic>(<dynamic>[this, 87], growable: false), true)));
146 this.{=self::A::a} = 42;
147 self::use(this.{=self::A::a} = 42);
148 this.{=self::A::b} = 42;
149 self::use(this.{=self::A::b} = 42);
150 this.{=self::B::c} = 42;
151 self::use(this.{=self::B::c} = 42);
152 this.{=self::A::d} = 42;
153 self::use(this.{=self::A::d} = 42);
154 throw new core::NoSuchMethodError::•(null, #e, <dynamic>[42], <dynamic, dyna mic>{}, null);
155 self::use(throw new core::NoSuchMethodError::•(null, #e, <dynamic>[42], <dyn amic, dynamic>{}, null));
156 throw new core::NoSuchMethodError::•(null, #f, <dynamic>[42], <dynamic, dyna mic>{}, null);
157 self::use(throw new core::NoSuchMethodError::•(null, #f, <dynamic>[42], <dyn amic, dynamic>{}, null));
158 this.{=self::A::g} = 42;
159 self::use(this.{=self::A::g} = 42);
160 this.{=self::A::h} = 42;
161 self::use(this.{=self::A::h} = 42);
162 this.{=self::B::i} = 42;
163 self::use(this.{=self::B::i} = 42);
164 this.{=self::A::[]=}(87, 42);
165 self::use(let final dynamic #t31 = 87 in let final dynamic #t32 = 42 in let final dynamic #t33 = this.{=self::A::[]=}(#t31, #t32) in #t32);
166 throw new core::NoSuchMethodError::•(null, #m, <dynamic>[42], <dynamic, dyna mic>{}, null);
167 self::use(throw new core::NoSuchMethodError::•(null, #m, <dynamic>[42], <dyn amic, dynamic>{}, null));
168 this.{=self::A::a}.==(null) ? this.{=self::A::a} = 42 : null;
169 self::use(let final dynamic #t34 = this.{=self::A::a} in #t34.==(null) ? thi s.{=self::A::a} = 42 : #t34);
170 this.{=self::B::b}.==(null) ? this.{=self::A::b} = 42 : null;
171 self::use(let final dynamic #t35 = this.{=self::B::b} in #t35.==(null) ? thi s.{=self::A::b} = 42 : #t35);
172 this.{=self::A::c}.==(null) ? this.{=self::B::c} = 42 : null;
173 self::use(let final dynamic #t36 = this.{=self::A::c} in #t36.==(null) ? thi s.{=self::B::c} = 42 : #t36);
174 this.{=self::B::d}.==(null) ? this.{=self::A::d} = 42 : null;
175 self::use(let final dynamic #t37 = this.{=self::B::d} in #t37.==(null) ? thi s.{=self::A::d} = 42 : #t37);
176 this.{=self::A::e}.==(null) ? throw new core::NoSuchMethodError::•(null, #e, <dynamic>[42], <dynamic, dynamic>{}, null) : null;
177 self::use(let final dynamic #t38 = this.{=self::A::e} in #t38.==(null) ? thr ow new core::NoSuchMethodError::•(null, #e, <dynamic>[42], <dynamic, dynamic>{}, null) : #t38);
178 this.{=self::A::f}.==(null) ? throw new core::NoSuchMethodError::•(null, #f, <dynamic>[42], <dynamic, dynamic>{}, null) : null;
179 self::use(let final dynamic #t39 = this.{=self::A::f} in #t39.==(null) ? thr ow new core::NoSuchMethodError::•(null, #f, <dynamic>[42], <dynamic, dynamic>{}, null) : #t39);
180 (throw new core::NoSuchMethodError::•(null, #g, <dynamic>[], <dynamic, dynam ic>{}, null)).==(null) ? this.{=self::A::g} = 42 : null;
181 self::use(let final dynamic #t40 = throw new core::NoSuchMethodError::•(null , #g, <dynamic>[], <dynamic, dynamic>{}, null) in #t40.==(null) ? this.{=self::A ::g} = 42 : #t40);
182 this.{=self::A::h}.==(null) ? this.{=self::A::h} = 42 : null;
183 self::use(let final dynamic #t41 = this.{=self::A::h} in #t41.==(null) ? thi s.{=self::A::h} = 42 : #t41);
184 this.{=self::A::i}.==(null) ? this.{=self::B::i} = 42 : null;
185 self::use(let final dynamic #t42 = this.{=self::A::i} in #t42.==(null) ? thi s.{=self::B::i} = 42 : #t42);
186 let final dynamic #t43 = 87 in this.{=self::A::[]}(#t43).==(null) ? let fina l dynamic #t44 = 42 in let final dynamic #t45 = this.{=self::A::[]=}(#t43, #t44) in #t44 : null;
187 self::use(let final dynamic #t46 = 87 in let final dynamic #t47 = this.{=sel f::A::[]}(#t46) in #t47.==(null) ? let final dynamic #t48 = 42 in let final dyna mic #t49 = this.{=self::A::[]=}(#t46, #t48) in #t48 : #t47);
188 this.{=self::A::m}.==(null) ? throw new core::NoSuchMethodError::•(null, #m, <dynamic>[42], <dynamic, dynamic>{}, null) : null;
189 self::use(let final dynamic #t50 = this.{=self::A::m} in #t50.==(null) ? thr ow new core::NoSuchMethodError::•(null, #m, <dynamic>[42], <dynamic, dynamic>{}, null) : #t50);
190 this.{=self::A::a} = this.{=self::A::a}.+(42);
191 self::use(this.{=self::A::a} = this.{=self::A::a}.+(42));
192 this.{=self::A::b} = this.{=self::B::b}.+(42);
193 self::use(this.{=self::A::b} = this.{=self::B::b}.+(42));
194 this.{=self::B::c} = this.{=self::A::c}.+(42);
195 self::use(this.{=self::B::c} = this.{=self::A::c}.+(42));
196 this.{=self::A::d} = this.{=self::B::d}.+(42);
197 self::use(this.{=self::A::d} = this.{=self::B::d}.+(42));
198 throw new core::NoSuchMethodError::•(null, #e, <dynamic>[this.{=self::A::e}. +(42)], <dynamic, dynamic>{}, null);
199 self::use(throw new core::NoSuchMethodError::•(null, #e, <dynamic>[this.{=se lf::A::e}.+(42)], <dynamic, dynamic>{}, null));
200 throw new core::NoSuchMethodError::•(null, #f, <dynamic>[this.{=self::A::f}. +(42)], <dynamic, dynamic>{}, null);
201 self::use(throw new core::NoSuchMethodError::•(null, #f, <dynamic>[this.{=se lf::A::f}.+(42)], <dynamic, dynamic>{}, null));
202 this.{=self::A::g} = (throw new core::NoSuchMethodError::•(null, #g, <dynami c>[], <dynamic, dynamic>{}, null)).+(42);
203 self::use(this.{=self::A::g} = (throw new core::NoSuchMethodError::•(null, # g, <dynamic>[], <dynamic, dynamic>{}, null)).+(42));
204 this.{=self::A::h} = this.{=self::A::h}.+(42);
205 self::use(this.{=self::A::h} = this.{=self::A::h}.+(42));
206 this.{=self::B::i} = this.{=self::A::i}.+(42);
207 self::use(this.{=self::B::i} = this.{=self::A::i}.+(42));
208 let final dynamic #t51 = 87 in this.{=self::A::[]=}(#t51, this.{=self::A::[] }(#t51).+(42));
209 self::use(let final dynamic #t52 = 87 in let final dynamic #t53 = this.{=sel f::A::[]}(#t52).+(42) in let final dynamic #t54 = this.{=self::A::[]=}(#t52, #t5 3) in #t53);
210 throw new core::NoSuchMethodError::•(null, #m, <dynamic>[this.{=self::A::m}. +(42)], <dynamic, dynamic>{}, null);
211 self::use(throw new core::NoSuchMethodError::•(null, #m, <dynamic>[this.{=se lf::A::m}.+(42)], <dynamic, dynamic>{}, null));
212 this.{=self::A::a} = this.{=self::A::a}.-(42);
213 self::use(this.{=self::A::a} = this.{=self::A::a}.-(42));
214 this.{=self::A::b} = this.{=self::B::b}.-(42);
215 self::use(this.{=self::A::b} = this.{=self::B::b}.-(42));
216 this.{=self::B::c} = this.{=self::A::c}.-(42);
217 self::use(this.{=self::B::c} = this.{=self::A::c}.-(42));
218 this.{=self::A::d} = this.{=self::B::d}.-(42);
219 self::use(this.{=self::A::d} = this.{=self::B::d}.-(42));
220 throw new core::NoSuchMethodError::•(null, #e, <dynamic>[this.{=self::A::e}. -(42)], <dynamic, dynamic>{}, null);
221 self::use(throw new core::NoSuchMethodError::•(null, #e, <dynamic>[this.{=se lf::A::e}.-(42)], <dynamic, dynamic>{}, null));
222 throw new core::NoSuchMethodError::•(null, #f, <dynamic>[this.{=self::A::f}. -(42)], <dynamic, dynamic>{}, null);
223 self::use(throw new core::NoSuchMethodError::•(null, #f, <dynamic>[this.{=se lf::A::f}.-(42)], <dynamic, dynamic>{}, null));
224 this.{=self::A::g} = (throw new core::NoSuchMethodError::•(null, #g, <dynami c>[], <dynamic, dynamic>{}, null)).-(42);
225 self::use(this.{=self::A::g} = (throw new core::NoSuchMethodError::•(null, # g, <dynamic>[], <dynamic, dynamic>{}, null)).-(42));
226 this.{=self::A::h} = this.{=self::A::h}.-(42);
227 self::use(this.{=self::A::h} = this.{=self::A::h}.-(42));
228 this.{=self::B::i} = this.{=self::A::i}.-(42);
229 self::use(this.{=self::B::i} = this.{=self::A::i}.-(42));
230 let final dynamic #t55 = 87 in this.{=self::A::[]=}(#t55, this.{=self::A::[] }(#t55).-(42));
231 self::use(let final dynamic #t56 = 87 in let final dynamic #t57 = this.{=sel f::A::[]}(#t56).-(42) in let final dynamic #t58 = this.{=self::A::[]=}(#t56, #t5 7) in #t57);
232 throw new core::NoSuchMethodError::•(null, #m, <dynamic>[this.{=self::A::m}. -(42)], <dynamic, dynamic>{}, null);
233 self::use(throw new core::NoSuchMethodError::•(null, #m, <dynamic>[this.{=se lf::A::m}.-(42)], <dynamic, dynamic>{}, null));
234 }
235 }
236 static method use(dynamic x) → dynamic {
237 if(x.==(new core::DateTime::now().millisecondsSinceEpoch))
238 throw "Shouldn't happen";
239 }
240 static method main() → dynamic {
241 try {
242 new self::C::•().test();
243 }
244 on core::NoSuchMethodError catch(no-exception-var) {
245 return;
246 }
247 throw "Test failed";
248 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698