v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::PreParserFormalParameters Class Reference

#include <preparser.h>

Inheritance diagram for v8::internal::PreParserFormalParameters:
Collaboration diagram for v8::internal::PreParserFormalParameters:

Public Member Functions

 PreParserFormalParameters (DeclarationScope *scope)
 
void set_has_duplicate ()
 
bool has_duplicate ()
 
void ValidateDuplicate (PreParser *preparser) const
 
void set_strict_parameter_error (const Scanner::Location &loc, MessageTemplate message)
 
void ValidateStrictMode (PreParser *preparser) const
 
- Public Member Functions inherited from v8::internal::FormalParametersBase
 FormalParametersBase (DeclarationScope *scope)
 
int num_parameters () const
 
void UpdateArityAndFunctionLength (bool is_optional, bool is_rest)
 

Private Attributes

bool has_duplicate_ = false
 
bool strict_parameter_error_ = false
 

Additional Inherited Members

- Public Attributes inherited from v8::internal::FormalParametersBase
DeclarationScopescope
 
bool has_rest = false
 
bool is_simple = true
 
int function_length = 0
 
int arity = 0
 

Detailed Description

Definition at line 745 of file preparser.h.

Constructor & Destructor Documentation

◆ PreParserFormalParameters()

v8::internal::PreParserFormalParameters::PreParserFormalParameters ( DeclarationScope * scope)
inlineexplicit

Definition at line 747 of file preparser.h.

Member Function Documentation

◆ has_duplicate()

bool v8::internal::PreParserFormalParameters::has_duplicate ( )
inline

Definition at line 751 of file preparser.h.

◆ set_has_duplicate()

void v8::internal::PreParserFormalParameters::set_has_duplicate ( )
inline

Definition at line 750 of file preparser.h.

Here is the caller graph for this function:

◆ set_strict_parameter_error()

void v8::internal::PreParserFormalParameters::set_strict_parameter_error ( const Scanner::Location & loc,
MessageTemplate message )
inline

Definition at line 754 of file preparser.h.

Here is the call graph for this function:

◆ ValidateDuplicate()

void v8::internal::PreParserFormalParameters::ValidateDuplicate ( PreParser * preparser) const

Definition at line 93 of file preparser.cc.

Here is the call graph for this function:

◆ ValidateStrictMode()

void v8::internal::PreParserFormalParameters::ValidateStrictMode ( PreParser * preparser) const

Definition at line 97 of file preparser.cc.

Here is the call graph for this function:

Member Data Documentation

◆ has_duplicate_

bool v8::internal::PreParserFormalParameters::has_duplicate_ = false
private

Definition at line 761 of file preparser.h.

◆ strict_parameter_error_

bool v8::internal::PreParserFormalParameters::strict_parameter_error_ = false
private

Definition at line 762 of file preparser.h.


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