sun::ast::ThrowAST

sun::ast::ThrowAST

class · Source (opens in a new tab)

class sun::ast::ThrowAST : public sun::ast::ExprAST

Transfers an exception value, or rethrows the current catch when empty.

Inherits

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 override

Names the node in syntax-tree visualizations.

forEachChildSlot

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

void sun::ast::ThrowAST::forEachChildSlot(const ChildSlotFn &fn) override

Visits the operand for rewriting and source attribution.

Related: ChildSlotFn

getType

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

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

Identifies this node for compiler dispatch.

Related: ASTNodeType

toString

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

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

Describes the transfer for diagnostics.

Public Fields

value

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

std::unique_ptr<ExprAST> sun::ast::ThrowAST::value

No documentation comment.

Related: ExprAST