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) 318Debug.Assert(conversion.UnderlyingConversions.Length == 1); 328conversion.UnderlyingConversions[0], 340conversion.UnderlyingConversions[0], 349conversion.UnderlyingConversions[0].AssertUnderlyingConversionsChecked(); 357conversion.UnderlyingConversions[0], 364conversion.UnderlyingConversions[0].AssertUnderlyingConversionsChecked(); 377var elementConversions = conversion.UnderlyingConversions; 400Debug.Assert(conversion.UnderlyingConversions.IsDefault);
Binder\Semantics\Conversions\Conversion.cs (3)
421var underlyingConversions = UnderlyingConversions; 460var underlyingConversions = UnderlyingConversions; 1237var underlyingConversions = self.UnderlyingConversions;
Binder\Semantics\Conversions\ConversionsBase.cs (2)
663{ Kind: ConversionKind.ImplicitNullable, UnderlyingConversions: [{ Kind: ConversionKind.CollectionExpression }] } => true, 2016foreach (var elementConversion in conversion.UnderlyingConversions)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (2)
3013t1, kind1, elementType1, conv1.UnderlyingConversions, 3014t2, kind2, elementType2, conv2.UnderlyingConversions,
Compilation\CSharpSemanticModel.cs (1)
2174else if (highestBoundExpr is BoundConversion { ConversionKind: ConversionKind.ImplicitNullable, Conversion.UnderlyingConversions: [{ Kind: ConversionKind.CollectionExpression }] } boundConversion)
FlowAnalysis\NullableWalker.cs (1)
8545var 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); 964var elementConversions = conversion.UnderlyingConversions; 1012case BoundConversion { Conversion: { Kind: ConversionKind.ImplicitNullable, UnderlyingConversions: var underlying }, Operand: var convertedArgument } conversion 1063BoundExpression rewrittenConversion = MakeConversionNode(syntax, rewrittenOperand, conversion.UnderlyingConversions[0], rewrittenType.GetNullableUnderlyingType(), @checked); 1085return MakeConversionNode(syntax, value, conversion.UnderlyingConversions[0], rewrittenType, @checked); 1182conversion.UnderlyingConversions[0], 1266conversion.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;