17 references to Span
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder.ValueChecks.cs (1)
4785
case CollectionExpressionTypeKind.
Span
:
Binder\Binder_Conversions.cs (1)
843
case CollectionExpressionTypeKind.
Span
:
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1668
return CollectionExpressionTypeKind.
Span
;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (10)
3088
var t1IsSpanType = kind1 is CollectionExpressionTypeKind.ReadOnlySpan or CollectionExpressionTypeKind.
Span
;
3089
var t2IsSpanType = kind2 is CollectionExpressionTypeKind.ReadOnlySpan or CollectionExpressionTypeKind.
Span
;
3169
case (CollectionExpressionTypeKind.ReadOnlySpan, CollectionExpressionTypeKind.
Span
):
3170
case (CollectionExpressionTypeKind.ReadOnlySpan or CollectionExpressionTypeKind.
Span
, _) when IsSZArrayOrArrayInterface(t2, out _):
3173
case (CollectionExpressionTypeKind.
Span
, CollectionExpressionTypeKind.ReadOnlySpan):
3174
case (_, CollectionExpressionTypeKind.ReadOnlySpan or CollectionExpressionTypeKind.
Span
) when IsSZArrayOrArrayInterface(t1, out _):
3191
kind2 is CollectionExpressionTypeKind.
Span
)
3198
if (kind1 is (CollectionExpressionTypeKind.ReadOnlySpan or CollectionExpressionTypeKind.
Span
))
3205
Debug.Assert(kind1 is not (CollectionExpressionTypeKind.ReadOnlySpan or CollectionExpressionTypeKind.
Span
));
3206
if (kind2 is not (CollectionExpressionTypeKind.ReadOnlySpan or CollectionExpressionTypeKind.
Span
) &&
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (3)
58
case CollectionExpressionTypeKind.
Span
:
319
Debug.Assert(!IsAllocatingRefStructCollectionExpression(node, isReadOnlySpan ? CollectionExpressionTypeKind.ReadOnlySpan : CollectionExpressionTypeKind.
Span
, elementType.Type, _compilation));
577
return collectionKind is CollectionExpressionTypeKind.
Span
or CollectionExpressionTypeKind.ReadOnlySpan
Operations\CSharpOperationFactory.cs (1)
1246
case CollectionExpressionTypeKind.
Span
: