6 references to SpecializedCollections
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (4)
85
return
SpecializedCollections
.EmptyBoxedImmutableArray<T>();
90
return array.IsDefaultOrEmpty ?
SpecializedCollections
.EmptyBoxedImmutableArray<T>() : (IReadOnlyList<T>)items;
95
return
SpecializedCollections
.EmptyBoxedImmutableArray<T>();
345
return
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>();