1 instantiation of OverloadResolution
Microsoft.CodeAnalysis.CSharp (1)
Binder\Binder.cs (1)
522
Interlocked.CompareExchange(ref _lazyOverloadResolution, new
OverloadResolution
(this), null);
60 references to OverloadResolution
Microsoft.CodeAnalysis.CSharp (60)
Binder\Binder.cs (2)
515
private
OverloadResolution
? _lazyOverloadResolution;
516
internal
OverloadResolution
OverloadResolution
Binder\Binder.ValueChecks.cs (1)
616
var resolution = this.ResolveMethodGroup(methodGroup, analyzedArguments: null, useSiteInfo: ref useSiteInfo, options:
OverloadResolution
.Options.None);
Binder\Binder_Expressions.cs (28)
7894
var resolution = this.ResolveMethodGroup(methodGroup, analyzedArguments: null, useSiteInfo: ref useSiteInfo, options:
OverloadResolution
.Options.None);
8342
OverloadResolution
.Options options,
8348
Debug.Assert((options & ~(
OverloadResolution
.Options.IsMethodGroupConversion |
8349
OverloadResolution
.Options.IsFunctionPointerResolution |
8350
OverloadResolution
.Options.InferWithDynamic |
8351
OverloadResolution
.Options.IgnoreNormalFormIfHasValidParamsParameter |
8352
OverloadResolution
.Options.DisallowExpandedNonArrayParams |
8353
OverloadResolution
.Options.DynamicResolution |
8354
OverloadResolution
.Options.DynamicConvertsToAnything)) == 0);
8406
options |=
OverloadResolution
.Options.AllowRefOmittedArguments;
8417
options: options |
OverloadResolution
.Options.IsExtensionMethodResolution,
10240
OverloadResolution
.Options options,
10245
Debug.Assert((options & ~(
OverloadResolution
.Options.IsMethodGroupConversion |
10246
OverloadResolution
.Options.IsFunctionPointerResolution |
10247
OverloadResolution
.Options.InferWithDynamic)) == 0);
10261
OverloadResolution
.Options options,
10297
options:
OverloadResolution
.Options.IsMethodGroupConversion |
OverloadResolution
.Options.IsFunctionPointerResolution,
10309
OverloadResolution
.Options options,
10379
OverloadResolution
.Options options,
10384
Debug.Assert((options & ~(
OverloadResolution
.Options.IsMethodGroupConversion |
10385
OverloadResolution
.Options.IsFunctionPointerResolution |
10386
OverloadResolution
.Options.InferWithDynamic |
10387
OverloadResolution
.Options.IgnoreNormalFormIfHasValidParamsParameter |
10388
OverloadResolution
.Options.DisallowExpandedNonArrayParams |
10389
OverloadResolution
.Options.DynamicResolution |
10390
OverloadResolution
.Options.DynamicConvertsToAnything)) == 0);
10439
options |=
OverloadResolution
.Options.AllowRefOmittedArguments;
Binder\Binder_Invocation.cs (10)
642
options: analyzedArguments.HasDynamicArgument ?
OverloadResolution
.Options.DynamicResolution :
OverloadResolution
.Options.None);
714
options: (ignoreNormalFormIfHasValidParamsParameter ?
OverloadResolution
.Options.IgnoreNormalFormIfHasValidParamsParameter :
OverloadResolution
.Options.None) |
715
(disallowExpandedNonArrayParams ?
OverloadResolution
.Options.DisallowExpandedNonArrayParams :
OverloadResolution
.Options.None) |
716
(analyzedArguments.HasDynamicArgument ?
OverloadResolution
.Options.DynamicResolution :
OverloadResolution
.Options.None));
859
if (
OverloadResolution
.IsValidParams(this, candidate.LeastOverriddenMember, disallowExpandedNonArrayParams: false, out _) &&
2254
var resolution = ResolveMethodGroup(methodGroup, analyzedArguments: null, useSiteInfo: ref useSiteInfo, options:
OverloadResolution
.Options.None);
Binder\Binder_Query.cs (1)
960
var resolution = this.ResolveMethodGroup(methodGroup, analyzedArguments: null, useSiteInfo: ref useSiteInfo, options:
OverloadResolution
.Options.None);
Binder\ForEachLoopBinder.cs (2)
1435
options:
OverloadResolution
.Options.None);
1507
options:
OverloadResolution
.Options.None,
Binder\Semantics\Conversions\Conversions.cs (6)
256
options:
OverloadResolution
.Options.InferWithDynamic |
OverloadResolution
.Options.IsMethodGroupConversion |
257
(isFunctionPointer ?
OverloadResolution
.Options.IsFunctionPointerResolution :
OverloadResolution
.Options.None),
265
return binder.ResolveMethodGroup(source, analyzedArguments: null, ref useSiteInfo, options:
OverloadResolution
.Options.IsMethodGroupConversion);
392
options:
OverloadResolution
.Options.IsMethodGroupConversion,
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1515
if (!
OverloadResolution
.AreRefsCompatibleForMethodConversion(
Binder\Semantics\OverloadResolution\IMemberResolutionResultWithPriority.cs (1)
8
/// Abstraction for use in <see cref="
OverloadResolution
.RemoveLowerPriorityMembers{TMemberResolution, TMember}(PooledObjects.ArrayBuilder{TMemberResolution})"/>,
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (3)
1488
options:
OverloadResolution
.Options.IsMethodGroupConversion |
1489
(isFunctionPointerResolution ?
OverloadResolution
.Options.IsFunctionPointerResolution :
OverloadResolution
.Options.None),
BoundTree\UnboundLambda.cs (1)
767
hasParams:
OverloadResolution
.IsValidParams(Binder, lambdaSymbol, disallowExpandedNonArrayParams: false, out _),
Compilation\CSharpCompilation.cs (2)
4244
var easyOutBinaryKind =
OverloadResolution
.BinopEasyOut.OpKind(binaryKind, csharpLeftType, csharpRightType);
4467
var easyOutUnaryKind =
OverloadResolution
.UnopEasyOut.OpKind(unaryKind, csharpOperandType);
FlowAnalysis\NullableWalker.cs (2)
7808
OverloadResolution
.TryInferParamsCollectionIterationType(_binder, type.Type, out paramsIterationType);
7838
OverloadResolution
.GetEffectiveParameterTypes(