d6bdd08002
the typechecker project can collect all the top level types from a file, which is pretty cool I think (except for pointers, those aren't implemented yet...)
16 lines
497 B
C#
16 lines
497 B
C#
namespace meowlang.typechecker;
|
|
|
|
public record GenericSliceTypeDescription : GenericTypeDescription
|
|
{
|
|
private readonly GenericTypeId _elementType;
|
|
|
|
public GenericSliceTypeDescription(List<string> genericNames, GenericTypeId elementType) : base(genericNames)
|
|
{
|
|
_elementType = elementType;
|
|
}
|
|
|
|
public override SliceTypeDescription Concretize(List<Guid> typeParams)
|
|
{
|
|
return new SliceTypeDescription(ConcretizeGenericType(_elementType, typeParams));
|
|
}
|
|
} |