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/front_end/lib/src/fasta/builder/ast_factory.dart

Issue 2853113002: Infer types of double literals. (Closed)
Patch Set: Add expectations for compile/outline pipelines. 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/body_builder.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/builder/ast_factory.dart
diff --git a/pkg/front_end/lib/src/fasta/builder/ast_factory.dart b/pkg/front_end/lib/src/fasta/builder/ast_factory.dart
index bdf5e5c0b9b05f3260c975b6ffaac54009eff4af..52d2a08d538bb04657d9e17957d76183226013ff 100644
--- a/pkg/front_end/lib/src/fasta/builder/ast_factory.dart
+++ b/pkg/front_end/lib/src/fasta/builder/ast_factory.dart
@@ -38,6 +38,9 @@ abstract class AstFactory<V> {
/// Creates a statement block.
Block block(List<Statement> statements, Token beginToken);
+ /// Creates a double literal.
+ DoubleLiteral doubleLiteral(double value, Token token);
+
/// Creates an expression statement.
ExpressionStatement expressionStatement(Expression expression);
@@ -49,7 +52,7 @@ abstract class AstFactory<V> {
Expression condition, Statement thenPart, Statement elsePart);
/// Creates an integer literal.
- IntLiteral intLiteral(value, Token token);
+ IntLiteral intLiteral(int value, Token token);
/// Creates an `is` expression.
Expression isExpression(
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/kernel/body_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698