21 references to EmptyEnumerable
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (1)
352var attributeValues = SpecializedCollections.EmptyEnumerable<string?>();
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
350SpecializedCollections.EmptyEnumerable<SyntaxNode>(); 358SpecializedCollections.EmptyEnumerable<SyntaxNode>();
Microsoft.CodeAnalysis.Features (5)
ExtractInterface\ExtractInterfaceCodeAction.cs (1)
37var operations = SpecializedCollections.EmptyEnumerable<CodeActionOperation>();
ExtractMethod\AbstractSyntaxTriviaService.cs (1)
75var emptyList = SpecializedCollections.EmptyEnumerable<SyntaxTrivia>();
GenerateType\AbstractGenerateTypeService.CodeAction.cs (1)
174var operations = SpecializedCollections.EmptyEnumerable<CodeActionOperation>();
Navigation\NavigableItemFactory.cs (2)
48var generatedSourceLocations = candidateLocationGroups.SingleOrDefault(g => g.Key) ?? SpecializedCollections.EmptyEnumerable<Location>(); 49var nonGeneratedSourceLocations = candidateLocationGroups.SingleOrDefault(g => !g.Key) ?? SpecializedCollections.EmptyEnumerable<Location>();
Microsoft.CodeAnalysis.Workspaces (2)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
328return SpecializedCollections.EmptyEnumerable<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
185public static readonly Task<IEnumerable<T>> EmptyEnumerable = Task.FromResult<IEnumerable<T>>(SpecializedCollections.EmptyEnumerable<T>());
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (9)
Workspaces\TestHostProject`1.cs (9)
113_analyzerReferences = analyzerReferences ?? SpecializedCollections.EmptyEnumerable<AnalyzerReference>(); 115this.AdditionalDocuments = additionalDocuments ?? SpecializedCollections.EmptyEnumerable<TDocument>(); 116this.AnalyzerConfigDocuments = analyzerConfigDocuments ?? SpecializedCollections.EmptyEnumerable<TDocument>(); 117ProjectReferences = SpecializedCollections.EmptyEnumerable<ProjectReference>(); 149this.Documents = documents ?? SpecializedCollections.EmptyEnumerable<TDocument>(); 150this.AdditionalDocuments = additionalDocuments ?? SpecializedCollections.EmptyEnumerable<TDocument>(); 151this.AnalyzerConfigDocuments = analyzerConfigDocuments ?? SpecializedCollections.EmptyEnumerable<TDocument>(); 152ProjectReferences = projectReferences != null ? projectReferences.Select(p => new ProjectReference(p.Id)) : SpecializedCollections.EmptyEnumerable<ProjectReference>(); 154_analyzerReferences = analyzerReferences ?? SpecializedCollections.EmptyEnumerable<AnalyzerReference>();
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
CodeCleanup\CodeCleanupTests.cs (1)
380var expectedResult = namedSpans.TryGetValue("r", out var spans) ? spans : SpecializedCollections.EmptyEnumerable<TextSpan>();
UtilityTest\SpecializedTasksTests.cs (1)
37var whenAll = SpecializedTasks.WhenAll(SpecializedCollections.EmptyEnumerable<ValueTask<int>>());