Index: src/preparser.h |
diff --git a/src/preparser.h b/src/preparser.h |
index cb1d5fb4eb7baa65ef4d8c8973cb067796e9ce6d..f3fd24ab7dfb2f173b12f98a8fb52657ac1481ef 100644 |
--- a/src/preparser.h |
+++ b/src/preparser.h |
@@ -179,6 +179,12 @@ class PreParser { |
kForStatement |
}; |
+ // If a list of variable declarations includes any initializers. |
+ enum VariableDeclarationProperties { |
+ kHasInitializers, |
+ kHasNoInitializers |
+ }; |
+ |
class Expression; |
class Identifier { |
@@ -493,6 +499,7 @@ class PreParser { |
Statement ParseVariableStatement(VariableDeclarationContext var_context, |
bool* ok); |
Statement ParseVariableDeclarations(VariableDeclarationContext var_context, |
+ VariableDeclarationProperties* decl_props, |
int* num_decl, |
bool* ok); |
Statement ParseExpressionOrLabelledStatement(bool* ok); |