23 references to IsSpan
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder_Conversions.cs (8)
505
Debug.Assert(destination.
IsSpan
() || destination.IsReadOnlySpan());
524
if (source.Type.
IsSpan
())
536
if (source.Type.
IsSpan
() || source.Type.IsReadOnlySpan())
544
TypeSymbol sourceForCastUp = source.Type.
IsSpan
()
595
Debug.Assert(type.
IsSpan
() || type.IsReadOnlySpan());
605
Debug.Assert(spanType.
IsSpan
() && readonlySpanType.IsReadOnlySpan());
609
static (readonlySpanType, method) => method.Parameters[0].Type.
IsSpan
() &&
628
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)
1747
target.
IsSpan
() &&
1748
(source.IsSZArray() || source.
IsSpan
())
1753
(source.IsSZArray() || source.
IsSpan
() || source.IsReadOnlySpan())
1768
Debug.Assert(type.
IsSpan
() || type.IsReadOnlySpan());
2159
target.
IsSpan
() &&
2160
(source.IsSZArray() || source.
IsSpan
())
2165
(source.IsSZArray() || source.
IsSpan
() || source.IsReadOnlySpan())
2174
if (!sourceElementType.Type.IsReferenceType || target.
IsSpan
())
Binder\Semantics\OverloadResolution\OverloadResolution.cs (3)
3509
else if ((type1.
IsSpan
() || type1.IsReadOnlySpan()) &&
3510
(type2.
IsSpan
() || type2.IsReadOnlySpan()) &&
3659
if (type1.IsReadOnlySpan() && type2.
IsSpan
())
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
652
if (sourceType.
IsSpan
())