35 references to UnderlyingConversions
Microsoft.CodeAnalysis.CSharp (35)
Binder\Binder_Conversions.cs (13)
87
!(conversion.IsTupleLiteralConversion || (conversion.IsNullable && conversion.
UnderlyingConversions
[0].IsTupleLiteralConversion)) &&
153
(conversion.IsNullable && conversion.
UnderlyingConversions
[0].IsTupleLiteralConversion))
238
|| (conversion.IsNullable && conversion.
UnderlyingConversions
[0].IsCollectionExpression)
322
Debug.Assert(conversion.
UnderlyingConversions
.Length == 1);
332
conversion.
UnderlyingConversions
[0],
344
conversion.
UnderlyingConversions
[0],
353
conversion.
UnderlyingConversions
[0].AssertUnderlyingConversionsChecked();
361
conversion.
UnderlyingConversions
[0],
368
conversion.
UnderlyingConversions
[0].AssertUnderlyingConversionsChecked();
381
var elementConversions = conversion.
UnderlyingConversions
;
404
Debug.Assert(conversion.
UnderlyingConversions
.IsDefault);
577
conversion = conversion.
UnderlyingConversions
[0];
691
var elementConversions = conversion.
UnderlyingConversions
;
Binder\Semantics\Conversions\Conversion.cs (3)
417
var underlyingConversions =
UnderlyingConversions
;
456
var underlyingConversions =
UnderlyingConversions
;
1219
var underlyingConversions = self.
UnderlyingConversions
;
Binder\Semantics\Conversions\ConversionsBase.cs (2)
662
{ Kind: ConversionKind.ImplicitNullable,
UnderlyingConversions
: [{ Kind: ConversionKind.CollectionExpression }] } => true,
1993
foreach (var elementConversion in conversion.
UnderlyingConversions
)
Compilation\CSharpSemanticModel.cs (1)
2174
else if (highestBoundExpr is BoundConversion { ConversionKind: ConversionKind.ImplicitNullable, Conversion.
UnderlyingConversions
: [{ Kind: ConversionKind.CollectionExpression }] } boundConversion)
FlowAnalysis\NullableWalker.cs (1)
8387
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);
867
var elementConversions = conversion.
UnderlyingConversions
;
915
case BoundConversion { Conversion: { Kind: ConversionKind.ImplicitNullable,
UnderlyingConversions
: var underlying }, Operand: var convertedArgument } conversion
966
BoundExpression rewrittenConversion = MakeConversionNode(syntax, rewrittenOperand, conversion.
UnderlyingConversions
[0], rewrittenType.GetNullableUnderlyingType(), @checked);
988
return MakeConversionNode(syntax, value, conversion.
UnderlyingConversions
[0], rewrittenType, @checked);
1085
conversion.
UnderlyingConversions
[0],
1169
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
;