17 references to ConstructorConstraintError
Microsoft.CodeAnalysis.CSharp (17)
Symbols\ConstraintsHelper.cs (17)
1110
var
error = SatisfiesConstructorConstraint(typeArgument.Type);
1114
case
ConstructorConstraintError
.None:
1116
case
ConstructorConstraintError
.NoPublicParameterlessConstructorOrAbstractType:
1120
case
ConstructorConstraintError
.HasRequiredMembers:
1467
private static
ConstructorConstraintError
SatisfiesConstructorConstraint(TypeSymbol typeArgument)
1476
return
ConstructorConstraintError
.None;
1481
return
ConstructorConstraintError
.NoPublicParameterlessConstructorOrAbstractType;
1489
return typeParameter.HasConstructorConstraint || typeParameter.IsValueType ?
ConstructorConstraintError
.None :
ConstructorConstraintError
.NoPublicParameterlessConstructorOrAbstractType;
1497
return
ConstructorConstraintError
.NoPublicParameterlessConstructorOrAbstractType;
1501
private static
ConstructorConstraintError
SatisfiesPublicParameterlessConstructor(NamedTypeSymbol type, bool synthesizedIfMissing)
1513
return
ConstructorConstraintError
.NoPublicParameterlessConstructorOrAbstractType;
1517
return
ConstructorConstraintError
.HasRequiredMembers;
1521
return
ConstructorConstraintError
.None;
1528
(false, _) =>
ConstructorConstraintError
.NoPublicParameterlessConstructorOrAbstractType,
1529
(true, true) =>
ConstructorConstraintError
.HasRequiredMembers,
1530
(true, false) =>
ConstructorConstraintError
.None,