16 references to CollectionExpression
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder.ValueChecks.cs (2)
4353if (conversion.ConversionKind == ConversionKind.CollectionExpression) 5124if (conversion.ConversionKind == ConversionKind.CollectionExpression)
Binder\Semantics\Conversions\Conversion.cs (3)
135ConversionKind.CollectionExpression, 275internal static Conversion CollectionExpression => new Conversion(ConversionKind.CollectionExpression); 715public bool IsCollectionExpression => Kind == ConversionKind.CollectionExpression;
Binder\Semantics\Conversions\ConversionKindExtensions.cs (1)
55case CollectionExpression:
Binder\Semantics\Conversions\ConversionsBase.cs (2)
662{ Kind: ConversionKind.CollectionExpression } => true, 663{ Kind: ConversionKind.ImplicitNullable, UnderlyingConversions: [{ Kind: ConversionKind.CollectionExpression }] } => true,
Binder\Semantics\OverloadResolution\OverloadResolution.cs (2)
2966if (conv1.Kind == ConversionKind.CollectionExpression && 2967conv2.Kind == ConversionKind.CollectionExpression)
Compilation\CSharpSemanticModel.cs (2)
2168if (highestBoundExpr is BoundConversion { ConversionKind: ConversionKind.CollectionExpression or ConversionKind.NoConversion, Conversion: var convertedCollectionConversion }) 2174else if (highestBoundExpr is BoundConversion { ConversionKind: ConversionKind.ImplicitNullable, Conversion.UnderlyingConversions: [{ Kind: ConversionKind.CollectionExpression }] } boundConversion)
FlowAnalysis\NullableWalker.cs (1)
8903case ConversionKind.CollectionExpression:
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
33Debug.Assert(conversion.Kind == ConversionKind.CollectionExpression);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
61case ConversionKind.ImplicitNullable when node.Conversion.UnderlyingConversions[0].Kind is ConversionKind.CollectionExpression: 65case ConversionKind.CollectionExpression: