Index: src/parsing/declaration-descriptor.h |
diff --git a/src/parsing/declaration-descriptor.h b/src/parsing/declaration-descriptor.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..20f92c1425f076ff6c326422658ef1672ba37fe1 |
--- /dev/null |
+++ b/src/parsing/declaration-descriptor.h |
@@ -0,0 +1,31 @@ |
+// Copyright 2012 the V8 project authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef V8_PARSING_DECLARATION_DESCRIPTOR_H_ |
+#define V8_PARSING_DECLARATION_DESCRIPTOR_H_ |
+ |
+#include "src/globals.h" |
+ |
+namespace v8 { |
+namespace internal { |
+ |
+class Parser; |
+class Scope; |
+class Zone; |
+ |
+struct DeclarationDescriptor { |
+ enum Kind { NORMAL, PARAMETER }; |
+ Parser* parser; |
+ Scope* scope; |
+ Scope* hoist_scope; |
+ VariableMode mode; |
+ int declaration_pos; |
+ int initialization_pos; |
+ Kind declaration_kind; |
+}; |
+ |
+} // namespace internal |
+} // namespace v8 |
+ |
+#endif // V8_PARSING_DECLARATION_DESCRIPTOR_H_ |