TypeSystem: make typeClassInfo() public

This commit is contained in:
Kamil Śliwak 2023-09-11 14:39:35 +02:00
parent 9f7764c215
commit 086c912c65

View File

@ -136,12 +136,14 @@ public:
{
return m_typeClasses.at(_class.m_index).typeVariable;
}
private:
friend class TypeEnvironment;
TypeClassInfo const& typeClassInfo(TypeClass _class) const
{
return m_typeClasses.at(_class.m_index);
}
private:
friend class TypeEnvironment;
size_t m_numTypeVariables = 0;
std::map<PrimitiveType, TypeConstructor> m_primitiveTypeConstructors;
std::map<PrimitiveClass, TypeClass> m_primitiveTypeClasses;