17 references to ConstructorConstraintError
Microsoft.CodeAnalysis.CSharp (17)
Symbols\ConstraintsHelper.cs (17)
1017
var
error = SatisfiesConstructorConstraint(typeArgument.Type);
1021
case
ConstructorConstraintError
.None:
1023
case
ConstructorConstraintError
.NoPublicParameterlessConstructorOrAbstractType:
1027
case
ConstructorConstraintError
.HasRequiredMembers:
1366
private static
ConstructorConstraintError
SatisfiesConstructorConstraint(TypeSymbol typeArgument)
1375
return
ConstructorConstraintError
.None;
1380
return
ConstructorConstraintError
.NoPublicParameterlessConstructorOrAbstractType;
1388
return typeParameter.HasConstructorConstraint || typeParameter.IsValueType ?
ConstructorConstraintError
.None :
ConstructorConstraintError
.NoPublicParameterlessConstructorOrAbstractType;
1396
return
ConstructorConstraintError
.NoPublicParameterlessConstructorOrAbstractType;
1400
private static
ConstructorConstraintError
SatisfiesPublicParameterlessConstructor(NamedTypeSymbol type, bool synthesizedIfMissing)
1412
return
ConstructorConstraintError
.NoPublicParameterlessConstructorOrAbstractType;
1416
return
ConstructorConstraintError
.HasRequiredMembers;
1420
return
ConstructorConstraintError
.None;
1427
(false, _) =>
ConstructorConstraintError
.NoPublicParameterlessConstructorOrAbstractType,
1428
(true, true) =>
ConstructorConstraintError
.HasRequiredMembers,
1429
(true, false) =>
ConstructorConstraintError
.None,