sun::ast::CatchClause
struct · Source (opens in a new tab)
struct sun::ast::CatchClauseCatch 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 &&)=defaultCreates an instance with its default state.
CatchClause()=default
public · function · Source (opens in a new tab)
sun::ast::CatchClause::CatchClause()=defaultCreates an instance with its default state.
operator=
public · function · Source (opens in a new tab)
CatchClause & sun::ast::CatchClause::operator=(CatchClause &&)=defaultTransfers 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::bindingNameNo documentation comment.
bindingType
public · variable · Source (opens in a new tab)
std::optional<TypeAnnotation> sun::ast::CatchClause::bindingTypeNo documentation comment.
Related: TypeAnnotation
body
public · variable · Source (opens in a new tab)
std::unique_ptr<BlockExprAST> sun::ast::CatchClause::bodyNo 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 = falseNo documentation comment.
resolvedType
public · variable · Source (opens in a new tab)
sun::types::TypePtr sun::ast::CatchClause::resolvedTypeNo documentation comment.
Related: sun::types::TypePtr