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

Unified Diff: test/dart_codegen/expect/async/stream_impl.dart

Issue 1038213003: Downward inference (Closed) Base URL: git@github.com:dart-lang/dart-dev-compiler.git@master
Patch Set: Address 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 side-by-side diff with in-line comments
Download patch
Index: test/dart_codegen/expect/async/stream_impl.dart
diff --git a/test/dart_codegen/expect/async/stream_impl.dart b/test/dart_codegen/expect/async/stream_impl.dart
index a6d5a4a3a2aea6f7e28957e20d7398585aa0070f..415979d580d6e8758dc82d98e3aa42ffe98638c4 100644
--- a/test/dart_codegen/expect/async/stream_impl.dart
+++ b/test/dart_codegen/expect/async/stream_impl.dart
@@ -41,20 +41,20 @@ assert (_isCanceled); _PendingEvents events = _pending;
return events;
}
void onData(void handleData(T event)) {
-if (handleData == null) handleData = DEVC$RT.wrap((void f(dynamic __u86)) {
+if (handleData == null) handleData = DEVC$RT.wrap((void f(dynamic __u76)) {
void c(dynamic x0) => f(x0);
return f == null ? null : c;
}
-, _nullDataHandler, __t89, DEVC$RT.type((__t87<T> _) {
+, _nullDataHandler, __t79, DEVC$RT.type((__t77<T> _) {
}
-), "Wrap", """line 153, column 42 of dart:async/stream_impl.dart: """, _nullDataHandler is __t87<T>);
- _onData = ((__x94) => DEVC$RT.wrap((dynamic f(dynamic __u91)) {
+), "Wrap", """line 153, column 42 of dart:async/stream_impl.dart: """, _nullDataHandler is __t77<T>);
+ _onData = ((__x84) => DEVC$RT.wrap((dynamic f(dynamic __u81)) {
dynamic c(dynamic x0) => f(x0);
return f == null ? null : c;
}
-, __x94, __t92, DEVC$RT.type((__t87<T> _) {
+, __x84, __t82, DEVC$RT.type((__t77<T> _) {
}
-), "Wrap", """line 154, column 15 of dart:async/stream_impl.dart: """, __x94 is __t87<T>))(_zone.registerUnaryCallback(handleData));
+), "Wrap", """line 154, column 15 of dart:async/stream_impl.dart: """, __x84 is __t77<T>))(_zone.registerUnaryCallback(handleData));
}
void onError(Function handleError) {
if (handleError == null) handleError = _nullErrorHandler;
@@ -185,10 +185,10 @@ assert (!_isCanceled); assert (!_isPaused); assert (!_inCallback); bool wasInput
void sendError() {
if (_isCanceled && !_waitsForCancel) return; _state |= _STATE_IN_CALLBACK;
if (_onError is ZoneBinaryCallback) {
- _zone.runBinaryGuarded(DEVC$RT.cast(_onError, Function, __t95, "ImplicitCast", """line 358, column 32 of dart:async/stream_impl.dart: """, _onError is __t95, true), error, stackTrace);
+ _zone.runBinaryGuarded(DEVC$RT.cast(_onError, Function, __t85, "ImplicitCast", """line 358, column 32 of dart:async/stream_impl.dart: """, _onError is __t85, true), error, stackTrace);
}
else {
- _zone.runUnaryGuarded(DEVC$RT.cast(_onError, Function, __t92, "ImplicitCast", """line 360, column 31 of dart:async/stream_impl.dart: """, _onError is __t92, true), error);
+ _zone.runUnaryGuarded(DEVC$RT.cast(_onError, Function, __t82, "ImplicitCast", """line 360, column 31 of dart:async/stream_impl.dart: """, _onError is __t82, true), error);
}
_state &= ~_STATE_IN_CALLBACK;
}
@@ -468,15 +468,15 @@ _state &= ~_SCHEDULED;
final Zone _zone;
_AsBroadcastStreamController<T> _controller;
StreamSubscription<T> _subscription;
- _AsBroadcastStream(this._source, void onListenHandler(StreamSubscription subscription), void onCancelHandler(StreamSubscription subscription)) : _onListenHandler = ((__x101) => DEVC$RT.wrap((dynamic f(dynamic __u98)) {
+ _AsBroadcastStream(this._source, void onListenHandler(StreamSubscription subscription), void onCancelHandler(StreamSubscription subscription)) : _onListenHandler = ((__x91) => DEVC$RT.wrap((dynamic f(dynamic __u88)) {
dynamic c(dynamic x0) => f(x0);
return f == null ? null : c;
}
-, __x101, __t92, __t99, "Wrap", """line 813, column 28 of dart:async/stream_impl.dart: """, __x101 is __t99))(Zone.current.registerUnaryCallback(onListenHandler)), _onCancelHandler = ((__x103) => DEVC$RT.wrap((dynamic f(dynamic __u102)) {
+, __x91, __t82, __t89, "Wrap", """line 813, column 28 of dart:async/stream_impl.dart: """, __x91 is __t89))(Zone.current.registerUnaryCallback(onListenHandler)), _onCancelHandler = ((__x93) => DEVC$RT.wrap((dynamic f(dynamic __u92)) {
dynamic c(dynamic x0) => f(x0);
return f == null ? null : c;
}
-, __x103, __t92, __t99, "Wrap", """line 814, column 28 of dart:async/stream_impl.dart: """, __x103 is __t99))(Zone.current.registerUnaryCallback(onCancelHandler)), _zone = Zone.current {
+, __x93, __t82, __t89, "Wrap", """line 814, column 28 of dart:async/stream_impl.dart: """, __x93 is __t89))(Zone.current.registerUnaryCallback(onCancelHandler)), _zone = Zone.current {
_controller = new _AsBroadcastStreamController<T>(_onListen, _onCancel);
}
bool get isBroadcast => true;
@@ -656,8 +656,8 @@ _Future<bool> hasNext = DEVC$RT.cast(_futureOrPrefetch, dynamic, DEVC$RT.type((_
_state = _STATE_EXTRA_DONE;
}
}
- typedef void __t87<T>(T __u88);
- typedef void __t89(dynamic __u90);
- typedef dynamic __t92(dynamic __u93);
- typedef dynamic __t95(dynamic __u96, dynamic __u97);
- typedef void __t99(StreamSubscription<dynamic> __u100);
+ typedef void __t77<T>(T __u78);
+ typedef void __t79(dynamic __u80);
+ typedef dynamic __t82(dynamic __u83);
+ typedef dynamic __t85(dynamic __u86, dynamic __u87);
+ typedef void __t89(StreamSubscription<dynamic> __u90);

Powered by Google App Engine
This is Rietveld 408576698