20 references to ReadOnlySpan
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder.ValueChecks.cs (1)
4552
case CollectionExpressionTypeKind.
ReadOnlySpan
:
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1674
return CollectionExpressionTypeKind.
ReadOnlySpan
;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (10)
3035
var t1IsSpanType = kind1 is CollectionExpressionTypeKind.
ReadOnlySpan
or CollectionExpressionTypeKind.Span;
3036
var t2IsSpanType = kind2 is CollectionExpressionTypeKind.
ReadOnlySpan
or CollectionExpressionTypeKind.Span;
3116
case (CollectionExpressionTypeKind.
ReadOnlySpan
, CollectionExpressionTypeKind.Span):
3117
case (CollectionExpressionTypeKind.
ReadOnlySpan
or CollectionExpressionTypeKind.Span, _) when IsSZArrayOrArrayInterface(t2, out _):
3120
case (CollectionExpressionTypeKind.Span, CollectionExpressionTypeKind.
ReadOnlySpan
):
3121
case (_, CollectionExpressionTypeKind.
ReadOnlySpan
or CollectionExpressionTypeKind.Span) when IsSZArrayOrArrayInterface(t1, out _):
3137
if (kind1 is CollectionExpressionTypeKind.
ReadOnlySpan
&&
3145
if (kind1 is (CollectionExpressionTypeKind.
ReadOnlySpan
or CollectionExpressionTypeKind.Span))
3152
Debug.Assert(kind1 is not (CollectionExpressionTypeKind.
ReadOnlySpan
or CollectionExpressionTypeKind.Span));
3153
if (kind2 is not (CollectionExpressionTypeKind.
ReadOnlySpan
or CollectionExpressionTypeKind.Span) &&
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (7)
61
case CollectionExpressionTypeKind.
ReadOnlySpan
:
260
Debug.Assert(collectionTypeKind is CollectionExpressionTypeKind.Span or CollectionExpressionTypeKind.
ReadOnlySpan
);
271
if (collectionTypeKind == CollectionExpressionTypeKind.
ReadOnlySpan
&&
289
asReadOnlySpan: collectionTypeKind == CollectionExpressionTypeKind.
ReadOnlySpan
);
476
: VisitArrayOrSpanCollectionExpression(node, CollectionExpressionTypeKind.
ReadOnlySpan
, spanType, elementType);
503
return collectionKind is CollectionExpressionTypeKind.Span or CollectionExpressionTypeKind.
ReadOnlySpan
506
&& !(collectionKind == CollectionExpressionTypeKind.
ReadOnlySpan
&& ShouldUseRuntimeHelpersCreateSpan(node, elementType))
Operations\CSharpOperationFactory.cs (1)
1245
case CollectionExpressionTypeKind.
ReadOnlySpan
: