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

Unified Diff: pkg/front_end/test/fasta/inference/closure_body_async_upwards_local.dart.direct.expect

Issue 2768533002: Fasta type inference prototype #2
Patch Set: Rework atop 415c868589d02e98eb839f48150f4203d5cecdb0 Created 3 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: pkg/front_end/test/fasta/inference/closure_body_async_upwards_local.dart.direct.expect
diff --git a/pkg/front_end/test/fasta/inference/closure_body_async_upwards_local.dart.direct.expect b/pkg/front_end/test/fasta/inference/closure_body_async_upwards_local.dart.direct.expect
new file mode 100644
index 0000000000000000000000000000000000000000..2a23172430f6a09f015487289c8e15b36af0f425
--- /dev/null
+++ b/pkg/front_end/test/fasta/inference/closure_body_async_upwards_local.dart.direct.expect
@@ -0,0 +1,32 @@
+library;
+import self as self;
+import "dart:async" as asy;
+import "dart:core" as core;
+
+static method main() → dynamic {
+ () → asy::Future<core::int> x = () → asy::Future<core::int> /* originally async */ {
+ final asy::Completer<core::int> :completer = asy::Completer::sync<core::int>();
+ core::int :return_value;
+ dynamic :async_op_then;
+ dynamic :async_op_error;
+ dynamic :await_jump_var = 0;
+ dynamic :await_ctx_var;
+ function :async_op([dynamic :result, dynamic :exception, dynamic :stack_trace]) → dynamic yielding
+ try {
+ #L1:
+ {
+ :return_value = 1;
+ break #L1;
+ }
+ :completer.complete(:return_value);
+ return;
+ }
+ on dynamic catch(dynamic :exception, dynamic :stack_trace) {
+ :completer.completeError(:exception, :stack_trace);
+ }
+ :async_op_then = asy::_asyncThenWrapperHelper(:async_op);
+ :async_op_error = asy::_asyncErrorWrapperHelper(:async_op);
+ asy::Future::microtask<dynamic>(:async_op);
+ return :completer.future;
+ };
+}

Powered by Google App Engine
This is Rietveld 408576698