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