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)
593
var resolution = this.ResolveMethodGroup(methodGroup, analyzedArguments: null, useSiteInfo: ref useSiteInfo, options:
OverloadResolution
.Options.None);
Binder\Binder_Expressions.cs (28)
7895
var resolution = this.ResolveMethodGroup(methodGroup, analyzedArguments: null, useSiteInfo: ref useSiteInfo, options:
OverloadResolution
.Options.None);
8343
OverloadResolution
.Options options,
8349
Debug.Assert((options & ~(
OverloadResolution
.Options.IsMethodGroupConversion |
8350
OverloadResolution
.Options.IsFunctionPointerResolution |
8351
OverloadResolution
.Options.InferWithDynamic |
8352
OverloadResolution
.Options.IgnoreNormalFormIfHasValidParamsParameter |
8353
OverloadResolution
.Options.DisallowExpandedNonArrayParams |
8354
OverloadResolution
.Options.DynamicResolution |
8355
OverloadResolution
.Options.DynamicConvertsToAnything)) == 0);
8407
options |=
OverloadResolution
.Options.AllowRefOmittedArguments;
8418
options: options |
OverloadResolution
.Options.IsExtensionMethodResolution,
10241
OverloadResolution
.Options options,
10246
Debug.Assert((options & ~(
OverloadResolution
.Options.IsMethodGroupConversion |
10247
OverloadResolution
.Options.IsFunctionPointerResolution |
10248
OverloadResolution
.Options.InferWithDynamic)) == 0);
10262
OverloadResolution
.Options options,
10298
options:
OverloadResolution
.Options.IsMethodGroupConversion |
OverloadResolution
.Options.IsFunctionPointerResolution,
10310
OverloadResolution
.Options options,
10380
OverloadResolution
.Options options,
10385
Debug.Assert((options & ~(
OverloadResolution
.Options.IsMethodGroupConversion |
10386
OverloadResolution
.Options.IsFunctionPointerResolution |
10387
OverloadResolution
.Options.InferWithDynamic |
10388
OverloadResolution
.Options.IgnoreNormalFormIfHasValidParamsParameter |
10389
OverloadResolution
.Options.DisallowExpandedNonArrayParams |
10390
OverloadResolution
.Options.DynamicResolution |
10391
OverloadResolution
.Options.DynamicConvertsToAnything)) == 0);
10440
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)
4269
var easyOutBinaryKind =
OverloadResolution
.BinopEasyOut.OpKind(binaryKind, csharpLeftType, csharpRightType);
4492
var easyOutUnaryKind =
OverloadResolution
.UnopEasyOut.OpKind(unaryKind, csharpOperandType);
FlowAnalysis\NullableWalker.cs (2)
7866
OverloadResolution
.TryInferParamsCollectionIterationType(_binder, type.Type, out paramsIterationType);
7896
OverloadResolution
.GetEffectiveParameterTypes(