Index: src/ast/ast.cc |
diff --git a/src/ast/ast.cc b/src/ast/ast.cc |
index b429005032dd306019d475c4bad7d4984a9f6db5..6cf81c03eddfd2118039f1c93a966718e109e660 100644 |
--- a/src/ast/ast.cc |
+++ b/src/ast/ast.cc |
@@ -198,6 +198,17 @@ |
IsResolvedField::encode(false) | |
HoleCheckModeField::encode(HoleCheckMode::kElided); |
BindTo(var); |
+} |
+ |
+VariableProxy::VariableProxy(const AstRawString* name, |
+ VariableKind variable_kind, int start_position) |
+ : Expression(start_position, kVariableProxy), |
+ raw_name_(name), |
+ next_unresolved_(nullptr) { |
+ bit_field_ |= IsThisField::encode(variable_kind == THIS_VARIABLE) | |
+ IsAssignedField::encode(false) | |
+ IsResolvedField::encode(false) | |
+ HoleCheckModeField::encode(HoleCheckMode::kElided); |
} |
VariableProxy::VariableProxy(const VariableProxy* copy_from) |