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

Unified Diff: pkg/kernel/testcases/closures/closure_in_initializer_closure.dart.expect

Issue 2998803002: [kernel] Support for top-level generic functions. (Closed)
Patch Set: Review comments. Created 3 years, 4 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/kernel/testcases/closures/closure_in_initializer_closure.dart.expect
diff --git a/pkg/kernel/testcases/closures/closure_in_initializer_closure.dart.expect b/pkg/kernel/testcases/closures/closure_in_initializer_closure.dart.expect
index 749b8b4bdb36307f791929b3062c60e0bf213fb7..ac9db2d41b3ba5b68775b2299685a0229aa450f9 100644
--- a/pkg/kernel/testcases/closures/closure_in_initializer_closure.dart.expect
+++ b/pkg/kernel/testcases/closures/closure_in_initializer_closure.dart.expect
@@ -5,7 +5,7 @@ import "dart:core" as core;
class C extends core::Object {
field dynamic t;
constructor foo(dynamic f) → void
- : final Vector #context = MakeVector(2), dynamic #t1 = #context[1] = f, self::C::t = MakeClosure<() → dynamic>(self::closure#C#foo#function, #context), super core::Object::•() {
+ : final Vector #context = MakeVector(3), dynamic #t1 = #context[2] = f, self::C::t = MakeClosure<() → dynamic>(self::closure#C#foo#function, #context), super core::Object::•() {
core::print(1);
}
}
@@ -17,14 +17,14 @@ static method main() → dynamic {
core::print(3);
}
static method closure#C#foo#function#function(Vector #contextParameter, dynamic x) → dynamic {
- (#contextParameter[0][1]).call("${#contextParameter[1]}${x}");
+ (#contextParameter[1][2]).call("${#contextParameter[2]}${x}");
}
static method closure#C#foo#function(Vector #contextParameter) → dynamic {
- final Vector #context = MakeVector(2);
- #context[0] = #contextParameter;
- #context[1] = null;
+ final Vector #context = MakeVector(3);
+ #context[1] = #contextParameter;
+ #context[2] = null;
dynamic g = MakeClosure<(dynamic) → dynamic>(self::closure#C#foo#function#function, #context);
- #context[1] = "hest";
+ #context[2] = "hest";
return g;
}
static method closure#main#function(Vector #contextParameter, dynamic x) → dynamic {
« no previous file with comments | « pkg/kernel/testcases/closures/closure_in_initializer.dart.expect ('k') | pkg/kernel/testcases/closures/closures.dart.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698