60 references to Conversion
Microsoft.CodeAnalysis.CSharp (60)
Binder\Binder.ValueChecks.cs (5)
782case BoundKind.Conversion: 3604case BoundKind.Conversion: 3969case BoundKind.Conversion: 4344case BoundKind.Conversion: 5115case BoundKind.Conversion:
Binder\Binder_Attributes.cs (1)
864case BoundKind.Conversion:
Binder\Binder_Expressions.cs (1)
7448if (boundValue.Kind == BoundKind.Conversion)
Binder\Binder_Operators.cs (2)
1946if (left.Kind == BoundKind.Conversion && right.Kind == BoundKind.Conversion)
Binder\Binder_Patterns.cs (1)
686if (convertedExpression.Kind == BoundKind.Conversion)
BoundTree\BoundExpressionExtensions.cs (1)
244case BoundKind.Conversion:
BoundTree\BoundTreeVisitors.cs (1)
63case BoundKind.Conversion:
CodeGen\EmitExpression.cs (6)
126case BoundKind.Conversion: 1231else if (receiver.Kind == BoundKind.Conversion) 1273if (receiver.Kind == BoundKind.Conversion && ((BoundConversion)receiver).ConversionKind == ConversionKind.Unboxing) 1535case BoundKind.Conversion: 2164case BoundKind.Conversion: 3918case BoundKind.Conversion:
CodeGen\Optimizer.cs (1)
996assignmentLocal.Type.IsPointerOrFunctionPointer() && right.Kind == BoundKind.Conversion &&
Compilation\CSharpSemanticModel.cs (4)
2191if (highestBoundExprKind != BoundKind.Conversion) 2195else if (((BoundConversion)highestBoundExpr).Operand.Kind != BoundKind.Conversion) 3523case BoundKind.Conversion: 4292case BoundKind.Conversion:
Compilation\MemberSemanticModel.cs (1)
1806case BoundKind.Conversion:
FlowAnalysis\DefiniteAssignment.cs (1)
925case BoundKind.Conversion:
FlowAnalysis\NullableWalker.cs (7)
2028case BoundKind.Conversion: 2490case BoundKind.Conversion: 5333case BoundKind.Conversion: 5527while (possiblyConversion.Kind == BoundKind.Conversion) 8049if (expr.Kind != BoundKind.Conversion) 10386case BoundKind.Conversion: 10838if (node.Expression.Kind != BoundKind.Conversion)
Generated\BoundNodes.xml.Generated.cs (2)
2952: base(BoundKind.Conversion, syntax, type, hasErrors || operand.HasErrors()) 8978case BoundKind.Conversion:
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
203case BoundKind.Conversion: 533if (operand.Kind == BoundKind.Conversion)
Lowering\DiagnosticsPass_Warnings.cs (9)
141while (receiver.Kind == BoundKind.Conversion) 317if (node.Left.ConstantValueOpt != null && node.Right.ConstantValueOpt == null && node.Right.Kind == BoundKind.Conversion) 322if (node.Right.ConstantValueOpt != null && node.Left.ConstantValueOpt == null && node.Left.Kind == BoundKind.Conversion) 347return node.Kind == BoundKind.Conversion && ((BoundConversion)node).ExplicitCastInCode; 353if (node.Kind != BoundKind.Conversion) return false; 577if (operand.Kind == BoundKind.Conversion) 606if (expr.Kind != BoundKind.Conversion) 865if (node.Kind == BoundKind.Conversion) 889while (right.Kind == BoundKind.Conversion)
Lowering\Extensions.cs (2)
56else if (expr.Kind == BoundKind.Conversion) 103if (expr.Kind == BoundKind.Conversion)
Lowering\LocalRewriter\LocalRewriter.cs (1)
1116case BoundKind.Conversion:
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
713if (expression.Kind == BoundKind.Conversion)
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
565case BoundKind.Conversion:
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
894case BoundKind.Conversion:
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
249case BoundKind.Conversion:
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (1)
304if (right.Kind == BoundKind.Conversion)
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (1)
221while (expression.Kind == BoundKind.Conversion)
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
615if (expr.Kind == BoundKind.Conversion)
Operations\CSharpOperationFactory.cs (2)
89case BoundKind.Conversion: 1096if (boundConversion.ExplicitCastInCode && conversion.IsIdentity && boundOperand.Kind == BoundKind.Conversion)
Symbols\ConstantValueUtils.cs (1)
97while (unconvertedBoundValue.Kind == BoundKind.Conversion)
Symbols\Source\ParameterHelpers.cs (1)
891case BoundKind.Conversion:
Symbols\Source\SourceComplexParameterSymbol.cs (1)
399if (convertedExpression.ConstantValueOpt == null && convertedExpression.Kind == BoundKind.Conversion &&