22 references to TypeParameterConstraintKind
Microsoft.CodeAnalysis.VisualBasic (22)
Symbols\ConstraintsHelper.vb (3)
110
Case
TypeParameterConstraintKind
.ReferenceType
127
Case
TypeParameterConstraintKind
.ValueType
144
Case
TypeParameterConstraintKind
.None
Symbols\Metadata\PE\PETypeParameterSymbol.vb (3)
171
constraintsBuilder.Add(New TypeParameterConstraint(
TypeParameterConstraintKind
.Constructor, Nothing))
175
constraintsBuilder.Add(New TypeParameterConstraint(
TypeParameterConstraintKind
.ReferenceType, Nothing))
179
constraintsBuilder.Add(New TypeParameterConstraint(
TypeParameterConstraintKind
.ValueType, Nothing))
Symbols\Source\SourceNamedTypeSymbol.vb (2)
898
Private Shared Function GetConstraintKind(constraints As ImmutableArray(Of TypeParameterConstraint)) As
TypeParameterConstraintKind
899
Dim kind =
TypeParameterConstraintKind
.None
Symbols\TypeParameterConstraint.vb (14)
15
Public Sub New(kind As
TypeParameterConstraintKind
, loc As Location)
17
Debug.Assert((kind =
TypeParameterConstraintKind
.Constructor) OrElse
18
(kind =
TypeParameterConstraintKind
.ReferenceType) OrElse
19
(kind =
TypeParameterConstraintKind
.ValueType))
23
Me.New(
TypeParameterConstraintKind
.None, type, loc)
27
Private Sub New(kind As
TypeParameterConstraintKind
, type As TypeSymbol, loc As Location)
39
Public ReadOnly Kind As
TypeParameterConstraintKind
45
Return Kind =
TypeParameterConstraintKind
.Constructor
51
Return Kind =
TypeParameterConstraintKind
.ReferenceType
57
Return Kind =
TypeParameterConstraintKind
.ValueType
73
Private Shared Function ToSyntaxKind(kind As
TypeParameterConstraintKind
) As SyntaxKind
75
Case
TypeParameterConstraintKind
.Constructor
77
Case
TypeParameterConstraintKind
.ReferenceType
79
Case
TypeParameterConstraintKind
.ValueType