28 references to GetConversion
Microsoft.CodeAnalysis.CSharp (28)
Binder\Binder_Conversions.cs (2)
73
Debug.Assert(BoundNode.
GetConversion
(result, placeholder1) == conversion);
79
Debug.Assert(BoundNode.
GetConversion
(result2, placeholder2) == conversion);
Binder\RefSafetyAnalysis.cs (1)
985
var underlyingConversion = BoundNode.
GetConversion
(placeholderConversion, placeholder);
Compilation\CSharpSemanticModel.cs (1)
2127
conversion = BoundNode.
GetConversion
(initializer.ElementPointerConversion, initializer.ElementPointerPlaceholder);
Compilation\MemberSemanticModel.cs (2)
993
BoundNode.
GetConversion
(boundForEach.ElementConversion, boundForEach.ElementPlaceholder),
994
BoundNode.
GetConversion
(enumeratorInfoOpt.CurrentConversion, enumeratorInfoOpt.CurrentPlaceholder));
FlowAnalysis\NullableWalker.cs (8)
10215
var underlyingConversion = BoundNode.
GetConversion
(placeholderConversion, placeholder);
10256
var underlyingConversion = BoundNode.
GetConversion
(placeholderConversion, placeholder);
10457
BoundNode.
GetConversion
(node.OperandConversion, node.OperandPlaceholder),
10487
BoundNode.
GetConversion
(node.ResultConversion, node.ResultPlaceholder),
10542
BoundNode.
GetConversion
(node.LeftConversion, node.LeftPlaceholder),
10556
BoundNode.
GetConversion
(node.FinalConversion, node.FinalPlaceholder),
11125
Conversion conversion = BoundNode.
GetConversion
(node.ElementConversion, node.ElementPlaceholder);
11546
switch (BoundNode.
GetConversion
(node.OperandConversion, node.OperandPlaceholder).Kind)
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
877
if (BoundNode.
GetConversion
(node.LeftConversion, node.LeftPlaceholder) is { IsUserDefined: true } leftConversion)
Lowering\LocalRewriter\LocalRewriter_AsOperator.cs (1)
49
var conversion = BoundNode.
GetConversion
(operandConversion, operandPlaceholder);
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (2)
237
BoundNode.
GetConversion
(nestedConversion, placeholder), temps, effects, isUsed, inInit);
373
if (BoundNode.
GetConversion
(conversion, placeholder).IsIdentity)
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (4)
33
Debug.Assert(BoundNode.
GetConversion
(leftConversion, leftPlaceholder).IsValid);
92
BoundNode.
GetConversion
(leftConversion, leftPlaceholder) is { Kind: ConversionKind.Identity or ConversionKind.ImplicitReference })
99
if (BoundNode.
GetConversion
(leftConversion, leftPlaceholder) is { IsIdentity: true } or { Kind: ConversionKind.ExplicitNullable })
240
Debug.Assert(BoundNode.
GetConversion
(leftConversion, leftPlaceholder).IsValid);
Operations\CSharpOperationFactory.cs (6)
1143
Conversion conversion = BoundNode.
GetConversion
(boundAsOperator.OperandConversion, boundAsOperator.OperandPlaceholder);
1360
Conversion inConversion = BoundNode.
GetConversion
(boundCompoundAssignmentOperator.LeftConversion, boundCompoundAssignmentOperator.LeftPlaceholder);
1361
Conversion outConversion = BoundNode.
GetConversion
(boundCompoundAssignmentOperator.FinalConversion, boundCompoundAssignmentOperator.FinalPlaceholder);
1593
Conversion valueConversion = BoundNode.
GetConversion
(boundNullCoalescingOperator.LeftConversion, boundNullCoalescingOperator.LeftPlaceholder);
1917
BoundNode.
GetConversion
(enumeratorInfoOpt.CurrentConversion, enumeratorInfoOpt.CurrentPlaceholder),
1918
BoundNode.
GetConversion
(boundForEachStatement.ElementConversion, boundForEachStatement.ElementPlaceholder),