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

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

Issue 2966603002: Minor fixes to for-loop type inference (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 351dae1409b48ac77cb3c4fed76bb41f994d9fad..3286804538554562c3ca45baa6a3f8894282a2dd 100644
--- a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
@@ -1494,7 +1494,7 @@ class BodyBuilder extends ScopeListener<JumpTarget> implements BuilderHelper {
Statement result =
new KernelForStatement(variables, condition, updates, body);
if (begin != null) {
- result = new Block(<Statement>[begin, result]);
+ result = new KernelBlock(<Statement>[begin, result]);
}
if (breakTarget.hasUsers) {
result = new KernelLabeledStatement(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