Index: src/parsing/parser.h |
diff --git a/src/parsing/parser.h b/src/parsing/parser.h |
index ca2a78709f9933aba379f8bf83e93ca310bc6f5d..29cc09d534e3a381c170fa89e7f0c195cb319b12 100644 |
--- a/src/parsing/parser.h |
+++ b/src/parsing/parser.h |
@@ -1075,13 +1075,16 @@ class Parser : public ParserBase<ParserTraits> { |
Scope* complex_params_scope, |
bool* ok); |
- // Parser support |
+ static InitializationFlag DefaultInitializationFlag(VariableMode mode); |
VariableProxy* NewUnresolved(const AstRawString* name, VariableMode mode); |
Variable* Declare(Declaration* declaration, |
- DeclarationDescriptor::Kind declaration_kind, bool* ok, |
+ DeclarationDescriptor::Kind declaration_kind, |
+ InitializationFlag init, bool* ok, |
Scope* declaration_scope = nullptr); |
- void DeclareConstVariable(const AstRawString* name, InitializationFlag init, |
- int pos, bool* ok); |
+ Declaration* DeclareVariable(const AstRawString* name, VariableMode mode, |
+ int pos, bool* ok); |
+ Declaration* DeclareVariable(const AstRawString* name, VariableMode mode, |
+ InitializationFlag init, int pos, bool* ok); |
bool TargetStackContainsLabel(const AstRawString* label); |
BreakableStatement* LookupBreakTarget(const AstRawString* label, bool* ok); |