sun::types::NominalType
class · Source (opens in a new tab)
class sun::types::NominalType : public sun::types::TypeA nominal type's identity within its analysis session.
Inherits
- sun::types::Type (public)
Inherited by
- sun::types::ClassType (public)
- sun::types::EnumType (public)
- sun::types::InterfaceType (public)
Public Functions
belongsTo
public · function · Source (opens in a new tab)
bool sun::types::NominalType::belongsTo(const DeclarationTable &table) constCheck 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() constReturn 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) constReturn 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::TypeRegistryNo 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) constReports 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) constReports 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.