11 references to ReferenceType
Microsoft.CodeAnalysis.VisualBasic (9)
Binding\Binder_Constraints.vb (4)
62If (constraints And TypeParameterConstraintKind.ReferenceType) <> 0 Then 67constraints = constraints Or TypeParameterConstraintKind.ReferenceType 68constraintsBuilder.Add(New TypeParameterConstraint(TypeParameterConstraintKind.ReferenceType, syntax.GetLocation())) 76ElseIf (constraints And TypeParameterConstraintKind.ReferenceType) <> 0 Then
Symbols\ConstraintsHelper.vb (1)
110Case TypeParameterConstraintKind.ReferenceType
Symbols\Metadata\PE\PETypeParameterSymbol.vb (1)
160constraintsBuilder.Add(New TypeParameterConstraint(TypeParameterConstraintKind.ReferenceType, Nothing))
Symbols\TypeParameterConstraint.vb (3)
18(kind = TypeParameterConstraintKind.ReferenceType) OrElse 51Return Kind = TypeParameterConstraintKind.ReferenceType 77Case TypeParameterConstraintKind.ReferenceType
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (2)
SymbolsTests\GenericConstraintTests.vb (2)
3749CheckConstraints([namespace].GetMember(Of NamedTypeSymbol)("R2").TypeParameters(0), TypeParameterConstraintKind.ReferenceType, "A") 5555Assert.Equal((constraints And TypeParameterConstraintKind.ReferenceType) <> 0, typeParameter.HasReferenceTypeConstraint)