OLD | NEW |
(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_ |
OLD | NEW |