sun::ast::EnumVariantDecl
struct · Source (opens in a new tab)
struct sun::ast::EnumVariantDeclEnum variant declaration: Red, Circle(f64), Rect(f64, f64).
Public Functions
hasPayload
public · function · Source (opens in a new tab)
bool sun::ast::EnumVariantDecl::hasPayload() constReports whether this object has payload.
Public Fields
declaration
public · variable · Source (opens in a new tab)
sun::semantic_analysis::DeclarationIdentity sun::ast::EnumVariantDecl::declaration {}No documentation comment.
Related: sun::semantic_analysis::DeclarationIdentity
doc
public · variable · Source (opens in a new tab)
std::string sun::ast::EnumVariantDecl::docNo documentation comment.
hasExplicitValue
public · variable · Source (opens in a new tab)
bool sun::ast::EnumVariantDecl::hasExplicitValue = falseNo documentation comment.
location
public · variable · Source (opens in a new tab)
sun::support::Position sun::ast::EnumVariantDecl::locationNo documentation comment.
Related: sun::support::Position
name
public · variable · Source (opens in a new tab)
std::string sun::ast::EnumVariantDecl::nameNo documentation comment.
payloadTypes
public · variable · Source (opens in a new tab)
std::vector<TypeAnnotation> sun::ast::EnumVariantDecl::payloadTypesNo documentation comment.
Related: TypeAnnotation
value
public · variable · Source (opens in a new tab)
int64_t sun::ast::EnumVariantDecl::valueNo documentation comment.