46 references to TypeParameterKind
Microsoft.CodeAnalysis.VisualBasic (46)
Semantics\Operators.vb (4)
2798
If DetectReferencesToGenericParameters(definition.Parameters(0).Type,
TypeParameterKind
.Type, BitVector.Null) <>
TypeParameterKind
.None Then
2802
If DetectReferencesToGenericParameters(definition.ReturnType,
TypeParameterKind
.Type, BitVector.Null) <>
TypeParameterKind
.None Then
Semantics\OverloadResolution.vb (42)
4223
Dim track As
TypeParameterKind
=
TypeParameterKind
.Both
4226
track = track And (Not
TypeParameterKind
.Method)
4233
track = track And (Not
TypeParameterKind
.Type)
4236
If track =
TypeParameterKind
.None Then
4286
Dim leftRefersTo As
TypeParameterKind
= DetectReferencesToGenericParameters(leftParamTypeForGenericityCheck, track, left.Candidate.FixedTypeParameters)
4287
Dim rightRefersTo As
TypeParameterKind
= DetectReferencesToGenericParameters(rightParamTypeForGenericityCheck, track, right.Candidate.FixedTypeParameters)
4290
If (track And
TypeParameterKind
.Method) <> 0 Then
4291
If (leftRefersTo And
TypeParameterKind
.Method) = 0 Then
4292
If (rightRefersTo And
TypeParameterKind
.Method) <> 0 Then
4295
ElseIf (rightRefersTo And
TypeParameterKind
.Method) = 0 Then
4302
track = track And (Not
TypeParameterKind
.Method)
4307
If (track And
TypeParameterKind
.Type) <> 0 Then
4308
If (leftRefersTo And
TypeParameterKind
.Type) = 0 Then
4309
If (rightRefersTo And
TypeParameterKind
.Type) <> 0 Then
4312
ElseIf (rightRefersTo And
TypeParameterKind
.Type) = 0 Then
4319
track = track And (Not
TypeParameterKind
.Type)
4324
If track =
TypeParameterKind
.None Then
4326
Debug.Assert((saveTrack And
TypeParameterKind
.Method) = 0 OrElse (leftHasLeastGenericParameterAgainstMethod AndAlso rightHasLeastGenericParameterAgainstMethod))
4327
Debug.Assert((saveTrack And
TypeParameterKind
.Type) = 0 OrElse (leftHasLeastGenericParameterAgainstType AndAlso rightHasLeastGenericParameterAgainstType))
4613
TypeParameterKind
.Method,
4618
TypeParameterKind
.Method,
4621
If (leftRefersToATypeParameter And
TypeParameterKind
.Method) <> 0 Then
4622
If (rightRefersToATypeParameter And
TypeParameterKind
.Method) = 0 Then
4626
ElseIf (rightRefersToATypeParameter And
TypeParameterKind
.Method) <> 0 Then
4644
track As
TypeParameterKind
,
4646
) As
TypeParameterKind
4647
Dim result As
TypeParameterKind
=
TypeParameterKind
.None
4651
If (track And
TypeParameterKind
.Type) = 0 Then
4656
Return result Or
TypeParameterKind
.Type
4677
track As
TypeParameterKind
,
4679
) As
TypeParameterKind
4682
If (track And
TypeParameterKind
.Type) <> 0 Then
4683
Return
TypeParameterKind
.Type
4687
If (track And
TypeParameterKind
.Method) <> 0 Then
4688
Return
TypeParameterKind
.Method
4691
If (track And
TypeParameterKind
.Type) <> 0 Then
4692
Return
TypeParameterKind
.Type
4697
Return
TypeParameterKind
.None
4702
track As
TypeParameterKind
,
4704
) As
TypeParameterKind