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