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)
3386
bool expanded = result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm;
3701
if (memberAnalysisResult.
Kind
== MemberResolutionKind.ApplicableInExpandedForm && correspondingParameter.Ordinal == parameters.Length - 1)
3817
(memberAnalysisResult.
Kind
== MemberResolutionKind.ApplicableInExpandedForm && originalParameterIndex + 1 == parameters.Length))
4971
var expanded = memberResolutionResult.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm;
6767
var expanded = memberResolutionResult.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm;
9872
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 &&
2348
if (m1.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm)
2350
if (m2.Result.
Kind
!= MemberResolutionKind.ApplicableInExpandedForm)
2355
else if (m2.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm)
2357
Debug.Assert(m1.Result.
Kind
!= MemberResolutionKind.ApplicableInExpandedForm);
2394
if (m1.Result.
Kind
== MemberResolutionKind.ApplicableInNormalForm && m2.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm)
2399
if (m1.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm && m2.Result.
Kind
== MemberResolutionKind.ApplicableInNormalForm)
2415
if (m1.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm && m2.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm)
2432
bool hasAll1 = m1.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm || m1ParameterCount == arguments.Count;
2433
bool hasAll2 = m2.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm || m2ParameterCount == arguments.Count;
2522
if (m1.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm && m2.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm)
2564
if (result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm &&
2670
if (m.Result.
Kind
== MemberResolutionKind.ApplicableInExpandedForm)
4159
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);