V8 Project
v8::internal::Scanner::Location Struct Reference

#include <scanner.h>

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

Public Member Functions

 Location (int b, int e)
 
 Location ()
 
bool IsValid () const
 

Static Public Member Functions

static Location invalid ()
 

Public Attributes

int beg_pos
 
int end_pos
 

Detailed Description

Definition at line 329 of file scanner.h.

Constructor & Destructor Documentation

◆ Location() [1/2]

v8::internal::Scanner::Location::Location ( int  b,
int  e 
)
inline

Definition at line 330 of file scanner.h.

◆ Location() [2/2]

v8::internal::Scanner::Location::Location ( )
inline

Definition at line 331 of file scanner.h.

331 : beg_pos(0), end_pos(0) { }

Referenced by invalid().

+ Here is the caller graph for this function:

Member Function Documentation

◆ invalid()

static Location v8::internal::Scanner::Location::invalid ( )
inlinestatic

Definition at line 337 of file scanner.h.

337 { return Location(-1, -1); }

References Location().

Referenced by v8::internal::Parser::CheckConflictingVarDeclarations(), v8::internal::Scanner::clear_octal_position(), v8::internal::ParserBase< Traits >::ParseArrowFunctionLiteral(), v8::internal::Parser::ParseFunctionLiteral(), v8::internal::PreParser::ParseFunctionLiteral(), v8::internal::Parser::ParseLazy(), v8::internal::ParserBase< Traits >::ParseMemberExpression(), and v8::internal::ParserBase< Traits >::ParsePrimaryExpression().

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

◆ IsValid()

bool v8::internal::Scanner::Location::IsValid ( ) const
inline

Definition at line 333 of file scanner.h.

333  {
334  return beg_pos >= 0 && end_pos >= beg_pos;
335  }

References beg_pos, and end_pos.

Referenced by v8::internal::ParserBase< Traits >::CheckOctalLiteral(), v8::internal::ParserBase< Traits >::CheckStrictFunctionNameAndParameters(), v8::internal::Parser::ParseFunctionLiteral(), and v8::internal::PreParser::ParseFunctionLiteral().

+ Here is the caller graph for this function:

Member Data Documentation

◆ beg_pos

◆ end_pos


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