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

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

Issue 959003003: Typecheck constructor initializers properly (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Rebase Created 5 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
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 catch (e, s) { 119 catch (e, s) {
120 _addErrorWithReplacement(sink, e, s); 120 _addErrorWithReplacement(sink, e, s);
121 return;} 121 return;}
122 if (satisfies) { 122 if (satisfies) {
123 sink._add(inputEvent); 123 sink._add(inputEvent);
124 } 124 }
125 } 125 }
126 } 126 }
127 typedef T _Transformation<S, T>(S value); 127 typedef T _Transformation<S, T>(S value);
128 class _MapStream<S, T> extends _ForwardingStream<S, T> {final _Transformation _ transform; 128 class _MapStream<S, T> extends _ForwardingStream<S, T> {final _Transformation _ transform;
129 _MapStream(Stream<S> source, T transform(S event)) : this._transform = transfor m, super(source); 129 _MapStream(Stream<S> source, T transform(S event)) : this._transform = DDC$RT.w rap((T f(S __u152)) {
130 T c(S x0) => f(DDC$RT.cast(x0, dynamic, S, "CastParam", """line 230, column 27 o f dart:async/stream_pipe.dart: """, x0 is S, false));
131 return f == null ? null : c;
132 }
133 , transform, DDC$RT.type((__t155<S, T> _) {
134 }
135 ), __t153, "Wrap", """line 230, column 27 of dart:async/stream_pipe.dart: """, t ransform is __t153), super(source);
130 void _handleData(S inputEvent, _EventSink<T> sink) { 136 void _handleData(S inputEvent, _EventSink<T> sink) {
131 T outputEvent; 137 T outputEvent;
132 try { 138 try {
133 outputEvent = ((__x117) => DDC$RT.cast(__x117, dynamic, T, "CastGeneral", """lin e 235, column 21 of dart:async/stream_pipe.dart: """, __x117 is T, false))(_tran sform(inputEvent)); 139 outputEvent = ((__x157) => DDC$RT.cast(__x157, dynamic, T, "CastGeneral", """lin e 235, column 21 of dart:async/stream_pipe.dart: """, __x157 is T, false))(_tran sform(inputEvent));
134 } 140 }
135 catch (e, s) { 141 catch (e, s) {
136 _addErrorWithReplacement(sink, e, s); 142 _addErrorWithReplacement(sink, e, s);
137 return;} 143 return;}
138 sink._add(outputEvent); 144 sink._add(outputEvent);
139 } 145 }
140 } 146 }
141 class _ExpandStream<S, T> extends _ForwardingStream<S, T> {final _Transformatio n<S, Iterable<T>> _expand; 147 class _ExpandStream<S, T> extends _ForwardingStream<S, T> {final _Transformatio n<S, Iterable<T>> _expand;
142 _ExpandStream(Stream<S> source, Iterable<T> expand(S event)) : this._expand = e xpand, super(source); 148 _ExpandStream(Stream<S> source, Iterable<T> expand(S event)) : this._expand = e xpand, super(source);
143 void _handleData(S inputEvent, _EventSink<T> sink) { 149 void _handleData(S inputEvent, _EventSink<T> sink) {
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 _addErrorWithReplacement(sink, e, s); 278 _addErrorWithReplacement(sink, e, s);
273 return null; 279 return null;
274 } 280 }
275 if (!isEqual) { 281 if (!isEqual) {
276 sink._add(inputEvent); 282 sink._add(inputEvent);
277 _previous = inputEvent; 283 _previous = inputEvent;
278 } 284 }
279 } 285 }
280 } 286 }
281 } 287 }
288 typedef dynamic __t153(dynamic __u154);
289 typedef T __t155<S, T>(S __u156);
OLDNEW
« no previous file with comments | « test/dart_codegen/expect/async/stream_impl.dart ('k') | test/dart_codegen/expect/async/stream_transformers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698