topazc
AST::VarDeclStmt Class Reference

Statement of variable declaration. More...

#include <ast.hpp>

Inheritance diagram for AST::VarDeclStmt:
Collaboration diagram for AST::VarDeclStmt:

Public Member Functions

 VarDeclStmt (AccessModifier am, Type t, ExprPtr e, std::string n, uint32_t l)
 ~VarDeclStmt () override=default
Public Member Functions inherited from AST::Stmt
 Stmt (uint32_t l)
virtual ~Stmt ()=default

Public Attributes

AccessModifier access
Type type
ExprPtr expr
std::string name
Public Attributes inherited from AST::Stmt
uint32_t line

Detailed Description

Statement of variable declaration.

Definition at line 286 of file ast.hpp.

Constructor & Destructor Documentation

◆ VarDeclStmt()

AST::VarDeclStmt::VarDeclStmt ( AccessModifier am,
Type t,
ExprPtr e,
std::string n,
uint32_t l )
inline

Definition at line 293 of file ast.hpp.

Here is the call graph for this function:

◆ ~VarDeclStmt()

AST::VarDeclStmt::~VarDeclStmt ( )
overridedefault

Member Data Documentation

◆ access

AccessModifier AST::VarDeclStmt::access

Access modifier

Definition at line 288 of file ast.hpp.

◆ expr

ExprPtr AST::VarDeclStmt::expr

Variable initialization expression (maybe nullptr)

Definition at line 290 of file ast.hpp.

◆ name

std::string AST::VarDeclStmt::name

Variable name

Definition at line 291 of file ast.hpp.

◆ type

Type AST::VarDeclStmt::type

Variable type

Definition at line 289 of file ast.hpp.


The documentation for this class was generated from the following file:
  • /mnt/disk_ext4_0/topazlang/include/parser/ast.hpp