17 references to ConstructorConstraintError
Microsoft.CodeAnalysis.CSharp (17)
Symbols\ConstraintsHelper.cs (17)
1095var error = SatisfiesConstructorConstraint(typeArgument.Type); 1099case ConstructorConstraintError.None: 1101case ConstructorConstraintError.NoPublicParameterlessConstructorOrAbstractType: 1105case ConstructorConstraintError.HasRequiredMembers: 1452private static ConstructorConstraintError SatisfiesConstructorConstraint(TypeSymbol typeArgument) 1461return ConstructorConstraintError.None; 1466return ConstructorConstraintError.NoPublicParameterlessConstructorOrAbstractType; 1474return typeParameter.HasConstructorConstraint || typeParameter.IsValueType ? ConstructorConstraintError.None : ConstructorConstraintError.NoPublicParameterlessConstructorOrAbstractType; 1482return ConstructorConstraintError.NoPublicParameterlessConstructorOrAbstractType; 1486private static ConstructorConstraintError SatisfiesPublicParameterlessConstructor(NamedTypeSymbol type, bool synthesizedIfMissing) 1498return ConstructorConstraintError.NoPublicParameterlessConstructorOrAbstractType; 1502return ConstructorConstraintError.HasRequiredMembers; 1506return ConstructorConstraintError.None; 1513(false, _) => ConstructorConstraintError.NoPublicParameterlessConstructorOrAbstractType, 1514(true, true) => ConstructorConstraintError.HasRequiredMembers, 1515(true, false) => ConstructorConstraintError.None,