sun::ast::BreakAST

sun::ast::BreakAST

class · Source (opens in a new tab)

class sun::ast::BreakAST : public sun::ast::ExprAST

Break statement: break; Exits the innermost enclosing loop.

Inherits

Public Functions

BreakAST

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

sun::ast::BreakAST::BreakAST()=default

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::BreakAST::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::BreakAST::getType() const override

Returns the syntax-node kind used to dispatch tree visitors.

Related: ASTNodeType

toString

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

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

Returns a readable representation for diagnostics and debugging.