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

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

Issue 2856363002: Inference for typed ListLiteral(s). (Closed)
Patch Set: Created 3 years, 8 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_ast_factory.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 5259c1dc3312fcbbd78676cd7f63477e798b4291..7cbe39208dea15f46abbc9a8462fc50f03f8989c 100644
--- a/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/body_builder.dart
@@ -1292,9 +1292,8 @@ class BodyBuilder extends ScopeListener<JumpTarget> implements BuilderHelper {
"Too many type arguments on List literal.", beginToken.charOffset);
}
}
- push(new ListLiteral(expressions,
- typeArgument: typeArgument, isConst: constKeyword != null)
- ..fileOffset = constKeyword?.charOffset ?? beginToken.charOffset);
+ push(astFactory.listLiteral(expressions, typeArgument, constKeyword != null,
+ constKeyword ?? beginToken));
}
@override
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698