aul::ast::AssignmentExpr Class Referenceabstract

#include <C4AulAST.h>

Inheritance diagram for aul::ast::AssignmentExpr:
Collaboration diagram for aul::ast::AssignmentExpr:

Public Member Functions

 AssignmentExpr (ExprPtr &&lhs, ExprPtr &&rhs)
bool has_value () const override
virtual void accept (::aul::AstVisitor *) const =0

Public Attributes

ExprPtr lhs
ExprPtr rhs
const char * loc = nullptr

Detailed Description

Definition at line 226 of file C4AulAST.h.

Constructor & Destructor Documentation

◆ AssignmentExpr()

aul::ast::AssignmentExpr::AssignmentExpr ( ExprPtr &&  lhs,
ExprPtr &&  rhs 

Definition at line 230 of file C4AulAST.h.

230 : lhs(std::move(lhs)), rhs(std::move(rhs)) {}

Member Function Documentation

◆ accept()

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

◆ has_value()

bool aul::ast::Expr::has_value ( ) const

Reimplemented from aul::ast::Stmt.

Definition at line 145 of file C4AulAST.h.

145 { return true; }

Member Data Documentation

◆ lhs

ExprPtr aul::ast::AssignmentExpr::lhs

Definition at line 231 of file C4AulAST.h.

◆ loc

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

Definition at line 123 of file C4AulAST.h.

◆ rhs

ExprPtr aul::ast::AssignmentExpr::rhs

Definition at line 231 of file C4AulAST.h.

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