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

Side by Side Diff: pkg/front_end/testcases/inference/future_union_downwards_generic_method_with_future_return.dart.strong.expect

Issue 2920223008: Record method invocation targets that are not procedures. (Closed)
Patch Set: Created 3 years, 6 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 test;
2 import self as self;
3 import "dart:core" as core;
4 import "dart:async" as asy;
5
6 class A extends core::Object {
7 constructor •() → void
8 : super core::Object::•()
9 ;
10 }
11 static method foo() → dynamic /* originally async */ {
12 final asy::Completer<asy::FutureOr<dynamic>> :completer = asy::Completer::sync <asy::FutureOr<dynamic>>();
13 asy::FutureOr<dynamic> :return_value;
14 dynamic :async_op_then;
15 dynamic :async_op_error;
16 dynamic :await_jump_var = 0;
17 dynamic :await_ctx_var;
18 dynamic :saved_try_context_var0;
19 function :async_op([dynamic :result, dynamic :exception, dynamic :stack_trace] ) → dynamic yielding
20 try {
21 #L1:
22 {
23 asy::Future<core::List<self::A>> f1 = null;
24 asy::Future<core::List<self::A>> f2 = null;
25 asy::_awaitHelper(asy::Future::wait<core::List<self::A>>(<asy::Future<co re::List<self::A>>>[f1, f2]), :async_op_then, :async_op_error, :async_op);
26 [yield] null;
27 core::List<core::List<self::A>> merged = :result;
28 }
29 :completer.complete(:return_value);
30 return;
31 }
32 on dynamic catch(dynamic :exception, dynamic :stack_trace) {
33 :completer.completeError(:exception, :stack_trace);
34 }
35 :async_op_then = asy::_asyncThenWrapperHelper(:async_op);
36 :async_op_error = asy::_asyncErrorWrapperHelper(:async_op);
37 asy::Future::microtask<dynamic>(:async_op);
38 return :completer.future;
39 }
40 static method main() → dynamic {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698