V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::internal::Scanner Class Reference

Classes

class  BookmarkScope
 
class  ErrorState
 
struct  Location
 

Public Member Functions

V8_INLINE void set_parser_error ()
 
V8_INLINE void reset_parser_error_flag ()
 
V8_INLINE bool has_parser_error () const
 
 Scanner (Utf16CharacterStream *source, bool is_module)
 
void Initialize ()
 
Token::Value Next ()
 
Token::Value PeekAhead ()
 
Token::Value current_token () const
 
const Location & location () const
 
bool has_error () const
 
MessageTemplate error () const
 
const Location & error_location () const
 
bool has_invalid_template_escape () const
 
MessageTemplate invalid_template_escape_message () const
 
void clear_invalid_template_escape_message ()
 
Location invalid_template_escape_location () const
 
Token::Value peek () const
 
const Location & peek_location () const
 
bool literal_contains_escapes () const
 
const AstRawString * CurrentSymbol (AstValueFactory *ast_value_factory) const
 
const AstRawString * NextSymbol (AstValueFactory *ast_value_factory) const
 
const AstRawString * CurrentRawSymbol (AstValueFactory *ast_value_factory) const
 
double DoubleValue ()
 
const char * CurrentLiteralAsCString (Zone *zone) const
 
bool CurrentMatches (Token::Value token) const
 
template<size_t N>
bool NextLiteralEquals (const char(&s)[N])
 
Location octal_position () const
 
void clear_octal_position ()
 
MessageTemplate octal_message () const
 
uint32_t smi_value () const
 
void SeekForward (int pos)
 
bool HasLineTerminatorBeforeNext () const
 
bool HasLineTerminatorAfterNext ()
 
bool ScanRegExpPattern ()
 
Maybe< RegExp::Flags > ScanRegExpFlags ()
 
Token::Value ScanTemplateContinuation ()
 
Handle< String > SourceUrl (Isolate *isolate) const
 
Handle< String > SourceMappingUrl (Isolate *isolate) const
 
bool FoundHtmlComment () const
 
bool allow_harmony_private_fields () const
 
void set_allow_harmony_private_fields (bool allow)
 
bool allow_harmony_numeric_separator () const
 
void set_allow_harmony_numeric_separator (bool allow)
 
const Utf16CharacterStream * stream () const
 

Static Public Attributes

static const int kNoOctalLocation = -1
 
static const uc32 kEndOfInput = Utf16CharacterStream::kEndOfInput
 

Detailed Description

Definition at line 207 of file scanner.h.


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