sun::ast::EnumVariantDecl

sun::ast::EnumVariantDecl

struct · Source (opens in a new tab)

struct sun::ast::EnumVariantDecl

Enum variant declaration: Red, Circle(f64), Rect(f64, f64).

Public Functions

hasPayload

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

bool sun::ast::EnumVariantDecl::hasPayload() const

Reports 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::doc

No documentation comment.

hasExplicitValue

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

bool sun::ast::EnumVariantDecl::hasExplicitValue = false

No documentation comment.

location

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

sun::support::Position sun::ast::EnumVariantDecl::location

No documentation comment.

Related: sun::support::Position

name

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

std::string sun::ast::EnumVariantDecl::name

No documentation comment.

payloadTypes

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

std::vector<TypeAnnotation> sun::ast::EnumVariantDecl::payloadTypes

No documentation comment.

Related: TypeAnnotation

value

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

int64_t sun::ast::EnumVariantDecl::value

No documentation comment.