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)
4623
Dim track As
TypeParameterKind
=
TypeParameterKind
.Both
4626
track = track And (Not
TypeParameterKind
.Method)
4633
track = track And (Not
TypeParameterKind
.Type)
4636
If track =
TypeParameterKind
.None Then
4686
Dim leftRefersTo As
TypeParameterKind
= DetectReferencesToGenericParameters(leftParamTypeForGenericityCheck, track, left.Candidate.FixedTypeParameters)
4687
Dim rightRefersTo As
TypeParameterKind
= DetectReferencesToGenericParameters(rightParamTypeForGenericityCheck, track, right.Candidate.FixedTypeParameters)
4690
If (track And
TypeParameterKind
.Method) <> 0 Then
4691
If (leftRefersTo And
TypeParameterKind
.Method) = 0 Then
4692
If (rightRefersTo And
TypeParameterKind
.Method) <> 0 Then
4695
ElseIf (rightRefersTo And
TypeParameterKind
.Method) = 0 Then
4702
track = track And (Not
TypeParameterKind
.Method)
4707
If (track And
TypeParameterKind
.Type) <> 0 Then
4708
If (leftRefersTo And
TypeParameterKind
.Type) = 0 Then
4709
If (rightRefersTo And
TypeParameterKind
.Type) <> 0 Then
4712
ElseIf (rightRefersTo And
TypeParameterKind
.Type) = 0 Then
4719
track = track And (Not
TypeParameterKind
.Type)
4724
If track =
TypeParameterKind
.None Then
4726
Debug.Assert((saveTrack And
TypeParameterKind
.Method) = 0 OrElse (leftHasLeastGenericParameterAgainstMethod AndAlso rightHasLeastGenericParameterAgainstMethod))
4727
Debug.Assert((saveTrack And
TypeParameterKind
.Type) = 0 OrElse (leftHasLeastGenericParameterAgainstType AndAlso rightHasLeastGenericParameterAgainstType))
5013
TypeParameterKind
.Method,
5018
TypeParameterKind
.Method,
5021
If (leftRefersToATypeParameter And
TypeParameterKind
.Method) <> 0 Then
5022
If (rightRefersToATypeParameter And
TypeParameterKind
.Method) = 0 Then
5026
ElseIf (rightRefersToATypeParameter And
TypeParameterKind
.Method) <> 0 Then
5044
track As
TypeParameterKind
,
5046
) As
TypeParameterKind
5047
Dim result As
TypeParameterKind
=
TypeParameterKind
.None
5051
If (track And
TypeParameterKind
.Type) = 0 Then
5056
Return result Or
TypeParameterKind
.Type
5077
track As
TypeParameterKind
,
5079
) As
TypeParameterKind
5082
If (track And
TypeParameterKind
.Type) <> 0 Then
5083
Return
TypeParameterKind
.Type
5087
If (track And
TypeParameterKind
.Method) <> 0 Then
5088
Return
TypeParameterKind
.Method
5091
If (track And
TypeParameterKind
.Type) <> 0 Then
5092
Return
TypeParameterKind
.Type
5097
Return
TypeParameterKind
.None
5102
track As
TypeParameterKind
,
5104
) As
TypeParameterKind