1 write to _conversions
Microsoft.CodeAnalysis.CSharp (1)
FlowAnalysis\NullableWalker.cs (1)
470
_conversions
= (Conversions)conversions.WithNullability(true);
24 references to _conversions
Microsoft.CodeAnalysis.CSharp (24)
FlowAnalysis\NullableWalker.cs (21)
2614
var conversionsWithoutNullability =
_conversions
.WithNullability(false);
2720
var conversionsWithoutNullability =
_conversions
.WithNullability(false);
4618
bestType = BestTypeInferrer.InferBestType(placeholders,
_conversions
, ref discardedUseSiteInfo, out _);
4732
TypeSymbol? bestType = BestTypeInferrer.InferBestType(placeholders, walker.
_conversions
, ref discardedUseSiteInfo, out inferredFromFunctionType);
4739
Conversions conversionsWithoutNullability = walker.
_conversions
.WithNullability(false);
5197
var conversion =
_conversions
.ClassifyBuiltInConversion(derivedType, baseType, isChecked: false, ref discardedUseSiteInfo);
5909
refResultType = BestTypeInferrer.InferBestTypeForConditionalOperator(consequencePlaceholder, alternativePlaceholder,
_conversions
, out _, ref discardedUseSiteInfo);
5965
resultType = BestTypeInferrer.InferBestTypeForConditionalOperator(consequencePlaceholder, alternativePlaceholder,
_conversions
, out _, ref discardedUseSiteInfo);
7368
conversion = GenerateConversion(
_conversions
, argumentNoConversion, argumentResultType, parameterType.Type, fromExplicitCast: false, extensionMethodThisArgument: false, isChecked: conversionOpt?.Checked ?? false);
7568
if (!
_conversions
.HasIdentityOrImplicitReferenceConversion(parameterType.Type, lValueType.Type, ref discardedUseSiteInfo))
7854
_conversions
,
8015
new ConstraintsHelper.CheckConstraintsArgs(compilation,
_conversions
, includeNullability: true, NoLocation.Singleton, diagnostics: null, template: CompoundUseSiteInfo<AssemblySymbol>.Discarded),
8081
var conversion = GenerateConversion(
_conversions
, sourceExpression, sourceType, destinationType, fromExplicitCast: false, extensionMethodThisArgument: false, isChecked: isChecked);
8443
tupleOpt.CheckConstraints(new ConstraintsHelper.CheckConstraintsArgs(compilation,
_conversions
, includeNullability: true, node.Syntax.Location, diagnostics: null),
8979
conversion = GenerateConversion(
_conversions
, conversionOperand, operandType.Type, targetType, fromExplicitCast, extensionMethodThisArgument, isChecked: conversionOpt?.Checked ?? false);
9005
conversion = GenerateConversion(
_conversions
, conversionOperand, operandType.Type, targetType, fromExplicitCast, extensionMethodThisArgument, isChecked: conversionOpt?.Checked ?? false);
9057
conversion = GenerateConversion(
_conversions
, conversionOperand, operandType.Type, targetType, fromExplicitCast, extensionMethodThisArgument, isChecked: conversionOpt?.Checked ?? false);
9075
conversion = GenerateConversion(
_conversions
, conversionOperand, operandType.Type, targetType, fromExplicitCast, extensionMethodThisArgument, isChecked: conversionOpt?.Checked ?? false);
9085
conversion = GenerateConversion(
_conversions
, conversionOperand, operandType.Type, targetType, fromExplicitCast, extensionMethodThisArgument, isChecked: conversionOpt?.Checked ?? false);
9561
var conversion =
_conversions
.ClassifyStandardConversion(operandType.Type, targetType.Type, ref discardedUseSiteInfo);
11125
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)