3 writes to Candidate
Microsoft.CodeAnalysis.VisualBasic (3)
Semantics\OverloadResolution.vb (3)
716
Me.
Candidate
= candidate
721
Me.
Candidate
= candidate
4895
candidate.
Candidate
= candidate.Candidate.Construct(typeArguments)
134 references to Candidate
Microsoft.CodeAnalysis.VisualBasic (134)
Binding\Binder_Attributes.vb (1)
318
methodSym = DirectCast(methodResult.
Candidate
.UnderlyingSymbol, MethodSymbol)
Binding\Binder_Delegates.vb (3)
636
Dim targetMethodSymbol = DirectCast(analysisResult.
Candidate
.UnderlyingSymbol, MethodSymbol)
710
analysisResult.
Candidate
.UnderlyingSymbol))
785
Dim bestCandidate As OverloadResolution.Candidate = bestResult.
Candidate
Binding\Binder_Invocation.vb (10)
833
Dim candidate = bestResult.
Candidate
838
ReportDiagnostic(diagnostics, target, GetInaccessibleErrorInfo(bestResult.
Candidate
.UnderlyingSymbol))
1378
singleCandidate = singleCandidateAnalysisResult.
Candidate
1994
Dim candidate As OverloadResolution.Candidate = candidateAnalysisResult.
Candidate
2638
Dim paramCount As Integer = candidate.
Candidate
.ParameterCount
2679
paramIndex = candidate.
Candidate
.ParameterCount - 1) Then
2691
Dim candidateIsAProperty As Boolean = (candidate.
Candidate
.UnderlyingSymbol.Kind = SymbolKind.Property)
2695
Dim param As ParameterSymbol = candidate.
Candidate
.Parameters(paramIndex)
2702
If candidate.IsExpandedParamArrayForm AndAlso paramIndex = candidate.
Candidate
.ParameterCount - 1 Then
2726
If argument IsNot Nothing AndAlso paramIndex = candidate.
Candidate
.ParameterCount - 1 AndAlso
Binding\Binder_ObjectInitializer.vb (3)
473
ReportDiagnosticsIfObsoleteOrNotSupported(diagnostics, methodResult.
Candidate
.UnderlyingSymbol, node)
495
ImmutableArray.Create(Of Symbol)(methodResult.
Candidate
.UnderlyingSymbol),
499
Dim constructorSymbol As MethodSymbol = DirectCast(methodResult.
Candidate
.UnderlyingSymbol, MethodSymbol)
Binding\Binder_Operators.vb (8)
302
userDefinedOperator.BestResult.Value.
Candidate
,
605
DirectCast(bestCandidate.
Candidate
.UnderlyingSymbol, MethodSymbol)),
613
If bestCandidate.
Candidate
.IsLifted Then
680
Dim bitwiseCandidate As OverloadResolution.Candidate = bitwiseAnalysis.
Candidate
732
Dim checkCandidate As OverloadResolution.Candidate = leftCheckOperator.BestResult.Value.
Candidate
1166
userDefinedOperator.BestResult.Value.
Candidate
,
1256
DirectCast(bestCandidate.
Candidate
.UnderlyingSymbol, MethodSymbol)),
1264
If bestCandidate.
Candidate
.IsLifted Then
Binding\Binder_Query.vb (2)
1994
Dim method = DirectCast(results.BestResult.Value.
Candidate
.UnderlyingSymbol, MethodSymbol)
2068
Dim method = DirectCast(results.BestResult.Value.
Candidate
.UnderlyingSymbol, MethodSymbol)
Binding\Binder_Statements.vb (1)
3295
Dim bestCandidate As OverloadResolution.Candidate = userDefinedOperator.BestResult.Value.
Candidate
Compilation\MethodResolutionResult.vb (1)
57
Return DirectCast(_candidate.
Candidate
.UnderlyingSymbol, TMember)
Semantics\Conversions.vb (1)
1508
If results.BestResult.Value.
Candidate
.IsLifted Then
Semantics\OverloadResolution.vb (104)
1595
Dim leftReturnsVoid As Boolean = left.
Candidate
.ReturnType.IsVoidType()
1596
Dim rightReturnsVoid As Boolean = right.
Candidate
.ReturnType.IsVoidType()
1813
If left.
Candidate
.ParameterCount <> right.
Candidate
.ParameterCount Then
1816
For k As Integer = 0 To left.
Candidate
.ParameterCount - 1 Step 1
1818
Dim leftType As TypeSymbol = left.
Candidate
.Parameters(k).Type
1819
Dim rightType As TypeSymbol = right.
Candidate
.Parameters(k).Type
2207
right.
Candidate
Is left.
Candidate
Then
2353
Debug.Assert(current.
Candidate
.IsOperator)
2356
Not current.
Candidate
.IsLifted AndAlso
2360
Debug.Assert(contender.
Candidate
.IsOperator)
2363
contender.
Candidate
.IsLifted AndAlso
2364
current.
Candidate
.UnderlyingSymbol Is contender.
Candidate
.UnderlyingSymbol Then
2384
Debug.Assert(current.
Candidate
.IsOperator)
2387
Not current.
Candidate
.IsLifted AndAlso
2391
Debug.Assert(contender.
Candidate
.IsOperator)
2394
contender.
Candidate
.IsLifted AndAlso
2395
current.
Candidate
.UnderlyingSymbol Is contender.
Candidate
.UnderlyingSymbol Then
2405
If IsUnwrappingNullable(conv.Key, arguments(j).Type, current.
Candidate
.Parameters(j).Type) Then
2413
ElseIf IsUnwrappingNullable(conv.Value.ReturnType, current.
Candidate
.Parameters(j).Type, useSiteInfo) Then
2467
If (current.RequiresNarrowingNotFromObject OrElse current.
Candidate
.IsExtensionMethod) Then
2502
If first.
Candidate
.UnderlyingSymbol.Equals(second.
Candidate
.UnderlyingSymbol) Then
2565
Not current.
Candidate
.IsExtensionMethod Then
2683
parameterToArgumentMap = ArrayBuilder(Of Integer).GetInstance(candidate.
Candidate
.ParameterCount, -1)
2712
If Not candidate.
Candidate
.TryGetNamedParamIndex(argumentNames(i), paramIndex) Then
2724
If paramIndex = candidate.
Candidate
.ParameterCount - 1 AndAlso
2725
candidate.
Candidate
.Parameters(paramIndex).IsParamArray Then
2742
If paramIndex = candidate.
Candidate
.ParameterCount - 1 AndAlso
2743
candidate.
Candidate
.Parameters(paramIndex).IsParamArray Then
2754
paramIndex = candidate.
Candidate
.ParameterCount - 1) Then
2779
If Not candidate.
Candidate
.TryGetNamedParamIndex(argumentNames(i), paramIndex) Then
2791
If paramIndex = candidate.
Candidate
.ParameterCount - 1 AndAlso
2792
candidate.
Candidate
.Parameters(paramIndex).IsParamArray Then
2867
Debug.Assert(Not candidate.
Candidate
.UnderlyingSymbol.IsReducedExtensionMethod() OrElse methodOrPropertyGroup.ReceiverOpt IsNot Nothing OrElse TypeOf methodOrPropertyGroup.SyntaxTree Is DummySyntaxTree)
2886
If Not candidate.
Candidate
.IsExtensionMethod Then
2892
Dim candidateSymbol = candidate.
Candidate
.UnderlyingSymbol
2919
Dim candidateIsAProperty As Boolean = (candidate.
Candidate
.UnderlyingSymbol.Kind = SymbolKind.Property)
2921
For paramIndex = 0 To candidate.
Candidate
.ParameterCount - 1 Step 1
2928
Dim param As ParameterSymbol = candidate.
Candidate
.Parameters(paramIndex)
2932
If param.IsParamArray AndAlso paramIndex = candidate.
Candidate
.ParameterCount - 1 Then
3150
optionalArguments = New OptionalArgument(candidate.
Candidate
.ParameterCount - 1) {}
3395
DirectCast(candidate.
Candidate
.UnderlyingSymbol, MethodSymbol).MethodKind = MethodKind.Constructor AndAlso
3396
binder.Compilation.GetWellKnownType(WellKnownType.System_Attribute).IsBaseTypeOf(candidate.
Candidate
.UnderlyingSymbol.ContainingType, useSiteInfo) Then
3887
If typeArguments.Length = 0 AndAlso newCandidate.
Candidate
.Arity > 0 Then
3920
Dim operatorResolution As Boolean = newCandidate.
Candidate
.IsOperator
3922
Debug.Assert(newCandidate.
Candidate
.ParameterCount >= argumentCount OrElse newCandidate.IsExpandedParamArrayForm)
3939
If existingCandidate.
Candidate
Is newCandidate.
Candidate
Then
3981
Debug.Assert(existingCandidate.
Candidate
.ParameterCount >= argumentCount OrElse existingCandidate.IsExpandedParamArrayForm)
4013
If existingCandidate.
Candidate
.ParameterCount <> newCandidate.
Candidate
.ParameterCount Then
4017
Debug.Assert(argumentCount = existingCandidate.
Candidate
.ParameterCount)
4021
If existingCandidate.
Candidate
.IsLifted Then
4022
If Not newCandidate.
Candidate
.IsLifted Then
4026
ElseIf newCandidate.
Candidate
.IsLifted Then
4027
Debug.Assert(Not existingCandidate.
Candidate
.IsLifted)
4032
For j As Integer = 0 To existingCandidate.
Candidate
.ParameterCount - 1 Step 1
4034
Dim existingType As TypeSymbol = existingCandidate.
Candidate
.Parameters(j).Type
4035
Dim newType As TypeSymbol = newCandidate.
Candidate
.Parameters(j).Type
4077
Not (existingCandidate.
Candidate
.IsExtensionMethod OrElse newCandidate.
Candidate
.IsExtensionMethod) Then
4125
Dim existingSymbol As Symbol = existingCandidate.
Candidate
.UnderlyingSymbol
4126
Dim newSymbol As Symbol = newCandidate.
Candidate
.UnderlyingSymbol
4142
If newCandidate.
Candidate
.IsOverriddenBy(existingSymbol) Then
4146
ElseIf existingIsApplicable AndAlso existingCandidate.
Candidate
.IsOverriddenBy(newSymbol) Then
4165
If left.
Candidate
.IsExtensionMethod Then
4166
If Not right.
Candidate
.IsExtensionMethod Then
4173
If left.
Candidate
.PrecedenceLevel < right.
Candidate
.PrecedenceLevel Then
4177
ElseIf left.
Candidate
.PrecedenceLevel > right.
Candidate
.PrecedenceLevel Then
4184
ElseIf right.
Candidate
.IsExtensionMethod Then
4225
If Not (left.
Candidate
.IsGeneric OrElse right.
Candidate
.IsGeneric) Then
4229
If Not ((left.
Candidate
.UnderlyingSymbol.ContainingType.IsOrInGenericType() OrElse
4230
(left.
Candidate
.IsExtensionMethod AndAlso Not left.
Candidate
.FixedTypeParameters.IsNull)) OrElse
4231
(right.
Candidate
.UnderlyingSymbol.ContainingType.IsOrInGenericType() OrElse
4232
(right.
Candidate
.IsExtensionMethod AndAlso Not right.
Candidate
.FixedTypeParameters.IsNull))) Then
4286
Dim leftRefersTo As TypeParameterKind = DetectReferencesToGenericParameters(leftParamTypeForGenericityCheck, track, left.
Candidate
.FixedTypeParameters)
4287
Dim rightRefersTo As TypeParameterKind = DetectReferencesToGenericParameters(rightParamTypeForGenericityCheck, track, right.
Candidate
.FixedTypeParameters)
4601
If Not left.
Candidate
.IsExtensionMethod OrElse Not right.
Candidate
.IsExtensionMethod Then
4607
If Not left.
Candidate
.ReceiverType.IsSameTypeIgnoringAll(right.
Candidate
.ReceiverType) Then
4612
Dim leftRefersToATypeParameter = DetectReferencesToGenericParameters(left.
Candidate
.ReceiverTypeDefinition,
4617
Dim rightRefersToATypeParameter = DetectReferencesToGenericParameters(right.
Candidate
.ReceiverTypeDefinition,
4740
Dim leftType = left.
Candidate
.ReceiverType
4741
Dim rightType = right.
Candidate
.ReceiverType
4803
Dim paramType As TypeSymbol = candidate.
Candidate
.Parameters(paramIndex).Type
4806
paramIndex = candidate.
Candidate
.ParameterCount - 1 AndAlso
4819
Dim param As ParameterSymbol = candidate.
Candidate
.Parameters(paramIndex)
4833
paramIndex = candidate.
Candidate
.ParameterCount - 1 AndAlso
4847
paramIndex = candidate.
Candidate
.ParameterCount - 1) Then
4880
If TypeArgumentInference.Infer(DirectCast(candidate.
Candidate
.UnderlyingSymbol, MethodSymbol),
4895
candidate.Candidate = candidate.
Candidate
.Construct(typeArguments)
4906
candidate.
Candidate
.TypeParameters(i),
4907
DirectCast(candidate.
Candidate
.UnderlyingSymbol, MethodSymbol).OriginalDefinition,
4925
If Not candidate.
Candidate
.IsExtensionMethod Then