6 references to InferBestType
Microsoft.CodeAnalysis.CSharp (6)
Binder\Binder_Expressions.cs (2)
4124
TypeSymbol bestType = BestTypeInferrer.
InferBestType
(boundInitializerExpressions, this.Conversions, ref useSiteInfo, out _);
4151
TypeSymbol bestType = BestTypeInferrer.
InferBestType
(boundInitializerExpressions, this.Conversions, ref useSiteInfo, out _);
BoundTree\UnboundLambda.cs (1)
289
var bestType = BestTypeInferrer.
InferBestType
(returns.SelectAsArray(pair => pair.expr), conversions, ref useSiteInfo, out inferredFromFunctionType);
FlowAnalysis\NullableWalker.cs (2)
4834
bestType = BestTypeInferrer.
InferBestType
(placeholders, _conversions, ref discardedUseSiteInfo, out _);
4949
TypeSymbol? bestType = BestTypeInferrer.
InferBestType
(placeholders, walker._conversions, ref discardedUseSiteInfo, out inferredFromFunctionType);
FlowAnalysis\NullableWalker_Patterns.cs (1)
952
(inferType ? BestTypeInferrer.
InferBestType
(placeholders, _conversions, ref discardedUseSiteInfo, out _) : null)