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

#include <ast.h>

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

Public Member Functions

 VarDeclarationStatement (SourcePosition pos, bool const_qualified, Identifier *name, std::optional< TypeExpression * > type, std::optional< Expression * > initializer=std::nullopt)
 
- Public Member Functions inherited from v8::internal::torque::Statement
 Statement (Kind kind, SourcePosition pos)
 
- Public Member Functions inherited from v8::internal::torque::AstNode
 AstNode (Kind kind, SourcePosition pos)
 
virtual ~AstNode ()=default
 

Public Attributes

bool const_qualified
 
Identifiername
 
std::optional< TypeExpression * > type
 
std::optional< Expression * > initializer
 
- Public Attributes inherited from v8::internal::torque::AstNode
const Kind kind
 
SourcePosition pos
 

Additional Inherited Members

- Public Types inherited from v8::internal::torque::AstNode
enum class  Kind { ENUM_ITEM }
 

Detailed Description

Definition at line 761 of file ast.h.

Constructor & Destructor Documentation

◆ VarDeclarationStatement()

v8::internal::torque::VarDeclarationStatement::VarDeclarationStatement ( SourcePosition pos,
bool const_qualified,
Identifier * name,
std::optional< TypeExpression * > type,
std::optional< Expression * > initializer = std::nullopt )
inline

Definition at line 763 of file ast.h.

Member Data Documentation

◆ const_qualified

bool v8::internal::torque::VarDeclarationStatement::const_qualified

Definition at line 771 of file ast.h.

◆ initializer

std::optional<Expression*> v8::internal::torque::VarDeclarationStatement::initializer

Definition at line 774 of file ast.h.

◆ name

Identifier* v8::internal::torque::VarDeclarationStatement::name

Definition at line 772 of file ast.h.

◆ type

std::optional<TypeExpression*> v8::internal::torque::VarDeclarationStatement::type

Definition at line 773 of file ast.h.


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