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

Side by Side Diff: src/parsing/declaration-descriptor.h

Issue 2280033002: Move Parser::Declare to Scope. (Closed)
Patch Set: beautification Created 4 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef V8_PARSING_DECLARATION_DESCRIPTOR_H_
6 #define V8_PARSING_DECLARATION_DESCRIPTOR_H_
7
8 #include "src/globals.h"
9
10 namespace v8 {
11 namespace internal {
12
13 class Parser;
14 class Scope;
15 class Zone;
16
17 struct DeclarationDescriptor {
18 enum Kind { NORMAL, PARAMETER };
19 Parser* parser;
20 Scope* scope;
21 Scope* hoist_scope;
22 VariableMode mode;
23 int declaration_pos;
24 int initialization_pos;
25 Kind declaration_kind;
26 };
27
28 } // namespace internal
29 } // namespace v8
30
31 #endif // V8_PARSING_DECLARATION_DESCRIPTOR_H_
OLDNEW
« src/ast/scopes.cc ('K') | « src/ast/scopes.cc ('k') | src/parsing/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698