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) 322Debug.Assert(conversion.UnderlyingConversions.Length == 1); 332conversion.UnderlyingConversions[0], 344conversion.UnderlyingConversions[0], 353conversion.UnderlyingConversions[0].AssertUnderlyingConversionsChecked(); 361conversion.UnderlyingConversions[0], 368conversion.UnderlyingConversions[0].AssertUnderlyingConversionsChecked(); 381var elementConversions = conversion.UnderlyingConversions; 404Debug.Assert(conversion.UnderlyingConversions.IsDefault); 577conversion = conversion.UnderlyingConversions[0]; 691var elementConversions = conversion.UnderlyingConversions;
Binder\Semantics\Conversions\Conversion.cs (3)
417var underlyingConversions = UnderlyingConversions; 456var underlyingConversions = UnderlyingConversions; 1219var underlyingConversions = self.UnderlyingConversions;
Binder\Semantics\Conversions\ConversionsBase.cs (2)
662{ Kind: ConversionKind.ImplicitNullable, UnderlyingConversions: [{ Kind: ConversionKind.CollectionExpression }] } => true, 1993foreach (var elementConversion in conversion.UnderlyingConversions)
Compilation\CSharpSemanticModel.cs (1)
2174else if (highestBoundExpr is BoundConversion { ConversionKind: ConversionKind.ImplicitNullable, Conversion.UnderlyingConversions: [{ Kind: ConversionKind.CollectionExpression }] } boundConversion)
FlowAnalysis\NullableWalker.cs (1)
8387var conversions = conversion.UnderlyingConversions;
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (2)
222if (!conversion.UnderlyingConversions.IsDefault) 225foreach (var underlying in conversion.UnderlyingConversions)
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (8)
61case ConversionKind.ImplicitNullable when node.Conversion.UnderlyingConversions[0].Kind is ConversionKind.CollectionExpression: 62var rewrittenCollection = RewriteCollectionExpressionConversion(node.Conversion.UnderlyingConversions[0], (BoundCollectionExpression)node.Operand); 867var elementConversions = conversion.UnderlyingConversions; 915case BoundConversion { Conversion: { Kind: ConversionKind.ImplicitNullable, UnderlyingConversions: var underlying }, Operand: var convertedArgument } conversion 966BoundExpression rewrittenConversion = MakeConversionNode(syntax, rewrittenOperand, conversion.UnderlyingConversions[0], rewrittenType.GetNullableUnderlyingType(), @checked); 988return MakeConversionNode(syntax, value, conversion.UnderlyingConversions[0], rewrittenType, @checked); 1085conversion.UnderlyingConversions[0], 1169conversion.UnderlyingConversions[0],
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (5)
61var underlyingConversions = c.UnderlyingConversions; 114var elementConversions = conversion.UnderlyingConversions; 403case BoundConversion { Conversion: { IsNullable: true, UnderlyingConversions: var underlying } conversion, Operand: var o } 437case BoundConversion { Conversion: { IsNullable: true, UnderlyingConversions: var nested }, Operand: var o } conv when 446var underlyingConversions = tupleConversion.UnderlyingConversions;