20 references to ReadOnlySpan
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder.ValueChecks.cs (1)
4528case CollectionExpressionTypeKind.ReadOnlySpan:
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1674return CollectionExpressionTypeKind.ReadOnlySpan;
Binder\Semantics\OverloadResolution\OverloadResolution.cs (10)
3056var t1IsSpanType = kind1 is CollectionExpressionTypeKind.ReadOnlySpan or CollectionExpressionTypeKind.Span; 3057var t2IsSpanType = kind2 is CollectionExpressionTypeKind.ReadOnlySpan or CollectionExpressionTypeKind.Span; 3137case (CollectionExpressionTypeKind.ReadOnlySpan, CollectionExpressionTypeKind.Span): 3138case (CollectionExpressionTypeKind.ReadOnlySpan or CollectionExpressionTypeKind.Span, _) when IsSZArrayOrArrayInterface(t2, out _): 3141case (CollectionExpressionTypeKind.Span, CollectionExpressionTypeKind.ReadOnlySpan): 3142case (_, CollectionExpressionTypeKind.ReadOnlySpan or CollectionExpressionTypeKind.Span) when IsSZArrayOrArrayInterface(t1, out _): 3158if (kind1 is CollectionExpressionTypeKind.ReadOnlySpan && 3166if (kind1 is (CollectionExpressionTypeKind.ReadOnlySpan or CollectionExpressionTypeKind.Span)) 3173Debug.Assert(kind1 is not (CollectionExpressionTypeKind.ReadOnlySpan or CollectionExpressionTypeKind.Span)); 3174if (kind2 is not (CollectionExpressionTypeKind.ReadOnlySpan or CollectionExpressionTypeKind.Span) &&
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (7)
61case CollectionExpressionTypeKind.ReadOnlySpan: 263Debug.Assert(collectionTypeKind is CollectionExpressionTypeKind.Span or CollectionExpressionTypeKind.ReadOnlySpan); 274if (collectionTypeKind == CollectionExpressionTypeKind.ReadOnlySpan && 292asReadOnlySpan: collectionTypeKind == CollectionExpressionTypeKind.ReadOnlySpan); 491: VisitArrayOrSpanCollectionExpression(node, CollectionExpressionTypeKind.ReadOnlySpan, spanType, elementType); 518return collectionKind is CollectionExpressionTypeKind.Span or CollectionExpressionTypeKind.ReadOnlySpan 521&& !(collectionKind == CollectionExpressionTypeKind.ReadOnlySpan && ShouldUseRuntimeHelpersCreateSpan(node, elementType))
Operations\CSharpOperationFactory.cs (1)
1245case CollectionExpressionTypeKind.ReadOnlySpan: