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