OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
aul::ast::Return Class Referenceabstract

#include <C4AulAST.h>

Inheritance diagram for aul::ast::Return:
[legend]
Collaboration diagram for aul::ast::Return:
[legend]

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

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

Definition at line 283 of file C4AulAST.h.

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

Member Function Documentation

virtual void aul::ast::Node::accept ( ::aul::AstVisitor ) const
pure virtualinherited
virtual bool aul::ast::Stmt::has_value ( ) const
inlinevirtualinherited

Reimplemented in aul::ast::Expr.

Definition at line 132 of file C4AulAST.h.

132 { return false; }

Member Data Documentation

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

Definition at line 123 of file C4AulAST.h.

ExprPtr aul::ast::Return::value

Definition at line 284 of file C4AulAST.h.


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