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