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

#include <declarable.h>

Inheritance diagram for v8::internal::torque::Declarable:
Collaboration diagram for v8::internal::torque::Declarable:

Public Types

enum  Kind {
  kNamespace , kTorqueMacro , kExternMacro , kMethod ,
  kBuiltin , kRuntimeFunction , kIntrinsic , kGenericCallable ,
  kGenericType , kTypeAlias , kExternConstant , kNamespaceConstant
}
 

Public Member Functions

virtual ~Declarable ()=default
 
Kind kind () const
 
bool IsNamespace () const
 
bool IsMacro () const
 
bool IsTorqueMacro () const
 
bool IsMethod () const
 
bool IsExternMacro () const
 
bool IsIntrinsic () const
 
bool IsBuiltin () const
 
bool IsRuntimeFunction () const
 
bool IsGenericCallable () const
 
bool IsGenericType () const
 
bool IsTypeAlias () const
 
bool IsExternConstant () const
 
bool IsNamespaceConstant () const
 
bool IsValue () const
 
bool IsScope () const
 
bool IsCallable () const
 
virtual const char * type_name () const
 
ScopeParentScope () const
 
SourcePosition Position () const
 
void SetPosition (const SourcePosition &position)
 
SourcePosition IdentifierPosition () const
 
void SetIdentifierPosition (const SourcePosition &position)
 
bool IsUserDefined () const
 
void SetIsUserDefined (bool is_user_defined)
 

Protected Member Functions

 Declarable (Kind kind)
 

Private Attributes

const Kind kind_
 
Scope *const parent_scope_ = CurrentScope::Get()
 
SourcePosition position_ = CurrentSourcePosition::Get()
 
SourcePosition identifier_position_ = SourcePosition::Invalid()
 
bool is_user_defined_ = true
 

Detailed Description

Definition at line 54 of file declarable.h.

Member Enumeration Documentation

◆ Kind

Enumerator
kNamespace 
kTorqueMacro 
kExternMacro 
kMethod 
kBuiltin 
kRuntimeFunction 
kIntrinsic 
kGenericCallable 
kGenericType 
kTypeAlias 
kExternConstant 
kNamespaceConstant 

Definition at line 57 of file declarable.h.

Constructor & Destructor Documentation

◆ ~Declarable()

virtual v8::internal::torque::Declarable::~Declarable ( )
virtualdefault

◆ Declarable()

v8::internal::torque::Declarable::Declarable ( Kind kind)
inlineexplicitprotected

Definition at line 117 of file declarable.h.

Member Function Documentation

◆ IdentifierPosition()

SourcePosition v8::internal::torque::Declarable::IdentifierPosition ( ) const
inline

Definition at line 103 of file declarable.h.

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

◆ IsBuiltin()

bool v8::internal::torque::Declarable::IsBuiltin ( ) const
inline

Definition at line 78 of file declarable.h.

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

◆ IsCallable()

bool v8::internal::torque::Declarable::IsCallable ( ) const
inline

Definition at line 87 of file declarable.h.

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

◆ IsExternConstant()

bool v8::internal::torque::Declarable::IsExternConstant ( ) const
inline

Definition at line 83 of file declarable.h.

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

◆ IsExternMacro()

bool v8::internal::torque::Declarable::IsExternMacro ( ) const
inline

Definition at line 76 of file declarable.h.

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

◆ IsGenericCallable()

bool v8::internal::torque::Declarable::IsGenericCallable ( ) const
inline

Definition at line 80 of file declarable.h.

Here is the call graph for this function:

◆ IsGenericType()

bool v8::internal::torque::Declarable::IsGenericType ( ) const
inline

Definition at line 81 of file declarable.h.

Here is the call graph for this function:

◆ IsIntrinsic()

bool v8::internal::torque::Declarable::IsIntrinsic ( ) const
inline

Definition at line 77 of file declarable.h.

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

◆ IsMacro()

bool v8::internal::torque::Declarable::IsMacro ( ) const
inline

Definition at line 73 of file declarable.h.

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

◆ IsMethod()

bool v8::internal::torque::Declarable::IsMethod ( ) const
inline

Definition at line 75 of file declarable.h.

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

◆ IsNamespace()

bool v8::internal::torque::Declarable::IsNamespace ( ) const
inline

Definition at line 72 of file declarable.h.

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

◆ IsNamespaceConstant()

bool v8::internal::torque::Declarable::IsNamespaceConstant ( ) const
inline

Definition at line 84 of file declarable.h.

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

◆ IsRuntimeFunction()

bool v8::internal::torque::Declarable::IsRuntimeFunction ( ) const
inline

Definition at line 79 of file declarable.h.

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

◆ IsScope()

bool v8::internal::torque::Declarable::IsScope ( ) const
inline

Definition at line 86 of file declarable.h.

Here is the call graph for this function:

◆ IsTorqueMacro()

bool v8::internal::torque::Declarable::IsTorqueMacro ( ) const
inline

Definition at line 74 of file declarable.h.

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

◆ IsTypeAlias()

bool v8::internal::torque::Declarable::IsTypeAlias ( ) const
inline

Definition at line 82 of file declarable.h.

Here is the call graph for this function:

◆ IsUserDefined()

bool v8::internal::torque::Declarable::IsUserDefined ( ) const
inline

Definition at line 111 of file declarable.h.

◆ IsValue()

bool v8::internal::torque::Declarable::IsValue ( ) const
inline

Definition at line 85 of file declarable.h.

Here is the call graph for this function:

◆ kind()

Kind v8::internal::torque::Declarable::kind ( ) const
inline

Definition at line 71 of file declarable.h.

Here is the caller graph for this function:

◆ ParentScope()

Scope * v8::internal::torque::Declarable::ParentScope ( ) const
inline

Definition at line 92 of file declarable.h.

Here is the caller graph for this function:

◆ Position()

SourcePosition v8::internal::torque::Declarable::Position ( ) const
inline

Definition at line 96 of file declarable.h.

Here is the caller graph for this function:

◆ SetIdentifierPosition()

void v8::internal::torque::Declarable::SetIdentifierPosition ( const SourcePosition & position)
inline

Definition at line 107 of file declarable.h.

Here is the caller graph for this function:

◆ SetIsUserDefined()

void v8::internal::torque::Declarable::SetIsUserDefined ( bool is_user_defined)
inline

Definition at line 112 of file declarable.h.

Here is the caller graph for this function:

◆ SetPosition()

void v8::internal::torque::Declarable::SetPosition ( const SourcePosition & position)
inline

Definition at line 97 of file declarable.h.

Here is the caller graph for this function:

◆ type_name()

virtual const char * v8::internal::torque::Declarable::type_name ( ) const
inlinevirtual

Definition at line 91 of file declarable.h.

Here is the caller graph for this function:

Member Data Documentation

◆ identifier_position_

SourcePosition v8::internal::torque::Declarable::identifier_position_ = SourcePosition::Invalid()
private

Definition at line 123 of file declarable.h.

◆ is_user_defined_

bool v8::internal::torque::Declarable::is_user_defined_ = true
private

Definition at line 124 of file declarable.h.

◆ kind_

const Kind v8::internal::torque::Declarable::kind_
private

Definition at line 120 of file declarable.h.

◆ parent_scope_

Scope* const v8::internal::torque::Declarable::parent_scope_ = CurrentScope::Get()
private

Definition at line 121 of file declarable.h.

◆ position_

SourcePosition v8::internal::torque::Declarable::position_ = CurrentSourcePosition::Get()
private

Definition at line 122 of file declarable.h.


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