sun::semantic_analysis::DeclarationId

sun::semantic_analysis::DeclarationId

class · Source (opens in a new tab)

class sun::semantic_analysis::DeclarationId

Identifies 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()=default

Construct an unassigned identity.

index

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

uint64_t sun::semantic_analysis::DeclarationId::index() const

Return 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() const

Report whether this identity has been assigned.

operator!=

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

bool sun::semantic_analysis::DeclarationId::operator!=(DeclarationId other) const

Reports whether the stored values differ.

Related: DeclarationId

operator<

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

bool sun::semantic_analysis::DeclarationId::operator<(DeclarationId other) const

Orders 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) const

Compares 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_ = 0

No documentation comment.