| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |