23 references to IsSpan
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Conversions.cs (8)
486
Debug.Assert(destination.
IsSpan
() || destination.IsReadOnlySpan());
505
if (source.Type.
IsSpan
())
517
if (source.Type.
IsSpan
() || source.Type.IsReadOnlySpan())
525
TypeSymbol sourceForCastUp = source.Type.
IsSpan
()
576
Debug.Assert(type.
IsSpan
() || type.IsReadOnlySpan());
586
Debug.Assert(spanType.
IsSpan
() && readonlySpanType.IsReadOnlySpan());
590
static (readonlySpanType, method) => method.Parameters[0].Type.
IsSpan
() &&
609
Debug.Assert(source.
IsSpan
() || source.IsReadOnlySpan());
Binder\Semantics\Conversions\ConversionsBase.cs (3)
3962
if (destination.
IsSpan
())
3977
else if (source.
IsSpan
() || source.IsReadOnlySpan())
4025
(destination.
IsSpan
() || destination.IsReadOnlySpan()))
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (8)
1717
target.
IsSpan
() &&
1718
(source.IsSZArray() || source.
IsSpan
())
1723
(source.IsSZArray() || source.
IsSpan
() || source.IsReadOnlySpan())
1738
Debug.Assert(type.
IsSpan
() || type.IsReadOnlySpan());
2129
target.
IsSpan
() &&
2130
(source.IsSZArray() || source.
IsSpan
())
2135
(source.IsSZArray() || source.
IsSpan
() || source.IsReadOnlySpan())
2144
if (!sourceElementType.Type.IsReferenceType || target.
IsSpan
())
Binder\Semantics\OverloadResolution\OverloadResolution.cs (3)
3457
else if ((type1.
IsSpan
() || type1.IsReadOnlySpan()) &&
3458
(type2.
IsSpan
() || type2.IsReadOnlySpan()) &&
3607
if (type1.IsReadOnlySpan() && type2.
IsSpan
())
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
644
if (sourceType.
IsSpan
())