topazc
AST::FuncDeclStmt Class Reference

Statement of functions declaration. More...

#include <ast.hpp>

Inheritance diagram for AST::FuncDeclStmt:
Collaboration diagram for AST::FuncDeclStmt:

Public Member Functions

 FuncDeclStmt (AccessModifier am, std::string n, std::vector< Argument > a, Type rt, std::vector< StmtPtr > b, uint32_t l)
 ~FuncDeclStmt () override=default
Public Member Functions inherited from AST::Stmt
 Stmt (uint32_t l)
virtual ~Stmt ()=default

Public Attributes

AccessModifier access
std::string name
std::vector< Argumentargs
Type ret_type
std::vector< StmtPtrblock
Public Attributes inherited from AST::Stmt
uint32_t line

Detailed Description

Statement of functions declaration.

Definition at line 313 of file ast.hpp.

Constructor & Destructor Documentation

◆ FuncDeclStmt()

AST::FuncDeclStmt::FuncDeclStmt ( AccessModifier am,
std::string n,
std::vector< Argument > a,
Type rt,
std::vector< StmtPtr > b,
uint32_t l )
inline

Definition at line 321 of file ast.hpp.

Here is the call graph for this function:

◆ ~FuncDeclStmt()

AST::FuncDeclStmt::~FuncDeclStmt ( )
overridedefault

Member Data Documentation

◆ access

AccessModifier AST::FuncDeclStmt::access

Access modifier

Definition at line 315 of file ast.hpp.

◆ args

std::vector<Argument> AST::FuncDeclStmt::args

Functions arguments

Definition at line 317 of file ast.hpp.

◆ block

std::vector<StmtPtr> AST::FuncDeclStmt::block

Function block

Definition at line 319 of file ast.hpp.

◆ name

std::string AST::FuncDeclStmt::name

Function name

Definition at line 316 of file ast.hpp.

◆ ret_type

Type AST::FuncDeclStmt::ret_type

Function return type

Definition at line 318 of file ast.hpp.


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