18 references to Span
Microsoft.CodeAnalysis.CSharp (18)
Binder\Binder.ValueChecks.cs (1)
4555
case CollectionExpressionTypeKind.
Span
:
Binder\Semantics\Conversions\ConversionsBase.cs (1)
1670
return CollectionExpressionTypeKind.
Span
;
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 _):
3138
kind2 is CollectionExpressionTypeKind.
Span
)
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 (5)
60
case CollectionExpressionTypeKind.
Span
:
260
Debug.Assert(collectionTypeKind is CollectionExpressionTypeKind.
Span
or CollectionExpressionTypeKind.ReadOnlySpan);
262
collectionTypeKind == CollectionExpressionTypeKind.
Span
? WellKnownType.System_Span_T : WellKnownType.System_ReadOnlySpan_T), TypeCompareKind.AllIgnoreOptions));
295
collectionTypeKind == CollectionExpressionTypeKind.
Span
? WellKnownMember.System_Span_T__ctor_Array : WellKnownMember.System_ReadOnlySpan_T__ctor_Array)!).AsMember(spanType);
503
return collectionKind is CollectionExpressionTypeKind.
Span
or CollectionExpressionTypeKind.ReadOnlySpan
Operations\CSharpOperationFactory.cs (1)
1246
case CollectionExpressionTypeKind.
Span
: