27 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) 304(constraints & (TypeParameterConstraintKind.ReferenceType | TypeParameterConstraintKind.ValueType)) != (TypeParameterConstraintKind.ReferenceType | TypeParameterConstraintKind.ValueType)); 476if ((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 (1)
206(args.declaredConstraints[typeParameterSymbol.Ordinal].Constraints & (TypeParameterConstraintKind.ReferenceType | TypeParameterConstraintKind.Default)) == 0;
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (2)
95switch (declaredConstraints[i].Constraints & (TypeParameterConstraintKind.ReferenceType | TypeParameterConstraintKind.ValueType | TypeParameterConstraintKind.Default)) 97case TypeParameterConstraintKind.ReferenceType:
Symbols\Source\SourceTypeParameterSymbol.cs (3)
437if ((constraints & TypeParameterConstraintKind.ReferenceType) == 0) 517return (constraints & TypeParameterConstraintKind.ReferenceType) != 0; 650return (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"/>. 63AllNonNullableKinds = ReferenceType | ValueType | Constructor | Unmanaged, 108case TypeParameterConstraintKind.ReferenceType:
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Symbols\GenericConstraintTests.cs (2)
39CheckConstraints(type.TypeParameters[0], TypeParameterConstraintKind.ReferenceType, false, true, "object", "object"); 5257CheckConstraints(@namespace.GetMember<NamedTypeSymbol>("R2").TypeParameters[0], TypeParameterConstraintKind.ReferenceType, false, true, "A", "A", "A");
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CompilationTestUtils.cs (2)
178constraints |= TypeParameterConstraintKind.ReferenceType; 196constraints |= TypeParameterConstraintKind.ReferenceType;