sun::types::NominalType

sun::types::NominalType

class · Source (opens in a new tab)

class sun::types::NominalType : public sun::types::Type

A nominal type's identity within its analysis session.

Inherits

Inherited by

Public Functions

belongsTo

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

bool sun::types::NominalType::belongsTo(const DeclarationTable &table) const

Check that a boundary is using this nominal type's owning session.

Related: DeclarationTable

getDeclarationId

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

DeclarationId sun::types::NominalType::getDeclarationId() const

Return the declaration identity within this analysis session.

Related: DeclarationId

sourceDeclaration

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

sun::semantic_analysis::DeclarationId sun::types::NominalType::sourceDeclaration(const DeclarationTable &table) const

Return the original template, or this declaration for a source type.

Related: DeclarationId, DeclarationTable

Public Friends

sun::semantic_analysis::TypeRegistry

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

friend class sun::semantic_analysis::TypeRegistry

No documentation comment.

Related: sun::semantic_analysis::TypeRegistry

Protected Functions

sameDeclaration

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

bool sun::types::NominalType::sameDeclaration(const NominalType &other) const

Reports whether both nominal types refer to the same declaration identity.

Related: NominalType

sameSession

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

bool sun::types::NominalType::sameSession(const NominalType &other) const

Reports whether both nominal types belong to the same analysis session.

Related: NominalType

Private Fields

declarationId_

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

DeclarationId sun::types::NominalType::declarationId_

No documentation comment.

Related: DeclarationId

declarationSession_

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

std::shared_ptr<const int> sun::types::NominalType::declarationSession_

No documentation comment.