Chromium Code Reviews| Index: src/ast.h |
| diff --git a/src/ast.h b/src/ast.h |
| index 5e86d1a240d7c5bd25f7a6e70fbeb93a2c679e2a..e5acfb9631d2733bad264cb7c1264d7c00e658ea 100644 |
| --- a/src/ast.h |
| +++ b/src/ast.h |
| @@ -462,6 +462,10 @@ class Block final : public BreakableStatement { |
| statements_.Add(statement, zone); |
| } |
| + void InsertStatementAt(int index, Statement* statement, Zone* zone) { |
|
rossberg
2015/10/01 09:59:24
Instead of adding yet another redundant helper, ca
neis
2015/10/01 10:56:48
Done.
|
| + statements_.InsertAt(index, statement, zone); |
| + } |
| + |
| ZoneList<Statement*>* statements() { return &statements_; } |
| bool ignore_completion_value() const { return ignore_completion_value_; } |
| @@ -3205,6 +3209,8 @@ class AstNodeFactory final BASE_EMBEDDED { |
| parser_zone_(ast_value_factory->zone()), |
| ast_value_factory_(ast_value_factory) {} |
| + AstValueFactory* ast_value_factory() const { return ast_value_factory_; } |
| + |
| VariableDeclaration* NewVariableDeclaration( |
| VariableProxy* proxy, VariableMode mode, Scope* scope, int pos, |
| bool is_class_declaration = false, int declaration_group_start = -1) { |