Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(866)

Unified Diff: src/parsing/parser-base.h

Issue 2662183002: [parser] Remove hoist_scope from DeclarationDescriptor (Closed)
Patch Set: Factored out helper function Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/parsing/parser-base.h
diff --git a/src/parsing/parser-base.h b/src/parsing/parser-base.h
index 18366443b70c1955069e97ec1026fb9d2ce493d7..7df88fa1e140ee17699061b0063dfb8e93476f33 100644
--- a/src/parsing/parser-base.h
+++ b/src/parsing/parser-base.h
@@ -609,7 +609,6 @@ class ParserBase {
struct DeclarationDescriptor {
enum Kind { NORMAL, PARAMETER };
Scope* scope;
- Scope* hoist_scope;
VariableMode mode;
int declaration_pos;
int initialization_pos;
@@ -3665,7 +3664,6 @@ typename ParserBase<Impl>::BlockT ParserBase<Impl>::ParseVariableDeclarations(
}
parsing_result->descriptor.scope = scope();
- parsing_result->descriptor.hoist_scope = nullptr;
// The scope of a var/const declared variable anywhere inside a function
// is the entire function (ECMA-262, 3rd, 10.1.3, and 12.2). The scope

Powered by Google App Engine
This is Rietveld 408576698