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