2 instantiations of MethodTypeInferrer
Microsoft.CodeAnalysis.CSharp (2)
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (2)
293
var inferrer = new
MethodTypeInferrer
(
3211
inferrer = new
MethodTypeInferrer
(
13 references to MethodTypeInferrer
Microsoft.CodeAnalysis.CSharp (13)
Binder\ForEachLoopBinder.cs (1)
1818
interfaces =
MethodTypeInferrer
.ModuloReferenceTypeNullabilityDifferences(interfaces, VarianceKind.In);
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (6)
293
var
inferrer = new MethodTypeInferrer(
930
return FixParameters((ref
MethodTypeInferrer
inferrer, int index) => !inferrer.DependsOnAny(index), ref useSiteInfo);
938
return FixParameters((ref
MethodTypeInferrer
inferrer, int index) => inferrer.AnyDependsOn(index), ref useSiteInfo);
941
private delegate bool FixParametersPredicate(ref
MethodTypeInferrer
inferrer, int index);
3180
if (!CanInferTypeArgumentsFromFirstArgument(compilation, conversions, method, arguments, ref useSiteInfo, out
var
inferrer))
3194
out
MethodTypeInferrer
inferrer)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (2)
4320
var inferenceResult =
MethodTypeInferrer
.Infer(
4339
var canInfer =
MethodTypeInferrer
.CanInferTypeArgumentsFromFirstArgument(
FlowAnalysis\NullableWalker.cs (2)
7852
var result =
MethodTypeInferrer
.Infer(
7871
private sealed class MethodInferenceExtensions :
MethodTypeInferrer
.Extensions
Symbols\FunctionTypeSymbol.cs (1)
30
/// <see cref="BestTypeInferrer"/>, and <see cref="
MethodTypeInferrer
"/>. Instances of this type
Symbols\ReducedExtensionMethodSymbol.cs (1)
157
var typeArgs =
MethodTypeInferrer
.InferTypeArgumentsFromFirstArgument(