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