17 references to RemoveConversion
Microsoft.CodeAnalysis.CSharp (17)
FlowAnalysis\NullableWalker.cs (16)
3016
if (!expr.IsSuppressed &&
RemoveConversion
(expr, includeExplicitConversions: false).expression.Kind != BoundKind.ThrowExpression)
5275
var (rightOperand, rightConversion) =
RemoveConversion
(binary.Right, includeExplicitConversions: false);
5500
var expressionWithoutConversion =
RemoveConversion
(expression, includeExplicitConversions: true).expression;
5744
var (operand, conversion) =
RemoveConversion
(node, includeExplicitConversions: true);
5790
(node, _) =
RemoveConversion
(node, includeExplicitConversions: true);
6140
(operandNoConversion, conversion) =
RemoveConversion
(operand, includeExplicitConversions: false);
7814
(argument, conversion) =
RemoveConversion
(argument, includeExplicitConversions: false);
8029
var (elementNoConversion, _) =
RemoveConversion
(elementExpression, includeExplicitConversions: false);
8333
(BoundExpression operand, Conversion conversion) =
RemoveConversion
(node, includeExplicitConversions: true);
8388
(BoundExpression operand, Conversion conversion) =
RemoveConversion
(expr, includeExplicitConversions: false);
8811
|| convertedNode ==
RemoveConversion
(conversionOpt, includeExplicitConversions: false).expression
8812
|| convertedNode ==
RemoveConversion
(conversionOpt, includeExplicitConversions: true).expression);
10264
var argConversion =
RemoveConversion
(invocation.Arguments[0], includeExplicitConversions: false).conversion;
10587
var (rightConversionOperand, rightConversion) =
RemoveConversion
(node.Right, includeExplicitConversions: false);
10905
var (expr, conversion) =
RemoveConversion
(node.Expression, includeExplicitConversions: false);
11316
var (operand, conversion) =
RemoveConversion
(node.Operand, includeExplicitConversions: false);
FlowAnalysis\NullableWalker_Patterns.cs (1)
931
(BoundExpression expression, Conversion conversion) =
RemoveConversion
(arm.Value, includeExplicitConversions: false);