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

#include <ast.h>

Inheritance diagram for v8::internal::ClassLiteralProperty:
Collaboration diagram for v8::internal::ClassLiteralProperty:

Public Types

enum  Kind : uint8_t {
  METHOD , GETTER , SETTER , FIELD ,
  AUTO_ACCESSOR
}
 

Public Member Functions

Kind kind () const
 
bool is_static () const
 
bool is_private () const
 
bool is_auto_accessor () const
 
void set_computed_name_proxy (VariableProxy *proxy)
 
Variablecomputed_name_var () const
 
void SetPrivateNameProxy (VariableProxy *proxy)
 
Variableprivate_name_var () const
 
AutoAccessorInfoauto_accessor_info ()
 
- Public Member Functions inherited from v8::internal::LiteralProperty
Expressionkey () const
 
Expressionvalue () const
 
bool is_computed_name () const
 
bool NeedsSetFunctionName () const
 
- Public Member Functions inherited from v8::internal::ZoneObject
void * operator new (size_t, Zone *)=delete
 
void * operator new (size_t size, void *ptr)
 
void operator delete (void *, size_t)
 
void operator delete (void *pointer, Zone *zone)=delete
 

Private Member Functions

 ClassLiteralProperty (Expression *key, Expression *value, Kind kind, bool is_static, bool is_computed_name, bool is_private)
 
 ClassLiteralProperty (Expression *key, Expression *value, AutoAccessorInfo *auto_accessor_info, bool is_static, bool is_computed_name, bool is_private)
 

Private Attributes

friend Zone
 
Kind kind_
 
bool is_static_
 
bool is_private_
 
union { 
 
   VariableProxy *   private_or_computed_name_proxy_ 
 
   AutoAccessorInfo *   auto_accessor_info_ 
 
};  
 

Friends

class AstNodeFactory
 

Additional Inherited Members

- Protected Member Functions inherited from v8::internal::LiteralProperty
 LiteralProperty (Expression *key, Expression *value, bool is_computed_name)
 
- Protected Attributes inherited from v8::internal::LiteralProperty
base::PointerWithPayload< Expression, bool, 1 > key_and_is_computed_name_
 
Expressionvalue_
 

Detailed Description

Definition at line 2544 of file ast.h.

Member Enumeration Documentation

◆ Kind

Enumerator
METHOD 
GETTER 
SETTER 
FIELD 
AUTO_ACCESSOR 

Definition at line 2546 of file ast.h.

Constructor & Destructor Documentation

◆ ClassLiteralProperty() [1/2]

v8::internal::ClassLiteralProperty::ClassLiteralProperty ( Expression * key,
Expression * value,
Kind kind,
bool is_static,
bool is_computed_name,
bool is_private )
private

Definition at line 304 of file ast.cc.

◆ ClassLiteralProperty() [2/2]

v8::internal::ClassLiteralProperty::ClassLiteralProperty ( Expression * key,
Expression * value,
AutoAccessorInfo * auto_accessor_info,
bool is_static,
bool is_computed_name,
bool is_private )
private

Definition at line 314 of file ast.cc.

Member Function Documentation

◆ auto_accessor_info()

AutoAccessorInfo * v8::internal::ClassLiteralProperty::auto_accessor_info ( )
inline

Definition at line 2582 of file ast.h.

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

◆ computed_name_var()

Variable * v8::internal::ClassLiteralProperty::computed_name_var ( ) const
inline

Definition at line 2562 of file ast.h.

Here is the call graph for this function:

◆ is_auto_accessor()

bool v8::internal::ClassLiteralProperty::is_auto_accessor ( ) const
inline

Definition at line 2554 of file ast.h.

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

◆ is_private()

bool v8::internal::ClassLiteralProperty::is_private ( ) const
inline

Definition at line 2552 of file ast.h.

Here is the caller graph for this function:

◆ is_static()

bool v8::internal::ClassLiteralProperty::is_static ( ) const
inline

Definition at line 2550 of file ast.h.

◆ kind()

Kind v8::internal::ClassLiteralProperty::kind ( ) const
inline

Definition at line 2548 of file ast.h.

Here is the caller graph for this function:

◆ private_name_var()

Variable * v8::internal::ClassLiteralProperty::private_name_var ( ) const
inline

Definition at line 2576 of file ast.h.

Here is the call graph for this function:

◆ set_computed_name_proxy()

void v8::internal::ClassLiteralProperty::set_computed_name_proxy ( VariableProxy * proxy)
inline

Definition at line 2556 of file ast.h.

Here is the call graph for this function:

◆ SetPrivateNameProxy()

void v8::internal::ClassLiteralProperty::SetPrivateNameProxy ( VariableProxy * proxy)
inline

Definition at line 2568 of file ast.h.

Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ AstNodeFactory

friend class AstNodeFactory
friend

Definition at line 2589 of file ast.h.

Member Data Documentation

◆ [union]

◆ auto_accessor_info_

AutoAccessorInfo* v8::internal::ClassLiteralProperty::auto_accessor_info_

Definition at line 2603 of file ast.h.

◆ is_private_

bool v8::internal::ClassLiteralProperty::is_private_
private

Definition at line 2600 of file ast.h.

◆ is_static_

bool v8::internal::ClassLiteralProperty::is_static_
private

Definition at line 2599 of file ast.h.

◆ kind_

Kind v8::internal::ClassLiteralProperty::kind_
private

Definition at line 2598 of file ast.h.

◆ private_or_computed_name_proxy_

VariableProxy* v8::internal::ClassLiteralProperty::private_or_computed_name_proxy_

Definition at line 2602 of file ast.h.

◆ Zone

friend v8::internal::ClassLiteralProperty::Zone
private

Definition at line 2590 of file ast.h.


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