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