1 write to Kind
Microsoft.CodeAnalysis.CSharp (1)
Binder\Semantics\OverloadResolution\MemberAnalysisResult.cs (1)
131
this.
Kind
= kind;
43 references to Kind
Microsoft.CodeAnalysis.CSharp (43)
Binder\Binder_Expressions.cs (6)
3383
bool expanded = result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm;
3698
if (memberAnalysisResult.
Kind
== MemberResolutionKind.ApplicableInExpandedForm && correspondingParameter.Ordinal == parameters.Length - 1)
3814
(memberAnalysisResult.
Kind
== MemberResolutionKind.ApplicableInExpandedForm && originalParameterIndex + 1 == parameters.Length))
4968
var expanded = memberResolutionResult.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm;
6764
var expanded = memberResolutionResult.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm;
9869
expanded: resolutionResult.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm,
Binder\Binder_Invocation.cs (3)
680
if (candidate.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm &&
860
candidate.Result.
Kind
== MemberResolutionKind.ApplicableInNormalForm)
1200
var expanded = methodResult.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm;
Binder\ForEachLoopBinder.cs (2)
1464
var expanded = overloadResolutionResult.ValidResult.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm;
1547
expanded: overloadResolutionResult.ValidResult.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm,
Binder\Semantics\OverloadResolution\MemberAnalysisResult.cs (3)
180
switch (this.
Kind
)
197
switch (this.
Kind
)
217
return !SuppressUseSiteDiagnosticsForKind(this.
Kind
) &&
Binder\Semantics\OverloadResolution\MemberResolutionResult.cs (1)
76
return Result.
Kind
;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (21)
1041
Debug.Assert(!result.IsValid || result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm);
1231
switch (normalResult.Result.
Kind
)
1235
switch (expandedResult.Result.
Kind
)
1251
if (expandedResult.Result.
Kind
== MemberResolutionKind.BadArgumentConversion &&
2340
if (m1.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm)
2342
if (m2.Result.
Kind
!= MemberResolutionKind.ApplicableInExpandedForm)
2347
else if (m2.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm)
2349
Debug.Assert(m1.Result.
Kind
!= MemberResolutionKind.ApplicableInExpandedForm);
2386
if (m1.Result.
Kind
== MemberResolutionKind.ApplicableInNormalForm && m2.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm)
2391
if (m1.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm && m2.Result.
Kind
== MemberResolutionKind.ApplicableInNormalForm)
2407
if (m1.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm && m2.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm)
2424
bool hasAll1 = m1.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm || m1ParameterCount == arguments.Count;
2425
bool hasAll2 = m2.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm || m2ParameterCount == arguments.Count;
2514
if (m1.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm && m2.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm)
2556
if (result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm &&
2662
if (m.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm)
4138
Debug.Assert(!result.Result.IsValid || result.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm);
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (7)
390
switch (result.Result.
Kind
)
457
throw ExceptionUtilities.UnexpectedValue(result.Result.
Kind
);
474
&& firstSupported.Result.
Kind
== MemberResolutionKind.NoCorrespondingNamedParameter)
484
else if (!(firstSupported.Result.
Kind
== MemberResolutionKind.RequiredParameterMissing && supportedRequiredParameterMissingConflicts)
490
switch (firstSupported.Result.
Kind
)
547
else if (firstSupported.Result.
Kind
== MemberResolutionKind.WrongCallingConvention)
597
Debug.Assert(firstSupported.Result.
Kind
== MemberResolutionKind.WrongCallingConvention);