V8 Project
v8::internal::Scanner::LiteralScope Class Reference

#include <scanner.h>

+ Collaboration diagram for v8::internal::Scanner::LiteralScope:

Public Member Functions

 LiteralScope (Scanner *self)
 
 ~LiteralScope ()
 
void Complete ()
 

Private Attributes

Scannerscanner_
 
bool complete_
 

Detailed Description

Definition at line 309 of file scanner.h.

Constructor & Destructor Documentation

◆ LiteralScope()

v8::internal::Scanner::LiteralScope::LiteralScope ( Scanner self)
inlineexplicit

Definition at line 311 of file scanner.h.

312  : scanner_(self), complete_(false) {
314  }

References scanner_, and v8::internal::Scanner::StartLiteral().

+ Here is the call graph for this function:

◆ ~LiteralScope()

v8::internal::Scanner::LiteralScope::~LiteralScope ( )
inline

Definition at line 315 of file scanner.h.

315  {
316  if (!complete_) scanner_->DropLiteral();
317  }

References complete_, v8::internal::Scanner::DropLiteral(), and scanner_.

+ Here is the call graph for this function:

Member Function Documentation

◆ Complete()

void v8::internal::Scanner::LiteralScope::Complete ( )
inline

Definition at line 318 of file scanner.h.

318  {
320  complete_ = true;
321  }
void TerminateLiteral()
Definition: scanner.h:505

References complete_, scanner_, and v8::internal::Scanner::TerminateLiteral().

Referenced by v8::internal::Scanner::ScanIdentifierOrKeyword(), v8::internal::Scanner::ScanIdentifierSuffix(), v8::internal::Scanner::ScanNumber(), v8::internal::Scanner::ScanRegExpFlags(), v8::internal::Scanner::ScanRegExpPattern(), and v8::internal::Scanner::ScanString().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ complete_

bool v8::internal::Scanner::LiteralScope::complete_
private

Definition at line 325 of file scanner.h.

Referenced by Complete(), and ~LiteralScope().

◆ scanner_

Scanner* v8::internal::Scanner::LiteralScope::scanner_
private

Definition at line 324 of file scanner.h.

Referenced by Complete(), LiteralScope(), and ~LiteralScope().


The documentation for this class was generated from the following file: