| Index: src/ast/scopes.h
|
| diff --git a/src/ast/scopes.h b/src/ast/scopes.h
|
| index 8a84664c18ec44d657ebc85db9208c98d3b66c5f..84c9b05f66fc327f1df9cbbcea3fae6b7746a42f 100644
|
| --- a/src/ast/scopes.h
|
| +++ b/src/ast/scopes.h
|
| @@ -8,12 +8,14 @@
|
| #include "src/ast/ast.h"
|
| #include "src/base/hashmap.h"
|
| #include "src/globals.h"
|
| +#include "src/parsing/declaration-descriptor.h"
|
| #include "src/zone.h"
|
|
|
| namespace v8 {
|
| namespace internal {
|
|
|
| class ParseInfo;
|
| +class PendingCompilationErrorHandler;
|
|
|
| // A hash map to support fast variable declaration and lookup.
|
| class VariableMap: public ZoneHashMap {
|
| @@ -141,6 +143,12 @@ class Scope: public ZoneObject {
|
| InitializationFlag init_flag, Variable::Kind kind,
|
| MaybeAssignedFlag maybe_assigned_flag = kNotAssigned);
|
|
|
| + Variable* DeclareVariableOrParameter(
|
| + Declaration* declaration, DeclarationDescriptor::Kind declaration_kind,
|
| + VariableMode mode, InitializationFlag init,
|
| + bool allow_harmony_restrictive_generators,
|
| + PendingCompilationErrorHandler* error_handler, int* use_counts, bool* ok);
|
| +
|
| // Declarations list.
|
| ZoneList<Declaration*>* declarations() { return &decls_; }
|
|
|
| @@ -185,11 +193,6 @@ class Scope: public ZoneObject {
|
| // TODO(verwaest): Move to DeclarationScope?
|
| Variable* NewTemporary(const AstRawString* name);
|
|
|
| - // Adds the specific declaration node to the list of declarations in
|
| - // this scope. The declarations are processed as part of entering
|
| - // the scope; see codegen.cc:ProcessDeclarations.
|
| - void AddDeclaration(Declaration* declaration);
|
| -
|
| // ---------------------------------------------------------------------------
|
| // Illegal redeclaration support.
|
|
|
|
|