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

Unified Diff: pkg/front_end/testcases/inference/future_union_downwards_4.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/future_union_downwards_4.dart.strong.expect
diff --git a/pkg/front_end/testcases/inference/future_union_downwards_4.dart.strong.expect b/pkg/front_end/testcases/inference/future_union_downwards_4.dart.strong.expect
index 7cb20f666d897c453304dbb1036dbd09cba511f2..f8aa912dfb1cdf3748393eb310f0de13d67f732e 100644
--- a/pkg/front_end/testcases/inference/future_union_downwards_4.dart.strong.expect
+++ b/pkg/front_end/testcases/inference/future_union_downwards_4.dart.strong.expect
@@ -15,54 +15,10 @@ class MyFuture<T extends core::Object> extends core::Object implements asy::Futu
static field asy::Future<dynamic> f;
static field asy::Future<core::int> t1 = self::f.{asy::Future::then}<core::int>((dynamic _) → self::MyFuture<core::int> => new self::MyFuture::value<core::int>("hi"));
static field asy::Future<core::List<core::int>> t2 = self::f.{asy::Future::then}<core::List<core::int>>((dynamic _) → core::List<core::int> => <core::int>[3]);
-static method g2() → asy::Future<core::List<core::int>> /* originally async */ {
- final asy::Completer<asy::FutureOr<core::List<core::int>>> :completer = asy::Completer::sync<asy::FutureOr<core::List<core::int>>>();
- asy::FutureOr<core::List<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 = <core::int>[3];
- 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 method g2() → asy::Future<core::List<core::int>> async {
+ return <core::int>[3];
}
-static method g3() → asy::Future<core::List<core::int>> /* originally async */ {
- final asy::Completer<asy::FutureOr<core::List<core::int>>> :completer = asy::Completer::sync<asy::FutureOr<core::List<core::int>>>();
- asy::FutureOr<core::List<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 {
- #L2:
- {
- :return_value = new self::MyFuture::value<core::List<core::int>>(<core::int>[3]);
- break #L2;
- }
- :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 method g3() → asy::Future<core::List<core::int>> async {
+ return new self::MyFuture::value<core::List<core::int>>(<core::int>[3]);
}
static method main() → dynamic {}

Powered by Google App Engine
This is Rietveld 408576698