2 references to IsUnexpressibleTypeParameterConstraint
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.AbstractInvocationInfo.cs (1)
58
var constraints = typeParameter.ConstraintTypes.Where(ts => !ts.
IsUnexpressibleTypeParameterConstraint
()).ToList();
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (1)
272
var condition2 = typeParameter.ConstraintTypes.Any(static (ts, allowDelegateAndEnumConstraints) => ts.
IsUnexpressibleTypeParameterConstraint
(allowDelegateAndEnumConstraints), allowDelegateAndEnumConstraints);