Phasor 3.3.0
Stack VM based Programming Language
Loading...
Searching...
No Matches
Phasor::AST::ReturnStmt Struct Reference

Return Statement Node. More...

#include <AST.hpp>

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

Public Member Functions

 ReturnStmt (std::unique_ptr< Expression > val)
void print (int indent=0) const override
Public Member Functions inherited from Phasor::AST::Node
virtual ~Node ()=default

Public Attributes

std::unique_ptr< Expressionvalue
Public Attributes inherited from Phasor::AST::Node
size_t line = 0
size_t column = 0

Detailed Description

Return Statement Node.

Definition at line 511 of file AST.hpp.

Constructor & Destructor Documentation

◆ ReturnStmt()

Phasor::AST::ReturnStmt::ReturnStmt ( std::unique_ptr< Expression > val)
inline

Definition at line 514 of file AST.hpp.

Member Function Documentation

◆ print()

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

Implements Phasor::AST::Node.

Definition at line 517 of file AST.hpp.

Member Data Documentation

◆ value

std::unique_ptr<Expression> Phasor::AST::ReturnStmt::value

Definition at line 513 of file AST.hpp.


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