sun::ast::BoolLiteralAST

sun::ast::BoolLiteralAST

class · Source (opens in a new tab)

class sun::ast::BoolLiteralAST : public sun::ast::ExprAST

A boolean constant written in source code.

Inherits

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 override

Returns the node label used in syntax-tree graph visualizations.

getType

public · function · Source (opens in a new tab)

ASTNodeType sun::ast::BoolLiteralAST::getType() const override

Returns 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() const

Returns the value represented by this object.

toString

public · function · Source (opens in a new tab)

std::string sun::ast::BoolLiteralAST::toString() const override

Returns a readable representation for diagnostics and debugging.

Private Fields

Value

private · variable · Source (opens in a new tab)

bool sun::ast::BoolLiteralAST::Value

No documentation comment.