3 writes to Candidate
Microsoft.CodeAnalysis.VisualBasic (3)
Semantics\OverloadResolution.vb (3)
764
Me.
Candidate
= candidate
769
Me.
Candidate
= candidate
5295
candidate.
Candidate
= candidate.Candidate.Construct(typeArguments)
151 references to Candidate
Microsoft.CodeAnalysis.VisualBasic (151)
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 (121)
1313
Dim priorityInfo As (Source As NamedTypeSymbol, Priority As Integer) = current.
Candidate
.GetOverloadResolutionPriorityInfo()
1396
If existingCandidate.
Candidate
Is newCandidate.
Candidate
Then
1436
Dim operatorResolution As Boolean = newCandidate.
Candidate
.IsOperator
1438
Debug.Assert(newCandidate.
Candidate
.ParameterCount >= argumentCount OrElse newCandidate.IsExpandedParamArrayForm)
1457
Debug.Assert(existingCandidate.
Candidate
.ParameterCount >= argumentCount OrElse existingCandidate.IsExpandedParamArrayForm)
1462
(existingCandidate.
Candidate
.IsExtensionMethod OrElse newCandidate.
Candidate
.IsExtensionMethod) Then
1478
If existingCandidate.
Candidate
.ParameterCount <> newCandidate.
Candidate
.ParameterCount Then
1483
Debug.Assert(argumentCount = existingCandidate.
Candidate
.ParameterCount)
1527
Not (existingCandidate.
Candidate
.IsExtensionMethod OrElse newCandidate.
Candidate
.IsExtensionMethod) Then
1533
If (Not signatureMatch OrElse existingCandidate.
Candidate
.IsExtensionMethod OrElse newCandidate.
Candidate
.IsExtensionMethod) AndAlso
1955
Dim leftReturnsVoid As Boolean = left.
Candidate
.ReturnType.IsVoidType()
1956
Dim rightReturnsVoid As Boolean = right.
Candidate
.ReturnType.IsVoidType()
2173
If left.
Candidate
.ParameterCount <> right.
Candidate
.ParameterCount Then
2176
For k As Integer = 0 To left.
Candidate
.ParameterCount - 1 Step 1
2178
Dim leftType As TypeSymbol = left.
Candidate
.Parameters(k).Type
2179
Dim rightType As TypeSymbol = right.
Candidate
.Parameters(k).Type
2567
right.
Candidate
Is left.
Candidate
Then
2713
Debug.Assert(current.
Candidate
.IsOperator)
2716
Not current.
Candidate
.IsLifted AndAlso
2720
Debug.Assert(contender.
Candidate
.IsOperator)
2723
contender.
Candidate
.IsLifted AndAlso
2724
current.
Candidate
.UnderlyingSymbol Is contender.
Candidate
.UnderlyingSymbol Then
2744
Debug.Assert(current.
Candidate
.IsOperator)
2747
Not current.
Candidate
.IsLifted AndAlso
2751
Debug.Assert(contender.
Candidate
.IsOperator)
2754
contender.
Candidate
.IsLifted AndAlso
2755
current.
Candidate
.UnderlyingSymbol Is contender.
Candidate
.UnderlyingSymbol Then
2765
If IsUnwrappingNullable(conv.Key, arguments(j).Type, current.
Candidate
.Parameters(j).Type) Then
2773
ElseIf IsUnwrappingNullable(conv.Value.ReturnType, current.
Candidate
.Parameters(j).Type, useSiteInfo) Then
2827
If (current.RequiresNarrowingNotFromObject OrElse current.
Candidate
.IsExtensionMethod) Then
2862
If first.
Candidate
.UnderlyingSymbol.Equals(second.
Candidate
.UnderlyingSymbol) Then
2925
Not current.
Candidate
.IsExtensionMethod Then
3043
parameterToArgumentMap = ArrayBuilder(Of Integer).GetInstance(candidate.
Candidate
.ParameterCount, -1)
3072
If Not candidate.
Candidate
.TryGetNamedParamIndex(argumentNames(i), paramIndex) Then
3084
If paramIndex = candidate.
Candidate
.ParameterCount - 1 AndAlso
3085
candidate.
Candidate
.Parameters(paramIndex).IsParamArray Then
3102
If paramIndex = candidate.
Candidate
.ParameterCount - 1 AndAlso
3103
candidate.
Candidate
.Parameters(paramIndex).IsParamArray Then
3114
paramIndex = candidate.
Candidate
.ParameterCount - 1) Then
3139
If Not candidate.
Candidate
.TryGetNamedParamIndex(argumentNames(i), paramIndex) Then
3151
If paramIndex = candidate.
Candidate
.ParameterCount - 1 AndAlso
3152
candidate.
Candidate
.Parameters(paramIndex).IsParamArray Then
3227
Debug.Assert(Not candidate.
Candidate
.UnderlyingSymbol.IsReducedExtensionMethod() OrElse methodOrPropertyGroup.ReceiverOpt IsNot Nothing OrElse TypeOf methodOrPropertyGroup.SyntaxTree Is DummySyntaxTree)
3246
If Not candidate.
Candidate
.IsExtensionMethod Then
3252
Dim candidateSymbol = candidate.
Candidate
.UnderlyingSymbol
3279
Dim candidateIsAProperty As Boolean = (candidate.
Candidate
.UnderlyingSymbol.Kind = SymbolKind.Property)
3281
For paramIndex = 0 To candidate.
Candidate
.ParameterCount - 1 Step 1
3288
Dim param As ParameterSymbol = candidate.
Candidate
.Parameters(paramIndex)
3292
If param.IsParamArray AndAlso paramIndex = candidate.
Candidate
.ParameterCount - 1 Then
3510
optionalArguments = New OptionalArgument(candidate.
Candidate
.ParameterCount - 1) {}
3755
DirectCast(candidate.
Candidate
.UnderlyingSymbol, MethodSymbol).MethodKind = MethodKind.Constructor AndAlso
3756
binder.Compilation.GetWellKnownType(WellKnownType.System_Attribute).IsBaseTypeOf(candidate.
Candidate
.UnderlyingSymbol.ContainingType, useSiteInfo) Then
4254
If typeArguments.Length = 0 AndAlso newCandidate.
Candidate
.Arity > 0 Then
4288
Dim operatorResolution As Boolean = newCandidate.
Candidate
.IsOperator
4290
Debug.Assert(newCandidate.
Candidate
.ParameterCount >= argumentCount OrElse newCandidate.IsExpandedParamArrayForm)
4307
If existingCandidate.
Candidate
Is newCandidate.
Candidate
Then
4349
Debug.Assert(existingCandidate.
Candidate
.ParameterCount >= argumentCount OrElse existingCandidate.IsExpandedParamArrayForm)
4363
If existingCandidate.
Candidate
.ParameterCount <> newCandidate.
Candidate
.ParameterCount Then
4367
Debug.Assert(argumentCount = existingCandidate.
Candidate
.ParameterCount)
4416
Not (existingCandidate.
Candidate
.IsExtensionMethod OrElse newCandidate.
Candidate
.IsExtensionMethod) Then
4423
(signatureMatch AndAlso Not (existingCandidate.
Candidate
.IsExtensionMethod OrElse newCandidate.
Candidate
.IsExtensionMethod))) AndAlso
4490
For j As Integer = 0 To existingCandidate.
Candidate
.ParameterCount - 1 Step 1
4492
Dim existingType As TypeSymbol = existingCandidate.
Candidate
.Parameters(j).Type
4493
Dim newType As TypeSymbol = newCandidate.
Candidate
.Parameters(j).Type
4507
If existingCandidate.
Candidate
.IsLifted Then
4508
If Not newCandidate.
Candidate
.IsLifted Then
4512
ElseIf newCandidate.
Candidate
.IsLifted Then
4513
Debug.Assert(Not existingCandidate.
Candidate
.IsLifted)
4525
Dim existingSymbol As Symbol = existingCandidate.
Candidate
.UnderlyingSymbol
4526
Dim newSymbol As Symbol = newCandidate.
Candidate
.UnderlyingSymbol
4542
If newCandidate.
Candidate
.IsOverriddenBy(existingSymbol) Then
4546
ElseIf existingIsApplicable AndAlso existingCandidate.
Candidate
.IsOverriddenBy(newSymbol) Then
4565
If left.
Candidate
.IsExtensionMethod Then
4566
If Not right.
Candidate
.IsExtensionMethod Then
4573
If left.
Candidate
.PrecedenceLevel < right.
Candidate
.PrecedenceLevel Then
4577
ElseIf left.
Candidate
.PrecedenceLevel > right.
Candidate
.PrecedenceLevel Then
4584
ElseIf right.
Candidate
.IsExtensionMethod Then
4625
If Not (left.
Candidate
.IsGeneric OrElse right.
Candidate
.IsGeneric) Then
4629
If Not ((left.
Candidate
.UnderlyingSymbol.ContainingType.IsOrInGenericType() OrElse
4630
(left.
Candidate
.IsExtensionMethod AndAlso Not left.
Candidate
.FixedTypeParameters.IsNull)) OrElse
4631
(right.
Candidate
.UnderlyingSymbol.ContainingType.IsOrInGenericType() OrElse
4632
(right.
Candidate
.IsExtensionMethod AndAlso Not right.
Candidate
.FixedTypeParameters.IsNull))) Then
4686
Dim leftRefersTo As TypeParameterKind = DetectReferencesToGenericParameters(leftParamTypeForGenericityCheck, track, left.
Candidate
.FixedTypeParameters)
4687
Dim rightRefersTo As TypeParameterKind = DetectReferencesToGenericParameters(rightParamTypeForGenericityCheck, track, right.
Candidate
.FixedTypeParameters)
5001
If Not left.
Candidate
.IsExtensionMethod OrElse Not right.
Candidate
.IsExtensionMethod Then
5007
If Not left.
Candidate
.ReceiverType.IsSameTypeIgnoringAll(right.
Candidate
.ReceiverType) Then
5012
Dim leftRefersToATypeParameter = DetectReferencesToGenericParameters(left.
Candidate
.ReceiverTypeDefinition,
5017
Dim rightRefersToATypeParameter = DetectReferencesToGenericParameters(right.
Candidate
.ReceiverTypeDefinition,
5140
Dim leftType = left.
Candidate
.ReceiverType
5141
Dim rightType = right.
Candidate
.ReceiverType
5203
Dim paramType As TypeSymbol = candidate.
Candidate
.Parameters(paramIndex).Type
5206
paramIndex = candidate.
Candidate
.ParameterCount - 1 AndAlso
5219
Dim param As ParameterSymbol = candidate.
Candidate
.Parameters(paramIndex)
5233
paramIndex = candidate.
Candidate
.ParameterCount - 1 AndAlso
5247
paramIndex = candidate.
Candidate
.ParameterCount - 1) Then
5280
If TypeArgumentInference.Infer(DirectCast(candidate.
Candidate
.UnderlyingSymbol, MethodSymbol),
5295
candidate.Candidate = candidate.
Candidate
.Construct(typeArguments)
5306
candidate.
Candidate
.TypeParameters(i),
5307
DirectCast(candidate.
Candidate
.UnderlyingSymbol, MethodSymbol).OriginalDefinition,
5325
If Not candidate.
Candidate
.IsExtensionMethod Then