182 references to CandidateAnalysisResultState
Microsoft.CodeAnalysis.VisualBasic (182)
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)
3177candidates.Add(New CandidateAnalysisResult(New OperatorCandidate(method), CandidateAnalysisResultState.HasUnsupportedMetadata)) 3188candidates.Add(New CandidateAnalysisResult(New OperatorCandidate(method), CandidateAnalysisResultState.HasUseSiteError))
Semantics\OverloadResolution.vb (133)
710Public Property State As CandidateAnalysisResultState 712Return CType(_smallFields And SmallFieldMask.State, CandidateAnalysisResultState) 714Set(value As CandidateAnalysisResultState) 763Public Sub New(candidate As Candidate, state As CandidateAnalysisResultState) 770Me.State = CandidateAnalysisResultState.Applicable 833If current.State = CandidateAnalysisResultState.Applicable Then 1009Debug.Assert(candidates.All(Function(candidate) candidate.State <> CandidateAnalysisResultState.Applicable OrElse 1063If candidate.State = CandidateAnalysisResultState.TypeInferenceFailed Then 1309If current.State <> CandidateAnalysisResultState.Applicable Then 1354toDeprioritize.State = CandidateAnalysisResultState.LessApplicable 1376If existingCandidate.State = CandidateAnalysisResultState.ArgumentCountMismatch OrElse 1377existingCandidate.State = CandidateAnalysisResultState.BadGenericArity OrElse 1378existingCandidate.State = CandidateAnalysisResultState.Ambiguous OrElse 1379existingCandidate.State = CandidateAnalysisResultState.TypeInferenceFailed OrElse existingCandidate.SomeInferenceFailed OrElse 1380existingCandidate.State = CandidateAnalysisResultState.HasUseSiteError OrElse 1381existingCandidate.State = CandidateAnalysisResultState.HasUnsupportedMetadata OrElse 1382existingCandidate.State = CandidateAnalysisResultState.LessApplicable OrElse 1383existingCandidate.State = CandidateAnalysisResultState.Shadowed Then 1391If newCandidate.State <> CandidateAnalysisResultState.Applicable Then 1409If toShadow.State = CandidateAnalysisResultState.Applicable Then 1416toShadow.State = CandidateAnalysisResultState.Shadowed 1434Debug.Assert(newCandidate.State = CandidateAnalysisResultState.Applicable) 1560If current.State = CandidateAnalysisResultState.Applicable Then 1562current.State = CandidateAnalysisResultState.RequiresNarrowing 1630If contender.State <> CandidateAnalysisResultState.Applicable Then 1634contender.State = CandidateAnalysisResultState.LessApplicable 1665If candidates(i).State <> CandidateAnalysisResultState.Applicable Then 1733If contender.State <> CandidateAnalysisResultState.Applicable Then 1765If contender.State <> CandidateAnalysisResultState.Applicable Then 1805If left.State <> CandidateAnalysisResultState.Applicable Then 1812If right.State <> CandidateAnalysisResultState.Applicable Then 1820right.State = CandidateAnalysisResultState.Shadowed 1825left.State = CandidateAnalysisResultState.Shadowed 1992If current.State = CandidateAnalysisResultState.Applicable Then 2009If current.State <> CandidateAnalysisResultState.Applicable Then 2016current.State = CandidateAnalysisResultState.Shadowed 2086If current.State = CandidateAnalysisResultState.Applicable Then 2116If candidates(i).State = CandidateAnalysisResultState.Applicable Then 2140If left.State <> CandidateAnalysisResultState.Applicable Then 2147If right.State <> CandidateAnalysisResultState.Applicable Then 2196right.State = CandidateAnalysisResultState.Shadowed 2199left.State = CandidateAnalysisResultState.Shadowed 2206If left.State = CandidateAnalysisResultState.Applicable Then 2219If current.State = CandidateAnalysisResultState.Applicable Then 2236If current.State <> CandidateAnalysisResultState.Applicable Then 2243current.State = CandidateAnalysisResultState.Shadowed 2549If left.State <> CandidateAnalysisResultState.Applicable OrElse 2565If right.State <> CandidateAnalysisResultState.Applicable OrElse 2715If current.State = CandidateAnalysisResultState.Applicable AndAlso 2722If contender.State = CandidateAnalysisResultState.Applicable AndAlso 2746If current.State = CandidateAnalysisResultState.Applicable AndAlso 2753If contender.State = CandidateAnalysisResultState.Applicable AndAlso 2781current.State = CandidateAnalysisResultState.Shadowed 2790contender.State = CandidateAnalysisResultState.Shadowed 2826If current.State = CandidateAnalysisResultState.Applicable Then 2828current.State = CandidateAnalysisResultState.ExtensionMethodVsLateBinding 2857If first.State = CandidateAnalysisResultState.Applicable Then 2861If second.State = CandidateAnalysisResultState.Applicable Then 2868second.State = CandidateAnalysisResultState.Shadowed 2872first.State = CandidateAnalysisResultState.Shadowed 2923If current.State = CandidateAnalysisResultState.Applicable AndAlso 2966If current.State <> CandidateAnalysisResultState.Applicable Then 2976If current.State = CandidateAnalysisResultState.Applicable Then 2995If current.State = CandidateAnalysisResultState.Applicable AndAlso current.IsIllegalInAttribute Then 3002current.State = CandidateAnalysisResultState.ArgumentMismatch 3041Debug.Assert(candidate.State = CandidateAnalysisResultState.Applicable) 3075candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3087candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3106candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3134candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3142candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3154candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3163candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3174candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3226Debug.Assert(candidate.State = CandidateAnalysisResultState.Applicable) 3238If candidate.State <> CandidateAnalysisResultState.Applicable Then 3269candidate.State = CandidateAnalysisResultState.GenericConstraintsViolated 3282If candidate.State <> CandidateAnalysisResultState.Applicable AndAlso 3296candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3320candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3333candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3363candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3376candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3385candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3394candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3451candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3460candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3466candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3588candidate.State = CandidateAnalysisResultState.ArgumentMismatch ' Possible only with user-defined conversions, I think. 3602candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3625candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3655candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3665candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3721candidate.State = CandidateAnalysisResultState.ArgumentMismatch 3901Dim applicableCount As Integer = If(info.State = CandidateAnalysisResultState.Applicable, 1, 0) 3918If info.State <> CandidateAnalysisResultState.Applicable Then 3937If info.Candidate Is Nothing OrElse info.State = CandidateAnalysisResultState.Ambiguous Then 3952If info2.Candidate Is Nothing OrElse info2.State = CandidateAnalysisResultState.Ambiguous Then 3991info = New QuickApplicabilityInfo(info.Candidate, CandidateAnalysisResultState.Ambiguous) 3993quickInfo(l) = New QuickApplicabilityInfo(info2.Candidate, CandidateAnalysisResultState.Ambiguous) 3998If info.State <> CandidateAnalysisResultState.Ambiguous Then 4014If info2.Candidate IsNot Nothing AndAlso info2.State = CandidateAnalysisResultState.Ambiguous Then 4036Public ReadOnly State As CandidateAnalysisResultState 4042state As CandidateAnalysisResultState, 4069Return New QuickApplicabilityInfo(candidate, CandidateAnalysisResultState.HasUnsupportedMetadata) 4081Return New QuickApplicabilityInfo(candidate, CandidateAnalysisResultState.BadGenericArity) 4103Return New QuickApplicabilityInfo(candidate, CandidateAnalysisResultState.ArgumentCountMismatch, True, False) 4107Return New QuickApplicabilityInfo(candidate, CandidateAnalysisResultState.ArgumentCountMismatch, Not hasParamArray, hasParamArray) 4114Return New QuickApplicabilityInfo(candidate, CandidateAnalysisResultState.HasUseSiteError) 4139Return New QuickApplicabilityInfo(candidate, CandidateAnalysisResultState.Applicable, applicableInNormalForm, applicableInParamArrayForm) 4157Case CandidateAnalysisResultState.HasUnsupportedMetadata 4159results.Add(New CandidateAnalysisResult(candidate.Candidate, CandidateAnalysisResultState.HasUnsupportedMetadata)) 4162Case CandidateAnalysisResultState.HasUseSiteError 4164results.Add(New CandidateAnalysisResult(candidate.Candidate, CandidateAnalysisResultState.HasUseSiteError)) 4167Case CandidateAnalysisResultState.BadGenericArity 4169results.Add(New CandidateAnalysisResult(candidate.Candidate, CandidateAnalysisResultState.BadGenericArity)) 4172Case CandidateAnalysisResultState.ArgumentCountMismatch 4176Dim candidateAnalysis As New CandidateAnalysisResult(ConstructIfNeedTo(candidate.Candidate, typeArguments), CandidateAnalysisResultState.ArgumentCountMismatch) 4185Case CandidateAnalysisResultState.Applicable 4230Case CandidateAnalysisResultState.Ambiguous 4232results.Add(New CandidateAnalysisResult(candidate.Candidate, CandidateAnalysisResultState.Ambiguous)) 4264Debug.Assert(newCandidate.State <> CandidateAnalysisResultState.Applicable) 4286Debug.Assert(newCandidate.State = CandidateAnalysisResultState.Applicable) 4300If existingCandidate.State = CandidateAnalysisResultState.ArgumentCountMismatch OrElse 4301existingCandidate.State = CandidateAnalysisResultState.BadGenericArity OrElse 4302existingCandidate.State = CandidateAnalysisResultState.Ambiguous Then 4327If existingCandidate.State = CandidateAnalysisResultState.TypeInferenceFailed OrElse existingCandidate.SomeInferenceFailed OrElse 4328existingCandidate.State = CandidateAnalysisResultState.HasUseSiteError OrElse 4329existingCandidate.State = CandidateAnalysisResultState.HasUnsupportedMetadata Then 4533Dim existingIsApplicable As Boolean = (existingCandidate.State = CandidateAnalysisResultState.Applicable) 5268If candidate.State = CandidateAnalysisResultState.Applicable Then 5316candidate.State = CandidateAnalysisResultState.TypeInferenceFailed 5355Return (candidate.State = CandidateAnalysisResultState.Applicable)