aul::ast::Return Class Referenceabstract

#include <C4AulAST.h>

Inheritance diagram for aul::ast::Return:
Collaboration diagram for aul::ast::Return:

Public Member Functions

 Return (ExprPtr &&value)
virtual bool has_value () const
virtual void accept (::aul::AstVisitor *) const =0

Public Attributes

ExprPtr value
const char * loc = nullptr

Detailed Description

Definition at line 279 of file C4AulAST.h.

Constructor & Destructor Documentation

◆ Return()

aul::ast::Return::Return ( ExprPtr &&  value)

Definition at line 283 of file C4AulAST.h.

283 : value(std::move(value)) {}
ExprPtr value
Definition: C4AulAST.h:284

Member Function Documentation

◆ accept()

virtual void aul::ast::Node::accept ( ::aul::AstVisitor ) const
pure virtualinherited

◆ has_value()

virtual bool aul::ast::Stmt::has_value ( ) const

Reimplemented in aul::ast::Expr.

Definition at line 132 of file C4AulAST.h.

132 { return false; }

Member Data Documentation

◆ loc

const char* aul::ast::Node::loc = nullptr

Definition at line 123 of file C4AulAST.h.

◆ value

ExprPtr aul::ast::Return::value

Definition at line 284 of file C4AulAST.h.

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