27 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)
304
(constraints & (TypeParameterConstraintKind.
ReferenceType
| TypeParameterConstraintKind.ValueType)) != (TypeParameterConstraintKind.
ReferenceType
| TypeParameterConstraintKind.ValueType));
476
if ((constraints & (TypeParameterConstraintKind.
ReferenceType
)) != 0)
Symbols\Source\SourceNamedTypeSymbol.cs (5)
680
(constraint.Constraints & TypeParameterConstraintKind.AllReferenceTypeKinds) == TypeParameterConstraintKind.
ReferenceType
);
706
if ((mergedKind & TypeParameterConstraintKind.
ReferenceType
) != 0 && (clause.Constraints & TypeParameterConstraintKind.
ReferenceType
) != 0)
713
if (clause1Constraints == TypeParameterConstraintKind.
ReferenceType
) // Oblivious
718
else if (clause2Constraints != TypeParameterConstraintKind.
ReferenceType
)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
206
(args.declaredConstraints[typeParameterSymbol.Ordinal].Constraints & (TypeParameterConstraintKind.
ReferenceType
| TypeParameterConstraintKind.Default)) == 0;
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (2)
95
switch (declaredConstraints[i].Constraints & (TypeParameterConstraintKind.
ReferenceType
| TypeParameterConstraintKind.ValueType | TypeParameterConstraintKind.Default))
97
case TypeParameterConstraintKind.
ReferenceType
:
Symbols\Source\SourceTypeParameterSymbol.cs (3)
437
if ((constraints & TypeParameterConstraintKind.
ReferenceType
) == 0)
517
return (constraints & TypeParameterConstraintKind.
ReferenceType
) != 0;
650
return (constraints & TypeParameterConstraintKind.
ReferenceType
) != 0;
Symbols\Source\TypeParameterConstraintClause.cs (5)
27
NullableReferenceType =
ReferenceType
| 0x10,
28
NotNullableReferenceType =
ReferenceType
| 0x20,
33
/// Cannot be combined with <see cref="
ReferenceType
"/>, <see cref="ValueType"/> or <see cref="Unmanaged"/>.
63
AllNonNullableKinds =
ReferenceType
| ValueType | Constructor | Unmanaged,
108
case TypeParameterConstraintKind.
ReferenceType
:
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\GenericConstraintTests.cs (2)
39
CheckConstraints(type.TypeParameters[0], TypeParameterConstraintKind.
ReferenceType
, false, true, "object", "object");
5257
CheckConstraints(@namespace.GetMember<NamedTypeSymbol>("R2").TypeParameters[0], TypeParameterConstraintKind.
ReferenceType
, false, true, "A", "A", "A");
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CompilationTestUtils.cs (2)
178
constraints |= TypeParameterConstraintKind.
ReferenceType
;
196
constraints |= TypeParameterConstraintKind.
ReferenceType
;