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