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