4 references to ShouldUseRuntimeHelpersCreateSpan
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder.ValueChecks.cs (1)
4798return LocalRewriter.ShouldUseRuntimeHelpersCreateSpan(expr, elementType.Type)
Binder\RefSafetyAnalysis.cs (1)
1322var safeContext = node.Elements.Length == 0 || LocalRewriter.ShouldUseRuntimeHelpersCreateSpan(node, elementType.Type)
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (2)
334ShouldUseRuntimeHelpersCreateSpan(node, elementType.Type)) 617&& !(collectionKind == CollectionExpressionTypeKind.ReadOnlySpan && ShouldUseRuntimeHelpersCreateSpan(node, elementType))