15 references to BestTypeInferrer
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_Expressions.cs (2)
4068TypeSymbol bestType = BestTypeInferrer.InferBestType(boundInitializerExpressions, this.Conversions, ref useSiteInfo, out _); 4095TypeSymbol bestType = BestTypeInferrer.InferBestType(boundInitializerExpressions, this.Conversions, ref useSiteInfo, out _);
Binder\Binder_Operators.cs (2)
4304TypeSymbol? bestType = BestTypeInferrer.InferBestTypeForConditionalOperator(trueExpr, falseExpr, this.Conversions, out bool hadMultipleCandidates, ref useSiteInfo); 4359type = BestTypeInferrer.InferBestTypeForConditionalOperator(trueExpr, falseExpr, this.Conversions, hadMultipleCandidates: out _, ref useSiteInfo);
Binder\SwitchExpressionBinder.cs (1)
154var commonType = BestTypeInferrer.GetBestType(typesInOrder, Conversions, ref useSiteInfo);
BoundTree\UnboundLambda.cs (1)
289var bestType = BestTypeInferrer.InferBestType(returns.SelectAsArray(pair => pair.expr), conversions, ref useSiteInfo, out inferredFromFunctionType);
FlowAnalysis\NullableWalker.cs (6)
4618bestType = BestTypeInferrer.InferBestType(placeholders, _conversions, ref discardedUseSiteInfo, out _); 4636var elementState = BestTypeInferrer.GetNullableState(expressionTypes); 4732TypeSymbol? bestType = BestTypeInferrer.InferBestType(placeholders, walker._conversions, ref discardedUseSiteInfo, out inferredFromFunctionType); 4750inferredType = TypeWithAnnotations.Create(bestType, BestTypeInferrer.GetNullableAnnotation(resultTypes)); 5909refResultType = BestTypeInferrer.InferBestTypeForConditionalOperator(consequencePlaceholder, alternativePlaceholder, _conversions, out _, ref discardedUseSiteInfo); 5965resultType = BestTypeInferrer.InferBestTypeForConditionalOperator(consequencePlaceholder, alternativePlaceholder, _conversions, out _, ref discardedUseSiteInfo);
FlowAnalysis\NullableWalker_Patterns.cs (2)
952(inferType ? BestTypeInferrer.InferBestType(placeholders, _conversions, ref discardedUseSiteInfo, out _) : null) 1006NullableFlowState inferredState = BestTypeInferrer.GetNullableState(resultTypes);
Symbols\FunctionTypeSymbol.cs (1)
30/// <see cref="BestTypeInferrer"/>, and <see cref="MethodTypeInferrer"/>. Instances of this type