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

Unified Diff: src/parsing/parser.h

Issue 2223843002: [ast][parsing] Variable declaration cleanups. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Use DefaultInitializationFlag in more places. 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
« no previous file with comments | « src/ast/ast.cc ('k') | src/parsing/parser.cc » ('j') | src/parsing/parser.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser.h
diff --git a/src/parsing/parser.h b/src/parsing/parser.h
index 9d63145ef1b38b700328aab98d09e67c8b5275b0..e93232db7731edd434c139032aa497bf2c965cd6 100644
--- a/src/parsing/parser.h
+++ b/src/parsing/parser.h
@@ -1079,13 +1079,16 @@ class Parser : public ParserBase<ParserTraits> {
Scope* complex_params_scope,
bool* ok);
- // Parser support
+ InitializationFlag DefaultInitializationFlag(VariableMode mode);
VariableProxy* NewUnresolved(const AstRawString* name, VariableMode mode);
Variable* Declare(Declaration* declaration,
- DeclarationDescriptor::Kind declaration_kind, bool resolve,
- bool* ok, Scope* declaration_scope = nullptr);
- void DeclareConstVariable(const AstRawString* name, InitializationFlag init,
- int pos, bool* ok);
+ DeclarationDescriptor::Kind declaration_kind,
+ InitializationFlag init, bool resolve, bool* ok,
+ Scope* declaration_scope = nullptr);
+ Declaration* DeclareVariable(const AstRawString* name, VariableMode mode,
+ int pos, bool* ok);
+ Declaration* DeclareVariable(const AstRawString* name, VariableMode mode,
+ InitializationFlag init, int pos, bool* ok);
bool TargetStackContainsLabel(const AstRawString* label);
BreakableStatement* LookupBreakTarget(const AstRawString* label, bool* ok);
« no previous file with comments | « src/ast/ast.cc ('k') | src/parsing/parser.cc » ('j') | src/parsing/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698