16 references to CollectionExpression
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder.ValueChecks.cs (2)
4329
if (conversion.ConversionKind == ConversionKind.
CollectionExpression
)
5106
if (conversion.ConversionKind == ConversionKind.
CollectionExpression
)
Binder\Semantics\Conversions\Conversion.cs (3)
135
ConversionKind.
CollectionExpression
,
275
internal static Conversion CollectionExpression => new Conversion(ConversionKind.
CollectionExpression
);
715
public bool IsCollectionExpression => Kind == ConversionKind.
CollectionExpression
;
Binder\Semantics\Conversions\ConversionKindExtensions.cs (1)
55
case
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)
2974
if (conv1.Kind == ConversionKind.
CollectionExpression
&&
2975
conv2.Kind == ConversionKind.
CollectionExpression
)
Compilation\CSharpSemanticModel.cs (2)
2168
if (highestBoundExpr is BoundConversion { ConversionKind: ConversionKind.
CollectionExpression
or ConversionKind.NoConversion, Conversion: var convertedCollectionConversion })
2174
else if (highestBoundExpr is BoundConversion { ConversionKind: ConversionKind.ImplicitNullable, Conversion.UnderlyingConversions: [{ Kind: ConversionKind.
CollectionExpression
}] } boundConversion)
FlowAnalysis\NullableWalker.cs (1)
8961
case ConversionKind.
CollectionExpression
:
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
33
Debug.Assert(conversion.Kind == ConversionKind.
CollectionExpression
);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
61
case ConversionKind.ImplicitNullable when node.Conversion.UnderlyingConversions[0].Kind is ConversionKind.
CollectionExpression
:
65
case ConversionKind.
CollectionExpression
: