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/ast/ast.h" | 8 #include "src/ast/ast.h" |
9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
10 #include "src/parsing/parser-base.h" | 10 #include "src/parsing/parser-base.h" |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 bool* ok); | 284 bool* ok); |
285 void DeclareAndInitializeVariables( | 285 void DeclareAndInitializeVariables( |
286 Block* block, const DeclarationDescriptor* declaration_descriptor, | 286 Block* block, const DeclarationDescriptor* declaration_descriptor, |
287 const DeclarationParsingResult::Declaration* declaration, | 287 const DeclarationParsingResult::Declaration* declaration, |
288 ZoneList<const AstRawString*>* names, bool* ok); | 288 ZoneList<const AstRawString*>* names, bool* ok); |
289 | 289 |
290 Block* ParseVariableStatement(VariableDeclarationContext var_context, | 290 Block* ParseVariableStatement(VariableDeclarationContext var_context, |
291 ZoneList<const AstRawString*>* names, | 291 ZoneList<const AstRawString*>* names, |
292 bool* ok); | 292 bool* ok); |
293 DoExpression* ParseDoExpression(bool* ok); | 293 DoExpression* ParseDoExpression(bool* ok); |
| 294 Property* ParsePrivateFieldReference(Expression* base, bool* ok); |
294 Expression* ParseYieldStarExpression(bool* ok); | 295 Expression* ParseYieldStarExpression(bool* ok); |
295 | 296 |
296 class PatternRewriter final : public AstVisitor<PatternRewriter> { | 297 class PatternRewriter final : public AstVisitor<PatternRewriter> { |
297 public: | 298 public: |
298 static void DeclareAndInitializeVariables( | 299 static void DeclareAndInitializeVariables( |
299 Parser* parser, Block* block, | 300 Parser* parser, Block* block, |
300 const DeclarationDescriptor* declaration_descriptor, | 301 const DeclarationDescriptor* declaration_descriptor, |
301 const DeclarationParsingResult::Declaration* declaration, | 302 const DeclarationParsingResult::Declaration* declaration, |
302 ZoneList<const AstRawString*>* names, bool* ok); | 303 ZoneList<const AstRawString*>* names, bool* ok); |
303 | 304 |
(...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1067 | 1068 |
1068 #ifdef DEBUG | 1069 #ifdef DEBUG |
1069 void Print(AstNode* node); | 1070 void Print(AstNode* node); |
1070 #endif // DEBUG | 1071 #endif // DEBUG |
1071 }; | 1072 }; |
1072 | 1073 |
1073 } // namespace internal | 1074 } // namespace internal |
1074 } // namespace v8 | 1075 } // namespace v8 |
1075 | 1076 |
1076 #endif // V8_PARSING_PARSER_H_ | 1077 #endif // V8_PARSING_PARSER_H_ |
OLD | NEW |