| Index: src/ast.h
|
| diff --git a/src/ast.h b/src/ast.h
|
| index 65b984ebfcc96de8408e81a3226679065ce978eb..26c19f0db7af3baac0d89b313084593b0fdc99e2 100644
|
| --- a/src/ast.h
|
| +++ b/src/ast.h
|
| @@ -420,8 +420,8 @@ class Block: public BreakableStatement {
|
| ZoneList<Statement*>* statements() { return &statements_; }
|
| bool is_initializer_block() const { return is_initializer_block_; }
|
|
|
| - Scope* block_scope() const { return block_scope_; }
|
| - void set_block_scope(Scope* block_scope) { block_scope_ = block_scope; }
|
| + Scope* scope() const { return scope_; }
|
| + void set_scope(Scope* scope) { scope_ = scope; }
|
|
|
| protected:
|
| template<class> friend class AstNodeFactory;
|
| @@ -433,13 +433,13 @@ class Block: public BreakableStatement {
|
| : BreakableStatement(isolate, labels, TARGET_FOR_NAMED_ONLY),
|
| statements_(capacity),
|
| is_initializer_block_(is_initializer_block),
|
| - block_scope_(NULL) {
|
| + scope_(NULL) {
|
| }
|
|
|
| private:
|
| ZoneList<Statement*> statements_;
|
| bool is_initializer_block_;
|
| - Scope* block_scope_;
|
| + Scope* scope_;
|
| };
|
|
|
|
|
| @@ -607,6 +607,7 @@ class ModuleLiteral: public Module {
|
| DECLARE_NODE_TYPE(ModuleLiteral)
|
|
|
| Block* body() const { return body_; }
|
| + Handle<Context> context() const { return context_; }
|
|
|
| protected:
|
| template<class> friend class AstNodeFactory;
|
| @@ -618,6 +619,7 @@ class ModuleLiteral: public Module {
|
|
|
| private:
|
| Block* body_;
|
| + Handle<Context> context_;
|
| };
|
|
|
|
|
|
|