16 references to CollectionExpression
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder.ValueChecks.cs (2)
4353
if (conversion.ConversionKind == ConversionKind.
CollectionExpression
)
5124
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)
2966
if (conv1.Kind == ConversionKind.
CollectionExpression
&&
2967
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)
8903
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
: