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

Side by Side Diff: src/parsing/parser.h

Issue 2169833002: [parser] Refactor AstTraversalVisitor (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « src/parsing/parameter-initializer-rewriter.cc ('k') | src/parsing/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_PARSING_PARSER_H_ 5 #ifndef V8_PARSING_PARSER_H_
6 #define V8_PARSING_PARSER_H_ 6 #define V8_PARSING_PARSER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/ast/scopes.h" 10 #include "src/ast/scopes.h"
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 846
847 Block* BuildInitializationBlock(ZoneList<const AstRawString*>* names, 847 Block* BuildInitializationBlock(ZoneList<const AstRawString*>* names,
848 bool* ok); 848 bool* ok);
849 849
850 DeclarationDescriptor descriptor; 850 DeclarationDescriptor descriptor;
851 List<Declaration> declarations; 851 List<Declaration> declarations;
852 Scanner::Location first_initializer_loc; 852 Scanner::Location first_initializer_loc;
853 Scanner::Location bindings_loc; 853 Scanner::Location bindings_loc;
854 }; 854 };
855 855
856 class PatternRewriter final : private AstVisitor<PatternRewriter> { 856 class PatternRewriter final : public AstVisitor<PatternRewriter> {
857 public: 857 public:
858 static void DeclareAndInitializeVariables( 858 static void DeclareAndInitializeVariables(
859 Block* block, const DeclarationDescriptor* declaration_descriptor, 859 Block* block, const DeclarationDescriptor* declaration_descriptor,
860 const DeclarationParsingResult::Declaration* declaration, 860 const DeclarationParsingResult::Declaration* declaration,
861 ZoneList<const AstRawString*>* names, bool* ok); 861 ZoneList<const AstRawString*>* names, bool* ok);
862 862
863 static void RewriteDestructuringAssignment(Parser* parser, 863 static void RewriteDestructuringAssignment(Parser* parser,
864 RewritableExpression* expr, 864 RewritableExpression* expr,
865 Scope* Scope); 865 Scope* Scope);
866 866
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
1319 1319
1320 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { 1320 DoExpression* ParserTraits::ParseDoExpression(bool* ok) {
1321 return parser_->ParseDoExpression(ok); 1321 return parser_->ParseDoExpression(ok);
1322 } 1322 }
1323 1323
1324 1324
1325 } // namespace internal 1325 } // namespace internal
1326 } // namespace v8 1326 } // namespace v8
1327 1327
1328 #endif // V8_PARSING_PARSER_H_ 1328 #endif // V8_PARSING_PARSER_H_
OLDNEW
« no previous file with comments | « src/parsing/parameter-initializer-rewriter.cc ('k') | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698