| Index: src/parser.h
|
| ===================================================================
|
| --- src/parser.h (revision 8931)
|
| +++ src/parser.h (working copy)
|
| @@ -435,6 +435,7 @@
|
| void ReportMessageAt(Scanner::Location loc,
|
| const char* message,
|
| Vector<Handle<String> > args);
|
| + void SetHarmonyBlockScoping(bool block_scoping);
|
|
|
| private:
|
| // Limit on number of function parameters is chosen arbitrarily.
|
| @@ -483,6 +484,7 @@
|
| Statement* ParseFunctionDeclaration(bool* ok);
|
| Statement* ParseNativeDeclaration(bool* ok);
|
| Block* ParseBlock(ZoneStringList* labels, bool* ok);
|
| + Block* ParseScopedBlock(ZoneStringList* labels, bool* ok);
|
| Block* ParseVariableStatement(bool* ok);
|
| Block* ParseVariableDeclarations(bool accept_IN,
|
| Handle<String>* out,
|
| @@ -493,7 +495,6 @@
|
| Statement* ParseContinueStatement(bool* ok);
|
| Statement* ParseBreakStatement(ZoneStringList* labels, bool* ok);
|
| Statement* ParseReturnStatement(bool* ok);
|
| - Block* WithHelper(Expression* obj, ZoneStringList* labels, bool* ok);
|
| Statement* ParseWithStatement(ZoneStringList* labels, bool* ok);
|
| CaseClause* ParseCaseClause(bool* default_seen_ptr, bool* ok);
|
| SwitchStatement* ParseSwitchStatement(ZoneStringList* labels, bool* ok);
|
| @@ -715,6 +716,7 @@
|
| // Heuristically that means that the function will be called immediately,
|
| // so never lazily compile it.
|
| bool parenthesized_function_;
|
| + bool harmony_block_scoping_;
|
|
|
| friend class LexicalScope;
|
| };
|
|
|