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

Unified Diff: pkg/front_end/lib/src/fasta/builder/ast_factory.dart

Issue 2828253003: Add top level type inference logic for integer literals. (Closed)
Patch Set: Clean up, bug fix, and remove unintentional expectations changes 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
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 49baa53331179c944ddaaafe6512bf75added328..8c3c8bcd07c8e5a93a65480ae6b273d0d984f3eb 100644
--- a/pkg/front_end/lib/src/fasta/builder/ast_factory.dart
+++ b/pkg/front_end/lib/src/fasta/builder/ast_factory.dart
@@ -36,6 +36,9 @@ abstract class AstFactory {
/// Creates a statement block.
Block block(List<Statement> statements, int charOffset);
+ /// Creates a field.
+ Field field(Name name, int charOffset, {String fileUri});
+
/// Creates an integer literal.
IntLiteral intLiteral(value, int charOffset);
@@ -52,6 +55,9 @@ abstract class AstFactory {
/// Creates a return statement.
Statement returnStatement(Expression expression, int charOffset);
+ /// Creates a read of a static variable.
+ StaticGet staticGet(Member readTarget, int offset);
+
/// Creates a variable declaration statement declaring one variable.
///
/// TODO(paulberry): analyzer makes a distinction between a single variable

Powered by Google App Engine
This is Rietveld 408576698