17 references to ConstructorConstraintError
Microsoft.CodeAnalysis.CSharp (17)
Symbols\ConstraintsHelper.cs (17)
1122
var
error = SatisfiesConstructorConstraint(typeArgument.Type);
1126
case
ConstructorConstraintError
.None:
1128
case
ConstructorConstraintError
.NoPublicParameterlessConstructorOrAbstractType:
1132
case
ConstructorConstraintError
.HasRequiredMembers:
1481
private static
ConstructorConstraintError
SatisfiesConstructorConstraint(TypeSymbol typeArgument)
1490
return
ConstructorConstraintError
.None;
1495
return
ConstructorConstraintError
.NoPublicParameterlessConstructorOrAbstractType;
1503
return typeParameter.HasConstructorConstraint || typeParameter.IsValueType ?
ConstructorConstraintError
.None :
ConstructorConstraintError
.NoPublicParameterlessConstructorOrAbstractType;
1511
return
ConstructorConstraintError
.NoPublicParameterlessConstructorOrAbstractType;
1515
private static
ConstructorConstraintError
SatisfiesPublicParameterlessConstructor(NamedTypeSymbol type, bool synthesizedIfMissing)
1527
return
ConstructorConstraintError
.NoPublicParameterlessConstructorOrAbstractType;
1531
return
ConstructorConstraintError
.HasRequiredMembers;
1535
return
ConstructorConstraintError
.None;
1542
(false, _) =>
ConstructorConstraintError
.NoPublicParameterlessConstructorOrAbstractType,
1543
(true, true) =>
ConstructorConstraintError
.HasRequiredMembers,
1544
(true, false) =>
ConstructorConstraintError
.None,