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