sun::ast::CatchClause

sun::ast::CatchClause

struct · Source (opens in a new tab)

struct sun::ast::CatchClause

Catch clause for try-catch expression Represents: catch (name: ref Type) { body }.

Public Functions

CatchClause

CatchClause(CatchClause &&)=default

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

sun::ast::CatchClause::CatchClause(CatchClause &&)=default

Creates an instance with its default state.

CatchClause()=default

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

sun::ast::CatchClause::CatchClause()=default

Creates an instance with its default state.

operator=

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

CatchClause & sun::ast::CatchClause::operator=(CatchClause &&)=default

Transfers the stored state from another instance during move assignment.

Related: CatchClause

Public Fields

bindingName

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

std::string sun::ast::CatchClause::bindingName

No documentation comment.

bindingType

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

std::optional<TypeAnnotation> sun::ast::CatchClause::bindingType

No documentation comment.

Related: TypeAnnotation

body

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

std::unique_ptr<BlockExprAST> sun::ast::CatchClause::body

No documentation comment.

Related: BlockExprAST

declaration

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

sun::semantic_analysis::DeclarationIdentity sun::ast::CatchClause::declaration {}

No documentation comment.

Related: sun::semantic_analysis::DeclarationIdentity

isCatchAll

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

bool sun::ast::CatchClause::isCatchAll = false

No documentation comment.

resolvedType

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

sun::types::TypePtr sun::ast::CatchClause::resolvedType

No documentation comment.

Related: sun::types::TypePtr