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

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

Issue 2767773004: Add Vector type to Kernel (Closed)
Patch Set: Reformat comment with Markdown, throw exception in type propagation 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/kernel/testcases/closures/closure_in_constructor.dart.expect
diff --git a/pkg/kernel/testcases/closures/closure_in_constructor.dart.expect b/pkg/kernel/testcases/closures/closure_in_constructor.dart.expect
index 306813405c46fa2be83d9e609f96d8548e620dfc..983514d6718d806d5dea3804a00fbae634af86ba 100644
--- a/pkg/kernel/testcases/closures/closure_in_constructor.dart.expect
+++ b/pkg/kernel/testcases/closures/closure_in_constructor.dart.expect
@@ -1,45 +1,44 @@
library;
import self as self;
import "dart:core" as core;
-import "dart:mock" as mock;
class C1 extends core::Object {
field dynamic x;
constructor •(dynamic y) → void
- : self::C1::x = let final mock::Context #context = new mock::Context::•(1) in let dynamic #t1 = #context.[]=(0, y) in new self::Closure#C1##function::•(#context), super core::Object::•()
+ : self::C1::x = let final Vector #context = MakeVector(2) in let dynamic #t1 = #context[1] = y in new self::Closure#C1##function::•(#context), super core::Object::•()
;
}
class C2 extends core::Object {
field dynamic x = null;
constructor •(dynamic y) → void
: super core::Object::•() {
- final mock::Context #context = new mock::Context::•(1);
- #context.[]=(0, y);
+ final Vector #context = MakeVector(2);
+ #context[1] = y;
this.x = new self::Closure#C2#function#function::•(#context);
}
}
class Closure#C1##function extends core::Object implements core::Function {
field core::String note = "This is temporary. The VM doesn't need closure classes.";
- field mock::Context context;
- constructor •(final mock::Context context) → dynamic
+ field Vector context;
+ constructor •(final Vector context) → dynamic
: self::Closure#C1##function::context = context
;
method call() → dynamic {
"This is a temporary solution. In the VM, this will become an additional parameter.";
- final mock::Context #contextParameter = this.{self::Closure#C1##function::context};
- return core::print("Hello ${#contextParameter.[](0)}");
+ final Vector #contextParameter = this.{self::Closure#C1##function::context};
+ return core::print("Hello ${#contextParameter[1]}");
}
}
class Closure#C2#function#function extends core::Object implements core::Function {
field core::String note = "This is temporary. The VM doesn't need closure classes.";
- field mock::Context context;
- constructor •(final mock::Context context) → dynamic
+ field Vector context;
+ constructor •(final Vector context) → dynamic
: self::Closure#C2#function#function::context = context
;
method call() → dynamic {
"This is a temporary solution. In the VM, this will become an additional parameter.";
- final mock::Context #contextParameter = this.{self::Closure#C2#function#function::context};
- return core::print("Hello ${#contextParameter.[](0)}");
+ final Vector #contextParameter = this.{self::Closure#C2#function#function::context};
+ return core::print("Hello ${#contextParameter[1]}");
}
}
static method main() → dynamic {
« no previous file with comments | « pkg/kernel/testcases/closures/catch.dart.expect ('k') | pkg/kernel/testcases/closures/closure_in_initializer.dart.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698