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

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

Issue 2768533002: Fasta type inference prototype #2
Patch Set: Merge origin/master 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/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
new file mode 100644
index 0000000000000000000000000000000000000000..20e5fbfded100d1a23b5312146932e8d34b6f62f
--- /dev/null
+++ b/pkg/front_end/lib/src/fasta/builder/ast_factory.dart
@@ -0,0 +1,22 @@
+import 'package:kernel/ast.dart' show DartType, TreeNode;
+import 'shadow_ast.dart';
+
+abstract class AstFactory {
+ Block block(List<Statement> statements, int charOffset);
+
+ IntLiteral intLiteral(value, int charOffset);
+
+ Statement returnStatement(Expression expression, int charOffset);
+
+ VariableDeclaration variableDeclaration(String name,
+ {DartType type,
+ Expression initializer,
+ int charOffset: TreeNode.noOffset,
+ bool isFinal: false,
+ bool isConst: false});
+
+ ListLiteral listLiteral(List<Expression> expressions, DartType typeArgument,
+ bool isConst, int charOffset);
+
+ NullLiteral nullLiteral(int charOffset);
+}

Powered by Google App Engine
This is Rietveld 408576698