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

Side by Side Diff: test/dart_codegen/expect/async/stream_pipe.dart

Issue 1028793002: Transitive inference using SCC (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: cl comments Created 5 years, 9 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 | « test/codegen/sunflower/sunflower.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 part of dart.async; 1 part of dart.async;
2 _runUserCode(userCode(), onSuccess(value), onError(error, StackTrace stackTrace )) { 2 _runUserCode(userCode(), onSuccess(value), onError(error, StackTrace stackTrace )) {
3 try { 3 try {
4 onSuccess(userCode()); 4 onSuccess(userCode());
5 } 5 }
6 catch (e, s) { 6 catch (e, s) {
7 AsyncError replacement = Zone.current.errorCallback(e, s); 7 AsyncError replacement = Zone.current.errorCallback(e, s);
8 if (replacement == null) { 8 if (replacement == null) {
9 onError(e, s); 9 onError(e, s);
10 } 10 }
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 _previous = inputEvent; 258 _previous = inputEvent;
259 return sink._add(inputEvent); 259 return sink._add(inputEvent);
260 } 260 }
261 else { 261 else {
262 bool isEqual; 262 bool isEqual;
263 try { 263 try {
264 if (_equals == null) { 264 if (_equals == null) {
265 isEqual = (_previous == inputEvent); 265 isEqual = (_previous == inputEvent);
266 } 266 }
267 else { 267 else {
268 isEqual = _equals(DEVC$RT.cast(_previous, dynamic, T, "CastGeneral", """line 426 , column 29 of dart:async/stream_pipe.dart: """, _previous is T, false), inputEv ent); 268 isEqual = _equals(DEVC$RT.cast(_previous, Object, T, "CastGeneral", """line 426, column 29 of dart:async/stream_pipe.dart: """, _previous is T, false), inputEve nt);
269 } 269 }
270 } 270 }
271 catch (e, s) { 271 catch (e, s) {
272 _addErrorWithReplacement(sink, e, s); 272 _addErrorWithReplacement(sink, e, s);
273 return null; 273 return null;
274 } 274 }
275 if (!isEqual) { 275 if (!isEqual) {
276 sink._add(inputEvent); 276 sink._add(inputEvent);
277 _previous = inputEvent; 277 _previous = inputEvent;
278 } 278 }
279 } 279 }
280 } 280 }
281 } 281 }
OLDNEW
« no previous file with comments | « test/codegen/sunflower/sunflower.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698