167 references to CandidateAnalysisResultState
Microsoft.CodeAnalysis.VisualBasic (167)
Binding\Binder_Delegates.vb (7)
551Dim bestCandidatesState As OverloadResolution.CandidateAnalysisResultState = bestCandidates(0).State 553If bestCandidatesState = VisualBasic.OverloadResolution.CandidateAnalysisResultState.Applicable Then 567(bestCandidatesState = OverloadResolution.CandidateAnalysisResultState.ArgumentCountMismatch OrElse 568bestCandidatesState = OverloadResolution.CandidateAnalysisResultState.ArgumentMismatch) Then 592If bestCandidatesState = OverloadResolution.CandidateAnalysisResultState.HasUseSiteError OrElse 593bestCandidatesState = OverloadResolution.CandidateAnalysisResultState.HasUnsupportedMetadata OrElse 594bestCandidatesState = OverloadResolution.CandidateAnalysisResultState.Ambiguous Then
Binding\Binder_Invocation.vb (25)
1360Dim state = OverloadResolution.CandidateAnalysisResultState.Count 1413Case VisualBasic.OverloadResolution.CandidateAnalysisResultState.HasUseSiteError, OverloadResolution.CandidateAnalysisResultState.HasUnsupportedMetadata 1440Case VisualBasic.OverloadResolution.CandidateAnalysisResultState.Ambiguous 1445Case OverloadResolution.CandidateAnalysisResultState.BadGenericArity 1485Case OverloadResolution.CandidateAnalysisResultState.ArgumentCountMismatch 1521Case OverloadResolution.CandidateAnalysisResultState.ArgumentMismatch, 1522OverloadResolution.CandidateAnalysisResultState.GenericConstraintsViolated 1564Case OverloadResolution.CandidateAnalysisResultState.TypeInferenceFailed 1591Case OverloadResolution.CandidateAnalysisResultState.Applicable 1676Const Applicable = OverloadResolution.CandidateAnalysisResultState.Applicable 1677Const ArgumentMismatch = OverloadResolution.CandidateAnalysisResultState.ArgumentMismatch 1678Const GenericConstraintsViolated = OverloadResolution.CandidateAnalysisResultState.GenericConstraintsViolated 1679Const TypeInferenceFailed = OverloadResolution.CandidateAnalysisResultState.TypeInferenceFailed 1680Const ArgumentCountMismatch = OverloadResolution.CandidateAnalysisResultState.ArgumentCountMismatch 1681Const BadGenericArity = OverloadResolution.CandidateAnalysisResultState.BadGenericArity 1682Const Ambiguous = OverloadResolution.CandidateAnalysisResultState.Ambiguous 1683Const HasUseSiteError = OverloadResolution.CandidateAnalysisResultState.HasUseSiteError 1684Const HasUnsupportedMetadata = OverloadResolution.CandidateAnalysisResultState.HasUnsupportedMetadata 1686Dim preference(OverloadResolution.CandidateAnalysisResultState.Count - 1) As Integer 2003If candidateAnalysisResult.State = VisualBasic.OverloadResolution.CandidateAnalysisResultState.HasUseSiteError OrElse 2004candidateAnalysisResult.State = VisualBasic.OverloadResolution.CandidateAnalysisResultState.HasUnsupportedMetadata Then 2199If candidate.IsGeneric AndAlso candidateAnalysisResult.State = OverloadResolution.CandidateAnalysisResultState.TypeInferenceFailed Then 2270If candidateAnalysisResult.State = OverloadResolution.CandidateAnalysisResultState.GenericConstraintsViolated Then 2632Debug.Assert(candidate.State = OverloadResolution.CandidateAnalysisResultState.Applicable)
Compilation\MethodResolutionResult.vb (15)
20Applicable = OverloadResolution.CandidateAnalysisResultState.Applicable 22HasUseSiteError = OverloadResolution.CandidateAnalysisResultState.HasUseSiteError 23Ambiguous = OverloadResolution.CandidateAnalysisResultState.Ambiguous 24BadGenericArity = OverloadResolution.CandidateAnalysisResultState.BadGenericArity 25ArgumentCountMismatch = OverloadResolution.CandidateAnalysisResultState.ArgumentCountMismatch 26TypeInferenceFailed = OverloadResolution.CandidateAnalysisResultState.TypeInferenceFailed 27ArgumentMismatch = OverloadResolution.CandidateAnalysisResultState.ArgumentMismatch 28GenericConstraintsViolated = OverloadResolution.CandidateAnalysisResultState.GenericConstraintsViolated 29RequiresNarrowing = OverloadResolution.CandidateAnalysisResultState.RequiresNarrowing 30RequiresNarrowingNotFromObject = OverloadResolution.CandidateAnalysisResultState.RequiresNarrowingNotFromObject 31ExtensionMethodVsInstanceMethod = OverloadResolution.CandidateAnalysisResultState.ExtensionMethodVsInstanceMethod 32Shadowed = OverloadResolution.CandidateAnalysisResultState.Shadowed 33LessApplicable = OverloadResolution.CandidateAnalysisResultState.LessApplicable 46Debug.Assert(Not isValid OrElse candidate.State = OverloadResolution.CandidateAnalysisResultState.Applicable) 66If _candidate.State = OverloadResolution.CandidateAnalysisResultState.HasUnsupportedMetadata Then
Semantics\Operators.vb (2)
3175candidates.Add(New CandidateAnalysisResult(New OperatorCandidate(method), CandidateAnalysisResultState.HasUnsupportedMetadata)) 3186candidates.Add(New CandidateAnalysisResult(New OperatorCandidate(method), CandidateAnalysisResultState.HasUseSiteError))
Semantics\OverloadResolution.vb (118)
662Public Property State As CandidateAnalysisResultState 664Return CType(_smallFields And SmallFieldMask.State, CandidateAnalysisResultState) 666Set(value As CandidateAnalysisResultState) 715Public Sub New(candidate As Candidate, state As CandidateAnalysisResultState) 722Me.State = CandidateAnalysisResultState.Applicable 785If current.State = CandidateAnalysisResultState.Applicable Then 984If candidate.State = CandidateAnalysisResultState.TypeInferenceFailed Then 1200If current.State = CandidateAnalysisResultState.Applicable Then 1202current.State = CandidateAnalysisResultState.RequiresNarrowing 1270If contender.State <> CandidateAnalysisResultState.Applicable Then 1274contender.State = CandidateAnalysisResultState.LessApplicable 1305If candidates(i).State <> CandidateAnalysisResultState.Applicable Then 1373If contender.State <> CandidateAnalysisResultState.Applicable Then 1405If contender.State <> CandidateAnalysisResultState.Applicable Then 1445If left.State <> CandidateAnalysisResultState.Applicable Then 1452If right.State <> CandidateAnalysisResultState.Applicable Then 1460right.State = CandidateAnalysisResultState.Shadowed 1465left.State = CandidateAnalysisResultState.Shadowed 1632If current.State = CandidateAnalysisResultState.Applicable Then 1649If current.State <> CandidateAnalysisResultState.Applicable Then 1656current.State = CandidateAnalysisResultState.Shadowed 1726If current.State = CandidateAnalysisResultState.Applicable Then 1756If candidates(i).State = CandidateAnalysisResultState.Applicable Then 1780If left.State <> CandidateAnalysisResultState.Applicable Then 1787If right.State <> CandidateAnalysisResultState.Applicable Then 1836right.State = CandidateAnalysisResultState.Shadowed 1839left.State = CandidateAnalysisResultState.Shadowed 1846If left.State = CandidateAnalysisResultState.Applicable Then 1859If current.State = CandidateAnalysisResultState.Applicable Then 1876If current.State <> CandidateAnalysisResultState.Applicable Then 1883current.State = CandidateAnalysisResultState.Shadowed 2189If left.State <> CandidateAnalysisResultState.Applicable OrElse 2205If right.State <> CandidateAnalysisResultState.Applicable OrElse 2355If current.State = CandidateAnalysisResultState.Applicable AndAlso 2362If contender.State = CandidateAnalysisResultState.Applicable AndAlso 2386If current.State = CandidateAnalysisResultState.Applicable AndAlso 2393If contender.State = CandidateAnalysisResultState.Applicable AndAlso 2421current.State = CandidateAnalysisResultState.Shadowed 2430contender.State = CandidateAnalysisResultState.Shadowed 2466If current.State = CandidateAnalysisResultState.Applicable Then 2468current.State = CandidateAnalysisResultState.ExtensionMethodVsLateBinding 2497If first.State = CandidateAnalysisResultState.Applicable Then 2501If second.State = CandidateAnalysisResultState.Applicable Then 2508second.State = CandidateAnalysisResultState.Shadowed 2512first.State = CandidateAnalysisResultState.Shadowed 2563If current.State = CandidateAnalysisResultState.Applicable AndAlso 2606If current.State <> CandidateAnalysisResultState.Applicable Then 2616If current.State = CandidateAnalysisResultState.Applicable Then 2635If current.State = CandidateAnalysisResultState.Applicable AndAlso current.IsIllegalInAttribute Then 2642current.State = CandidateAnalysisResultState.ArgumentMismatch 2681Debug.Assert(candidate.State = CandidateAnalysisResultState.Applicable) 2715candidate.State = CandidateAnalysisResultState.ArgumentMismatch 2727candidate.State = CandidateAnalysisResultState.ArgumentMismatch 2746candidate.State = CandidateAnalysisResultState.ArgumentMismatch 2774candidate.State = CandidateAnalysisResultState.ArgumentMismatch 2782candidate.State = CandidateAnalysisResultState.ArgumentMismatch 2794candidate.State = CandidateAnalysisResultState.ArgumentMismatch 2803candidate.State = CandidateAnalysisResultState.ArgumentMismatch 2814candidate.State = CandidateAnalysisResultState.ArgumentMismatch 2866Debug.Assert(candidate.State = CandidateAnalysisResultState.Applicable) 2878If candidate.State <> CandidateAnalysisResultState.Applicable Then 2909candidate.State = CandidateAnalysisResultState.GenericConstraintsViolated 2922If candidate.State <> CandidateAnalysisResultState.Applicable AndAlso 2936candidate.State = CandidateAnalysisResultState.ArgumentMismatch 2960candidate.State = CandidateAnalysisResultState.ArgumentMismatch 2973candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3003candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3016candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3025candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3034candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3091candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3100candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3106candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3228candidate.State = CandidateAnalysisResultState.ArgumentMismatch ' Possible only with user-defined conversions, I think. 3242candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3265candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3295candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3305candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3361candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3539Dim applicableCount As Integer = If(info.State = CandidateAnalysisResultState.Applicable, 1, 0) 3556If info.State <> CandidateAnalysisResultState.Applicable Then 3575If info.Candidate Is Nothing OrElse info.State = CandidateAnalysisResultState.Ambiguous Then 3590If info2.Candidate Is Nothing OrElse info2.State = CandidateAnalysisResultState.Ambiguous Then 3629info = New QuickApplicabilityInfo(info.Candidate, CandidateAnalysisResultState.Ambiguous) 3631quickInfo(l) = New QuickApplicabilityInfo(info2.Candidate, CandidateAnalysisResultState.Ambiguous) 3636If info.State <> CandidateAnalysisResultState.Ambiguous Then 3650If info2.Candidate IsNot Nothing AndAlso info2.State = CandidateAnalysisResultState.Ambiguous Then 3671Public ReadOnly State As CandidateAnalysisResultState 3677state As CandidateAnalysisResultState, 3704Return New QuickApplicabilityInfo(candidate, CandidateAnalysisResultState.HasUnsupportedMetadata) 3716Return New QuickApplicabilityInfo(candidate, CandidateAnalysisResultState.BadGenericArity) 3738Return New QuickApplicabilityInfo(candidate, CandidateAnalysisResultState.ArgumentCountMismatch, True, False) 3742Return New QuickApplicabilityInfo(candidate, CandidateAnalysisResultState.ArgumentCountMismatch, Not hasParamArray, hasParamArray) 3749Return New QuickApplicabilityInfo(candidate, CandidateAnalysisResultState.HasUseSiteError) 3774Return New QuickApplicabilityInfo(candidate, CandidateAnalysisResultState.Applicable, applicableInNormalForm, applicableInParamArrayForm) 3791Case CandidateAnalysisResultState.HasUnsupportedMetadata 3793results.Add(New CandidateAnalysisResult(candidate.Candidate, CandidateAnalysisResultState.HasUnsupportedMetadata)) 3796Case CandidateAnalysisResultState.HasUseSiteError 3798results.Add(New CandidateAnalysisResult(candidate.Candidate, CandidateAnalysisResultState.HasUseSiteError)) 3801Case CandidateAnalysisResultState.BadGenericArity 3803results.Add(New CandidateAnalysisResult(candidate.Candidate, CandidateAnalysisResultState.BadGenericArity)) 3806Case CandidateAnalysisResultState.ArgumentCountMismatch 3810Dim candidateAnalysis As New CandidateAnalysisResult(ConstructIfNeedTo(candidate.Candidate, typeArguments), CandidateAnalysisResultState.ArgumentCountMismatch) 3819Case CandidateAnalysisResultState.Applicable 3864Case CandidateAnalysisResultState.Ambiguous 3866results.Add(New CandidateAnalysisResult(candidate.Candidate, CandidateAnalysisResultState.Ambiguous)) 3897Debug.Assert(newCandidate.State <> CandidateAnalysisResultState.Applicable) 3918Debug.Assert(newCandidate.State = CandidateAnalysisResultState.Applicable) 3932If existingCandidate.State = CandidateAnalysisResultState.ArgumentCountMismatch OrElse 3933existingCandidate.State = CandidateAnalysisResultState.BadGenericArity OrElse 3934existingCandidate.State = CandidateAnalysisResultState.Ambiguous Then 3959If existingCandidate.State = CandidateAnalysisResultState.TypeInferenceFailed OrElse existingCandidate.SomeInferenceFailed OrElse 3960existingCandidate.State = CandidateAnalysisResultState.HasUseSiteError OrElse 3961existingCandidate.State = CandidateAnalysisResultState.HasUnsupportedMetadata Then 4133Dim existingIsApplicable As Boolean = (existingCandidate.State = CandidateAnalysisResultState.Applicable) 4868If candidate.State = CandidateAnalysisResultState.Applicable Then 4916candidate.State = CandidateAnalysisResultState.TypeInferenceFailed 4955Return (candidate.State = CandidateAnalysisResultState.Applicable)