Try use struct source for all
This commit is contained in:
parent
eb32ef8e94
commit
9d1e064c3a
|
@ -62,7 +62,7 @@ namespace MapTo
|
||||||
var (source, hintName) = typeDeclarationSyntax switch
|
var (source, hintName) = typeDeclarationSyntax switch
|
||||||
{
|
{
|
||||||
StructDeclarationSyntax => MapStructSource.Generate(mappingContext.Model),
|
StructDeclarationSyntax => MapStructSource.Generate(mappingContext.Model),
|
||||||
ClassDeclarationSyntax => MapClassSource.Generate(mappingContext.Model),
|
ClassDeclarationSyntax => MapStructSource.Generate(mappingContext.Model),
|
||||||
RecordDeclarationSyntax => MapRecordSource.Generate(mappingContext.Model),
|
RecordDeclarationSyntax => MapRecordSource.Generate(mappingContext.Model),
|
||||||
_ => throw new ArgumentOutOfRangeException()
|
_ => throw new ArgumentOutOfRangeException()
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue