10 references to ToImmutableArrayOrEmpty
Microsoft.CodeAnalysis.Workspaces (10)
CodeActions\CodeAction.cs (1)
303
return operations.
ToImmutableArrayOrEmpty
();
CodeActions\CodeActionWithOptions.cs (1)
58
return operations.
ToImmutableArrayOrEmpty
();
CodeFixesAndRefactorings\FixAllProviderInfo.cs (3)
64
var scopes = fixAllProvider.GetSupportedFixAllScopes().
ToImmutableArrayOrEmpty
();
84
var scopes = fixAllProvider.GetSupportedFixAllScopes().
ToImmutableArrayOrEmpty
();
104
var scopes = fixAllProvider.GetSupportedFixAllScopes().
ToImmutableArrayOrEmpty
();
Serialization\SerializerService_Asset.cs (1)
82
return new ProjectReference(projectId, aliases.
ToImmutableArrayOrEmpty
(), embedInteropTypes);
Simplification\Simplifier.cs (2)
237
document, spans.
ToImmutableArrayOrEmpty
(), options, reducers: default, cancellationToken).ConfigureAwait(false);
242
document, spans.
ToImmutableArrayOrEmpty
(), options, reducers: default, cancellationToken);
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (1)
94
public ImmutableArray<T> AsImmutable() => _elements.
ToImmutableArrayOrEmpty
();
Workspace\Solution\ProjectDependencyGraph.cs (1)
468
results.Add(sortedProjects.Object.
ToImmutableArrayOrEmpty
());