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