Skip to content

Commit f6f7322

Browse files
committed
add HasValueTypeConstraint check
1 parent 0d48c3f commit f6f7322

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/SourceGeneration.Reflection.SourceGenerator/ReflectionSourceGenerator.Parse.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ private static SourceTypeInfo ParseClassType(INamedTypeSymbol typeSymbol)
188188
{
189189
Name = x.Name,
190190
HasUnmanagedTypeConstraint = x.HasUnmanagedTypeConstraint,
191+
HasValueTypeConstraint = x.HasValueTypeConstraint,
191192
HasTypeParameterInConstraintTypes = x.ConstraintTypes.Any(x => x.HasTypeParameter()),
192193
ConstraintTypes = x.ConstraintTypes.Select(x => x.ToDisplayString(GlobalTypeDisplayFormat)).ToArray(),
193194
}).ToArray(),

0 commit comments

Comments
 (0)