1 write to _conversions
Microsoft.CodeAnalysis.CSharp (1)
FlowAnalysis\NullableWalker.cs (1)
471
_conversions
= (Conversions)conversions.WithNullability(true);
24 references to _conversions
Microsoft.CodeAnalysis.CSharp (24)
FlowAnalysis\NullableWalker.cs (21)
2675
var conversionsWithoutNullability =
_conversions
.WithNullability(false);
2781
var conversionsWithoutNullability =
_conversions
.WithNullability(false);
4679
bestType = BestTypeInferrer.InferBestType(placeholders,
_conversions
, ref discardedUseSiteInfo, out _);
4793
TypeSymbol? bestType = BestTypeInferrer.InferBestType(placeholders, walker.
_conversions
, ref discardedUseSiteInfo, out inferredFromFunctionType);
4800
Conversions conversionsWithoutNullability = walker.
_conversions
.WithNullability(false);
5258
var conversion =
_conversions
.ClassifyBuiltInConversion(derivedType, baseType, isChecked: false, ref discardedUseSiteInfo);
5970
refResultType = BestTypeInferrer.InferBestTypeForConditionalOperator(consequencePlaceholder, alternativePlaceholder,
_conversions
, out _, ref discardedUseSiteInfo);
6026
resultType = BestTypeInferrer.InferBestTypeForConditionalOperator(consequencePlaceholder, alternativePlaceholder,
_conversions
, out _, ref discardedUseSiteInfo);
7429
conversion = GenerateConversion(
_conversions
, argumentNoConversion, argumentResultType, parameterType.Type, fromExplicitCast: false, extensionMethodThisArgument: false, isChecked: conversionOpt?.Checked ?? false);
7629
if (!
_conversions
.HasIdentityOrImplicitReferenceConversion(parameterType.Type, lValueType.Type, ref discardedUseSiteInfo))
7915
_conversions
,
8076
new ConstraintsHelper.CheckConstraintsArgs(compilation,
_conversions
, includeNullability: true, NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded),
8142
var conversion = GenerateConversion(
_conversions
, sourceExpression, sourceType, destinationType, fromExplicitCast: false, extensionMethodThisArgument: false, isChecked: isChecked);
8504
tupleOpt.CheckConstraints(new ConstraintsHelper.CheckConstraintsArgs(compilation,
_conversions
, includeNullability: true, node.Syntax.Location, diagnostics: null),
9040
conversion = GenerateConversion(
_conversions
, conversionOperand, operandType.Type, targetType, fromExplicitCast, extensionMethodThisArgument, isChecked: conversionOpt?.Checked ?? false);
9066
conversion = GenerateConversion(
_conversions
, conversionOperand, operandType.Type, targetType, fromExplicitCast, extensionMethodThisArgument, isChecked: conversionOpt?.Checked ?? false);
9118
conversion = GenerateConversion(
_conversions
, conversionOperand, operandType.Type, targetType, fromExplicitCast, extensionMethodThisArgument, isChecked: conversionOpt?.Checked ?? false);
9136
conversion = GenerateConversion(
_conversions
, conversionOperand, operandType.Type, targetType, fromExplicitCast, extensionMethodThisArgument, isChecked: conversionOpt?.Checked ?? false);
9146
conversion = GenerateConversion(
_conversions
, conversionOperand, operandType.Type, targetType, fromExplicitCast, extensionMethodThisArgument, isChecked: conversionOpt?.Checked ?? false);
9622
var conversion =
_conversions
.ClassifyStandardConversion(operandType.Type, targetType.Type, ref discardedUseSiteInfo);
11186
conversion =
_conversions
.ClassifyImplicitConversionFromType(sourceType.Type, destinationType.Type, ref discardedUseSiteInfo);
FlowAnalysis\NullableWalker_Patterns.cs (3)
464
switch (
_conversions
.WithNullability(false).ClassifyConversionFromType(inputType, e.Type, isChecked: false, ref discardedUseSiteInfo).Kind)
763
return
_conversions
.WithNullability(false).ClassifyConversionFromType(derivedType, baseType, isChecked: false, ref discardedUseSiteInfo).Kind switch
952
(inferType ? BestTypeInferrer.InferBestType(placeholders,
_conversions
, ref discardedUseSiteInfo, out _) : null)