Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

Commit

Permalink
fix simple types to be detected as get only collections
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisdebock committed May 17, 2020
1 parent f8cbb40 commit f36acb3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using MappingGenerator.RoslynHelpers;
using MappingGenerator.RoslynHelpers;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Editing;
using Microsoft.CodeAnalysis.Formatting;
Expand Down Expand Up @@ -33,7 +33,7 @@ private bool ContainsCollectionWithoutSetter(ITypeSymbol type)
{
foreach (var member in type.GetMembers().Where(ObjectHelper.IsPublicPropertySymbol).OfType<IPropertySymbol>())
{
if (ObjectHelper.IsSimpleType(member.Type) && !MappingHelper.IsCollection(member.Type))
if (ObjectHelper.IsSimpleType(member.Type) || !MappingHelper.IsCollection(member.Type))
{
continue;
}
Expand Down

0 comments on commit f36acb3

Please sign in to comment.