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

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

Issue 2768533002: Fasta type inference prototype #2
Patch Set: Rework atop 415c868589d02e98eb839f48150f4203d5cecdb0 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/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart
index 1a7bdf9d90a3cc0bf0e8674b6fd1cd5e71d7d39a..9789bd3adb1c91d4f34e7647f1587196f7dbf531 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart
@@ -16,6 +16,10 @@ class KernelAstFactory implements builder.AstFactory {
}
@override
+ List<KernelExpression> expressionList(int length) =>
+ new List<KernelExpression>.filled(length, null, growable: true);
+
+ @override
KernelIntLiteral intLiteral(value, int charOffset) {
return new KernelIntLiteral(value)..fileOffset = charOffset;
}

Powered by Google App Engine
This is Rietveld 408576698