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

Unified Diff: pkg/kernel/lib/transformations/closure/converter.dart

Issue 3007623002: Fix many bugs with closure conversion in checked mode. (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
« no previous file with comments | « no previous file | pkg/kernel/lib/transformations/closure/rewriter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/transformations/closure/converter.dart
diff --git a/pkg/kernel/lib/transformations/closure/converter.dart b/pkg/kernel/lib/transformations/closure/converter.dart
index 0824b432e9c3a4afcc25579d19bb7b51fca33d25..10fcf13eeb63f9e898433b02fc5382df16c0aeab 100644
--- a/pkg/kernel/lib/transformations/closure/converter.dart
+++ b/pkg/kernel/lib/transformations/closure/converter.dart
@@ -15,6 +15,7 @@ import '../../ast.dart'
Constructor,
DartType,
DoStatement,
+ DynamicType,
EmptyStatement,
Expression,
ExpressionStatement,
@@ -53,7 +54,6 @@ import '../../ast.dart'
VariableGet,
VariableSet,
VectorCreation,
- VectorType,
WhileStatement,
transformList;
@@ -370,7 +370,7 @@ class ClosureConverter extends Transformer {
rewriter = makeRewriterForBody(function);
VariableDeclaration contextVariable =
- new VariableDeclaration("#contextParameter", type: const VectorType());
+ new VariableDeclaration("#contextParameter", type: const DynamicType());
Context parent = context;
context = context.toNestedContext(
new VariableAccessor(contextVariable, null, TreeNode.noOffset));
« no previous file with comments | « no previous file | pkg/kernel/lib/transformations/closure/rewriter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698