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_PREPARSER_H | 5 #ifndef V8_PARSING_PREPARSER_H |
6 #define V8_PARSING_PREPARSER_H | 6 #define V8_PARSING_PREPARSER_H |
7 | 7 |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/parsing/parser-base.h" | 9 #include "src/parsing/parser-base.h" |
10 | 10 |
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 public: | 698 public: |
699 explicit PreParserTargetScope(ParserBase<PreParser>* preparser) {} | 699 explicit PreParserTargetScope(ParserBase<PreParser>* preparser) {} |
700 }; | 700 }; |
701 | 701 |
702 template <> | 702 template <> |
703 struct ParserTypes<PreParser> { | 703 struct ParserTypes<PreParser> { |
704 typedef ParserBase<PreParser> Base; | 704 typedef ParserBase<PreParser> Base; |
705 typedef PreParser Impl; | 705 typedef PreParser Impl; |
706 | 706 |
707 // PreParser doesn't need to store generator variables. | 707 // PreParser doesn't need to store generator variables. |
708 typedef void GeneratorVariable; | 708 typedef void Variable; |
709 | 709 |
710 // Return types for traversing functions. | 710 // Return types for traversing functions. |
711 typedef PreParserIdentifier Identifier; | 711 typedef PreParserIdentifier Identifier; |
712 typedef PreParserExpression Expression; | 712 typedef PreParserExpression Expression; |
713 typedef PreParserExpression FunctionLiteral; | 713 typedef PreParserExpression FunctionLiteral; |
714 typedef PreParserExpression ObjectLiteralProperty; | 714 typedef PreParserExpression ObjectLiteralProperty; |
715 typedef PreParserExpression ClassLiteralProperty; | 715 typedef PreParserExpression ClassLiteralProperty; |
716 typedef PreParserExpressionList ExpressionList; | 716 typedef PreParserExpressionList ExpressionList; |
717 typedef PreParserExpressionList PropertyList; | 717 typedef PreParserExpressionList PropertyList; |
718 typedef PreParserFormalParameters FormalParameters; | 718 typedef PreParserFormalParameters FormalParameters; |
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1416 function_state_->NextMaterializedLiteralIndex(); | 1416 function_state_->NextMaterializedLiteralIndex(); |
1417 function_state_->NextMaterializedLiteralIndex(); | 1417 function_state_->NextMaterializedLiteralIndex(); |
1418 } | 1418 } |
1419 return EmptyExpression(); | 1419 return EmptyExpression(); |
1420 } | 1420 } |
1421 | 1421 |
1422 } // namespace internal | 1422 } // namespace internal |
1423 } // namespace v8 | 1423 } // namespace v8 |
1424 | 1424 |
1425 #endif // V8_PARSING_PREPARSER_H | 1425 #endif // V8_PARSING_PREPARSER_H |
OLD | NEW |