275 references to SpecializedTasks
Microsoft.CodeAnalysis.CSharp.EditorFeatures (3)
EventHookup\EventHookupSessionManager_EventHookupSession.cs (1)
153this.GetEventNameTask = SpecializedTasks.Null<string>();
Formatting\CSharpFormattingInteractionService.cs (2)
112=> SpecializedTasks.EmptyImmutableArray<TextChange>(); 125return SpecializedTasks.EmptyImmutableArray<TextChange>();
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (5)
AddUsing\AddUsingNuGetTests.cs (5)
128.Returns(SpecializedTasks.True); 159.Returns(SpecializedTasks.True); 258.Returns(SpecializedTasks.True); 292.Returns(SpecializedTasks.True); 325.Returns(SpecializedTasks.False);
Microsoft.CodeAnalysis.CSharp.Features (5)
Completion\CompletionProviders\ExplicitInterfaceTypeCompletionProvider.cs (4)
76return SpecializedTasks.EmptyImmutableArray<SymbolAndSelectionInfo>(); 93return SpecializedTasks.EmptyImmutableArray<SymbolAndSelectionInfo>(); 99return SpecializedTasks.EmptyImmutableArray<SymbolAndSelectionInfo>(); 103return SpecializedTasks.EmptyImmutableArray<SymbolAndSelectionInfo>();
LanguageServices\CSharpSymbolDisplayService.SymbolDescriptionBuilder.cs (1)
113return SpecializedTasks.EmptyImmutableArray<SymbolDisplayPart>();
Microsoft.CodeAnalysis.EditorFeatures (8)
EditAndContinue\EditAndContinueDiagnosticAnalyzer.cs (2)
41=> SpecializedTasks.EmptyImmutableArray<Diagnostic>(); 47return SpecializedTasks.EmptyImmutableArray<Diagnostic>();
IntelliSense\ModelComputation.cs (2)
72_notifyControllerTask = _lastTask = SpecializedTasks.Null<TModel>(); 120_notifyControllerTask = _lastTask = SpecializedTasks.Null<TModel>();
NavigateTo\DefaultNavigateToLinkService.cs (1)
27=> SpecializedTasks.False;
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCodeAction.cs (2)
59return SpecializedTasks.EmptyEnumerable<CodeActionOperation>(); 72return await SpecializedTasks.EmptyEnumerable<CodeActionOperation>().ConfigureAwait(false);
RenameTracking\RenameTrackingTaggerProvider.TrackingSession.cs (1)
46private Task<bool> _newIdentifierBindsTask = SpecializedTasks.False;
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (10)
SuggestedAction.cs (2)
235=> SpecializedTasks.Null<object>(); 240=> SpecializedTasks.EmptyEnumerable<SuggestedActionSet>();
SuggestedActionsSource.cs (5)
276return SpecializedTasks.EmptyImmutableArray<UnifiedSuggestedActionSet>(); 317return SpecializedTasks.EmptyImmutableArray<UnifiedSuggestedActionSet>(); 324return SpecializedTasks.EmptyImmutableArray<UnifiedSuggestedActionSet>(); 331return SpecializedTasks.EmptyImmutableArray<UnifiedSuggestedActionSet>(); 545var refactoringTask = SpecializedTasks.Null<string>();
Utilities\NavigateToLinkService.cs (3)
31return SpecializedTasks.False; 36return SpecializedTasks.False; 40return SpecializedTasks.True;
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (1)
CodeActions\AbstractCodeActionTest.cs (1)
93=> SpecializedTasks.EmptyImmutableArray<Diagnostic>();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Workspaces\NoCompilationDocumentDiagnosticAnalyzer.cs (1)
25=> SpecializedTasks.EmptyImmutableArray<Diagnostic>();
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities2 (16)
Utilities\GoToHelpers\MockDocumentNavigationService.vb (9)
31Return If(_canNavigateToLineAndOffset, SpecializedTasks.True, SpecializedTasks.False) 35Return If(_canNavigateToPosition, SpecializedTasks.True, SpecializedTasks.False) 39Return If(_canNavigateToSpan, SpecializedTasks.True, SpecializedTasks.False) 49Return SpecializedTasks.True 60Return SpecializedTasks.True 70Return SpecializedTasks.True
Utilities\GoToHelpers\MockSymbolNavigationService.vb (1)
26Return SpecializedTasks.True
Utilities\MockDocumentNavigationServiceProvider.vb (6)
53Return If(CanNavigateToLineAndOffsetReturnValue, SpecializedTasks.True, SpecializedTasks.False) 61Return If(CanNavigateToPositionReturnValue, SpecializedTasks.True, SpecializedTasks.False) 68Return If(CanNavigateToSpanReturnValue, SpecializedTasks.True, SpecializedTasks.False)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (3)
1303=> SpecializedTasks.Default<ImmutableArray<Diagnostic>>(); 1368=> SpecializedTasks.Default<ImmutableArray<Diagnostic>>(); 1375public override Task<ImmutableArray<Diagnostic>> AnalyzeProjectAsync(Project project, CancellationToken cancellationToken) => SpecializedTasks.Default<ImmutableArray<Diagnostic>>();
Microsoft.CodeAnalysis.EditorFeatures.Wpf (12)
Interactive\InteractiveDocumentNavigationService.cs (5)
29=> SpecializedTasks.True; 32=> SpecializedTasks.False; 35=> SpecializedTasks.False; 90=> SpecializedTasks.Null<INavigableLocation>(); 93=> SpecializedTasks.Null<INavigableLocation>();
Suggestions\SuggestedActions\SuggestedAction.cs (2)
235=> SpecializedTasks.Null<object>(); 240=> SpecializedTasks.EmptyEnumerable<SuggestedActionSet>();
Suggestions\SuggestedActionsSource.cs (5)
276return SpecializedTasks.EmptyImmutableArray<UnifiedSuggestedActionSet>(); 317return SpecializedTasks.EmptyImmutableArray<UnifiedSuggestedActionSet>(); 324return SpecializedTasks.EmptyImmutableArray<UnifiedSuggestedActionSet>(); 331return SpecializedTasks.EmptyImmutableArray<UnifiedSuggestedActionSet>(); 545var refactoringTask = SpecializedTasks.Null<string>();
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
InlineHints\FSharpInlineHint.cs (1)
40=> _getDescriptionAsync?.Invoke(document, cancellationToken) ?? SpecializedTasks.EmptyImmutableArray<TaggedText>();
Microsoft.CodeAnalysis.Features (48)
AbstractUpgradeProjectCodeFixProvider.cs (1)
134=> SpecializedTasks.EmptyEnumerable<CodeActionOperation>();
AddImport\CodeActions\AssemblyReferenceCodeAction.cs (1)
91return SpecializedTasks.False;
AddImport\CodeActions\ProjectSymbolReferenceCodeAction.cs (2)
44return SpecializedTasks.Null<CodeActionOperation>(); 83return SpecializedTasks.False;
ChangeSignature\ChangeSignatureCodeActionOperation.cs (2)
40return ApplyWorker(workspace, originalSolution, progressTracker, cancellationToken) ? SpecializedTasks.True : SpecializedTasks.False;
Completion\CommonCompletionProvider.cs (1)
121=> SpecializedTasks.Default<TextChange?>();
Completion\Providers\AbstractObjectCreationCompletionProvider.cs (8)
52return SpecializedTasks.EmptyImmutableArray<SymbolAndSelectionInfo>(); 65return SpecializedTasks.EmptyImmutableArray<SymbolAndSelectionInfo>(); 72return SpecializedTasks.EmptyImmutableArray<SymbolAndSelectionInfo>(); 75return SpecializedTasks.EmptyImmutableArray<SymbolAndSelectionInfo>(); 78return SpecializedTasks.EmptyImmutableArray<SymbolAndSelectionInfo>(); 90return SpecializedTasks.EmptyImmutableArray<SymbolAndSelectionInfo>(); 94return SpecializedTasks.EmptyImmutableArray<SymbolAndSelectionInfo>(); 98return SpecializedTasks.EmptyImmutableArray<SymbolAndSelectionInfo>();
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
287=> SpecializedTasks.True;
DocumentHighlighting\AbstractDocumentHighlightsService.cs (1)
196return SpecializedTasks.EmptyImmutableArray<Location>();
EmbeddedLanguages\DateAndTime\DateAndTimeEmbeddedCompletionProvider.cs (1)
232return SpecializedTasks.Null<CompletionDescription>();
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexEmbeddedCompletionProvider.cs (1)
467return SpecializedTasks.Null<CompletionDescription>();
ExternalAccess\VSTypeScript\VSTypeScriptDocumentDiagnosticAnalyzer.cs (2)
23return SpecializedTasks.EmptyImmutableArray<Diagnostic>(); 34return SpecializedTasks.EmptyImmutableArray<Diagnostic>();
ExternalAccess\VSTypeScript\VSTypeScriptProjectDiagnosticAnalyzer.cs (1)
23return SpecializedTasks.EmptyImmutableArray<Diagnostic>();
FindUsages\IDefinitionsAndReferencesFactory.cs (1)
49return SpecializedTasks.Null<DefinitionItem>();
GenerateMember\GenerateParameterizedMember\AbstractGenerateConversionService.State.cs (2)
43return SpecializedTasks.False; 50return SpecializedTasks.False;
GenerateMember\GenerateParameterizedMember\AbstractGenerateMethodService.State.cs (2)
67return SpecializedTasks.False; 74return SpecializedTasks.False;
GenerateMember\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
206var types = await SpecializedTasks.WhenAll(DetermineParameterTypes(cancellationToken).Select(t => FixTypeAsync(t, cancellationToken))).ConfigureAwait(false);
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (1)
56return SpecializedTasks.EmptyImmutableArray<CodeAction>();
InlineHints\InlineHint.cs (1)
61=> _getDescriptionAsync?.Invoke(document, cancellationToken) ?? SpecializedTasks.EmptyImmutableArray<TaggedText>();
NavigateTo\AbstractNavigateToSearchService.CachedDocumentSearch.cs (1)
151return SpecializedTasks.Null<TopLevelSyntaxTreeIndex>();
Navigation\DefaultDocumentNavigationService.cs (6)
15=> SpecializedTasks.False; 18=> SpecializedTasks.False; 21=> SpecializedTasks.False; 24=> SpecializedTasks.Null<INavigableLocation>(); 27=> SpecializedTasks.Null<INavigableLocation>(); 30=> SpecializedTasks.Null<INavigableLocation>();
Navigation\DefaultSymbolNavigationService.cs (2)
16=> SpecializedTasks.Null<INavigableLocation>(); 19=> SpecializedTasks.False;
Navigation\INavigableLocation.cs (2)
43new NavigableLocation((_, _) => value ? SpecializedTasks.True : SpecializedTasks.False));
QuickInfo\QuickInfoService.cs (1)
49return SpecializedTasks.Null<QuickInfoItem>();
SplitOrMergeIfStatements\Consecutive\AbstractMergeConsecutiveIfStatementsCodeRefactoringProvider.cs (4)
63return SpecializedTasks.True; 76return SpecializedTasks.True; 169: SpecializedTasks.False; 183: SpecializedTasks.False;
SplitOrMergeIfStatements\Nested\AbstractMergeNestedIfStatementsCodeRefactoringProvider.cs (2)
51return SpecializedTasks.False; 64return SpecializedTasks.False;
Microsoft.CodeAnalysis.LanguageServer.Protocol (11)
Features\CodeFixes\CodeFixService.FixAllPredefinedDiagnosticProvider.cs (1)
31=> SpecializedTasks.EmptyEnumerable<Diagnostic>();
Features\Diagnostics\DiagnosticAnalyzerService.cs (6)
116return SpecializedTasks.EmptyImmutableArray<DiagnosticData>(); 126return SpecializedTasks.EmptyImmutableArray<DiagnosticData>(); 136return SpecializedTasks.EmptyImmutableArray<DiagnosticData>(); 146return SpecializedTasks.EmptyImmutableArray<DiagnosticData>(); 188return SpecializedTasks.EmptyImmutableArray<DiagnosticData>(); 199return SpecializedTasks.EmptyImmutableArray<DiagnosticData>();
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnostics.cs (1)
23return SpecializedTasks.EmptyImmutableArray<DiagnosticData>();
Handler\DocumentChanges\DidChangeHandler.cs (1)
44return SpecializedTasks.Default<object>();
Handler\ProjectContext\GetTextDocumentWithContextHandler.cs (1)
43return SpecializedTasks.Null<VSProjectContextList>();
Handler\PullHandlers\VersionedPullCache`1.cs (1)
38computeExpensiveVersionAsync: SpecializedTasks.Null<object>,
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Diagnostics\AbstractPullDiagnosticTestsBase.cs (1)
347=> SpecializedTasks.EmptyImmutableArray<Diagnostic>();
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (5)
Diagnostics\AddImport\AddImportTests_NuGet.vb (5)
56Returns(SpecializedTasks.True) 85Returns(SpecializedTasks.True) 114Returns(SpecializedTasks.False) 206Returns(SpecializedTasks.True) 238Returns(SpecializedTasks.True)
Microsoft.CodeAnalysis.VisualBasic.Features (20)
CodeRefactorings\SyncNamespace\VisualBasicChangeNamespaceService.vb (1)
61Return SpecializedTasks.Default(Of ImmutableArray(Of (DocumentId, SyntaxNode)))()
Completion\CompletionProviders\CompletionListTagCompletionProvider.vb (4)
38Return SpecializedTasks.EmptyImmutableArray(Of SymbolAndSelectionInfo)() 42Return SpecializedTasks.EmptyImmutableArray(Of SymbolAndSelectionInfo)() 48Return SpecializedTasks.EmptyImmutableArray(Of SymbolAndSelectionInfo)() 55Return SpecializedTasks.EmptyImmutableArray(Of SymbolAndSelectionInfo)()
Completion\CompletionProviders\EnumCompletionProvider.vb (3)
48Return SpecializedTasks.EmptyImmutableArray(Of SymbolAndSelectionInfo)() 55Return SpecializedTasks.EmptyImmutableArray(Of SymbolAndSelectionInfo)() 62Return SpecializedTasks.EmptyImmutableArray(Of SymbolAndSelectionInfo)()
Completion\CompletionProviders\HandlesClauseCompletionProvider.vb (3)
49Return SpecializedTasks.EmptyImmutableArray(Of ISymbol)() 53Return SpecializedTasks.EmptyImmutableArray(Of ISymbol)() 67Return SpecializedTasks.EmptyImmutableArray(Of ISymbol)()
Completion\CompletionProviders\ImplementsClauseCompletionProvider.vb (4)
60Return SpecializedTasks.EmptyImmutableArray(Of ISymbol)() 65Return SpecializedTasks.EmptyImmutableArray(Of ISymbol)() 87Return SpecializedTasks.EmptyImmutableArray(Of ISymbol)() 109Return SpecializedTasks.EmptyImmutableArray(Of ISymbol)()
Completion\CompletionProviders\ObjectInitializerCompletionProvider.vb (1)
107Return SpecializedTasks.True
Completion\CompletionProviders\SymbolCompletionProvider.vb (1)
71Return SpecializedTasks.True
LanguageServices\VisualBasicSymbolDisplayService.SymbolDescriptionBuilder.vb (1)
87Return SpecializedTasks.EmptyImmutableArray(Of SymbolDisplayPart)
ReplacePropertyWithMethods\VisualBasicReplacePropertyWithMethods.vb (1)
38Return SpecializedTasks.EmptyImmutableArray(Of SyntaxNode)
VisualBasicChangeToYieldCodeFixProvider.vb (1)
38Return SpecializedTasks.Null(Of CodeAction)()
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
FindSymbols\VisualBasicReferenceFinder.vb (1)
31Return SpecializedTasks.EmptyImmutableArray(Of ISymbol)
VisualBasicMoveDeclarationNearReferenceService.vb (1)
46Return SpecializedTasks.True
Microsoft.CodeAnalysis.Workspaces (77)
CodeActions\CodeAction.cs (1)
639=> SpecializedTasks.Null<Solution>();
CodeActions\CodeActionWithOptions.cs (1)
69=> SpecializedTasks.EmptyEnumerable<CodeActionOperation>();
CodeActions\Operations\CodeActionOperation.cs (1)
39return SpecializedTasks.True;
CodeFixes\FixAllOccurrences\FixAllState.FixMultipleDiagnosticProvider.cs (2)
66return SpecializedTasks.EmptyEnumerable<Diagnostic>(); 76return SpecializedTasks.EmptyEnumerable<Diagnostic>();
FindSymbols\FindReferences\DependentTypeFinder_DerivedClasses.cs (1)
34return SpecializedTasks.EmptyImmutableArray<INamedTypeSymbol>();
FindSymbols\FindReferences\DependentTypeFinder_DerivedInterfaces.cs (1)
36return SpecializedTasks.EmptyImmutableArray<INamedTypeSymbol>();
FindSymbols\FindReferences\Finders\AbstractMemberScopedReferenceFinder.cs (3)
36return SpecializedTasks.EmptyImmutableArray<Document>(); 40return SpecializedTasks.EmptyImmutableArray<Document>(); 43return SpecializedTasks.EmptyImmutableArray<Document>();
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (4)
153return SpecializedTasks.EmptyImmutableArray<Document>(); 843return SpecializedTasks.EmptyImmutableArray<string>(); 851: SpecializedTasks.EmptyImmutableArray<string>(); 860: SpecializedTasks.EmptyImmutableArray<Document>();
FindSymbols\FindReferences\Finders\DestructorSymbolReferenceFinder.cs (1)
26return SpecializedTasks.EmptyImmutableArray<Document>();
FindSymbols\FindReferences\Finders\ExplicitInterfaceMethodReferenceFinder.cs (1)
27return SpecializedTasks.EmptyImmutableArray<Document>();
FindSymbols\FindReferences\Finders\OperatorSymbolReferenceFinder.cs (1)
41return SpecializedTasks.EmptyImmutableArray<Document>();
FindSymbols\SymbolFinder.cs (1)
142return SpecializedTasks.Null<ISymbol>();
Remote\RemoteHostClient.cs (2)
40return SpecializedTasks.Null<RemoteHostClient>(); 54return SpecializedTasks.Null<RemoteHostClient>();
Serialization\SerializableSourceText.cs (1)
110return SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(
Shared\TestHooks\AsynchronousOperationListener.cs (5)
55return SpecializedTasks.False; 65return SpecializedTasks.True; 69return SpecializedTasks.False; 82return SpecializedTasks.True; 86return SpecializedTasks.False;
Shared\TestHooks\AsynchronousOperationListenerProvider+NullOperationListener.cs (1)
46? SpecializedTasks.True
Workspace\Host\PersistentStorage\AbstractPersistentStorage.cs (18)
60=> IsDisabled ? SpecializedTasks.False : ChecksumMatchesAsync(projectKey, project: null, name, checksum, cancellationToken); 63=> IsDisabled ? SpecializedTasks.False : ChecksumMatchesAsync(documentKey, document: null, name, checksum, cancellationToken); 66=> IsDisabled ? SpecializedTasks.Null<Stream>() : ReadStreamAsync(projectKey, project: null, name, checksum, cancellationToken); 69=> IsDisabled ? SpecializedTasks.Null<Stream>() : ReadStreamAsync(documentKey, document: null, name, checksum, cancellationToken); 72=> IsDisabled ? SpecializedTasks.False : WriteStreamAsync(projectKey, project: null, name, stream, checksum, cancellationToken); 75=> IsDisabled ? SpecializedTasks.False : WriteStreamAsync(documentKey, document: null, name, stream, checksum, cancellationToken); 78=> IsDisabled ? SpecializedTasks.False : ChecksumMatchesAsync(ProjectKey.ToProjectKey(project), project, name, checksum, cancellationToken); 81=> IsDisabled ? SpecializedTasks.False : ChecksumMatchesAsync(DocumentKey.ToDocumentKey(document), document, name, checksum, cancellationToken); 84=> IsDisabled ? SpecializedTasks.Null<Stream>() : ReadStreamAsync(ProjectKey.ToProjectKey(project), project, name, checksum, cancellationToken); 87=> IsDisabled ? SpecializedTasks.Null<Stream>() : ReadStreamAsync(DocumentKey.ToDocumentKey(document), document, name, checksum, cancellationToken); 90=> IsDisabled ? SpecializedTasks.Null<Stream>() : ReadStreamAsync(name, checksum: null, cancellationToken); 93=> IsDisabled ? SpecializedTasks.Null<Stream>() : ReadStreamAsync(project, name, checksum: null, cancellationToken); 96=> IsDisabled ? SpecializedTasks.Null<Stream>() : ReadStreamAsync(document, name, checksum: null, cancellationToken); 99=> IsDisabled ? SpecializedTasks.False : WriteStreamAsync(ProjectKey.ToProjectKey(project), project, name, stream, checksum, cancellationToken); 102=> IsDisabled ? SpecializedTasks.False : WriteStreamAsync(DocumentKey.ToDocumentKey(document), document, name, stream, checksum, cancellationToken); 105=> IsDisabled ? SpecializedTasks.False : WriteStreamAsync(name, stream, checksum: null, cancellationToken); 108=> IsDisabled ? SpecializedTasks.False : WriteStreamAsync(project, name, stream, checksum: null, cancellationToken); 111=> IsDisabled ? SpecializedTasks.False : WriteStreamAsync(document, name, stream, checksum: null, cancellationToken);
Workspace\Host\PersistentStorage\NoOpPersistentStorage.cs (21)
37=> SpecializedTasks.False; 40=> SpecializedTasks.False; 43=> SpecializedTasks.False; 46=> SpecializedTasks.False; 49=> SpecializedTasks.False; 52=> SpecializedTasks.Null<Stream>(); 55=> SpecializedTasks.Null<Stream>(); 58=> SpecializedTasks.Null<Stream>(); 61=> SpecializedTasks.Null<Stream>(); 64=> SpecializedTasks.Null<Stream>(); 67=> SpecializedTasks.Null<Stream>(); 70=> SpecializedTasks.Null<Stream>(); 73=> SpecializedTasks.Null<Stream>(); 76=> SpecializedTasks.False; 79=> SpecializedTasks.False; 82=> SpecializedTasks.False; 85=> SpecializedTasks.False; 88=> SpecializedTasks.False; 91=> SpecializedTasks.False; 94=> SpecializedTasks.False; 97=> SpecializedTasks.False;
Workspace\Host\Status\WorkspaceStatusService.cs (1)
40return SpecializedTasks.True;
Workspace\Solution\Document.cs (1)
169return SpecializedTasks.Null<SyntaxTree>();
Workspace\Solution\DocumentState.cs (1)
579return SpecializedTasks.Null<Diagnostic>();
Workspace\Solution\ProjectState_Checksum.cs (1)
29return SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(
Workspace\Solution\SolutionState.CompilationTracker.cs (2)
1034return state.HasSuccessfullyLoaded.Value ? SpecializedTasks.True : SpecializedTasks.False;
Workspace\Solution\SolutionState.cs (3)
1802: SpecializedTasks.Null<Compilation>(); 1814: project.HasAllInformation ? SpecializedTasks.True : SpecializedTasks.False;
Workspace\Solution\TextDocumentState.cs (1)
145return SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(
Workspace\Solution\TextDocumentState_Checksum.cs (1)
26return SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
TestDynamicFileInfoProviderThatProducesNoFiles.cs (1)
31=> SpecializedTasks.Null<DynamicFileInfo>();
Microsoft.CodeAnalysis.Workspaces.UnitTests (25)
UtilityTest\SpecializedTasksTests.cs (25)
29Assert.Throws<ArgumentNullException>(() => SpecializedTasks.WhenAll<int>((IEnumerable<ValueTask<int>>)null!)); 36var whenAll = SpecializedTasks.WhenAll(SpecializedCollections.EmptyEnumerable<ValueTask<int>>()); 45var whenAll = SpecializedTasks.WhenAll(new[] { new ValueTask<int>(0), new ValueTask<int>(1) }); 54var whenAll = SpecializedTasks.WhenAll(new[] { new ValueTask<int>(Task.FromCanceled<int>(new CancellationToken(true))) }); 64var whenAll = SpecializedTasks.WhenAll(new[] { new ValueTask<int>(completionSource.Task) }); 81Assert.Throws<ArgumentNullException>("func", () => SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(null!, transform, arg, cancellationToken)); 82Assert.Throws<ArgumentNullException>("transform", () => SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync<StateType, IntermediateType, ResultType>(func, null!, arg, cancellationToken)); 94var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 116var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 137var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 167var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 193var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 224var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 250var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 284var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 317var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 351var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 377var exception = Assert.Throws<InvalidOperationException>(() => SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken)); 398var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 426var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 454var exception = Assert.Throws<InvalidOperationException>(() => SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken)); 478var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 509var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve(); 529var exception = Assert.Throws<InvalidOperationException>(() => SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken)); 549var task = SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(func, transform, arg, cancellationToken).Preserve();
Microsoft.VisualStudio.LanguageServices (8)
CodeCleanup\AbstractCodeCleanUpFixer.cs (2)
189return SpecializedTasks.False; 195return SpecializedTasks.False;
CodeLens\CodeLensCallbackListener.cs (2)
210return SpecializedTasks.Default<Document>(); 232return SpecializedTasks.Default<Document>();
Remote\DefaultRemoteHostClientProvider.cs (1)
22=> SpecializedTasks.Null<RemoteHostClient>();
Utilities\VisualStudioNavigateToLinkService.cs (3)
32return SpecializedTasks.False; 37return SpecializedTasks.False; 41return SpecializedTasks.True;
Microsoft.VisualStudio.LanguageServices.CodeLens (2)
ReferenceCodeLensProvider.cs (2)
68return SpecializedTasks.True; 71return SpecializedTasks.False;
Microsoft.VisualStudio.LanguageServices.LiveShare.UnitTests (3)
MockDocumentNavigationServiceFactory.cs (3)
36public Task<bool> CanNavigateToLineAndOffsetAsync(Workspace workspace, DocumentId documentId, int lineNumber, int offset, CancellationToken cancellationToken) => SpecializedTasks.True; 38public Task<bool> CanNavigateToPositionAsync(Workspace workspace, DocumentId documentId, int position, int virtualSpace, CancellationToken cancellationToken) => SpecializedTasks.True; 40public Task<bool> CanNavigateToSpanAsync(Workspace workspace, DocumentId documentId, TextSpan textSpan, bool allowInvalidSpan, CancellationToken cancellationToken) => SpecializedTasks.True;
Microsoft.VisualStudio.LanguageServices.UnitTests (7)
Diagnostics\DefaultDiagnosticUpdateSourceTests.vb (1)
353Return SpecializedTasks.EmptyImmutableArray(Of Diagnostic)()
Diagnostics\ExternalDiagnosticUpdateSourceTests.vb (6)
671Return SpecializedTasks.EmptyImmutableArray(Of DiagnosticData) 675Return SpecializedTasks.EmptyImmutableArray(Of DiagnosticData)() 679Return SpecializedTasks.EmptyImmutableArray(Of DiagnosticData)() 683Return SpecializedTasks.EmptyImmutableArray(Of DiagnosticData)() 687Return SpecializedTasks.EmptyImmutableArray(Of DiagnosticData)() 691Return SpecializedTasks.EmptyImmutableArray(Of DiagnosticData)()