sun::ast::ThrowAST
class · Source (opens in a new tab)
class sun::ast::ThrowAST : public sun::ast::ExprASTTransfers an exception value, or rethrows the current catch when empty.
Inherits
- sun::ast::ExprAST (public)
Public Functions
ThrowAST
public · function · Source (opens in a new tab)
sun::ast::ThrowAST::ThrowAST(std::unique_ptr< ExprAST > value)Takes ownership of the optional thrown expression.
Related: ExprAST
dotLabel
public · function · Source (opens in a new tab)
std::string sun::ast::ThrowAST::dotLabel() const overrideNames the node in syntax-tree visualizations.
forEachChildSlot
public · function · Source (opens in a new tab)
void sun::ast::ThrowAST::forEachChildSlot(const ChildSlotFn &fn) overrideVisits the operand for rewriting and source attribution.
Related: ChildSlotFn
getType
public · function · Source (opens in a new tab)
ASTNodeType sun::ast::ThrowAST::getType() const overrideIdentifies this node for compiler dispatch.
Related: ASTNodeType
toString
public · function · Source (opens in a new tab)
std::string sun::ast::ThrowAST::toString() const overrideDescribes the transfer for diagnostics.
Public Fields
value
public · variable · Source (opens in a new tab)
std::unique_ptr<ExprAST> sun::ast::ThrowAST::valueNo documentation comment.
Related: ExprAST