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

Unified Diff: pkg/front_end/testcases/inference/async_closure_return_type_future.dart.strong.expect

Issue 2939533002: Apply transformations after comparing to golden files. (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 side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/testcases/inference/async_closure_return_type_future.dart.strong.expect
diff --git a/pkg/front_end/testcases/inference/async_closure_return_type_future.dart.strong.expect b/pkg/front_end/testcases/inference/async_closure_return_type_future.dart.strong.expect
index fab11ed62496afa1209af3b1720e4d6961296849..6ee94977aaa81b32084bdd52f84e783830ea9a13 100644
--- a/pkg/front_end/testcases/inference/async_closure_return_type_future.dart.strong.expect
+++ b/pkg/front_end/testcases/inference/async_closure_return_type_future.dart.strong.expect
@@ -3,31 +3,7 @@ import self as self;
import "dart:async" as asy;
import "dart:core" as core;
-static field () → asy::Future<core::int> f = () → asy::Future<core::int> /* originally async */ {
- final asy::Completer<asy::FutureOr<core::int>> :completer = asy::Completer::sync<asy::FutureOr<core::int>>();
- asy::FutureOr<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 = 0;
- 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;
-};
+static field () → asy::Future<core::int> f = () → asy::Future<core::int> async => 0;
static method main() → dynamic {
self::f;
}

Powered by Google App Engine
This is Rietveld 408576698