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

#include <declarable.h>

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

Public Member Functions

 Namespace (const std::string &name)
 
const std::string & name () const
 
bool IsDefaultNamespace () const
 
bool IsTestNamespace () const
 
- Public Member Functions inherited from v8::internal::torque::Scope
 Scope (Declarable::Kind kind)
 
std::vector< Declarable * > LookupShallow (const QualifiedName &name)
 
std::vector< Declarable * > Lookup (const QualifiedName &name)
 
template<class T >
TAddDeclarable (const std::string &name, T *declarable)
 
const SpecializationRequesterGetSpecializationRequester () const
 
void SetSpecializationRequester (const SpecializationRequester &requester)
 
- Public Member Functions inherited from v8::internal::torque::Declarable
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)
 

Private Attributes

std::string name_
 

Additional Inherited Members

- Public Types inherited from v8::internal::torque::Declarable
enum  Kind {
  kNamespace , kTorqueMacro , kExternMacro , kMethod ,
  kBuiltin , kRuntimeFunction , kIntrinsic , kGenericCallable ,
  kGenericType , kTypeAlias , kExternConstant , kNamespaceConstant
}
 
- Protected Member Functions inherited from v8::internal::torque::Declarable
 Declarable (Kind kind)
 

Detailed Description

Definition at line 217 of file declarable.h.

Constructor & Destructor Documentation

◆ Namespace()

v8::internal::torque::Namespace::Namespace ( const std::string & name)
inlineexplicit

Definition at line 220 of file declarable.h.

Member Function Documentation

◆ IsDefaultNamespace()

bool v8::internal::torque::Namespace::IsDefaultNamespace ( ) const

Definition at line 174 of file declarable.cc.

Here is the call graph for this function:

◆ IsTestNamespace()

bool v8::internal::torque::Namespace::IsTestNamespace ( ) const

Definition at line 178 of file declarable.cc.

Here is the call graph for this function:

◆ name()

const std::string & v8::internal::torque::Namespace::name ( ) const
inline

Definition at line 222 of file declarable.h.

Here is the caller graph for this function:

Member Data Documentation

◆ name_

std::string v8::internal::torque::Namespace::name_
private

Definition at line 227 of file declarable.h.


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