23 references to ReferenceType
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Constraints.cs (7)
143if (isForOverride && (constraints & (TypeParameterConstraintKind.ValueType | TypeParameterConstraintKind.ReferenceType)) != 0) 170constraints |= TypeParameterConstraintKind.ReferenceType; 184if (isForOverride && (constraints & (TypeParameterConstraintKind.ValueType | TypeParameterConstraintKind.ReferenceType)) != 0) 230if (isForOverride && (constraints & (TypeParameterConstraintKind.ValueType | TypeParameterConstraintKind.ReferenceType)) != 0) 345(constraints & (TypeParameterConstraintKind.ReferenceType | TypeParameterConstraintKind.ValueType)) != (TypeParameterConstraintKind.ReferenceType | TypeParameterConstraintKind.ValueType)); 517if ((constraints & (TypeParameterConstraintKind.ReferenceType)) != 0)
Symbols\Source\SourceNamedTypeSymbol.cs (5)
675(constraint.Constraints & TypeParameterConstraintKind.AllReferenceTypeKinds) == TypeParameterConstraintKind.ReferenceType); 701if ((mergedKind & TypeParameterConstraintKind.ReferenceType) != 0 && (clause.Constraints & TypeParameterConstraintKind.ReferenceType) != 0) 708if (clause1Constraints == TypeParameterConstraintKind.ReferenceType) // Oblivious 713else if (clause2Constraints != TypeParameterConstraintKind.ReferenceType)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (3)
194(args.declaredConstraints[typeParameterSymbol.Ordinal].Constraints & (TypeParameterConstraintKind.ReferenceType | TypeParameterConstraintKind.Default)) == 0; 648switch (declaredConstraints[i].Constraints & (TypeParameterConstraintKind.ReferenceType | TypeParameterConstraintKind.ValueType | TypeParameterConstraintKind.Default)) 650case TypeParameterConstraintKind.ReferenceType:
Symbols\Source\SourceTypeParameterSymbol.cs (3)
442if ((constraints & TypeParameterConstraintKind.ReferenceType) == 0) 531return (constraints & TypeParameterConstraintKind.ReferenceType) != 0; 673return (constraints & TypeParameterConstraintKind.ReferenceType) != 0;
Symbols\Source\TypeParameterConstraintClause.cs (5)
27NullableReferenceType = ReferenceType | 0x10, 28NotNullableReferenceType = ReferenceType | 0x20, 33/// Cannot be combined with <see cref="ReferenceType"/>, <see cref="ValueType"/> or <see cref="Unmanaged"/>. 65AllNonNullableKinds = ReferenceType | ValueType | Constructor | Unmanaged | AllowByRefLike, 110case TypeParameterConstraintKind.ReferenceType: