| 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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 const AstRawString* arg, | 493 const AstRawString* arg, |
| 494 ParseErrorType error_type = kSyntaxError); | 494 ParseErrorType error_type = kSyntaxError); |
| 495 | 495 |
| 496 // "null" return type creators. | 496 // "null" return type creators. |
| 497 static const AstRawString* EmptyIdentifier() { | 497 static const AstRawString* EmptyIdentifier() { |
| 498 return NULL; | 498 return NULL; |
| 499 } | 499 } |
| 500 static Expression* EmptyExpression() { | 500 static Expression* EmptyExpression() { |
| 501 return NULL; | 501 return NULL; |
| 502 } | 502 } |
| 503 static bool IsEmptyExpression(Expression* e) { return e == nullptr; } |
| 503 static Literal* EmptyLiteral() { | 504 static Literal* EmptyLiteral() { |
| 504 return NULL; | 505 return NULL; |
| 505 } | 506 } |
| 506 static ObjectLiteralProperty* EmptyObjectLiteralProperty() { return NULL; } | 507 static ObjectLiteralProperty* EmptyObjectLiteralProperty() { return NULL; } |
| 507 static FunctionLiteral* EmptyFunctionLiteral() { return NULL; } | 508 static FunctionLiteral* EmptyFunctionLiteral() { return NULL; } |
| 508 | 509 |
| 509 static typesystem::Type* EmptyType() { return nullptr; } | 510 static typesystem::Type* EmptyType() { return nullptr; } |
| 510 static ZoneList<typesystem::Type*>* NullTypeList() { return nullptr; } | 511 static ZoneList<typesystem::Type*>* NullTypeList() { return nullptr; } |
| 511 V8_INLINE ZoneList<typesystem::Type*>* EmptyTypeList() const; | 512 V8_INLINE ZoneList<typesystem::Type*>* EmptyTypeList() const; |
| 512 static ZoneList<typesystem::TypeParameter*>* NullTypeParameters() { | 513 static ZoneList<typesystem::TypeParameter*>* NullTypeParameters() { |
| (...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1321 | 1322 |
| 1322 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1323 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
| 1323 return parser_->ParseDoExpression(ok); | 1324 return parser_->ParseDoExpression(ok); |
| 1324 } | 1325 } |
| 1325 | 1326 |
| 1326 | 1327 |
| 1327 } // namespace internal | 1328 } // namespace internal |
| 1328 } // namespace v8 | 1329 } // namespace v8 |
| 1329 | 1330 |
| 1330 #endif // V8_PARSING_PARSER_H_ | 1331 #endif // V8_PARSING_PARSER_H_ |
| OLD | NEW |