35 references to UnderlyingConversions
Microsoft.CodeAnalysis.CSharp (35)
Binder\Binder_Conversions.cs (11)
88
!(conversion.IsTupleLiteralConversion || (conversion.IsNullable && conversion.
UnderlyingConversions
[0].IsTupleLiteralConversion)) &&
154
(conversion.IsNullable && conversion.
UnderlyingConversions
[0].IsTupleLiteralConversion))
234
|| (conversion.IsNullable && conversion.
UnderlyingConversions
[0].IsCollectionExpression)
318
Debug.Assert(conversion.
UnderlyingConversions
.Length == 1);
328
conversion.
UnderlyingConversions
[0],
340
conversion.
UnderlyingConversions
[0],
349
conversion.
UnderlyingConversions
[0].AssertUnderlyingConversionsChecked();
357
conversion.
UnderlyingConversions
[0],
364
conversion.
UnderlyingConversions
[0].AssertUnderlyingConversionsChecked();
377
var elementConversions = conversion.
UnderlyingConversions
;
400
Debug.Assert(conversion.
UnderlyingConversions
.IsDefault);
Binder\Semantics\Conversions\Conversion.cs (3)
421
var underlyingConversions =
UnderlyingConversions
;
460
var underlyingConversions =
UnderlyingConversions
;
1237
var underlyingConversions = self.
UnderlyingConversions
;
Binder\Semantics\Conversions\ConversionsBase.cs (2)
663
{ Kind: ConversionKind.ImplicitNullable,
UnderlyingConversions
: [{ Kind: ConversionKind.CollectionExpression }] } => true,
2016
foreach (var elementConversion in conversion.
UnderlyingConversions
)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (2)
3013
t1, kind1, elementType1, conv1.
UnderlyingConversions
,
3014
t2, kind2, elementType2, conv2.
UnderlyingConversions
,
Compilation\CSharpSemanticModel.cs (1)
2174
else if (highestBoundExpr is BoundConversion { ConversionKind: ConversionKind.ImplicitNullable, Conversion.
UnderlyingConversions
: [{ Kind: ConversionKind.CollectionExpression }] } boundConversion)
FlowAnalysis\NullableWalker.cs (1)
8545
var conversions = conversion.
UnderlyingConversions
;
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (2)
222
if (!conversion.
UnderlyingConversions
.IsDefault)
225
foreach (var underlying in conversion.
UnderlyingConversions
)
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (8)
61
case ConversionKind.ImplicitNullable when node.Conversion.
UnderlyingConversions
[0].Kind is ConversionKind.CollectionExpression:
62
var rewrittenCollection = RewriteCollectionExpressionConversion(node.Conversion.
UnderlyingConversions
[0], (BoundCollectionExpression)node.Operand);
964
var elementConversions = conversion.
UnderlyingConversions
;
1012
case BoundConversion { Conversion: { Kind: ConversionKind.ImplicitNullable,
UnderlyingConversions
: var underlying }, Operand: var convertedArgument } conversion
1063
BoundExpression rewrittenConversion = MakeConversionNode(syntax, rewrittenOperand, conversion.
UnderlyingConversions
[0], rewrittenType.GetNullableUnderlyingType(), @checked);
1085
return MakeConversionNode(syntax, value, conversion.
UnderlyingConversions
[0], rewrittenType, @checked);
1182
conversion.
UnderlyingConversions
[0],
1266
conversion.
UnderlyingConversions
[0],
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (5)
61
var underlyingConversions = c.
UnderlyingConversions
;
114
var elementConversions = conversion.
UnderlyingConversions
;
403
case BoundConversion { Conversion: { IsNullable: true,
UnderlyingConversions
: var underlying } conversion, Operand: var o }
437
case BoundConversion { Conversion: { IsNullable: true,
UnderlyingConversions
: var nested }, Operand: var o } conv when
446
var underlyingConversions = tupleConversion.
UnderlyingConversions
;