| Index: src/variables.h
|
| diff --git a/src/variables.h b/src/variables.h
|
| index c5fef9ac6ff998db981e7d48d18f7beeb7805bea..8b2d8695688de1fe5861f37add96eeda12ffcfbc 100644
|
| --- a/src/variables.h
|
| +++ b/src/variables.h
|
| @@ -118,6 +118,15 @@ class Variable: public ZoneObject {
|
| mode_ == DYNAMIC_GLOBAL ||
|
| mode_ == DYNAMIC_LOCAL);
|
| }
|
| + bool is_const_mode() const {
|
| + return (mode_ == CONST ||
|
| + mode_ == CONST_HARMONY);
|
| + }
|
| + bool binding_needs_init() const {
|
| + return (mode_ == LET ||
|
| + mode_ == CONST ||
|
| + mode_ == CONST_HARMONY);
|
| + }
|
|
|
| bool is_global() const;
|
| bool is_this() const { return kind_ == THIS; }
|
|
|