| 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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 ParseErrorType error_type = kSyntaxError); | 468 ParseErrorType error_type = kSyntaxError); |
| 469 void ReportMessage(MessageTemplate::Template message, const char* arg = NULL, | 469 void ReportMessage(MessageTemplate::Template message, const char* arg = NULL, |
| 470 ParseErrorType error_type = kSyntaxError); | 470 ParseErrorType error_type = kSyntaxError); |
| 471 void ReportMessage(MessageTemplate::Template message, const AstRawString* arg, | 471 void ReportMessage(MessageTemplate::Template message, const AstRawString* arg, |
| 472 ParseErrorType error_type = kSyntaxError); | 472 ParseErrorType error_type = kSyntaxError); |
| 473 void ReportMessageAt(Scanner::Location source_location, | 473 void ReportMessageAt(Scanner::Location source_location, |
| 474 MessageTemplate::Template message, | 474 MessageTemplate::Template message, |
| 475 const AstRawString* arg, | 475 const AstRawString* arg, |
| 476 ParseErrorType error_type = kSyntaxError); | 476 ParseErrorType error_type = kSyntaxError); |
| 477 | 477 |
| 478 // A dummy function, just useful as an argument to CHECK_OK_CUSTOM. |
| 479 static void Void() {} |
| 480 |
| 478 // "null" return type creators. | 481 // "null" return type creators. |
| 479 static const AstRawString* EmptyIdentifier() { | 482 static const AstRawString* EmptyIdentifier() { |
| 480 return NULL; | 483 return NULL; |
| 481 } | 484 } |
| 482 static Expression* EmptyExpression() { | 485 static Expression* EmptyExpression() { |
| 483 return NULL; | 486 return NULL; |
| 484 } | 487 } |
| 485 static Literal* EmptyLiteral() { | 488 static Literal* EmptyLiteral() { |
| 486 return NULL; | 489 return NULL; |
| 487 } | 490 } |
| (...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1311 | 1314 |
| 1312 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { | 1315 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { |
| 1313 return parser_->ParseDoExpression(ok); | 1316 return parser_->ParseDoExpression(ok); |
| 1314 } | 1317 } |
| 1315 | 1318 |
| 1316 | 1319 |
| 1317 } // namespace internal | 1320 } // namespace internal |
| 1318 } // namespace v8 | 1321 } // namespace v8 |
| 1319 | 1322 |
| 1320 #endif // V8_PARSING_PARSER_H_ | 1323 #endif // V8_PARSING_PARSER_H_ |
| OLD | NEW |