4 references to ShouldUseRuntimeHelpersCreateSpan
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder.ValueChecks.cs (2)
4530
return !LocalRewriter.
ShouldUseRuntimeHelpersCreateSpan
(expr, elementType.Type);
4550
if (LocalRewriter.
ShouldUseRuntimeHelpersCreateSpan
(expr, ((NamedTypeSymbol)parameter.Type).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].Type))
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (2)
275
ShouldUseRuntimeHelpersCreateSpan
(node, elementType.Type))
521
&& !(collectionKind == CollectionExpressionTypeKind.ReadOnlySpan &&
ShouldUseRuntimeHelpersCreateSpan
(node, elementType))