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)
616var resolution = this.ResolveMethodGroup(methodGroup, analyzedArguments: null, useSiteInfo: ref useSiteInfo, options: OverloadResolution.Options.None);
Binder\Binder_Expressions.cs (28)
7894var resolution = this.ResolveMethodGroup(methodGroup, analyzedArguments: null, useSiteInfo: ref useSiteInfo, options: OverloadResolution.Options.None); 8342OverloadResolution.Options options, 8348Debug.Assert((options & ~(OverloadResolution.Options.IsMethodGroupConversion | 8349OverloadResolution.Options.IsFunctionPointerResolution | 8350OverloadResolution.Options.InferWithDynamic | 8351OverloadResolution.Options.IgnoreNormalFormIfHasValidParamsParameter | 8352OverloadResolution.Options.DisallowExpandedNonArrayParams | 8353OverloadResolution.Options.DynamicResolution | 8354OverloadResolution.Options.DynamicConvertsToAnything)) == 0); 8406options |= OverloadResolution.Options.AllowRefOmittedArguments; 8417options: options | OverloadResolution.Options.IsExtensionMethodResolution, 10240OverloadResolution.Options options, 10245Debug.Assert((options & ~(OverloadResolution.Options.IsMethodGroupConversion | 10246OverloadResolution.Options.IsFunctionPointerResolution | 10247OverloadResolution.Options.InferWithDynamic)) == 0); 10261OverloadResolution.Options options, 10297options: OverloadResolution.Options.IsMethodGroupConversion | OverloadResolution.Options.IsFunctionPointerResolution, 10309OverloadResolution.Options options, 10379OverloadResolution.Options options, 10384Debug.Assert((options & ~(OverloadResolution.Options.IsMethodGroupConversion | 10385OverloadResolution.Options.IsFunctionPointerResolution | 10386OverloadResolution.Options.InferWithDynamic | 10387OverloadResolution.Options.IgnoreNormalFormIfHasValidParamsParameter | 10388OverloadResolution.Options.DisallowExpandedNonArrayParams | 10389OverloadResolution.Options.DynamicResolution | 10390OverloadResolution.Options.DynamicConvertsToAnything)) == 0); 10439options |= 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)
4244var easyOutBinaryKind = OverloadResolution.BinopEasyOut.OpKind(binaryKind, csharpLeftType, csharpRightType); 4467var easyOutUnaryKind = OverloadResolution.UnopEasyOut.OpKind(unaryKind, csharpOperandType);
FlowAnalysis\NullableWalker.cs (2)
7808OverloadResolution.TryInferParamsCollectionIterationType(_binder, type.Type, out paramsIterationType); 7838OverloadResolution.GetEffectiveParameterTypes(