OpenClonk
aul::ast::BoolLit Class Referenceabstract

#include <C4AulAST.h>

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

Public Member Functions

 BoolLit (bool value)
 
bool has_value () const override
 
virtual void accept (::aul::AstVisitor *) const =0
 

Public Attributes

bool value
 
const char * loc = nullptr
 

Detailed Description

Definition at line 168 of file C4AulAST.h.

Constructor & Destructor Documentation

◆ BoolLit()

aul::ast::BoolLit::BoolLit ( bool  value)
inlineexplicit

Definition at line 172 of file C4AulAST.h.

172 : value(value) {}

Member Function Documentation

◆ accept()

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

◆ has_value()

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

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
inherited

Definition at line 123 of file C4AulAST.h.

◆ value

bool aul::ast::BoolLit::value

Definition at line 173 of file C4AulAST.h.


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