Phasor 3.1.1
Stack VM based Programming Language
Loading...
Searching...
No Matches
Phasor::AST::BlockStmt Struct Reference

Block Statement Node. More...

#include <AST.hpp>

Inheritance diagram for Phasor::AST::BlockStmt:
[legend]
Collaboration diagram for Phasor::AST::BlockStmt:
[legend]

Public Member Functions

 BlockStmt (std::vector< std::unique_ptr< Statement > > stmts)
void print (int indent=0) const override
Public Member Functions inherited from Phasor::AST::Node
virtual ~Node ()=default

Public Attributes

std::vector< std::unique_ptr< Statement > > statements
Public Attributes inherited from Phasor::AST::Node
size_t line = 0
size_t column = 0

Detailed Description

Block Statement Node.

Definition at line 488 of file AST.hpp.

Constructor & Destructor Documentation

◆ BlockStmt()

Phasor::AST::BlockStmt::BlockStmt ( std::vector< std::unique_ptr< Statement > > stmts)
inline

Definition at line 491 of file AST.hpp.

Member Function Documentation

◆ print()

void Phasor::AST::BlockStmt::print ( int indent = 0) const
inlineoverridevirtual

Implements Phasor::AST::Node.

Definition at line 494 of file AST.hpp.

Member Data Documentation

◆ statements

std::vector<std::unique_ptr<Statement> > Phasor::AST::BlockStmt::statements

Definition at line 490 of file AST.hpp.


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