1 instantiation of OverloadResolution
Microsoft.CodeAnalysis.CSharp (1)
Binder\Binder.cs (1)
522Interlocked.CompareExchange(ref _lazyOverloadResolution, new OverloadResolution(this), null);
60 references to OverloadResolution
Microsoft.CodeAnalysis.CSharp (60)
Binder\Binder.cs (2)
515private OverloadResolution? _lazyOverloadResolution; 516internal OverloadResolution OverloadResolution
Binder\Binder.ValueChecks.cs (1)
593var resolution = this.ResolveMethodGroup(methodGroup, analyzedArguments: null, useSiteInfo: ref useSiteInfo, options: OverloadResolution.Options.None);
Binder\Binder_Expressions.cs (28)
7895var resolution = this.ResolveMethodGroup(methodGroup, analyzedArguments: null, useSiteInfo: ref useSiteInfo, options: OverloadResolution.Options.None); 8343OverloadResolution.Options options, 8349Debug.Assert((options & ~(OverloadResolution.Options.IsMethodGroupConversion | 8350OverloadResolution.Options.IsFunctionPointerResolution | 8351OverloadResolution.Options.InferWithDynamic | 8352OverloadResolution.Options.IgnoreNormalFormIfHasValidParamsParameter | 8353OverloadResolution.Options.DisallowExpandedNonArrayParams | 8354OverloadResolution.Options.DynamicResolution | 8355OverloadResolution.Options.DynamicConvertsToAnything)) == 0); 8407options |= OverloadResolution.Options.AllowRefOmittedArguments; 8418options: options | OverloadResolution.Options.IsExtensionMethodResolution, 10241OverloadResolution.Options options, 10246Debug.Assert((options & ~(OverloadResolution.Options.IsMethodGroupConversion | 10247OverloadResolution.Options.IsFunctionPointerResolution | 10248OverloadResolution.Options.InferWithDynamic)) == 0); 10262OverloadResolution.Options options, 10298options: OverloadResolution.Options.IsMethodGroupConversion | OverloadResolution.Options.IsFunctionPointerResolution, 10310OverloadResolution.Options options, 10380OverloadResolution.Options options, 10385Debug.Assert((options & ~(OverloadResolution.Options.IsMethodGroupConversion | 10386OverloadResolution.Options.IsFunctionPointerResolution | 10387OverloadResolution.Options.InferWithDynamic | 10388OverloadResolution.Options.IgnoreNormalFormIfHasValidParamsParameter | 10389OverloadResolution.Options.DisallowExpandedNonArrayParams | 10390OverloadResolution.Options.DynamicResolution | 10391OverloadResolution.Options.DynamicConvertsToAnything)) == 0); 10440options |= OverloadResolution.Options.AllowRefOmittedArguments;
Binder\Binder_Invocation.cs (10)
642options: analyzedArguments.HasDynamicArgument ? OverloadResolution.Options.DynamicResolution : OverloadResolution.Options.None); 714options: (ignoreNormalFormIfHasValidParamsParameter ? OverloadResolution.Options.IgnoreNormalFormIfHasValidParamsParameter : OverloadResolution.Options.None) | 715(disallowExpandedNonArrayParams ? OverloadResolution.Options.DisallowExpandedNonArrayParams : OverloadResolution.Options.None) | 716(analyzedArguments.HasDynamicArgument ? OverloadResolution.Options.DynamicResolution : OverloadResolution.Options.None)); 859if (OverloadResolution.IsValidParams(this, candidate.LeastOverriddenMember, disallowExpandedNonArrayParams: false, out _) && 2254var resolution = ResolveMethodGroup(methodGroup, analyzedArguments: null, useSiteInfo: ref useSiteInfo, options: OverloadResolution.Options.None);
Binder\Binder_Query.cs (1)
960var resolution = this.ResolveMethodGroup(methodGroup, analyzedArguments: null, useSiteInfo: ref useSiteInfo, options: OverloadResolution.Options.None);
Binder\ForEachLoopBinder.cs (2)
1435options: OverloadResolution.Options.None); 1507options: OverloadResolution.Options.None,
Binder\Semantics\Conversions\Conversions.cs (6)
256options: OverloadResolution.Options.InferWithDynamic | OverloadResolution.Options.IsMethodGroupConversion | 257(isFunctionPointer ? OverloadResolution.Options.IsFunctionPointerResolution : OverloadResolution.Options.None), 265return binder.ResolveMethodGroup(source, analyzedArguments: null, ref useSiteInfo, options: OverloadResolution.Options.IsMethodGroupConversion); 392options: OverloadResolution.Options.IsMethodGroupConversion,
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1515if (!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)
1488options: OverloadResolution.Options.IsMethodGroupConversion | 1489(isFunctionPointerResolution ? OverloadResolution.Options.IsFunctionPointerResolution : OverloadResolution.Options.None),
BoundTree\UnboundLambda.cs (1)
767hasParams: OverloadResolution.IsValidParams(Binder, lambdaSymbol, disallowExpandedNonArrayParams: false, out _),
Compilation\CSharpCompilation.cs (2)
4269var easyOutBinaryKind = OverloadResolution.BinopEasyOut.OpKind(binaryKind, csharpLeftType, csharpRightType); 4492var easyOutUnaryKind = OverloadResolution.UnopEasyOut.OpKind(unaryKind, csharpOperandType);
FlowAnalysis\NullableWalker.cs (2)
7866OverloadResolution.TryInferParamsCollectionIterationType(_binder, type.Type, out paramsIterationType); 7896OverloadResolution.GetEffectiveParameterTypes(