sun::ast::BoolLiteralAST
class · Source (opens in a new tab)
class sun::ast::BoolLiteralAST : public sun::ast::ExprASTA boolean constant written in source code.
Inherits
- sun::ast::ExprAST (public)
Public Functions
BoolLiteralAST
public · function · Source (opens in a new tab)
sun::ast::BoolLiteralAST::BoolLiteralAST(bool Value)Creates this syntax node and takes ownership of any supplied child expressions.
dotLabel
public · function · Source (opens in a new tab)
std::string sun::ast::BoolLiteralAST::dotLabel() const overrideReturns the node label used in syntax-tree graph visualizations.
getType
public · function · Source (opens in a new tab)
ASTNodeType sun::ast::BoolLiteralAST::getType() const overrideReturns the syntax-node kind used to dispatch tree visitors.
Related: ASTNodeType
getValue
public · function · Source (opens in a new tab)
bool sun::ast::BoolLiteralAST::getValue() constReturns the value represented by this object.
toString
public · function · Source (opens in a new tab)
std::string sun::ast::BoolLiteralAST::toString() const overrideReturns a readable representation for diagnostics and debugging.
Private Fields
Value
private · variable · Source (opens in a new tab)
bool sun::ast::BoolLiteralAST::ValueNo documentation comment.