6 references to SpecializedCollections
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (4)
85return SpecializedCollections.EmptyBoxedImmutableArray<T>(); 90return array.IsDefaultOrEmpty ? SpecializedCollections.EmptyBoxedImmutableArray<T>() : (IReadOnlyList<T>)items; 95return SpecializedCollections.EmptyBoxedImmutableArray<T>(); 345return SpecializedCollections.EmptyEnumerable<T>();
src\Compilers\Core\Portable\InternalUtilities\SetWithInsertionOrder.cs (2)
90=> _elements is null ? SpecializedCollections.EmptyEnumerator<T>() : ((IEnumerable<T>)_elements).GetEnumerator(); 99=> (IReadOnlySet<T>?)_set ?? SpecializedCollections.EmptyReadOnlySet<T>();