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