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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/body_builder.dart

Issue 2951033004: Implement type inference for conventional for-loops. (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
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/kernel/body_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
index 99f2340a4c1b29e52282b052513723bc81333277..f90c08dcbc0644e2ac10db8e6e7621d8a886b870 100644
--- a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
@@ -1510,7 +1510,8 @@ class BodyBuilder extends ScopeListener<JumpTarget> implements BuilderHelper {
body = new LabeledStatement(body);
continueTarget.resolveContinues(body);
}
- Statement result = new ForStatement(variables, condition, updates, body);
+ Statement result =
+ new KernelForStatement(variables, condition, updates, body);
if (begin != null) {
result = new Block(<Statement>[begin, result]);
}
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698