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