23 references to ReferenceType
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Constraints.cs (7)
144if (isForOverride && (constraints & (TypeParameterConstraintKind.ValueType | TypeParameterConstraintKind.ReferenceType)) != 0) 171constraints |= TypeParameterConstraintKind.ReferenceType; 185if (isForOverride && (constraints & (TypeParameterConstraintKind.ValueType | TypeParameterConstraintKind.ReferenceType)) != 0) 231if (isForOverride && (constraints & (TypeParameterConstraintKind.ValueType | TypeParameterConstraintKind.ReferenceType)) != 0) 346(constraints & (TypeParameterConstraintKind.ReferenceType | TypeParameterConstraintKind.ValueType)) != (TypeParameterConstraintKind.ReferenceType | TypeParameterConstraintKind.ValueType)); 518if ((constraints & (TypeParameterConstraintKind.ReferenceType)) != 0)
Symbols\Source\SourceNamedTypeSymbol.cs (5)
680(constraint.Constraints & TypeParameterConstraintKind.AllReferenceTypeKinds) == TypeParameterConstraintKind.ReferenceType); 706if ((mergedKind & TypeParameterConstraintKind.ReferenceType) != 0 && (clause.Constraints & TypeParameterConstraintKind.ReferenceType) != 0) 713if (clause1Constraints == TypeParameterConstraintKind.ReferenceType) // Oblivious 718else if (clause2Constraints != TypeParameterConstraintKind.ReferenceType)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (3)
195(args.declaredConstraints[typeParameterSymbol.Ordinal].Constraints & (TypeParameterConstraintKind.ReferenceType | TypeParameterConstraintKind.Default)) == 0; 658switch (declaredConstraints[i].Constraints & (TypeParameterConstraintKind.ReferenceType | TypeParameterConstraintKind.ValueType | TypeParameterConstraintKind.Default)) 660case TypeParameterConstraintKind.ReferenceType:
Symbols\Source\SourceTypeParameterSymbol.cs (3)
443if ((constraints & TypeParameterConstraintKind.ReferenceType) == 0) 532return (constraints & TypeParameterConstraintKind.ReferenceType) != 0; 713return (constraints & TypeParameterConstraintKind.ReferenceType) != 0;
Symbols\Source\TypeParameterConstraintClause.cs (5)
26NullableReferenceType = ReferenceType | 0x10, 27NotNullableReferenceType = ReferenceType | 0x20, 32/// Cannot be combined with <see cref="ReferenceType"/>, <see cref="ValueType"/> or <see cref="Unmanaged"/>. 64AllNonNullableKinds = ReferenceType | ValueType | Constructor | Unmanaged | AllowByRefLike, 109case TypeParameterConstraintKind.ReferenceType: