sun::semantic_analysis::DeclarationId
class · Source (opens in a new tab)
class sun::semantic_analysis::DeclarationIdIdentifies a declaration within its owning analysis session.
Public Functions
DeclarationId
DeclarationId(uint64_t value)
public · function · Source (opens in a new tab)
sun::semantic_analysis::DeclarationId::DeclarationId(uint64_t value)Construct an identity allocated by a declaration table.
DeclarationId()=default
public · function · Source (opens in a new tab)
sun::semantic_analysis::DeclarationId::DeclarationId()=defaultConstruct an unassigned identity.
index
public · function · Source (opens in a new tab)
uint64_t sun::semantic_analysis::DeclarationId::index() constReturn the table index; this value is never a portable identity.
operator bool
public · function · Source (opens in a new tab)
sun::semantic_analysis::DeclarationId::operator bool() constReport whether this identity has been assigned.
operator!=
public · function · Source (opens in a new tab)
bool sun::semantic_analysis::DeclarationId::operator!=(DeclarationId other) constReports whether the stored values differ.
Related: DeclarationId
operator<
public · function · Source (opens in a new tab)
bool sun::semantic_analysis::DeclarationId::operator<(DeclarationId other) constOrders values for use in sorted containers.
Related: DeclarationId
operator==
public · function · Source (opens in a new tab)
bool sun::semantic_analysis::DeclarationId::operator==(DeclarationId other) constCompares the stored values for equality.
Related: DeclarationId
Private Fields
value_
private · variable · Source (opens in a new tab)
uint64_t sun::semantic_analysis::DeclarationId::value_ = 0No documentation comment.