V8 Project
v8::internal::PreParserIdentifier Class Reference

#include <preparser.h>

+ Collaboration diagram for v8::internal::PreParserIdentifier:

Public Member Functions

 PreParserIdentifier ()
 
bool IsEval () const
 
bool IsArguments () const
 
bool IsYield () const
 
bool IsPrototype () const
 
bool IsConstructor () const
 
bool IsEvalOrArguments () const
 
bool IsFutureReserved () const
 
bool IsFutureStrictReserved () const
 
bool IsValidStrictVariable () const
 
const PreParserIdentifieroperator-> () const
 
const PreParserIdentifier raw_name () const
 
int position () const
 
int length () const
 

Static Public Member Functions

static PreParserIdentifier Default ()
 
static PreParserIdentifier Eval ()
 
static PreParserIdentifier Arguments ()
 
static PreParserIdentifier FutureReserved ()
 
static PreParserIdentifier FutureStrictReserved ()
 
static PreParserIdentifier Let ()
 
static PreParserIdentifier Yield ()
 
static PreParserIdentifier Prototype ()
 
static PreParserIdentifier Constructor ()
 

Private Types

enum  Type {
  kUnknownIdentifier , kFutureReservedIdentifier , kFutureStrictReservedIdentifier , kLetIdentifier ,
  kYieldIdentifier , kEvalIdentifier , kArgumentsIdentifier , kPrototypeIdentifier ,
  kConstructorIdentifier
}
 

Private Member Functions

 PreParserIdentifier (Type type)
 

Private Attributes

Type type_
 

Friends

class PreParserExpression
 
class PreParserScope
 

Detailed Description

Definition at line 599 of file preparser.h.

Member Enumeration Documentation

◆ Type

Enumerator
kUnknownIdentifier 
kFutureReservedIdentifier 
kFutureStrictReservedIdentifier 
kLetIdentifier 
kYieldIdentifier 
kEvalIdentifier 
kArgumentsIdentifier 
kPrototypeIdentifier 
kConstructorIdentifier 

Definition at line 652 of file preparser.h.

Constructor & Destructor Documentation

◆ PreParserIdentifier() [1/2]

v8::internal::PreParserIdentifier::PreParserIdentifier ( )
inline

Definition at line 601 of file preparser.h.

Referenced by Arguments(), Constructor(), Default(), Eval(), FutureReserved(), FutureStrictReserved(), Let(), Prototype(), and Yield().

+ Here is the caller graph for this function:

◆ PreParserIdentifier() [2/2]

v8::internal::PreParserIdentifier::PreParserIdentifier ( Type  type)
inlineexplicitprivate

Definition at line 663 of file preparser.h.

663 : type_(type) {}

Member Function Documentation

◆ Arguments()

static PreParserIdentifier v8::internal::PreParserIdentifier::Arguments ( )
inlinestatic

Definition at line 608 of file preparser.h.

References kArgumentsIdentifier, and PreParserIdentifier().

Referenced by v8::internal::PreParserTraits::GetSymbol().

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

◆ Constructor()

static PreParserIdentifier v8::internal::PreParserIdentifier::Constructor ( )
inlinestatic

Definition at line 626 of file preparser.h.

626  {
628  }

References kConstructorIdentifier, and PreParserIdentifier().

Referenced by v8::internal::PreParserTraits::GetSymbol().

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

◆ Default()

static PreParserIdentifier v8::internal::PreParserIdentifier::Default ( )
inlinestatic

Definition at line 602 of file preparser.h.

602  {
604  }

References kUnknownIdentifier, and PreParserIdentifier().

Referenced by v8::internal::PreParserExpression::EmptyArrowParamList(), v8::internal::PreParserTraits::EmptyIdentifier(), v8::internal::PreParserTraits::EmptyIdentifierString(), v8::internal::PreParserTraits::GetNextSymbol(), v8::internal::PreParserTraits::GetNumberAsSymbol(), and v8::internal::PreParserTraits::GetSymbol().

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

◆ Eval()

static PreParserIdentifier v8::internal::PreParserIdentifier::Eval ( )
inlinestatic

Definition at line 605 of file preparser.h.

605  {
607  }

References kEvalIdentifier, and PreParserIdentifier().

Referenced by v8::internal::PreParserTraits::GetSymbol().

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

◆ FutureReserved()

static PreParserIdentifier v8::internal::PreParserIdentifier::FutureReserved ( )
inlinestatic

Definition at line 611 of file preparser.h.

611  {
613  }

References kFutureReservedIdentifier, and PreParserIdentifier().

Referenced by v8::internal::PreParserTraits::GetSymbol().

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

◆ FutureStrictReserved()

static PreParserIdentifier v8::internal::PreParserIdentifier::FutureStrictReserved ( )
inlinestatic

Definition at line 614 of file preparser.h.

614  {
616  }

References kFutureStrictReservedIdentifier, and PreParserIdentifier().

Referenced by v8::internal::PreParserTraits::GetSymbol().

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

◆ IsArguments()

bool v8::internal::PreParserIdentifier::IsArguments ( ) const
inline

Definition at line 630 of file preparser.h.

630 { return type_ == kArgumentsIdentifier; }

References kArgumentsIdentifier, and type_.

Referenced by v8::internal::PreParserExpression::ArrowParamListBit().

+ Here is the caller graph for this function:

◆ IsConstructor()

bool v8::internal::PreParserIdentifier::IsConstructor ( ) const
inline

Definition at line 633 of file preparser.h.

633 { return type_ == kConstructorIdentifier; }

References kConstructorIdentifier, and type_.

Referenced by v8::internal::PreParserTraits::IsConstructor().

+ Here is the caller graph for this function:

◆ IsEval()

bool v8::internal::PreParserIdentifier::IsEval ( ) const
inline

Definition at line 629 of file preparser.h.

629 { return type_ == kEvalIdentifier; }

References kEvalIdentifier, and type_.

Referenced by v8::internal::PreParserExpression::ArrowParamListBit().

+ Here is the caller graph for this function:

◆ IsEvalOrArguments()

bool v8::internal::PreParserIdentifier::IsEvalOrArguments ( ) const
inline

Definition at line 634 of file preparser.h.

634  {
636  }

References kArgumentsIdentifier, kEvalIdentifier, and type_.

Referenced by v8::internal::PreParserTraits::IsEvalOrArguments(), and v8::internal::PreParser::ParseFunctionLiteral().

+ Here is the caller graph for this function:

◆ IsFutureReserved()

bool v8::internal::PreParserIdentifier::IsFutureReserved ( ) const
inline

Definition at line 637 of file preparser.h.

637 { return type_ == kFutureReservedIdentifier; }

References kFutureReservedIdentifier, and type_.

Referenced by v8::internal::PreParser::ParseExpressionOrLabelledStatement().

+ Here is the caller graph for this function:

◆ IsFutureStrictReserved()

bool v8::internal::PreParserIdentifier::IsFutureStrictReserved ( ) const
inline

Definition at line 638 of file preparser.h.

638  {
640  }

References kFutureStrictReservedIdentifier, and type_.

Referenced by v8::internal::PreParserExpression::ArrowParamListBit(), v8::internal::PreParserTraits::IsFutureStrictReserved(), and v8::internal::PreParser::ParseExpressionOrLabelledStatement().

+ Here is the caller graph for this function:

◆ IsPrototype()

bool v8::internal::PreParserIdentifier::IsPrototype ( ) const
inline

Definition at line 632 of file preparser.h.

632 { return type_ == kPrototypeIdentifier; }

References kPrototypeIdentifier, and type_.

Referenced by v8::internal::PreParserTraits::IsPrototype().

+ Here is the caller graph for this function:

◆ IsValidStrictVariable()

bool v8::internal::PreParserIdentifier::IsValidStrictVariable ( ) const
inline

Definition at line 641 of file preparser.h.

641 { return type_ == kUnknownIdentifier; }

References kUnknownIdentifier, and type_.

◆ IsYield()

bool v8::internal::PreParserIdentifier::IsYield ( ) const
inline

Definition at line 631 of file preparser.h.

631 { return type_ == kYieldIdentifier; }

References kYieldIdentifier, and type_.

Referenced by v8::internal::PreParserExpression::ArrowParamListBit(), v8::internal::PreParserTraits::IsFutureStrictReserved(), and v8::internal::PreParser::ParseExpressionOrLabelledStatement().

+ Here is the caller graph for this function:

◆ length()

int v8::internal::PreParserIdentifier::length ( ) const
inline

Definition at line 649 of file preparser.h.

649 { return 0; }

◆ Let()

static PreParserIdentifier v8::internal::PreParserIdentifier::Let ( )
inlinestatic

Definition at line 617 of file preparser.h.

617  {
619  }

References kLetIdentifier, and PreParserIdentifier().

Referenced by v8::internal::PreParserTraits::GetSymbol().

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

◆ operator->()

const PreParserIdentifier* v8::internal::PreParserIdentifier::operator-> ( ) const
inline

Definition at line 645 of file preparser.h.

645 { return this; }

◆ position()

int v8::internal::PreParserIdentifier::position ( ) const
inline

Definition at line 648 of file preparser.h.

648 { return 0; }

◆ Prototype()

static PreParserIdentifier v8::internal::PreParserIdentifier::Prototype ( )
inlinestatic

Definition at line 623 of file preparser.h.

623  {
625  }

References kPrototypeIdentifier, and PreParserIdentifier().

Referenced by v8::internal::PreParserTraits::GetSymbol().

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

◆ raw_name()

const PreParserIdentifier v8::internal::PreParserIdentifier::raw_name ( ) const
inline

Definition at line 646 of file preparser.h.

646 { return *this; }

◆ Yield()

static PreParserIdentifier v8::internal::PreParserIdentifier::Yield ( )
inlinestatic

Definition at line 620 of file preparser.h.

620  {
622  }

References kYieldIdentifier, and PreParserIdentifier().

Referenced by v8::internal::PreParserTraits::GetSymbol().

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

Friends And Related Function Documentation

◆ PreParserExpression

friend class PreParserExpression
friend

Definition at line 666 of file preparser.h.

◆ PreParserScope

friend class PreParserScope
friend

Definition at line 667 of file preparser.h.

Member Data Documentation

◆ type_

Type v8::internal::PreParserIdentifier::type_
private

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