Home | History | Annotate | Download | only in parsing

Lines Matching full:scanner

22 #include "src/parsing/scanner-character-streams.h"
527 void ParserTraits::ReportMessageAt(Scanner::Location source_location,
544 Scanner::Location source_location = parser_->scanner()->location();
552 Scanner::Location source_location = parser_->scanner()->location();
557 void ParserTraits::ReportMessageAt(Scanner::Location source_location,
573 const AstRawString* ParserTraits::GetSymbol(Scanner* scanner) {
575 parser_->scanner()->CurrentSymbol(parser_->ast_value_factory());
581 const AstRawString* ParserTraits::GetNumberAsSymbol(Scanner* scanner) {
582 double double_value = parser_->scanner()->DoubleValue();
590 const AstRawString* ParserTraits::GetNextSymbol(Scanner* scanner) {
591 return parser_->scanner()->NextSymbol(parser_->ast_value_factory());
653 Scanner* scanner,
663 int value = scanner->smi_value();
667 bool has_dot = scanner->ContainsDot();
668 double value = scanner->DoubleValue();
689 Expression* ParserTraits::ExpressionFromString(int pos, Scanner* scanner,
691 const AstRawString* symbol = GetSymbol(scanner);
721 const AstRawString* name, Scanner::Location function_name_location,
733 const AstRawString* name, Scanner::Location class_name_location,
900 int beg_pos = scanner()->location().beg_pos;
909 scope->set_end_position(scanner()->peek_location().beg_pos);
912 CheckStrictOctalLiteral(beg_pos, scanner()->location().end_pos, &ok);
1088 if (scanner()->location().end_pos == shared_info->end_position()) {
1105 raw_name, Scanner::Location::invalid(), kSkipFunctionNameCheck,
1143 Scanner::Location token_loc = scanner()->peek_location();
1144 Scanner::Location old_this_loc = function_state_->this_location();
1145 Scanner::Location old_super_loc = function_state_->super_location();
1150 Scanner::Location this_loc = function_state_->this_location();
1151 Scanner::Location super_loc = function_state_->super_location();
1275 scanner()->peek_location().beg_pos);
1358 return GetSymbol(scanner());
1363 ZoneList<Scanner::Location>* export_locations,
1365 Scanner::Location* reserved_loc, bool* ok) {
1387 *reserved_loc = scanner()->location();
1399 export_locations->Add(scanner()->location(), zone());
1437 if (!Token::IsIdentifier(scanner()->current_token(), STRICT, false)) {
1524 ReportUnexpectedToken(scanner()->current_token());
1559 Scanner::Location default_loc = scanner()->location();
1644 Scanner::Location reserved_loc = Scanner::Location::invalid();
1646 ZoneList<Scanner::Location> export_locations(1, zone());
1700 ReportUnexpectedToken(scanner()->current_token());
1765 ReportMessageAt(scanner()->peek_location(),
1823 ReportMessageAt(scanner()->peek_location(),
1886 scanner()->location().beg_pos,
1887 scanner()->location().end_pos);
2111 name, scanner()->location(),
2175 ClassLiteral* value = ParseClassLiteral(name, scanner()->location(),
2227 block_scope->set_start_position(scanner()->location().beg_pos);
2239 block_scope->set_end_position(scanner()->location().end_pos);
2321 Scanner::Location location = scanner()->peek_location();
2384 Scanner::Location variable_loc = scanner()->location();
2411 variable_loc.end_pos = scanner()->location().end_pos;
2442 initializer_position = scanner()->location().end_pos;
2447 Scanner::Location(decl_pos, scanner()->location().end_pos),
2468 Scanner::Location(bindings_start, scanner()->location().end_pos);
2529 if (!scanner()->HasAnyLineTerminatorBeforeNext()) {
2581 !scanner()->HasAnyLineTerminatorBeforeNext() && expr != NULL &&
2585 !scanner()->literal_contains_escapes()) {
2635 if (!scanner()->HasAnyLineTerminatorBeforeNext() &&
2665 if (!scanner()->HasAnyLineTerminatorBeforeNext() &&
2701 Scanner::Location loc = scanner()->location();
2707 if (scanner()->HasAnyLineTerminatorBeforeNext() ||
2720 ReportMessageAt(Scanner::Location(pos, pos + 1),
2817 with_scope->set_start_position(scanner()->peek_location().beg_pos);
2823 block_scope->set_start_position(scanner()->location().beg_pos);
2829 block_scope->set_end_position(scanner()->location().end_pos);
2834 with_scope->set_end_position(scanner()->location().end_pos);
2871 ReportMessageAt(scanner()->location(),
2929 cases_scope->set_start_position(scanner()->location().beg_pos);
2949 cases_scope->set_end_position(scanner()->location().end_pos);
2965 if (scanner()->HasAnyLineTerminatorBeforeNext()) {
3010 catch_scope->set_start_position(scanner()->location().beg_pos);
3038 block_scope->set_start_position(scanner()->location().beg_pos);
3071 block_scope->set_end_position(scanner()->location().end_pos);
3076 catch_scope->set_end_position(scanner()->location().end_pos);
3485 int inner_var_proxy_pos = scanner()->location().beg_pos;
3528 inner_scope->set_end_position(scanner()->location().end_pos);
3553 for_scope->set_start_position(scanner()->location().beg_pos);
3565 int each_beg_pos = scanner()->location().beg_pos;
3566 int each_end_pos = scanner()->location().end_pos;
3644 body_scope->set_start_position(scanner()->location().beg_pos);
3674 body_scope->set_end_position(scanner()->location().end_pos);
3701 for_scope->set_end_position(scanner()->location().end_pos);
3725 int lhs_end_pos = scanner()->location().end_pos;
3774 body_scope->set_end_position(scanner()->location().end_pos);
3779 for_scope->set_end_position(scanner()->location().end_pos);
3810 inner_scope->set_start_position(scanner()->location().beg_pos);
3836 for_scope->set_end_position(scanner()->location().end_pos);
3839 for_scope->set_end_position(scanner()->location().end_pos);
3937 const Scanner::Location& params_loc, bool* ok) {
4031 const Scanner::Location& params_loc,
4032 Scanner::Location* duplicate_loc, bool* ok) {
4069 const AstRawString* function_name, Scanner::Location function_name_location,
4139 DuplicateFinder duplicate_finder(scanner()->unicode_cache());
4167 int start_position = scanner()->location().beg_pos;
4173 int formals_end_position = scanner()->location().end_pos;
4223 Scanner::BookmarkScope bookmark(scanner());
4225 Scanner::BookmarkScope* maybe_bookmark =
4351 Scanner::BookmarkScope* bookmark) {
4365 scanner()->SeekForward(entry.end_pos() - 1);
4398 Scanner::Location(logger.start(), logger.end()), logger.message(),
4421 int body_end = scanner()->location().end_pos;
4591 inner_scope->set_start_position(scanner()->location().beg_pos);
4641 scope_->set_end_position(scanner()->location().end_pos);
4650 inner_scope->set_end_position(scanner()->location().end_pos);
4690 SingletonLogger* logger, Scanner::BookmarkScope* bookmark) {
4696 DCHECK_EQ(Token::LBRACE, scanner()->current_token());
4725 Scanner::Location class_name_location,
4763 block_scope->set_start_position(scanner()->location().end_pos);
4768 block_scope->set_start_position(scanner()->location().end_pos);
4810 int end_pos = scanner()->location().end_pos;
4840 Scanner::Location spread_pos;
4909 Scanner::Location location = position == RelocInfo::kNoPosition
4910 ? Scanner::Location::invalid()
4911 : Scanner::Location(position, position + 1);
5148 int pos = scanner()->location().beg_pos;
5149 int end = scanner()->location().end_pos - (tail ? 1 : 2);
5150 const AstRawString* tv = scanner()->CurrentSymbol(ast_value_factory());
5151 const AstRawString* trv = scanner()->CurrentRawSymbol(ast_value_factory());