Try use struct source for all

This commit is contained in:
Wvader 2021-12-06 16:47:16 +00:00
parent eb32ef8e94
commit 9d1e064c3a
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ namespace MapTo
var (source, hintName) = typeDeclarationSyntax switch
{
StructDeclarationSyntax => MapStructSource.Generate(mappingContext.Model),
ClassDeclarationSyntax => MapClassSource.Generate(mappingContext.Model),
ClassDeclarationSyntax => MapStructSource.Generate(mappingContext.Model),
RecordDeclarationSyntax => MapRecordSource.Generate(mappingContext.Model),
_ => throw new ArgumentOutOfRangeException()
};