| Index: src/parsing/parser-base.h
|
| diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h
|
| index 5b21c539f2470b049c91106fb4ba9ec4b50d20e4..2da0a0167c3474d42d181ff6fe3a2363230ff5d2 100644
|
| --- a/src/parsing/parser-base.h
|
| +++ b/src/parsing/parser-base.h
|
| @@ -381,8 +381,13 @@
|
| class FunctionState final : public ScopeState {
|
| public:
|
| FunctionState(FunctionState** function_state_stack,
|
| - ScopeState** scope_stack, Scope* scope, FunctionKind kind);
|
| + ScopeState** scope_stack, DeclarationScope* scope,
|
| + FunctionKind kind);
|
| ~FunctionState();
|
| +
|
| + DeclarationScope* scope() const {
|
| + return ScopeState::scope()->AsDeclarationScope();
|
| + }
|
|
|
| int NextMaterializedLiteralIndex() {
|
| return next_materialized_literal_index_++;
|
| @@ -1449,7 +1454,7 @@
|
| template <typename Impl>
|
| ParserBase<Impl>::FunctionState::FunctionState(
|
| FunctionState** function_state_stack, ScopeState** scope_stack,
|
| - Scope* scope, FunctionKind kind)
|
| + DeclarationScope* scope, FunctionKind kind)
|
| : ScopeState(scope_stack, scope),
|
| next_materialized_literal_index_(0),
|
| expected_property_count_(0),
|
|
|