aul::ast::UnOpExpr Class Referenceabstract

#include <C4AulAST.h>

Inheritance diagram for aul::ast::UnOpExpr:
Collaboration diagram for aul::ast::UnOpExpr:

Public Member Functions

 UnOpExpr (int op, ExprPtr &&operand)
bool has_value () const override
virtual void accept (::aul::AstVisitor *) const =0

Public Attributes

ExprPtr operand
int op
const char * loc = nullptr

Detailed Description

Definition at line 208 of file C4AulAST.h.

Constructor & Destructor Documentation

◆ UnOpExpr()

aul::ast::UnOpExpr::UnOpExpr ( int  op,
ExprPtr &&  operand 

Definition at line 212 of file C4AulAST.h.

212 : op(op), operand(std::move(operand)) {}

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

◆ loc

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

Definition at line 123 of file C4AulAST.h.

◆ op

int aul::ast::UnOpExpr::op

Definition at line 214 of file C4AulAST.h.

◆ operand

ExprPtr aul::ast::UnOpExpr::operand

Definition at line 213 of file C4AulAST.h.

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