Home
last modified time | relevance | path

Searched refs:scanner_ (Results 1 – 4 of 4) sorted by relevance

/external/v8/src/parsing/
Dscanner.h308 explicit LiteralScope(Scanner* self) : scanner_(self), complete_(false) { in LiteralScope()
309 scanner_->StartLiteral(); in LiteralScope()
312 if (!complete_) scanner_->DropLiteral(); in ~LiteralScope()
319 Scanner* scanner_;
326 explicit BookmarkScope(Scanner* scanner) : scanner_(scanner) { in BookmarkScope()
327 DCHECK_NOT_NULL(scanner_); in BookmarkScope()
329 ~BookmarkScope() { scanner_->DropBookmark(); } in ~BookmarkScope()
331 bool Set() { return scanner_->SetBookmark(); } in Set()
332 void Reset() { scanner_->ResetToBookmark(); } in Reset()
333 bool HasBeenSet() { return scanner_->BookmarkHasBeenSet(); } in HasBeenSet()
[all …]
Dparser-base.h191 scanner_(scanner), in ParserBase()
208 bool allow_##name() const { return scanner_->allow_##name(); } \
210 return scanner_->set_allow_##name(allow); \
598 Scanner* scanner() const { return scanner_; } in scanner()
600 int position() { return scanner_->location().beg_pos; } in position()
601 int peek_position() { return scanner_->peek_location().beg_pos; } in peek_position()
1180 Scanner* scanner_; variable
1292 return ReportUnexpectedTokenAt(scanner_->location(), token); in ReportUnexpectedToken()
2201 Scanner::Location location = scanner_->location(); in ParseArguments()
3316 if (peek() == Token::ARROW && scanner_->HasAnyLineTerminatorBeforeNext()) { in ParseArrowFunctionLiteral()
[all …]
Dparser.cc789 : ParserBase<ParserTraits>(info->zone(), &scanner_, info->stack_limit(), in Parser()
792 scanner_(info->unicode_cache()), in Parser()
868 scanner_.Initialize(&stream); in ParseProgram()
872 scanner_.Initialize(&stream); in ParseProgram()
876 DCHECK_EQ(scanner_.peek_location().beg_pos, source->length()); in ParseProgram()
1059 scanner_.Initialize(source); in ParseLazy()
4873 reusable_preparser_ = new PreParser(zone(), &scanner_, ast_value_factory(), in ParseLazyFunctionBodyWithPreParser()
5194 if (scanner_.source_url()->length() > 0) { in HandleSourceURLComments()
5195 Handle<String> source_url = scanner_.source_url()->Internalize(isolate); in HandleSourceURLComments()
5198 if (scanner_.source_mapping_url()->length() > 0) { in HandleSourceURLComments()
[all …]
Dparser.h1103 Scanner scanner_; variable