345 references to EmptyEnumerable
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler.cs (1)
295
return SpecializedCollections.
EmptyEnumerable
<SyntaxNode>();
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Diagnostics\Suppression\SuppressionTests.cs (2)
459
SpecializedCollections.
EmptyEnumerable
<Lazy<IErrorLoggerService>>(),
460
SpecializedCollections.
EmptyEnumerable
<Lazy<CodeFixProvider, CodeChangeProviderMetadata>>(),
Microsoft.CodeAnalysis.CSharp.Features (15)
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (1)
231
return SpecializedCollections.
EmptyEnumerable
<ImmutableArray<IParameterSymbol>>();
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (2)
161
return SpecializedCollections.
EmptyEnumerable
<CompletionItem>();
332
var attributeValues = SpecializedCollections.
EmptyEnumerable
<string?>();
CSharpDeclarationComputer.cs (2)
348
SpecializedCollections.
EmptyEnumerable
<SyntaxNode>();
356
SpecializedCollections.
EmptyEnumerable
<SyntaxNode>();
EditAndContinue\SyntaxComparer.cs (1)
997
parameters = SpecializedCollections.
EmptyEnumerable
<SyntaxToken>();
ExtractMethod\CSharpMethodExtractor.TriviaResult.cs (6)
107
: SpecializedCollections.
EmptyEnumerable
<SyntaxTrivia>();
117
: SpecializedCollections.
EmptyEnumerable
<SyntaxTrivia>();
124
var trailingTrivia = previousTriviaPair.TrailingTrivia ?? SpecializedCollections.
EmptyEnumerable
<SyntaxTrivia>();
125
var leadingTrivia = nextTriviaPair.LeadingTrivia ?? SpecializedCollections.
EmptyEnumerable
<SyntaxTrivia>();
169
return SpecializedCollections.
EmptyEnumerable
<SyntaxTrivia>();
180
return SpecializedCollections.
EmptyEnumerable
<SyntaxTrivia>();
ExtractMethod\CSharpSelectionValidator.cs (1)
429
return SpecializedCollections.
EmptyEnumerable
<SyntaxNode>();
NavigationBar\CSharpNavigationBarItemService.cs (1)
135
return SpecializedCollections.
EmptyEnumerable
<INamedTypeSymbol>();
Organizing\Organizers\ModifiersOrganizer.cs (1)
23
initialList[0] = initialList[0].WithLeadingTrivia(SpecializedCollections.
EmptyEnumerable
<SyntaxTrivia>());
Microsoft.CodeAnalysis.CSharp.Workspaces (87)
CodeGeneration\CSharpSyntaxGenerator.cs (4)
460
getAccessorStatements = SpecializedCollections.
EmptyEnumerable
<SyntaxNode>();
465
setAccessorStatements = SpecializedCollections.
EmptyEnumerable
<SyntaxNode>();
543
addAccessorStatements ??= SpecializedCollections.
EmptyEnumerable
<SyntaxNode>();
544
removeAccessorStatements ??= SpecializedCollections.
EmptyEnumerable
<SyntaxNode>();
CSharpSyntaxFacts.cs (1)
1060
return SpecializedCollections.
EmptyEnumerable
<SyntaxNode>();
CSharpTypeInferenceService.TypeInferrer.cs (78)
90
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
123
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
188
_ => SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>(),
255
_ => SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>(),
266
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
277
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
337
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
353
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
375
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
388
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
444
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
508
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
532
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
540
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
549
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
811
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
839
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
850
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
873
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
886
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
897
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
907
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1080
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1087
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1093
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1104
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1115
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1201
: SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1216
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1226
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1240
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1257
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1268
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1273
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1299
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1304
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1315
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1469
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1518
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1537
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1553
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1570
_ => SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>()
1603
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1617
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1628
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1639
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1663
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1673
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1684
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1692
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1699
_ => SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>()
1708
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1714
_ => SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>()
1732
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1815
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1893
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1903
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1921
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1929
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1939
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
1976
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
2011
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
2027
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
2039
: SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
2070
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
2093
: SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
2142
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
2150
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
2161
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
2175
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
2197
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
2208
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
2219
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
2229
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
2233
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
2335
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
2431
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
2442
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
Formatting\CSharpSyntaxFormattingService.cs (1)
282
return SpecializedCollections.
EmptyEnumerable
<AbstractFormattingRule>();
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs\SyntaxNodeExtensions.cs (1)
966
return SpecializedCollections.
EmptyEnumerable
<MemberDeclarationSyntax>();
SemanticModelExtensions.cs (1)
36
return SpecializedCollections.
EmptyEnumerable
<ITypeSymbol>();
TypeDeclarationSyntaxExtensions.cs (1)
73
var baseListTypes = SpecializedCollections.
EmptyEnumerable
<BaseTypeSyntax>();
Microsoft.CodeAnalysis.EditorFeatures (9)
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (1)
350
return GetTagsWorker(spans) ?? SpecializedCollections.
EmptyEnumerable
<ITagSpan<IClassificationTag>>();
InlineRename\InlineRenameSession.cs (1)
433
_openTextBuffers[textBuffer].SetReferenceSpans(SpecializedCollections.
EmptyEnumerable
<TextSpan>());
InlineRename\InlineRenameSession.OpenTextBufferManager.cs (3)
458
: SpecializedCollections.
EmptyEnumerable
<TextSpan>();
549
return SpecializedCollections.
EmptyEnumerable
<TextChange>();
562
return SpecializedCollections.
EmptyEnumerable
<TextChange>();
Shared\Tagging\Utilities\TagSpanIntervalTree.cs (1)
142
return SpecializedCollections.
EmptyEnumerable
<ITagSpan<TTag>>();
Shared\Utilities\ThreadingContextTaskSchedulerProvider.cs (1)
40
=> SpecializedCollections.
EmptyEnumerable
<Task>();
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ProduceTags.cs (2)
559
return SpecializedCollections.
EmptyEnumerable
<ITagSpan<TTag>>();
565
? SpecializedCollections.
EmptyEnumerable
<ITagSpan<TTag>>()
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (2)
ChangeSignature\AbstractChangeSignatureTests.cs (2)
255
yield return SpecializedCollections.
EmptyEnumerable
<int>();
290
return SpecializedCollections.SingletonEnumerable(SpecializedCollections.
EmptyEnumerable
<int>());
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (14)
Diagnostics\TestDiagnosticAnalyzerDriver.cs (2)
56
var documentDiagnostics = SpecializedCollections.
EmptyEnumerable
<Diagnostic>();
57
var projectDiagnostics = SpecializedCollections.
EmptyEnumerable
<Diagnostic>();
Preview\MockPreviewPaneService.cs (1)
30
var contents = previewContents ?? SpecializedCollections.
EmptyEnumerable
<object>();
Workspaces\TestHostProject.cs (11)
190
_analyzerReferences = analyzerReferences ?? SpecializedCollections.
EmptyEnumerable
<AnalyzerReference>();
192
this.AdditionalDocuments = additionalDocuments ?? SpecializedCollections.
EmptyEnumerable
<TestHostDocument>();
193
this.AnalyzerConfigDocuments = analyzerConfigDocuments ?? SpecializedCollections.
EmptyEnumerable
<TestHostDocument>();
194
ProjectReferences = SpecializedCollections.
EmptyEnumerable
<ProjectReference>();
215
: this(workspace, name, language, compilationOptions, parseOptions, SpecializedCollections.SingletonEnumerable(document), SpecializedCollections.
EmptyEnumerable
<TestHostDocument>(), SpecializedCollections.
EmptyEnumerable
<TestHostDocument>(), projectReferences, metadataReferences, analyzerReferences, assemblyName, defaultNamespace)
243
this.Documents = documents ?? SpecializedCollections.
EmptyEnumerable
<TestHostDocument>();
244
this.AdditionalDocuments = additionalDocuments ?? SpecializedCollections.
EmptyEnumerable
<TestHostDocument>();
245
this.AnalyzerConfigDocuments = analyzerConfigDocuments ?? SpecializedCollections.
EmptyEnumerable
<TestHostDocument>();
246
ProjectReferences = projectReferences != null ? projectReferences.Select(p => new ProjectReference(p.Id)) : SpecializedCollections.
EmptyEnumerable
<ProjectReference>();
248
_analyzerReferences = analyzerReferences ?? SpecializedCollections.
EmptyEnumerable
<AnalyzerReference>();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (6)
CodeFixes\CodeFixServiceTests.cs (4)
55
diagnosticService, logger, fixers, SpecializedCollections.
EmptyEnumerable
<Lazy<IConfigurationFixProvider, CodeChangeProviderMetadata>>());
340
: SpecializedCollections.
EmptyEnumerable
<Lazy<IConfigurationFixProvider, CodeChangeProviderMetadata>>();
692
: SpecializedCollections.
EmptyEnumerable
<Lazy<CodeFixProvider, CodeChangeProviderMetadata>>();
701
diagnosticService, logger, vsixFixers, SpecializedCollections.
EmptyEnumerable
<Lazy<IConfigurationFixProvider, CodeChangeProviderMetadata>>());
EditAndContinue\EditSessionActiveStatementsTests.cs (1)
56
SpecializedCollections.
EmptyEnumerable
<KeyValuePair<DocumentId, CommittedSolution.DocumentState>>(),
MetadataAsSource\AbstractMetadataAsSourceTests.TestContext.cs (1)
46
metadataSources ??= SpecializedCollections.
EmptyEnumerable
<string>();
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Preview\AbstractPreviewTaggerProvider.cs (1)
53
return SpecializedCollections.
EmptyEnumerable
<ITagSpan<TTag>>();
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (5)
CodeFixes\CodeFixServiceTests.vb (2)
67
SpecializedCollections.
EmptyEnumerable
(Of Lazy(Of IConfigurationFixProvider, Mef.CodeChangeProviderMetadata)))
146
SpecializedCollections.
EmptyEnumerable
(Of Lazy(Of IConfigurationFixProvider, Mef.CodeChangeProviderMetadata)))
Rename\RenameTagProducerTests.vb (3)
29
Await VerifyTaggedSpansCore(tagType, actualWorkspace, renameService, SpecializedCollections.
EmptyEnumerable
(Of Span))
47
expectedSpans = SpecializedCollections.
EmptyEnumerable
(Of Span)
61
Return SpecializedCollections.
EmptyEnumerable
(Of Span)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (2)
SignatureHelp\FSharpSignatureHelpItem.cs (1)
40
_ => SpecializedCollections.
EmptyEnumerable
<TaggedText>();
SignatureHelp\FSharpSignatureHelpParameter.cs (1)
57
_ => SpecializedCollections.
EmptyEnumerable
<TaggedText>();
Microsoft.CodeAnalysis.Features (40)
ChangeSignature\ChangeSignatureCodeAction.cs (1)
51
return SpecializedCollections.
EmptyEnumerable
<CodeActionOperation>();
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.GlobalSuppressMessageFixAllCodeAction.cs (1)
218
return SpecializedCollections.
EmptyEnumerable
<KeyValuePair<ISymbol, ImmutableArray<Diagnostic>>>();
Completion\Providers\AbstractDocCommentCompletionProvider.cs (1)
205
return SpecializedCollections.
EmptyEnumerable
<CompletionItem>();
Completion\Providers\AbstractPartialTypeCompletionProvider.cs (1)
92
return SpecializedCollections.
EmptyEnumerable
<INamedTypeSymbol>();
Completion\Providers\Scripting\GlobalAssemblyCacheCompletionHelper.cs (1)
68
SpecializedCollections.
EmptyEnumerable
<AssemblyIdentity>());
EditAndContinue\EditAndContinueWorkspaceService.cs (1)
141
initialDocumentStates = SpecializedCollections.
EmptyEnumerable
<KeyValuePair<DocumentId, CommittedSolution.DocumentState>>();
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (2)
669
projectIds ??= SpecializedCollections.
EmptyEnumerable
<ProjectId>();
670
documentIds ??= SpecializedCollections.
EmptyEnumerable
<DocumentId>();
ExtractClass\ExtractClassWithDialogCodeAction.cs (1)
76
return SpecializedCollections.
EmptyEnumerable
<CodeActionOperation>();
ExtractInterface\ExtractInterfaceCodeAction.cs (1)
41
var operations = SpecializedCollections.
EmptyEnumerable
<CodeActionOperation>();
ExtractMethod\AbstractSyntaxTriviaService.cs (1)
77
var emptyList = SpecializedCollections.
EmptyEnumerable
<SyntaxTrivia>();
ExtractMethod\AbstractSyntaxTriviaService.Result.cs (3)
152
return new LeadingTrailingTriviaPair { TrailingTrivia = SpecializedCollections.
EmptyEnumerable
<SyntaxTrivia>(), LeadingTrivia = trivia };
279
var trailingTrivia = previousTriviaPair.TrailingTrivia ?? SpecializedCollections.
EmptyEnumerable
<SyntaxTrivia>();
280
var leadingTrivia = nextTriviaPair.LeadingTrivia ?? SpecializedCollections.
EmptyEnumerable
<SyntaxTrivia>();
ExtractMethod\ExtractMethodResult.cs (1)
71
Reasons = (reasons ?? SpecializedCollections.
EmptyEnumerable
<string>()).ToReadOnlyCollection();
ExtractMethod\MethodExtractor.Analyzer.cs (4)
817
var candidates = SpecializedCollections.
EmptyEnumerable
<ITypeParameterSymbol>();
846
return SpecializedCollections.
EmptyEnumerable
<ITypeParameterSymbol>();
853
return SpecializedCollections.
EmptyEnumerable
<ITypeParameterSymbol>();
858
return SpecializedCollections.
EmptyEnumerable
<ITypeParameterSymbol>();
ExtractMethod\OperationStatus.cs (1)
20
Reasons = reason == null ? SpecializedCollections.
EmptyEnumerable
<string>() : SpecializedCollections.SingletonEnumerable(reason);
GenerateConstructorFromMembers\AbstractGenerateConstructorFromMembersCodeRefactoringProvider.GenerateConstructorWithDialogCodeAction.cs (2)
73
return SpecializedCollections.
EmptyEnumerable
<CodeActionOperation>();
93
return SpecializedCollections.
EmptyEnumerable
<CodeActionOperation>();
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndHashWithDialogCodeAction.cs (1)
68
return SpecializedCollections.
EmptyEnumerable
<CodeActionOperation>();
GenerateOverrides\GenerateOverridesWithDialogCodeAction.cs (1)
65
return SpecializedCollections.
EmptyEnumerable
<CodeActionOperation>();
GenerateType\AbstractGenerateTypeService.CodeAction.cs (1)
177
var operations = SpecializedCollections.
EmptyEnumerable
<CodeActionOperation>();
GenerateType\AbstractGenerateTypeService.cs (1)
275
: SpecializedCollections.
EmptyEnumerable
<ITypeParameterSymbol>();
GenerateType\AbstractGenerateTypeService.GenerateNamedType.cs (1)
324
: SpecializedCollections.
EmptyEnumerable
<ITypeParameterSymbol>();
ImplementInterface\AbstractImplementInterfaceService.CodeAction.cs (1)
310
return SpecializedCollections.
EmptyEnumerable
<ISymbol?>();
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (1)
58
return SpecializedCollections.
EmptyEnumerable
<CodeActionOperation>();
MoveToNamespace\AbstractMoveToNamespaceCodeAction.cs (1)
68
return SpecializedCollections.
EmptyEnumerable
<CodeActionOperation>();
Navigation\NavigableItemFactory.cs (2)
50
var generatedSourceLocations = candidateLocationGroups.SingleOrDefault(g => g.Key) ?? SpecializedCollections.
EmptyEnumerable
<Location>();
51
var nonGeneratedSourceLocations = candidateLocationGroups.SingleOrDefault(g => !g.Key) ?? SpecializedCollections.
EmptyEnumerable
<Location>();
PullMemberUp\Dialog\PullMemberUpWithDialogCodeAction.cs (1)
58
return SpecializedCollections.
EmptyEnumerable
<CodeActionOperation>();
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (1)
174
? SpecializedCollections.
EmptyEnumerable
<ReferencedSymbol>()
ReplacePropertyWithMethods\AbstractReplacePropertyWithMethodsService.cs (1)
402
? SpecializedCollections.
EmptyEnumerable
<SyntaxNode>()
SignatureHelp\SignatureHelpItem.cs (1)
39
_ => SpecializedCollections.
EmptyEnumerable
<TaggedText>();
SignatureHelp\SignatureHelpParameter.cs (2)
62
_ => SpecializedCollections.
EmptyEnumerable
<TaggedText>();
142
_ => SpecializedCollections.
EmptyEnumerable
<TaggedText>();
SolutionCrawler\WorkCoordinator.cs (2)
602
projectIds ??= SpecializedCollections.
EmptyEnumerable
<ProjectId>();
603
documentIds ??= SpecializedCollections.
EmptyEnumerable
<DocumentId>();
Microsoft.CodeAnalysis.LanguageServer.Protocol (10)
Features\Diagnostics\DocumentAnalysisExecutor.cs (7)
82
: SpecializedCollections.
EmptyEnumerable
<DiagnosticData>();
87
return SpecializedCollections.
EmptyEnumerable
<DiagnosticData>();
100
return SpecializedCollections.
EmptyEnumerable
<DiagnosticData>();
108
return SpecializedCollections.
EmptyEnumerable
<DiagnosticData>();
126
return SpecializedCollections.
EmptyEnumerable
<DiagnosticData>();
139
return SpecializedCollections.
EmptyEnumerable
<DiagnosticData>();
146
return SpecializedCollections.
EmptyEnumerable
<DiagnosticData>();
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateSet.cs (2)
69
return SpecializedCollections.
EmptyEnumerable
<ProjectId>();
78
return SpecializedCollections.
EmptyEnumerable
<ProjectId>();
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnostics.cs (1)
245
await AppendDiagnosticsAsync(project, SpecializedCollections.
EmptyEnumerable
<DocumentId>(), includeProjectNonLocalResult: true, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Host\RemoteWorkspace.SolutionCreator.cs (1)
157
solution = solution.WithProjectReferences(projectId, SpecializedCollections.
EmptyEnumerable
<ProjectReference>());
Microsoft.CodeAnalysis.VisualBasic.Features (18)
CodeFixes\IncorrectFunctionReturnType\IncorrectFunctionReturnTypeCodeFixProvider.vb (1)
89
Return SpecializedCollections.
EmptyEnumerable
(Of CodeAction)()
CodeFixes\MoveToTopOfFile\MoveToTopOfFileCodeFixProvider.vb (1)
64
Dim result = SpecializedCollections.
EmptyEnumerable
(Of CodeAction)()
Completion\CompletionProviders\CrefCompletionProvider.vb (1)
173
Return SpecializedCollections.
EmptyEnumerable
(Of ISymbol)
Completion\CompletionProviders\XmlDocCommentCompletionProvider.vb (2)
169
Return SpecializedCollections.
EmptyEnumerable
(Of CompletionItem)
292
Dim attributeValues = SpecializedCollections.
EmptyEnumerable
(Of String)()
ExtractMethod\VisualBasicMethodExtractor.TriviaResult.vb (3)
88
SpecializedCollections.
EmptyEnumerable
(Of SyntaxTrivia)())
94
Dim trailingTrivia = If(previousTriviaPair.TrailingTrivia, SpecializedCollections.
EmptyEnumerable
(Of SyntaxTrivia)())
95
Dim leadingTrivia = If(nextTriviaPair.LeadingTrivia, SpecializedCollections.
EmptyEnumerable
(Of SyntaxTrivia)())
ExtractMethod\VisualBasicSelectionValidator.vb (1)
585
Return SpecializedCollections.
EmptyEnumerable
(Of SyntaxNode)()
NavigationBar\VisualBasicNavigationBarItemService.vb (1)
70
Return SpecializedCollections.
EmptyEnumerable
(Of Tuple(Of INamedTypeSymbol, SyntaxNode))()
SignatureHelp\AddRemoveHandlerSignatureHelpProvider.vb (1)
30
Return ValueTaskFactory.FromResult(SpecializedCollections.
EmptyEnumerable
(Of AbstractIntrinsicOperatorDocumentation)())
SignatureHelp\CastExpressionSignatureHelpProvider.vb (1)
32
Return ValueTaskFactory.FromResult(SpecializedCollections.
EmptyEnumerable
(Of AbstractIntrinsicOperatorDocumentation)())
SignatureHelp\InvocationExpressionSignatureHelpProvider.DelegateInvoke.vb (1)
23
Return SpecializedCollections.
EmptyEnumerable
(Of SignatureHelpItem)()
SignatureHelp\InvocationExpressionSignatureHelpProvider.ElementAccess.vb (1)
29
Return SpecializedCollections.
EmptyEnumerable
(Of SignatureHelpItem)()
SignatureHelp\InvocationExpressionSignatureHelpProvider.MemberGroup.vb (1)
43
Return SpecializedCollections.
EmptyEnumerable
(Of SignatureHelpItem)()
VisualBasicDeclarationComputer.vb (3)
175
Dim attributes = SpecializedCollections.
EmptyEnumerable
(Of SyntaxNode)
239
SpecializedCollections.
EmptyEnumerable
(Of SyntaxNode))
253
SpecializedCollections.
EmptyEnumerable
(Of SyntaxNode))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (53)
CodeGeneration\VisualBasicSyntaxGenerator.vb (4)
3185
Return SpecializedCollections.
EmptyEnumerable
(Of StatementSyntax)
3471
addAccessorStatements = SpecializedCollections.
EmptyEnumerable
(Of SyntaxNode)()
3475
removeAccessorStatements = SpecializedCollections.
EmptyEnumerable
(Of SyntaxNode)()
3479
raiseAccessorStatements = SpecializedCollections.
EmptyEnumerable
(Of SyntaxNode)()
Extensions\SemanticModelExtensions.vb (1)
35
reservedNames = If(reservedNames, SpecializedCollections.
EmptyEnumerable
(Of String))
SyntaxNodeExtensions.vb (1)
980
Return SpecializedCollections.
EmptyEnumerable
(Of SyntaxNode)()
VisualBasicSyntaxFacts.vb (1)
1105
Return SpecializedCollections.
EmptyEnumerable
(Of SyntaxNode)()
VisualBasicTypeInferenceService.TypeInferrer.vb (46)
48
Return If(objectAsDefault, CreateResult(Me.Compilation.ObjectType), SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)())
100
Function(x) SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)())
106
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
111
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
123
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
174
Function(x) SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)())
180
SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)())
196
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)
210
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
229
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
247
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
307
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
331
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
364
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
380
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
402
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
434
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
443
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
463
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
479
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
497
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
577
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
583
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
591
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
630
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
636
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
644
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
669
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
686
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
703
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
714
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
720
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
733
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)
748
SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo))
754
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
760
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)
764
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)
780
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)
813
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
832
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
853
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
862
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
888
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)
955
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
1018
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)()
1073
Return SpecializedCollections.
EmptyEnumerable
(Of TypeInferenceInfo)
Microsoft.CodeAnalysis.Workspaces (39)
AbstractTypeInferenceService.AbstractTypeInferrer.cs (2)
73
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
120
return SpecializedCollections.
EmptyEnumerable
<TypeInferenceInfo>();
CodeActions\CodeActionWithOptions.cs (1)
40
return SpecializedCollections.
EmptyEnumerable
<CodeActionOperation>();
CodeGenerationContext.cs (1)
160
AdditionalImports = additionalImports ?? SpecializedCollections.
EmptyEnumerable
<INamespaceSymbol>();
Diagnostics\DiagnosticAnalysisResult.cs (1)
312
var documents = SpecializedCollections.
EmptyEnumerable
<DocumentId>();
EnumerableExtensions.cs (1)
292
return SpecializedCollections.
EmptyEnumerable
<T>();
FindSymbols\SymbolFinder_Hierarchy.cs (1)
136
: SpecializedCollections.
EmptyEnumerable
<INamedTypeSymbol>();
INamespaceOrTypeSymbolExtensions.cs (1)
27
? SpecializedCollections.
EmptyEnumerable
<IPropertySymbol>()
IReadOnlyDictionaryExtensions.cs (1)
28
default: return SpecializedCollections.
EmptyEnumerable
<T>();
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs\INamedTypeSymbolExtensions.cs (1)
398
? SpecializedCollections.
EmptyEnumerable
<INamedTypeSymbol>()
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs\ITypeSymbolExtensions.cs (1)
436
return SpecializedCollections.
EmptyEnumerable
<T>();
OrderableMetadata.cs (2)
34
this.AfterTyped = after ?? SpecializedCollections.
EmptyEnumerable
<string>();
35
this.BeforeTyped = before ?? SpecializedCollections.
EmptyEnumerable
<string>();
ParsedDocument.cs (1)
77
return SpecializedCollections.
EmptyEnumerable
<TextChange>();
Rename\ConflictEngine\MutableConflictResolution.cs (1)
95
trivia: SpecializedCollections.
EmptyEnumerable
<SyntaxTrivia>(),
Rename\ConflictEngine\RenamedSpansTracker.cs (2)
58
SpecializedCollections.
EmptyEnumerable
<(TextSpan oldSpan, TextSpan newSpan)>();
68
SpecializedCollections.
EmptyEnumerable
<MutableComplexifiedSpan>();
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (3)
237
return SpecializedCollections.
EmptyEnumerable
<RenameLocation>();
243
return SpecializedCollections.
EmptyEnumerable
<RenameLocation>();
250
return SpecializedCollections.
EmptyEnumerable
<RenameLocation>();
Rename\TokenRenameInfo.cs (1)
47
symbols: SpecializedCollections.
EmptyEnumerable
<ISymbol>()
Serialization\AbstractOptionsSerializationService.cs (2)
148
specificDiagnosticOptions = specificDiagnosticOptionsList ?? SpecializedCollections.
EmptyEnumerable
<KeyValuePair<string, ReportDiagnostic>>();
212
features = featuresList ?? SpecializedCollections.
EmptyEnumerable
<KeyValuePair<string, string>>();
Serialization\PooledList.cs (1)
21
items.Object.UnionWith(checksums ?? SpecializedCollections.
EmptyEnumerable
<Checksum>());
Shared\Collections\IntervalTree.cs (1)
23
return IntervalTree<T>.Create(in introspector, values ?? SpecializedCollections.
EmptyEnumerable
<T>());
Shared\Extensions\ILanguageServiceProviderExtensions.cs (1)
23
return SpecializedCollections.
EmptyEnumerable
<Lazy<T, TMetadata>>();
Shared\Extensions\SyntaxGeneratorExtensions.cs (1)
94
.Except(parameterToExistingFieldMap?.Values ?? SpecializedCollections.
EmptyEnumerable
<ISymbol>())
Simplification\AbstractSimplificationService.cs (1)
155
trivia: SpecializedCollections.
EmptyEnumerable
<SyntaxTrivia>(),
SpecializedTasks.cs (1)
188
public static readonly Task<IEnumerable<T>> EmptyEnumerable = Task.FromResult<IEnumerable<T>>(SpecializedCollections.
EmptyEnumerable
<T>());
StructuredAnalyzerConfigOptions.cs (1)
56
=> SpecializedCollections.
EmptyEnumerable
<string>();
SyntaxTokenExtensions.cs (2)
29
: SpecializedCollections.
EmptyEnumerable
<T>();
36
: SpecializedCollections.
EmptyEnumerable
<SyntaxNode>();
Workspace\Host\HostWorkspaceServices.cs (1)
92
get { return SpecializedCollections.
EmptyEnumerable
<string>(); }
Workspace\Solution\Document.cs (2)
374
return SpecializedCollections.
EmptyEnumerable
<TextChange>();
387
return SpecializedCollections.
EmptyEnumerable
<TextChange>();
Workspace\Solution\TextDocumentStates.cs (2)
196
=> (_ids == oldStates._ids) ? SpecializedCollections.
EmptyEnumerable
<DocumentId>() : Except(_ids, oldStates._map);
202
=> (_ids == oldStates._ids) ? SpecializedCollections.
EmptyEnumerable
<DocumentId>() : Except(oldStates._ids, _map);
Workspace\Workspace_Editor.cs (2)
199
return SpecializedCollections.
EmptyEnumerable
<DocumentId>();
209
return SpecializedCollections.
EmptyEnumerable
<DocumentId>();
Microsoft.CodeAnalysis.Workspaces.UnitTests (6)
CodeCleanup\CodeCleanupTests.cs (2)
364
expectedResult = SpecializedCollections.
EmptyEnumerable
<TextSpan>();
381
var expectedResult = namedSpans.ContainsKey("r") ? namedSpans["r"] as IEnumerable<TextSpan> : SpecializedCollections.
EmptyEnumerable
<TextSpan>();
SolutionTests\ProjectDependencyGraphTests.cs (2)
218
SpecializedCollections.
EmptyEnumerable
<ProjectReference>());
398
SpecializedCollections.
EmptyEnumerable
<ProjectReference>());
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
91
project = project.WithAnalyzerReferences(SpecializedCollections.
EmptyEnumerable
<AnalyzerReference>());
UtilityTest\SpecializedTasksTests.cs (1)
36
var whenAll = SpecializedTasks.WhenAll(SpecializedCollections.
EmptyEnumerable
<ValueTask<int>>());
Microsoft.VisualStudio.LanguageServices (5)
Progression\SymbolContainment.cs (1)
30
return SpecializedCollections.
EmptyEnumerable
<SyntaxNode>();
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
843
return SpecializedCollections.
EmptyEnumerable
<ProjectItem>();
Utilities\AutomationDelegatingListView.cs (2)
49
var peersToProcess = new Queue<AutomationPeer>(base.GetChildrenCore() ?? SpecializedCollections.
EmptyEnumerable
<AutomationPeer>());
60
foreach (var childPeer in peer.GetChildren() ?? SpecializedCollections.
EmptyEnumerable
<AutomationPeer>())
Venus\ContainedDocument.cs (1)
717
return SpecializedCollections.
EmptyEnumerable
<TextSpan>();
Microsoft.VisualStudio.LanguageServices.CSharp (8)
CodeModel\CSharpCodeModelService.cs (8)
280
return SpecializedCollections.
EmptyEnumerable
<SyntaxNode>();
288
_ => SpecializedCollections.
EmptyEnumerable
<SyntaxNode>(),
346
return SpecializedCollections.
EmptyEnumerable
<SyntaxNode>();
355
return SpecializedCollections.
EmptyEnumerable
<SyntaxNode>();
361
return SpecializedCollections.
EmptyEnumerable
<SyntaxNode>();
367
return SpecializedCollections.
EmptyEnumerable
<SyntaxNode>();
373
return SpecializedCollections.
EmptyEnumerable
<SyntaxNode>();
1468
return SpecializedCollections.
EmptyEnumerable
<ParameterSyntax>();
Microsoft.VisualStudio.LanguageServices.Implementation (1)
SolutionExplorer\BaseItem.cs (1)
45
public IEnumerable<string> Children => SpecializedCollections.
EmptyEnumerable
<string>();
Microsoft.VisualStudio.LanguageServices.UnitTests (10)
Venus\CSharpContainedLanguageSupportTests.vb (5)
844
refactorNotifyServices:=SpecializedCollections.
EmptyEnumerable
(Of IRefactorNotifyService),
871
refactorNotifyServices:=SpecializedCollections.
EmptyEnumerable
(Of IRefactorNotifyService),
889
refactorNotifyServices:=SpecializedCollections.
EmptyEnumerable
(Of IRefactorNotifyService),
907
refactorNotifyServices:=SpecializedCollections.
EmptyEnumerable
(Of IRefactorNotifyService),
940
refactorNotifyServices:=SpecializedCollections.
EmptyEnumerable
(Of IRefactorNotifyService),
Venus\VisualBasicContainedLanguageSupportTests.vb (5)
880
refactorNotifyServices:=SpecializedCollections.
EmptyEnumerable
(Of IRefactorNotifyService),
905
refactorNotifyServices:=SpecializedCollections.
EmptyEnumerable
(Of IRefactorNotifyService),
925
refactorNotifyServices:=SpecializedCollections.
EmptyEnumerable
(Of IRefactorNotifyService),
944
refactorNotifyServices:=SpecializedCollections.
EmptyEnumerable
(Of IRefactorNotifyService),
974
refactorNotifyServices:=SpecializedCollections.
EmptyEnumerable
(Of IRefactorNotifyService),
Microsoft.VisualStudio.LanguageServices.VisualBasic (10)
CodeModel\VisualBasicCodeModelService.vb (9)
320
Return SpecializedCollections.
EmptyEnumerable
(Of SyntaxNode)()
343
Return SpecializedCollections.
EmptyEnumerable
(Of SyntaxNode)()
406
Return SpecializedCollections.
EmptyEnumerable
(Of SyntaxNode)()
414
Return SpecializedCollections.
EmptyEnumerable
(Of SyntaxNode)()
420
Return SpecializedCollections.
EmptyEnumerable
(Of SyntaxNode)()
430
Return SpecializedCollections.
EmptyEnumerable
(Of SyntaxNode)()
440
Return SpecializedCollections.
EmptyEnumerable
(Of SyntaxNode)()
1170
SpecializedCollections.
EmptyEnumerable
(Of ParameterSyntax))
1182
Return SpecializedCollections.
EmptyEnumerable
(Of ParameterSyntax)()
Venus\ContainedLanguageStaticEventBinding.vb (1)
38
Return SpecializedCollections.
EmptyEnumerable
(Of Tuple(Of String, String, String))()