21 references to EmptyEnumerable
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (1)
352
var attributeValues = SpecializedCollections.
EmptyEnumerable
<string?>();
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
350
SpecializedCollections.
EmptyEnumerable
<SyntaxNode>();
358
SpecializedCollections.
EmptyEnumerable
<SyntaxNode>();
Microsoft.CodeAnalysis.Features (5)
ExtractInterface\ExtractInterfaceCodeAction.cs (1)
37
var operations = SpecializedCollections.
EmptyEnumerable
<CodeActionOperation>();
ExtractMethod\AbstractSyntaxTriviaService.cs (1)
75
var emptyList = SpecializedCollections.
EmptyEnumerable
<SyntaxTrivia>();
GenerateType\AbstractGenerateTypeService.CodeAction.cs (1)
174
var operations = SpecializedCollections.
EmptyEnumerable
<CodeActionOperation>();
Navigation\NavigableItemFactory.cs (2)
48
var generatedSourceLocations = candidateLocationGroups.SingleOrDefault(g => g.Key) ?? SpecializedCollections.
EmptyEnumerable
<Location>();
49
var nonGeneratedSourceLocations = candidateLocationGroups.SingleOrDefault(g => !g.Key) ?? SpecializedCollections.
EmptyEnumerable
<Location>();
Microsoft.CodeAnalysis.Workspaces (2)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
328
return SpecializedCollections.
EmptyEnumerable
<T>();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SpecializedTasks.cs (1)
185
public 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>();
115
this.AdditionalDocuments = additionalDocuments ?? SpecializedCollections.
EmptyEnumerable
<TDocument>();
116
this.AnalyzerConfigDocuments = analyzerConfigDocuments ?? SpecializedCollections.
EmptyEnumerable
<TDocument>();
117
ProjectReferences = SpecializedCollections.
EmptyEnumerable
<ProjectReference>();
149
this.Documents = documents ?? SpecializedCollections.
EmptyEnumerable
<TDocument>();
150
this.AdditionalDocuments = additionalDocuments ?? SpecializedCollections.
EmptyEnumerable
<TDocument>();
151
this.AnalyzerConfigDocuments = analyzerConfigDocuments ?? SpecializedCollections.
EmptyEnumerable
<TDocument>();
152
ProjectReferences = 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)
380
var expectedResult = namedSpans.TryGetValue("r", out var spans) ? spans : SpecializedCollections.
EmptyEnumerable
<TextSpan>();
UtilityTest\SpecializedTasksTests.cs (1)
37
var whenAll = SpecializedTasks.WhenAll(SpecializedCollections.
EmptyEnumerable
<ValueTask<int>>());