OLD | NEW |
(Empty) | |
| 1 import 'package:kernel/ast.dart' show DartType, TreeNode; |
| 2 import 'shadow_ast.dart'; |
| 3 |
| 4 abstract class AstFactory { |
| 5 Block block(List<Statement> statements, int charOffset); |
| 6 |
| 7 IntLiteral intLiteral(value, int charOffset); |
| 8 |
| 9 Statement returnStatement(Expression expression, int charOffset); |
| 10 |
| 11 VariableDeclaration variableDeclaration(String name, |
| 12 {DartType type, |
| 13 Expression initializer, |
| 14 int charOffset: TreeNode.noOffset, |
| 15 bool isFinal: false, |
| 16 bool isConst: false}); |
| 17 |
| 18 ListLiteral listLiteral(List<Expression> expressions, DartType typeArgument, |
| 19 bool isConst, int charOffset); |
| 20 |
| 21 NullLiteral nullLiteral(int charOffset); |
| 22 } |
OLD | NEW |