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