Index: src/parser.h |
diff --git a/src/parser.h b/src/parser.h |
index 72561e0e3e14245135e75966cc4d7e59f853caad..96fa980ae8d8f7d379db03bd74763226d4d8e1e2 100644 |
--- a/src/parser.h |
+++ b/src/parser.h |
@@ -460,6 +460,12 @@ class Parser { |
kForStatement |
}; |
+ // If a list of variable declarations includes any initializers. |
+ enum VariableDeclarationProperties { |
+ kHasInitializers, |
+ kHasNoInitializers |
+ }; |
+ |
Isolate* isolate() { return isolate_; } |
Zone* zone() { return isolate_->zone(); } |
@@ -497,6 +503,7 @@ class Parser { |
Block* ParseVariableStatement(VariableDeclarationContext var_context, |
bool* ok); |
Block* ParseVariableDeclarations(VariableDeclarationContext var_context, |
+ VariableDeclarationProperties* decl_props, |
Handle<String>* out, |
bool* ok); |
Statement* ParseExpressionOrLabelledStatement(ZoneStringList* labels, |