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