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