Index: src/variables.h |
diff --git a/src/variables.h b/src/variables.h |
index 58089b36ed9699463763c9681fbd2670c313f0a2..2749b7b5b6f9c5613f62746f4034faef6b8b2ae0 100644 |
--- a/src/variables.h |
+++ b/src/variables.h |
@@ -52,12 +52,9 @@ class Variable: public ZoneObject { |
LOOKUP |
}; |
- Variable(Scope* scope, |
- const AstRawString* name, |
- VariableMode mode, |
- bool is_valid_ref, |
- Kind kind, |
- InitializationFlag initialization_flag, |
+ Variable(Scope* scope, const AstRawString* name, VariableMode mode, |
+ bool is_valid_ref, Kind kind, InitializationFlag initialization_flag, |
+ MaybeAssignedFlag maybe_assigned_flag = kNotAssigned, |
Interface* interface = Interface::NewValue()); |
// Printing support |
@@ -83,8 +80,8 @@ class Variable: public ZoneObject { |
} |
bool is_used() { return is_used_; } |
void set_is_used() { is_used_ = true; } |
- bool maybe_assigned() { return maybe_assigned_; } |
- void set_maybe_assigned() { maybe_assigned_ = true; } |
+ MaybeAssignedFlag maybe_assigned() const { return maybe_assigned_; } |
+ void set_maybe_assigned() { maybe_assigned_ = kMaybeAssigned; } |
int initializer_position() { return initializer_position_; } |
void set_initializer_position(int pos) { initializer_position_ = pos; } |
@@ -159,8 +156,8 @@ class Variable: public ZoneObject { |
// Usage info. |
bool force_context_allocation_; // set by variable resolver |
bool is_used_; |
- bool maybe_assigned_; |
InitializationFlag initialization_flag_; |
+ MaybeAssignedFlag maybe_assigned_; |
// Module type info. |
Interface* interface_; |