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

Unified Diff: src/ast/ast.cc

Issue 2223843002: [ast][parsing] Variable declaration cleanups. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase and make DefaultInitializationFlag static. 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.h ('k') | src/parsing/parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast.cc
diff --git a/src/ast/ast.cc b/src/ast/ast.cc
index 44f2d1263a5e958df8e370f0ba8898cf00c6a558..61eb42463128599bde59aee9cb88e4fc8e88bafa 100644
--- a/src/ast/ast.cc
+++ b/src/ast/ast.cc
@@ -65,19 +65,6 @@ MaterializedLiteral* AstNode::AsMaterializedLiteral() {
#undef RETURN_NODE
-InitializationFlag Declaration::initialization() const {
- switch (node_type()) {
-#define GENERATE_CASE(Node) \
- case k##Node: \
- return static_cast<const Node*>(this)->initialization();
- DECLARATION_NODE_LIST(GENERATE_CASE);
-#undef GENERATE_CASE
- default:
- UNREACHABLE();
- return kNeedsInitialization;
- }
-}
-
bool Expression::IsSmiLiteral() const {
return IsLiteral() && AsLiteral()->value()->IsSmi();
}
« no previous file with comments | « src/ast/ast.h ('k') | src/parsing/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698