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

Unified Diff: src/parsing/declaration-descriptor.h

Issue 2280033002: Move Parser::Declare to Scope. (Closed)
Patch Set: beautification Created 4 years, 4 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/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_
« 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