3555 references to ConfigureAwait
AnalyzerRunner (1)
IncrementalAnalyzerRunner.cs (1)
46var persistentStorage = await persistentStorageService.GetStorageAsync(SolutionKey.ToSolutionKey(_workspace.CurrentSolution), cancellationToken).ConfigureAwait(false);
aspire (2)
Interaction\ExtensionInteractionService.cs (2)
46while (await _extensionTaskChannel.Reader.WaitToReadAsync().ConfigureAwait(false)) 50var taskFunction = await _extensionTaskChannel.Reader.ReadAsync().ConfigureAwait(false);
Aspire.Azure.Npgsql (1)
src\Components\Common\ManagedIdentityTokenCredentialHelpers.cs (1)
59passwordProviderAsync: async (_, ct) => (await credential.GetTokenAsync(s_databaseForPostgresSqlTokenRequestContext, default).ConfigureAwait(false)).Token
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (1)
src\Components\Common\ManagedIdentityTokenCredentialHelpers.cs (1)
59passwordProviderAsync: async (_, ct) => (await credential.GetTokenAsync(s_databaseForPostgresSqlTokenRequestContext, default).ConfigureAwait(false)).Token
Aspire.Confluent.Kafka (1)
MetricsService.cs (1)
19while (await channel.Reader.WaitToReadAsync(stoppingToken).ConfigureAwait(false))
Aspire.Dashboard (8)
Model\BrowserStorage\BrowserStorageBase.cs (1)
31var result = await _protectedBrowserStorage.GetAsync<TValue>(key).ConfigureAwait(false);
Model\BrowserStorage\LocalBrowserStorage.cs (1)
27var json = await GetJsonAsync(key).ConfigureAwait(false);
Model\ThemeManager.cs (3)
27_jsModule = await _jsRuntime.InvokeAsync<IJSObjectReference>("import", "/js/app-theme.js").ConfigureAwait(false); 32var currentTheme = await currentThemeTask.ConfigureAwait(false); 33var themeCookieValue = await themeCookieValueTask.ConfigureAwait(false);
Otlp\Http\OtlpHttpEndpointsBuilder.cs (1)
206result = await httpContext.Request.BodyReader.ReadAsync().ConfigureAwait(false);
src\Shared\ChannelExtensions.cs (1)
36if (await channel.Reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
Telemetry\DashboardTelemetrySender.cs (1)
51while (await _channel.Reader.WaitToReadAsync().ConfigureAwait(false))
Aspire.Hosting (35)
ApplicationModel\ConnectionStringReference.cs (1)
26var value = await Resource.GetValueAsync(cancellationToken).ConfigureAwait(false);
ApplicationModel\ContainerImageReference.cs (1)
32var registryEndpoint = await containerRegistry.Endpoint.GetValueAsync(cancellationToken).ConfigureAwait(false);
ApplicationModel\ExpressionResolver.cs (8)
21(EndpointProperty.Port, true) => await endpointReference.Property(EndpointProperty.TargetPort).GetValueAsync(cancellationToken).ConfigureAwait(false), 31_ => await endpointReference.Property(property).GetValueAsync(cancellationToken).ConfigureAwait(false) 44var result = await ResolveInternalAsync(expr.ValueProviders[i]).ConfigureAwait(false); 60var value = await vp.GetValueAsync(cancellationToken).ConfigureAwait(false); 114var value = await ResolveInternalAsync(cs.Resource.ConnectionStringExpression).ConfigureAwait(false); 133IResourceWithConnectionString cs and not ConnectionStringParameterResource => await ResolveInternalAsync(cs.ConnectionStringExpression).ConfigureAwait(false), 145return await resolver.ResolveInternalAsync(valueProvider).ConfigureAwait(false); 150return await ResolveWithContainerSourceAsync(valueProvider, containerHostName, sourceIsContainer, cancellationToken).ConfigureAwait(false);
ApplicationModel\ReferenceExpression.cs (1)
67args[i] = await ValueProviders[i].GetValueAsync(cancellationToken).ConfigureAwait(false);
ApplicationModel\ResourceExtensions.cs (1)
470return await task.ConfigureAwait(false);
Backchannel\AppHostRpcTarget.cs (1)
57var publishingActivity = await activityReporter.ActivityItemUpdated.Reader.ReadAsync(cancellationToken).ConfigureAwait(false);
Backchannel\BackchannelService.cs (1)
54var clientSocket = await serverSocket.AcceptAsync(stoppingToken).ConfigureAwait(false);
Cli\CliOrphanDetector.cs (1)
88} while (await periodic.WaitForNextTickAsync(stoppingToken).ConfigureAwait(false));
Dcp\DcpExecutor.cs (4)
1537IValueProvider valueProvider => await valueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false), 1567IValueProvider valueProvider => await valueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false), 1787}, resourceReference.DcpResourceName, cancellationToken).ConfigureAwait(false); 1902}, resourceName, cancellationToken).ConfigureAwait(false);
Dcp\DcpHost.cs (3)
253var acceptedSocket = await socket.AcceptAsync(_shutdownCts.Token).ConfigureAwait(false); 353var result = await reader.ReadAsync(CancellationToken.None).ConfigureAwait(false); 438while (await timer.WaitForNextTickAsync(notificationCts.Token).ConfigureAwait(false))
Dcp\KubernetesService.cs (3)
425}, cancellationToken).ConfigureAwait(false); 479}, cancellationToken).ConfigureAwait(false); 600}, cancellationToken).ConfigureAwait(false);
Dcp\ResourceLogSource.cs (1)
76var line = await sr.ReadLineAsync(cancellationToken).ConfigureAwait(false);
ExternalServiceBuilderExtensions.cs (2)
115: await resource.UrlParameter.GetValueAsync(ct).ConfigureAwait(false); 277var urlValue = await _urlParameter.GetValueAsync(cancellationToken).ConfigureAwait(false);
Orchestrator\ApplicationOrchestrator.cs (1)
69var connectionString = await resourceWithConnectionString.GetConnectionStringAsync(token).ConfigureAwait(false);
ResourceBuilderExtensions.cs (3)
186var url = await externalService.Resource.UrlParameter.GetValueAsync(context.CancellationToken).ConfigureAwait(false); 545else if (ExternalServiceResource.UrlIsValidForExternalService(await externalService.Resource.UrlParameter.GetValueAsync(context.CancellationToken).ConfigureAwait(false), out var uri, out var message)) 1015var urlValue = await url.GetValueAsync(c.CancellationToken).ConfigureAwait(false);
src\Shared\ChannelExtensions.cs (1)
36if (await channel.Reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
Utils\PeriodicRestartAsyncEnumerable.cs (2)
39if (!await enumerator.MoveNextAsync().ConfigureAwait(false)) 95if (!await enumerator.MoveNextAsync().ConfigureAwait(false))
Aspire.Hosting.Azure (10)
AzureDeployingContext.cs (3)
292var registryName = await registry.Name.GetValueAsync(cancellationToken).ConfigureAwait(false) ?? 349var registryName = await registry.Name.GetValueAsync(cancellationToken).ConfigureAwait(false) ?? 358var targetTag = await cir.GetValueAsync(cancellationToken).ConfigureAwait(false);
AzurePublishingContext.cs (1)
391var value = await p.GetValueAsync(cancellationToken).ConfigureAwait(false);
Provisioning\BicepUtilities.cs (2)
54IValueProvider v => await v.GetValueAsync(cancellationToken).ConfigureAwait(false), 74IValueProvider v => await v.GetValueAsync(cancellationToken).ConfigureAwait(false),
Provisioning\Internal\DefaultUserPrincipalProvider.cs (1)
17var response = await credential.GetTokenAsync(new(["https://graph.windows.net/.default"]), cancellationToken).ConfigureAwait(false);
Provisioning\Provisioners\BicepProvisioner.cs (3)
32var currentCheckSum = await BicepUtilities.GetCurrentChecksumAsync(resource, section, cancellationToken).ConfigureAwait(false); 111? (await parameterResource.GetValueAsync(cancellationToken).ConfigureAwait(false))! 198await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBExtensions.cs (1)
96var connectionString = await cosmosDb.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false);
Aspire.Hosting.Azure.Kusto (3)
AzureKustoBuilderExtensions.cs (3)
55var connectionString = await resource.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false) ?? 113var connectionString = await db.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false) ?? 221await s_pipeline.ExecuteAsync(async cancellationToken => await adminProvider.ExecuteControlCommandAsync(databaseResource.DatabaseName, script, crp).ConfigureAwait(false), cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.Storage (7)
AzureStorageExtensions.cs (7)
181var blobConnectionString = await builder.Resource.GetBlobConnectionString().GetValueAsync(ct).ConfigureAwait(false) ?? throw new DistributedApplicationException($"{nameof(ConnectionStringAvailableEvent)} was published for the '{builder.Resource.Name}' resource but the connection string was null."); 184var queueConnectionString = await builder.Resource.GetQueueConnectionString().GetValueAsync(ct).ConfigureAwait(false) ?? throw new DistributedApplicationException($"{nameof(ConnectionStringAvailableEvent)} was published for the '{builder.Resource.Name}' resource but the connection string was null."); 415connectionString = await resource.Parent.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false); 440connectionString = await blobStorage.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false); 536connectionString = await resource.Parent.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false); 617connectionString = await resource.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false); 648connectionString = await resource.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false);
Aspire.Hosting.DevTunnels (1)
DevTunnelCli.cs (1)
290var line = await reader.ReadLineAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Docker (1)
DockerComposePublishingContext.cs (1)
164defaultValue = await parameter.GetValueAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Garnet (1)
GarnetBuilderExtensions.cs (1)
114connectionString = await garnet.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false);
Aspire.Hosting.GitHub.Models (3)
GitHubModelsExtensions.cs (2)
61var cs = await r.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false); 179return healthCheck = new GitHubModelsHealthCheck(httpClient, async () => await resource.ConnectionStringExpression.GetValueAsync(default).ConfigureAwait(false));
GitHubModelsHealthCheck.cs (1)
36var builder = new DbConnectionStringBuilder() { ConnectionString = await connectionString().ConfigureAwait(false) };
Aspire.Hosting.Kafka (1)
KafkaBuilderExtensions.cs (1)
44connectionString = await kafka.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false);
Aspire.Hosting.Kubernetes (1)
KubernetesPublishingContext.cs (1)
122value = await parameter.GetValueAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.MongoDB (2)
MongoDBBuilderExtensions.cs (2)
64connectionString = await mongoDBContainer.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false); 115connectionString = await mongoDBDatabase.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false);
Aspire.Hosting.MySql (3)
MySqlBuilderExtensions.cs (3)
45connectionString = await resource.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false); 124connectionString = await mySqlDatabase.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false); 389var pwd = await mySqlInstance.PasswordParameter.GetValueAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Nats (3)
NatsBuilderExtensions.cs (3)
62var connectionString = await nats.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false) 75Username = await nats.UserNameReference.GetValueAsync(ct).ConfigureAwait(false), 76Password = await nats.PasswordParameter!.GetValueAsync(ct).ConfigureAwait(false),
Aspire.Hosting.OpenAI (4)
OpenAIExtensions.cs (3)
68var cs = await r.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false); 114var cs = await r.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false); 214return healthCheck = new OpenAIModelHealthCheck(httpClient, async () => await resource.ConnectionStringExpression.GetValueAsync(default).ConfigureAwait(false));
OpenAIModelHealthCheck.cs (1)
36var builder = new DbConnectionStringBuilder() { ConnectionString = await connectionString().ConfigureAwait(false) };
Aspire.Hosting.Oracle (1)
OracleDatabaseBuilderExtensions.cs (1)
45connectionString = await oracleDatabaseServer.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false);
Aspire.Hosting.PostgreSQL (6)
PostgresBuilderExtensions.cs (6)
58connectionString = await postgresServer.GetConnectionStringAsync(ct).ConfigureAwait(false); 153connectionString = await postgresDatabase.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false); 499: await postgresDatabase.Parent.UserNameParameter.GetValueAsync(cancellationToken).ConfigureAwait(false); 501var password = await postgresDatabase.Parent.PasswordParameter.GetValueAsync(cancellationToken).ConfigureAwait(false) ?? "password"; 539: await postgresInstance.UserNameParameter.GetValueAsync(cancellationToken).ConfigureAwait(false); 540var password = await postgresInstance.PasswordParameter.GetValueAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Qdrant (1)
QdrantBuilderExtensions.cs (1)
54var connectionString = await qdrant.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false)
Aspire.Hosting.RabbitMQ (1)
RabbitMQBuilderExtensions.cs (1)
47connectionString = await rabbitMq.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false);
Aspire.Hosting.Redis (2)
RedisBuilderExtensions.cs (2)
76connectionString = await redis.GetConnectionStringAsync(ct).ConfigureAwait(false); 180var password = await redisInstance.PasswordParameter.GetValueAsync(ct).ConfigureAwait(false);
Aspire.Hosting.SqlServer (2)
SqlServerBuilderExtensions.cs (2)
63connectionString = await sqlServer.GetConnectionStringAsync(ct).ConfigureAwait(false); 134connectionString = await sqlServerDatabase.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false);
Aspire.Hosting.Valkey (1)
ValkeyBuilderExtensions.cs (1)
127connectionString = await valkey.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false);
GenerateDocumentationAndConfigFiles (62)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
165int read = await stream.ReadAsync(buffer.AsMemory(), cancellationToken).ConfigureAwait(false);
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
553builder.Add(await selector(item).ConfigureAwait(false)); 567builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 581builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 592builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
406builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 421builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 442builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
220return (ranToCompletion: true, await ProcessNextBatchAsync().ConfigureAwait(false));
src\Dependencies\Threading\ProducerConsumer.cs (1)
30while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ValueTaskExtensions.cs (2)
237_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 247_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\AddImport\AddImportPlacementOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
99changedRoot, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
83var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\AbstractFixAllSpanMappingService.cs (2)
45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 78var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
244var codeGenOptions = await oldDocument.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false); 256var addImportsOptions = await newDocument.GetAddImportPlacementOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CleanCodeGenerationOptions.cs (2)
42GenerationOptions = await document.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false), 43CleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationOptionsProviders.cs (2)
36var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false); 44var options = await GetCodeGenerationOptionsAsync(document, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringContextExtensions.cs (4)
46var parsedDocument = await ParsedDocument.CreateAsync(context.Document, context.CancellationToken).ConfigureAwait(false); 55var parsedDocument = await ParsedDocument.CreateAsync(context.Document, context.CancellationToken).ConfigureAwait(false); 61var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false); 84var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (5)
37var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 120var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 121var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 180var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 183var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
132var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 136return await ReuseExistingSpeculativeModelAsync(document, node, cancellationToken).ConfigureAwait(false); 225var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\DocumentFormattingOptionsProviders.cs (1)
24var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\FormatterShared.cs (1)
26var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\LineFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\SyntaxFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (2)
119var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 123var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (2)
27var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 34var currentModel = await current.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\NamingStyles\NamingStylePreferencesProviders.cs (1)
17var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
52var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
102return await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 157var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (6)
69var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 96var root = (TCompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 107root = (TCompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 165var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 236semanticModelForReduce = await newDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 291var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplifierOptionsProviders.cs (1)
22var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (2)
33var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 34var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\SemanticDocument.cs (3)
20var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 21var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 22var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\SyntacticDocument.cs (2)
30var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 31var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
IdeBenchmarks (2)
InheritanceMargin\BenchmarksHelpers.cs (2)
27var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 29document, root.Span, includeGlobalImports: true, frozenPartialSemantics: true, cancellationToken).ConfigureAwait(false);
IdeCoreBenchmarks (1)
NavigateToBenchmarks.cs (1)
148await SyntaxTreeIndex.GetIndexAsync(document, default).ConfigureAwait(false);
Metrics (12)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
553builder.Add(await selector(item).ConfigureAwait(false)); 567builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 581builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 592builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
406builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 421builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 442builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
220return (ranToCompletion: true, await ProcessNextBatchAsync().ConfigureAwait(false));
src\Dependencies\Threading\ChannelReaderExtensions.cs (1)
22while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ProducerConsumer.cs (1)
30while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ValueTaskExtensions.cs (2)
237_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 247_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
Metrics.Legacy (12)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
553builder.Add(await selector(item).ConfigureAwait(false)); 567builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 581builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 592builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
406builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 421builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 442builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
220return (ranToCompletion: true, await ProcessNextBatchAsync().ConfigureAwait(false));
src\Dependencies\Threading\ChannelReaderExtensions.cs (1)
22while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ProducerConsumer.cs (1)
30while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ValueTaskExtensions.cs (2)
237_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 247_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
Microsoft.AspNetCore.Http.Connections (1)
src\SignalR\common\Shared\PipeWriterStream.cs (1)
94var flushResult = await flushTask.ConfigureAwait(false);
Microsoft.AspNetCore.Http.Connections.Client (9)
Internal\LongPollingTransport.cs (1)
198var flushResult = await _application.Output.FlushAsync(cancellationToken).ConfigureAwait(false);
Internal\SendUtils.cs (1)
27var result = await application.Input.ReadAsync(cancellationToken).ConfigureAwait(false);
Internal\ServerSentEventsTransport.cs (1)
146var flushResult = await _application.Output.WriteAsync(item.Data, default).ConfigureAwait(false);
Internal\WebSocketsTransport.cs (5)
306_webSocket = await factory(context, cancellationToken).ConfigureAwait(false); 443var result = await socket.ReceiveAsync(Memory<byte>.Empty, _stopCts.Token).ConfigureAwait(false); 461var receiveResult = await socket.ReceiveAsync(memory, _stopCts.Token).ConfigureAwait(false); 489var flushResult = await _application.Output.FlushAsync().ConfigureAwait(false); 540var result = await _application.Input.ReadAsync().ConfigureAwait(false);
src\SignalR\common\Shared\PipeWriterStream.cs (1)
94var flushResult = await flushTask.ConfigureAwait(false);
Microsoft.AspNetCore.Identity (2)
PasskeyHandler.cs (2)
317}).ConfigureAwait(false); 597var isOriginValid = await ValidateOriginAsync(clientData, httpContext).ConfigureAwait(false);
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (8)
RedisOutputCacheStore.cs (8)
60await ConnectAsync(cancellationToken).ConfigureAwait(false); 105await ExecuteGarbageCollectionAsync(GetExpirationTimestamp(TimeSpan.Zero), _disposalCancellation.Token).ConfigureAwait(false); 128var cache = await ConnectAsync(CancellationToken.None).ConfigureAwait(false); 167var cache = await ConnectAsync(cancellationToken).ConfigureAwait(false); 192var cache = await ConnectAsync(cancellationToken).ConfigureAwait(false); 211var cache = await ConnectAsync(cancellationToken).ConfigureAwait(false); 226await destination.FlushAsync(cancellationToken).ConfigureAwait(false); 245var cache = await ConnectAsync(cancellationToken).ConfigureAwait(false);
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Infrastructure\TransportManager.cs (2)
47var transport = await transportFactory.BindAsync(endPoint, cancellationToken).ConfigureAwait(false); 81var transport = await multiplexedTransportFactory.BindAsync(endPoint, features, cancellationToken).ConfigureAwait(false);
Microsoft.AspNetCore.SignalR.Client.Core (23)
HubConnection.cs (11)
495var connection = await _connectionFactory.ConnectAsync(_endPoint, cancellationToken).ConfigureAwait(false); 686while (await reader.WaitToReadAsync(cts.Token).ConfigureAwait(false)) 907while (await enumerator.MoveNextAsync().ConfigureAwait(false)) 941while (await reader.WaitToReadAsync(tokenSource.Token).ConfigureAwait(false)) 1215await connectionState.WriteAsync(hubMessage, cancellationToken).ConfigureAwait(false); 1221await connectionState.Connection.Transport.Output.FlushAsync(cancellationToken).ConfigureAwait(false); 1466else if (!await irq.StreamItem(streamItem.Item).ConfigureAwait(false)) 1499var sendHandshakeResult = await startingConnectionState.Connection.Transport.Output.FlushAsync(CancellationToken.None).ConfigureAwait(false); 1520var result = await input.ReadAsync(linkedToken).ConfigureAwait(false); 1618while (await invocationMessageChannelReader.WaitToReadAsync().ConfigureAwait(false)) 1640var result = await input.ReadAsync().ConfigureAwait(false);
HubConnectionExtensions.StreamAsChannelAsync.cs (2)
291while (await inputChannel.WaitToReadAsync().ConfigureAwait(false)) 297if (!await outputChannel.Writer.WaitToWriteAsync().ConfigureAwait(false))
Internal\InvocationRequest.cs (1)
141if (!await _channel.Writer.WaitToWriteAsync().ConfigureAwait(false))
src\SignalR\common\Shared\AsyncEnumerableAdapters.cs (2)
57while (await _channel.WaitToReadAsync(_cancellationToken).ConfigureAwait(false)) 235while (await ((ValueTask<bool>)_waitToReadAsyncMethodInfo.Invoke(_channelReader, _waitToReadArgs)!).ConfigureAwait(false))
src\SignalR\common\Shared\MessageBuffer.cs (6)
93while (await _timer.WaitForNextTickAsync().ConfigureAwait(false)) 110await _writer.FlushAsync().ConfigureAwait(false); 139while (await _waitForAck.Reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false)) 181return await writeTask.ConfigureAwait(false); 280finalResult = await _writer.WriteAsync(item.HubMessage).ConfigureAwait(false); 288finalResult = await _writer.FlushAsync().ConfigureAwait(false);
src\SignalR\common\Shared\PipeWriterStream.cs (1)
94var flushResult = await flushTask.ConfigureAwait(false);
Microsoft.AspNetCore.SignalR.Core (8)
src\SignalR\common\Shared\AsyncEnumerableAdapters.cs (2)
57while (await _channel.WaitToReadAsync(_cancellationToken).ConfigureAwait(false)) 235while (await ((ValueTask<bool>)_waitToReadAsyncMethodInfo.Invoke(_channelReader, _waitToReadArgs)!).ConfigureAwait(false))
src\SignalR\common\Shared\MessageBuffer.cs (6)
93while (await _timer.WaitForNextTickAsync().ConfigureAwait(false)) 110await _writer.FlushAsync().ConfigureAwait(false); 139while (await _waitForAck.Reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false)) 181return await writeTask.ConfigureAwait(false); 280finalResult = await _writer.WriteAsync(item.HubMessage).ConfigureAwait(false); 288finalResult = await _writer.FlushAsync().ConfigureAwait(false);
Microsoft.AspNetCore.WebUtilities (1)
HttpRequestStreamReader.cs (1)
490_bytesRead = await _stream.ReadAsync(_byteBuffer.AsMemory(0, _byteBufferSize)).ConfigureAwait(false);
Microsoft.CodeAnalysis (31)
DiagnosticAnalyzer\AnalyzerDriver.cs (13)
1607var optionalEvent = await CompilationEventQueue.TryDequeueAsync(cancellationToken).ConfigureAwait(false); 1646EventProcessedState eventProcessedState = await TryProcessEventCoreAsync(e, analysisScope, cancellationToken).ConfigureAwait(false); 1735return await TryProcessSymbolDeclaredAsync(symbolEvent, analysisScope, cancellationToken).ConfigureAwait(false); 1773await GetPerSymbolAnalyzerActionsAsync(symbol, analysisScope, cancellationToken).ConfigureAwait(false) : 2054var analyzerActions = await analyzerManager.GetAnalyzerActionsAsync(analyzer, analyzerExecutor, cancellationToken).ConfigureAwait(false); 2139var analyzerActions = await GetPerSymbolAnalyzerActionsAsync(symbol, analyzer, analysisScope.OriginalFilterFile?.SourceTree, analysisScope.OriginalFilterSpan, cancellationToken).ConfigureAwait(false); 2171return await getAllActionsAsync(this, symbol, analyzer, filterTree, filterSpan, cancellationToken).ConfigureAwait(false); 2179var allActions = await getAllActionsAsync(this, symbol, analyzer, filterTree, filterSpan, cancellationToken).ConfigureAwait(false); 2185var inheritedActions = await getInheritedActionsAsync(driver, symbol, analyzer, filterTree, filterSpan, cancellationToken).ConfigureAwait(false); 2188AnalyzerActions myActions = await getSymbolActionsCoreAsync(driver, symbol, analyzer, filterTree, filterSpan, cancellationToken).ConfigureAwait(false); 2203var containerActions = await driver.GetPerSymbolAnalyzerActionsAsync(symbol.ContainingSymbol, analyzer, filterTree, filterSpan, cancellationToken).ConfigureAwait(false); 2235return await driver.AnalyzerManager.GetPerSymbolAnalyzerActionsAsync(symbol, isGeneratedCodeSymbol, filterTree, filterSpan, analyzer, driver.AnalyzerExecutor, cancellationToken).ConfigureAwait(false); 2380var analyzerActions = await AnalyzerManager.GetAnalyzerActionsAsync(analyzer, AnalyzerExecutor, cancellationToken).ConfigureAwait(false);
DiagnosticAnalyzer\AnalyzerManager.cs (9)
65return await GetCompilationAnalysisScopeCoreAsync(sessionScope, analyzerExecutor, analyzerExecutionContext, cancellationToken).ConfigureAwait(false); 88return await GetCompilationAnalysisScopeCoreAsync(sessionScope, analyzerExecutor, analyzerExecutionContext, cancellationToken).ConfigureAwait(false); 138return await GetSessionAnalysisScopeCoreAsync(analyzerExecutor, analyzerExecutionContext, cancellationToken).ConfigureAwait(false); 159return await GetSessionAnalysisScopeCoreAsync(analyzerExecutor, analyzerExecutionContext, cancellationToken).ConfigureAwait(false); 171var sessionScope = await GetSessionAnalysisScopeAsync(analyzer, analyzerExecutor, cancellationToken).ConfigureAwait(false); 174var compilationScope = await GetCompilationAnalysisScopeAsync(sessionScope, analyzerExecutor, cancellationToken).ConfigureAwait(false); 195var analyzerActions = await GetAnalyzerActionsAsync(analyzer, analyzerExecutor, cancellationToken).ConfigureAwait(false); 236var sessionScope = await GetSessionAnalysisScopeAsync(analyzer, analyzerExecutor, cancellationToken).ConfigureAwait(false); 246var sessionScope = await GetSessionAnalysisScopeAsync(analyzer, analyzerExecutor, cancellationToken).ConfigureAwait(false);
DiagnosticAnalyzer\AsyncQueue.cs (1)
247var result = await optionalResult.ConfigureAwait(false);
Hashing\NonCryptographicHashAlgorithm.cs (1)
165int read = await stream.ReadAsync(buffer.AsMemory(), cancellationToken).ConfigureAwait(false);
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
553builder.Add(await selector(item).ConfigureAwait(false)); 567builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 581builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 592builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
406builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 421builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 442builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
Microsoft.CodeAnalysis.Analyzers (74)
FixAnalyzers\FixerWithFixAllAnalyzer.Fixer.cs (2)
38var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 62var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
MetaAnalyzers\Fixers\ApplyDiagnosticAnalyzerAttributeFix.cs (1)
22var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
MetaAnalyzers\Fixers\CompareSymbolsCorrectlyFix.cs (4)
67var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 68var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 82var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 83var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
MetaAnalyzers\Fixers\ConfigureGeneratedCodeAnalysisFix.cs (2)
45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 52var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
MetaAnalyzers\Fixers\DefineDiagnosticDescriptorArgumentsCorrectlyFix.cs (2)
41var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 49var semanticModel = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false);
MetaAnalyzers\Fixers\EnableConcurrentExecutionFix.cs (1)
44var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
553builder.Add(await selector(item).ConfigureAwait(false)); 567builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 581builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 592builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
406builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 421builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 442builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
220return (ranToCompletion: true, await ProcessNextBatchAsync().ConfigureAwait(false));
src\Dependencies\Threading\ChannelReaderExtensions.cs (1)
22while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ProducerConsumer.cs (1)
30while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ValueTaskExtensions.cs (2)
237_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 247_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\AddImport\AddImportPlacementOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
99changedRoot, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
83var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\AbstractFixAllSpanMappingService.cs (2)
45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 78var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
244var codeGenOptions = await oldDocument.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false); 256var addImportsOptions = await newDocument.GetAddImportPlacementOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CleanCodeGenerationOptions.cs (2)
42GenerationOptions = await document.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false), 43CleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationOptionsProviders.cs (2)
36var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false); 44var options = await GetCodeGenerationOptionsAsync(document, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringContextExtensions.cs (4)
46var parsedDocument = await ParsedDocument.CreateAsync(context.Document, context.CancellationToken).ConfigureAwait(false); 55var parsedDocument = await ParsedDocument.CreateAsync(context.Document, context.CancellationToken).ConfigureAwait(false); 61var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false); 84var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (5)
37var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 120var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 121var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 180var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 183var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
132var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 136return await ReuseExistingSpeculativeModelAsync(document, node, cancellationToken).ConfigureAwait(false); 225var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\DocumentFormattingOptionsProviders.cs (1)
24var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\FormatterShared.cs (1)
26var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\LineFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\SyntaxFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (2)
119var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 123var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (2)
27var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 34var currentModel = await current.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\NamingStyles\NamingStylePreferencesProviders.cs (1)
17var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
52var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
102return await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 157var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (6)
69var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 96var root = (TCompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 107root = (TCompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 165var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 236semanticModelForReduce = await newDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 291var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplifierOptionsProviders.cs (1)
22var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (2)
33var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 34var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\SemanticDocument.cs (3)
20var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 21var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 22var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\SyntacticDocument.cs (2)
30var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 31var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.AnalyzerUtilities (12)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
553builder.Add(await selector(item).ConfigureAwait(false)); 567builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 581builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 592builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
406builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 421builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 442builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
220return (ranToCompletion: true, await ProcessNextBatchAsync().ConfigureAwait(false));
src\Dependencies\Threading\ChannelReaderExtensions.cs (1)
22while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ProducerConsumer.cs (1)
30while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ValueTaskExtensions.cs (2)
237_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 247_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
Microsoft.CodeAnalysis.BannedApiAnalyzers (62)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
553builder.Add(await selector(item).ConfigureAwait(false)); 567builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 581builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 592builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
406builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 421builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 442builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
220return (ranToCompletion: true, await ProcessNextBatchAsync().ConfigureAwait(false));
src\Dependencies\Threading\ChannelReaderExtensions.cs (1)
22while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ProducerConsumer.cs (1)
30while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ValueTaskExtensions.cs (2)
237_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 247_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\AddImport\AddImportPlacementOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
99changedRoot, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
83var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\AbstractFixAllSpanMappingService.cs (2)
45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 78var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
244var codeGenOptions = await oldDocument.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false); 256var addImportsOptions = await newDocument.GetAddImportPlacementOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CleanCodeGenerationOptions.cs (2)
42GenerationOptions = await document.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false), 43CleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationOptionsProviders.cs (2)
36var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false); 44var options = await GetCodeGenerationOptionsAsync(document, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringContextExtensions.cs (4)
46var parsedDocument = await ParsedDocument.CreateAsync(context.Document, context.CancellationToken).ConfigureAwait(false); 55var parsedDocument = await ParsedDocument.CreateAsync(context.Document, context.CancellationToken).ConfigureAwait(false); 61var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false); 84var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (5)
37var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 120var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 121var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 180var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 183var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
132var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 136return await ReuseExistingSpeculativeModelAsync(document, node, cancellationToken).ConfigureAwait(false); 225var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\DocumentFormattingOptionsProviders.cs (1)
24var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\FormatterShared.cs (1)
26var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\LineFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\SyntaxFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (2)
119var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 123var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (2)
27var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 34var currentModel = await current.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\NamingStyles\NamingStylePreferencesProviders.cs (1)
17var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
52var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
102return await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 157var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (6)
69var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 96var root = (TCompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 107root = (TCompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 165var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 236semanticModelForReduce = await newDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 291var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplifierOptionsProviders.cs (1)
22var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (2)
33var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 34var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\SemanticDocument.cs (3)
20var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 21var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 22var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\SyntacticDocument.cs (2)
30var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 31var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CodeStyle (12)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
553builder.Add(await selector(item).ConfigureAwait(false)); 567builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 581builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 592builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
406builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 421builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 442builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
220return (ranToCompletion: true, await ProcessNextBatchAsync().ConfigureAwait(false));
src\Dependencies\Threading\ChannelReaderExtensions.cs (1)
22while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ProducerConsumer.cs (1)
30while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ValueTaskExtensions.cs (2)
237_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 247_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
Microsoft.CodeAnalysis.CodeStyle.Fixes (210)
src\Analyzers\Core\CodeFixes\AddAccessibilityModifiers\AbstractAddAccessibilityModifiersCodeFixProvider.cs (1)
45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (2)
56var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 90var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (3)
73var root = await document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 74var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 218var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddObsoleteAttribute\AbstractAddObsoleteAttributeCodeFixProvider.cs (2)
43var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 79var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (4)
68var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 71var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 405var semanticModel = await invocationDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 423var semanticModel = await invocationDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (2)
113var syntaxRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 183var rewrittenSyntaxRoot = await rewrittenDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (3)
34var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 41var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 50var placementOption = await document.GetAddImportPlacementOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AnalyzerOptionsProviders.cs (1)
16var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (5)
74var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 75var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 319var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 405var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 406var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ConvertToAsync\AbstractConvertToAsyncCodeFixProvider.cs (2)
23var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 54var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ConvertTypeOfToNameOf\AbstractConvertTypeOfToNameOfCodeFixProvider.cs (1)
38var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (2)
31var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 60var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (2)
35var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 61var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (2)
50var options = await document.GetLineFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 59var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (1)
45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (4)
72var root = await context.Document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 73var text = await context.Document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 82var formattingOptions = await context.Document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 90var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (9)
87if (!(await TryInitializeConstructorInitializerGenerationAsync(node, cancellationToken).ConfigureAwait(false))) 92if (!(await TryInitializeSimpleNameGenerationAsync(node, cancellationToken).ConfigureAwait(false))) 97if (!(await TryInitializeImplicitObjectCreationAsync(node, cancellationToken).ConfigureAwait(false))) 306return await TryDetermineTypeToGenerateInAsync(typeToGenerateIn, cancellationToken).ConfigureAwait(false); 323return await TryDetermineTypeToGenerateInAsync(typeToGenerateIn, cancellationToken).ConfigureAwait(false); 356return await TryDetermineTypeToGenerateInAsync(typeToGenerateIn, cancellationToken).ConfigureAwait(false); 397var definition = await SymbolFinderInternal.FindSourceDefinitionAsync(original, _document.Project.Solution, cancellationToken).ConfigureAwait(false); 464var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 482var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorCodeFixProvider.cs (1)
28var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.State.cs (2)
34return await state.TryInitializeAsync(service, document, node, cancellationToken).ConfigureAwait(false) ? state : null; 67var sourceType = (await SymbolFinderInternal.FindSourceDefinitionAsync(TypeToGenerateIn, document.Project.Solution, cancellationToken).ConfigureAwait(false)) as INamedTypeSymbol;
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberCodeFixProvider.cs (1)
41var root = await document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateConversionService.cs (1)
41return await GetActionsAsync(document, state, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateDeconstructMethodService.cs (1)
36return state != null ? await GetActionsAsync(document, state, cancellationToken).ConfigureAwait(false) : [];
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.cs (1)
42return await GetActionsAsync(document, state, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.CodeAction.cs (2)
68var property = await _state.SignatureInfo.GeneratePropertyAsync(syntaxFactory, _isAbstract, _state.IsWrittenTo, cancellationToken).ConfigureAwait(false); 84var method = await _state.SignatureInfo.GenerateMethodAsync(syntaxFactory, _isAbstract, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (1)
58var returnType = await state.SignatureInfo.DetermineReturnTypeAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (6)
80type: await DetermineReturnTypeAsync(cancellationToken).ConfigureAwait(false), 84parameters: await DetermineParametersAsync(cancellationToken).ConfigureAwait(false), 94var parameters = await DetermineParametersAsync(cancellationToken).ConfigureAwait(false); 95var returnType = await DetermineReturnTypeAsync(cancellationToken).ConfigureAwait(false); 152Document.Project, typeSymbol, compilation, availableTypeParameterNames, cancellationToken).ConfigureAwait(false); 201var types = await SpecializedTasks.WhenAll(DetermineParameterTypes(cancellationToken).Select(t => FixTypeAsync(t, cancellationToken))).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.State.cs (2)
61TypeToGenerateIn = await SymbolFinderInternal.FindSourceDefinitionAsync(TypeToGenerateIn, document.Project.Solution, cancellationToken).ConfigureAwait(false) as INamedTypeSymbol; 90var generatedMethod = await SignatureInfo.GenerateMethodAsync(syntaxFactory, false, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\TypeParameterSubstitution.cs (2)
78var commonDerivedType = await DetermineCommonDerivedTypeAsync(symbol).ConfigureAwait(false); 113_project, commonType, _compilation, _availableTypeParameterNames, _cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (1)
41var state = await State.GenerateAsync((TService)this, semanticDocument, node, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.GenerateLocalCodeAction.cs (2)
46var semanticModel = await _document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 64var info = await _document.GetCodeGenerationInfoAsync(context, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
80return await state.TryInitializeAsync(interfaceNode, cancellationToken).ConfigureAwait(false) ? state : null;
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\AbstractImplementAbstractClassCodeFixProvider.cs (1)
28var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\ImplementAbstractClassData.cs (4)
43var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 65var options = await document.GetImplementTypeOptionsAsync(cancellationToken).ConfigureAwait(false); 106var info = await _document.GetCodeGenerationInfoAsync(context, cancellationToken).ConfigureAwait(false); 114var root = await _document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (1)
24var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceService.cs (3)
63var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 80var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 148var options = await document.GetImplementTypeOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (1)
74var tree = await this.Document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (4)
60var rootWithCoreMembers = await docWithCoreMembers.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 70var info = await document.GetCodeGenerationInfoAsync(context, cancellationToken).ConfigureAwait(false); 91var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 235var options = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ImplementType\ImplementTypeOptions.cs (1)
79var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\Iterator\AbstractIteratorCodeFixProvider.cs (1)
21var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (2)
44var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 75var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\MakeMethodAsynchronous\AbstractMakeMethodAsynchronousCodeFixProvider.cs (4)
50var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 119var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 177var newRoot = await newDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 180var semanticModel = await newDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (6)
57var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 88var semanticModel = await newDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 106var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 122var syntaxRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 126var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 175var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\MakeTypePartial\AbstractMakeTypePartialCodeFixProvider.cs (1)
32var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\Naming\NamingExtensions.cs (1)
37var options = await document.GetNamingStylePreferencesAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\NamingStyle\NamingStyleCodeFixProvider.cs (2)
57var root = await document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 73var model = await document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\NewLines\ConsecutiveStatementPlacement\ConsecutiveStatementPlacementCodeFixProvider.cs (2)
46var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 47var options = await document.GetLineFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesCodeFixProvider.cs (1)
48var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\OrderModifiers\AbstractOrderModifiersCodeFixProvider.cs (2)
40var syntaxTree = await context.Document.GetRequiredSyntaxTreeAsync(context.CancellationToken).ConfigureAwait(false); 52var options = await document.GetAnalyzerOptionsProviderAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (1)
146var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (2)
44var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 69var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveRedundantEquality\RemoveRedundantEqualityCodeFixProvider.cs (2)
36var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 41var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsCodeFixProvider.cs (1)
57var newRoot = await newDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryAttributeSuppressionsCodeFixProvider.cs (1)
28var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (1)
32var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveUnusedMembers\AbstractRemoveUnusedMembersCodeFixProvider.cs (1)
48var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (9)
164var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 278var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 286var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 298var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 301var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 784var newRoot = await newDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 843var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 885root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 918var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\SimplifyInterpolation\AbstractSimplifyInterpolationCodeFixProvider.cs (1)
50var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (4)
34var syntaxRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 35var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 43type, document.Project.Solution, cancellationToken).ConfigureAwait(false); 64var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UpdateLegacySuppressions\UpdateLegacySuppressionsCodeFixProvider.cs (1)
29var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (13)
144field, fieldLocations, propertyDeclaration, cancellationToken).ConfigureAwait(false); 246var declaratorTreeRoot = await fieldDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 260var fieldTreeRoot = await fieldDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 261var propertyTreeRoot = await propertyDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 301var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 374var fieldSemanticModel = await fieldDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 379var propertySemanticModel = await propertyDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 431var options = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 436var codeCleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false); 440return await cleanedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 464async cancellationToken => await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false)); 469lazySemanticModel, location, propertyDeclaration, constructorSpans, cancellationToken).ConfigureAwait(false)) 492if (!await IsWrittenToAsync(location).ConfigureAwait(false))
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (1)
36var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForNullableTernaryConditionalCheckCodeFixProvider.cs (1)
40var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForTernaryConditionalCheckCodeFixProvider.cs (1)
41var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseCollectionInitializer\AbstractUseCollectionInitializerCodeFixProvider.cs (1)
75var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (4)
48var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 50var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 92var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 148var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
67var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForReturn\AbstractUseConditionalExpressionForReturnCodeFixProvider.cs (1)
54var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseNullPropagation\AbstractUseNullPropagationCodeFixProvider.cs (2)
106var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 164var semanticModel = await document.GetRequiredSemanticModelAsync(CancellationToken.None).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseObjectInitializer\AbstractUseObjectInitializerCodeFixProvider.cs (3)
71var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 72var currentRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 84var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseSystemHashCode\UseSystemHashCodeCodeFixProvider.cs (1)
46var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\AddImport\AddImportPlacementOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
99changedRoot, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
83var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\AbstractFixAllSpanMappingService.cs (2)
45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 78var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
244var codeGenOptions = await oldDocument.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false); 256var addImportsOptions = await newDocument.GetAddImportPlacementOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CleanCodeGenerationOptions.cs (2)
42GenerationOptions = await document.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false), 43CleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationOptionsProviders.cs (2)
36var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false); 44var options = await GetCodeGenerationOptionsAsync(document, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringContextExtensions.cs (4)
46var parsedDocument = await ParsedDocument.CreateAsync(context.Document, context.CancellationToken).ConfigureAwait(false); 55var parsedDocument = await ParsedDocument.CreateAsync(context.Document, context.CancellationToken).ConfigureAwait(false); 61var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false); 84var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (5)
37var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 120var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 121var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 180var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 183var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
132var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 136return await ReuseExistingSpeculativeModelAsync(document, node, cancellationToken).ConfigureAwait(false); 225var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\DocumentFormattingOptionsProviders.cs (1)
24var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\FormatterShared.cs (1)
26var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\LineFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\SyntaxFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (2)
119var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 123var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (2)
27var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 34var currentModel = await current.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\NamingStyles\NamingStylePreferencesProviders.cs (1)
17var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
52var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
102return await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 157var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (6)
69var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 96var root = (TCompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 107root = (TCompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 165var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 236semanticModelForReduce = await newDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 291var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplifierOptionsProviders.cs (1)
22var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (2)
33var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 34var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\SemanticDocument.cs (3)
20var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 21var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 22var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\SyntacticDocument.cs (2)
30var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 31var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Collections.Package (7)
Extensions\IEnumerableExtensions.cs (4)
553builder.Add(await selector(item).ConfigureAwait(false)); 567builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 581builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 592builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
Extensions\ImmutableArrayExtensions.cs (3)
406builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 421builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 442builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (111)
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (4)
40var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 42var semanticModel = await context.Document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 69var options = await document.GetLineFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 71var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AbstractAssignOutParametersCodeFixProvider.cs (4)
32var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 37var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 97var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 98var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (5)
35var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 61var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 66var syntaxRoot = await documentWithOpenParenthesis.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 84var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 117var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceCodeFixProvider.cs (2)
58var options = await document.GetCSharpSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 63await converted.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false));
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (4)
39var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false); 54var updatedParsedDocument = await ParsedDocument.CreateAsync(updatedDocument, cancellationToken).ConfigureAwait(false); 241var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false); 254var updatedParsedDocument = await ParsedDocument.CreateAsync(updatedDocument, cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.cs (1)
72var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (3)
40var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 86var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 246var lineFormattingOptions = await document.GetLineFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\CSharpConvertToRecordCodeFixProvider.cs (1)
36var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (2)
43var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 137var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (1)
76var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (2)
41var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 54var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.AddNewKeywordAction.cs (1)
25var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.cs (2)
45var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 77var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (1)
49var options = await document.GetCSharpSimplifierOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\Iterator\CSharpAddYieldCodeFixProvider.cs (1)
53var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\Iterator\CSharpChangeToIEnumerableCodeFixProvider.cs (1)
38var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (4)
32var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 45var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 46var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 167var info = await document.GetCodeGenerationInfoAsync(CodeGenerationContext.Default, cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (2)
68var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 85var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (2)
37var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 52var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\MakeRefStruct\MakeRefStructCodeFixProvider.cs (3)
41var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 48var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 68var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\MakeStatementAsynchronous\CSharpMakeStatementAsynchronousCodeFixProvider.cs (1)
35var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (3)
62var syntaxRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 65var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false); 90var compilationUnit = (CompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementCodeFixProvider.cs (2)
46var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 47var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementCodeFixProvider.cs (2)
46var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 47var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (2)
49var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 50var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (2)
46var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 47var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (2)
48var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 51var options = await document.GetCSharpSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (2)
82var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 167model ??= await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (2)
60var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 61var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\RemoveInKeyword\RemoveInKeywordCodeFixProvider.cs (2)
35var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 59var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\RemoveNewModifier\RemoveNewModifierCodeFixProvider.cs (2)
33var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 62var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (3)
40var syntaxRoot = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 47var semanticModel = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 67var syntaxRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (2)
48var document = await ParsedDocument.CreateAsync(workspaceDocument, cancellationToken).ConfigureAwait(false); 50var formattingOptions = await workspaceDocument.GetCSharpSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (1)
64var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderCodeFixProvider.cs (3)
44var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 58var root = await newDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 113var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForCreateCodeFixProvider.cs (1)
63semanticDocument.Root.ReplaceNode(invocationExpression, dummyObjectCreation), cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (3)
52var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 86semanticDocument.Root.ReplaceNode(invocationExpression, dummyObjectCreation), cancellationToken).ConfigureAwait(false); 149var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForNewCodeFixProvider.cs (1)
64semanticDocument.Root.ReplaceNode(objectCreationExpression, dummyObjectCreation), cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocCodeFixProvider.cs (1)
40var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentCodeFixProvider.cs (1)
44var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseDefaultLiteral\CSharpUseDefaultLiteralCodeFixProvider.cs (1)
46var options = (CSharpAnalyzerOptionsProvider)await document.GetAnalyzerOptionsProviderAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (2)
102var semanticModel = await context.Document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 117var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseExplicitTypeForConst\UseExplicitTypeForConstCodeFixProvider.cs (3)
39var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 44var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 64var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseExpressionBody\UseExpressionBodyCodeFixProvider.cs (1)
57var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeFixProvider.cs (1)
40var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseImplicitlyTypedLambdaExpression\CSharpUseImplicitObjectCreationCodeFixProvider.cs (1)
49CSharpSimplification.Instance, cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationCodeFixProvider.cs (1)
56CSharpSimplification.Instance, cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (2)
89var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 141var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
92var info = await document.GetCodeGenerationInfoAsync(CodeGenerationContext.Default, cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
76var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (2)
46var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 47var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpUseNotPatternCodeFixProvider.cs (1)
38var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (2)
120var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 129var removedMembers = await RemoveMembersAsync().ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
83semanticModel ??= await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (1)
46var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeFixesAndRefactorings\CSharpFixAllSpanMappingService.cs (1)
27var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Formatting\CSharpSyntaxFormattingOptionsProviders.cs (1)
15var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.cs (2)
52var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 71var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
41var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Simplification\CSharpSimplifierOptionsProviders.cs (1)
15var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (9)
EventHookup\EventHookupCommandHandler_TabKeyCommand.cs (6)
204var options = (CSharpCodeGenerationOptions)await document.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false); 211var cleanupOptions = await documentWithNameAndAnnotationsAdded.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false); 217var newRoot = await formattedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 226var finalRoot = await finalDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 246var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 268root = await documentWithNameAdded.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
EventHookup\EventHookupSessionManager_EventHookupSession.cs (2)
145var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 168var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
InlineRename\CSharpEditorInlineRenameService.cs (1)
57var semanticModel = await renameDefinition.Document.GetRequiredNullableDisabledSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Features (305)
BraceCompletion\LessAndGreaterThanBraceCompletionService.cs (1)
65var semanticModel = await document.ReuseExistingSpeculativeModelAsync(position, cancellationToken).ConfigureAwait(false);
BraceMatching\BlockCommentBraceMatcher.cs (2)
23var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 32var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
BraceMatching\StringLiteralBraceMatcher.cs (1)
28var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ChangeSignature\CSharpChangeSignatureService.cs (5)
118var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 119var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 154var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 873var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 874var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
CodeLens\CSharpCodeLensMemberFinder.cs (1)
29var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (5)
70var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 71var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 122var info = (CSharpCodeGenerationContextInfo)await document.GetCodeGenerationInfoAsync(CodeGenerationContext.Default, cancellationToken).ConfigureAwait(false); 224semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 225root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (3)
46var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 98var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 163var options = await document.GetCSharpSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (2)
435var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 436var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
CodeRefactorings\UseExplicitOrImplicitType\AbstractUseTypeCodeRefactoringProvider.cs (1)
50var simplifierOptions = (CSharpSimplifierOptions)await document.GetSimplifierOptionsAsync(cancellationToken).ConfigureAwait(false);
CodeRefactorings\UseRecursivePatterns\UseRecursivePatternsCodeRefactoringProvider.cs (5)
55var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 59var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 609var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 611var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 620var updatedRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\AttributeNamedParameterCompletionProvider.cs (2)
59var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 90var semanticModel = await document.ReuseExistingSpeculativeModelAsync(attributeSyntax, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\CrefCompletionProvider.cs (3)
76var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 92var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 107parentNode, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\CSharpSuggestionModeCompletionProvider.cs (2)
36var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 44var semanticModel = await document.ReuseExistingSpeculativeModelAsync(token.Parent, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (2)
65var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 67var semanticModel = await document.ReuseExistingSpeculativeModelAsync(token.SpanStart, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.cs (1)
57var namingStyleOptions = await document.GetNamingStylePreferencesAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\EnumAndCompletionListTagCompletionProvider.cs (1)
65var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.cs (2)
49var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 59var options = await document.GetImplementTypeOptionsAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProvider.ItemGetter.cs (5)
53var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 55var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 98var semanticModel = await Document.ReuseExistingSpeculativeModelAsync(Position, CancellationToken).ConfigureAwait(false); 115var options = await Document.GetImplementTypeOptionsAsync(CancellationToken).ConfigureAwait(false); 124var text = await Document.GetValueTextAsync(CancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\ExternAliasCompletionProvider.cs (2)
47var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 80var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\FunctionPointerUnmanagedCallingConventionCompletionProvider.cs (2)
51var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 72var semanticModel = await document.ReuseExistingSpeculativeModelAsync(callingConventionList, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\ImportCompletion\TypeImportCompletionProvider.cs (1)
61var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (3)
61var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 81var semanticModel = await document.ReuseExistingSpeculativeModelAsync(argumentList, cancellationToken).ConfigureAwait(false); 108var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\ObjectAndWithInitializerCompletionProvider.cs (2)
59var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 79var semanticModel = await document.ReuseExistingSpeculativeModelAsync(expression, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider.cs (2)
106var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 185var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Conversions.cs (2)
80var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 81var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\OperatorsAndIndexer\UnnamedSymbolCompletionProvider_Operators.cs (2)
138var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 142var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\PropertySubPatternCompletionProvider.cs (2)
46var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 57var semanticModel = await document.ReuseExistingSpeculativeModelAsync(position, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\SnippetCompletionProvider.cs (1)
106var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\SpeculativeTCompletionProvider.cs (1)
67var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\SymbolCompletionProvider.cs (2)
177var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 183var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (2)
75var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 90var semanticModel = await document.ReuseExistingSpeculativeModelAsync(attachedToken.Parent, cancellationToken).ConfigureAwait(false);
ConvertAutoPropertyToFullProperty\CSharpConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (2)
162var info = (CSharpCodeGenerationContextInfo)await document.GetCodeGenerationInfoAsync(CodeGenerationContext.Default, cancellationToken).ConfigureAwait(false); 164var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ConvertBetweenRegularAndVerbatimString\AbstractConvertBetweenRegularAndVerbatimStringCodeRefactoringProvider.cs (1)
89var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ConvertNamespace\ConvertNamespaceCodeRefactoringProvider.cs (5)
42var root = (CompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 51var options = await document.GetCSharpSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 94var root = (CompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 95var options = await document.GetCSharpSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 104var newRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider.cs (5)
80var semanticModel = await GetSemanticModelAsync(document).ConfigureAwait(false); 82var contextInfo = await document.GetCodeGenerationInfoAsync(CodeGenerationContext.Default, cancellationToken).ConfigureAwait(false); 83var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 135var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 239var semanticModel = await GetSemanticModelAsync(solution.GetRequiredDocument(syntaxTree)).ConfigureAwait(false);
ConvertProgram\ConvertProgramTransform_ProgramMain.cs (2)
31var root = (CompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 81var root = (CompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ConvertProgram\ConvertProgramTransform_TopLevelStatements.cs (4)
37var root = (CompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 39var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 49var cleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false); 63var root = (CompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ConvertProgram\ConvertToProgramMainCodeFixProvider.cs (3)
37var options = await document.GetCSharpSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 48var options = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 50var fixedRoot = await fixedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ConvertProgram\ConvertToProgramMainCodeRefactoringProvider.cs (2)
41var root = (CompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 50var options = await document.GetCSharpSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
ConvertProgram\ConvertToTopLevelStatementsCodeFixProvider.cs (2)
40var options = await document.GetCSharpSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 54var newRoot = await newDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ConvertProgram\ConvertToTopLevelStatementsCodeRefactoringProvider.cs (2)
46var options = await document.GetCSharpSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 50var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
ConvertToExtension\ConvertToExtensionCodeRefactoringProvider.cs (2)
151var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 202var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ConvertToExtension\ConvertToExtensionFixAllProvider.cs (2)
37var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 38var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ConvertToRawString\ConvertStringToRawStringCodeRefactoringProvider.cs (8)
74var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 82var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 83var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false); 134var options = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 135var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 137var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false); 153var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 154var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false);
Copilot\CSharpCopilotCodeFixProvider.cs (1)
76var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Copilot\CSharpImplementNotImplementedExceptionFixProvider.cs (1)
84var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Debugging\DataTipInfoGetter.cs (4)
27var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 39var semanticModel = await document.GetRequiredNullableDisabledSemanticModelAsync(cancellationToken).ConfigureAwait(false); 50var semanticModel = await document.GetRequiredNullableDisabledSemanticModelAsync(cancellationToken).ConfigureAwait(false); 58var (kind, fullExpressionSpan) = await ComputeKindAsync(document, expression, includeKind, cancellationToken).ConfigureAwait(false);
Debugging\LocationInfoGetter.cs (1)
60var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
DecompiledSource\CSharpDecompiledSourceService.cs (2)
57var node = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 81var oldRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
DocumentHighlighting\CSharpDocumentHighlightsService.cs (2)
50var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 63semanticModel ??= await document.GetRequiredNullableDisabledSemanticModelAsync(cancellationToken).ConfigureAwait(false);
ExtractMethod\CSharpMethodExtractor.cs (1)
168await semanticDocument.WithSyntaxRootAsync(result.Root, cancellationToken).ConfigureAwait(false),
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
1018root.ReplaceNode(methodDefinition, newMethodDefinition), cancellationToken).ConfigureAwait(false);
Formatting\CSharpAccessibilityModifiersNewDocumentFormattingProvider.cs (2)
38var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 39var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Formatting\CSharpNamespaceDeclarationNewDocumentFormattingProvider.cs (1)
33var root = (CompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
GenerateConstructors\CSharpGenerateConstructorsCodeRefactoringProvider.cs (1)
52var options = (CSharpSimplifierOptions)await document.GetSimplifierOptionsAsync(cancellationToken).ConfigureAwait(false);
GenerateType\CSharpGenerateTypeService.cs (1)
750var addImportOptions = await document.GetAddImportPlacementOptionsAsync(cancellationToken).ConfigureAwait(false);
ImplementInterface\AbstractChangeImplementationCodeRefactoringProvider.cs (2)
58var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 133var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ImplementInterface\CSharpImplementExplicitlyCodeRefactoringProvider.cs (2)
66var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 67var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider.cs (2)
50var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 72var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider_Update.cs (3)
37var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 46var currentRoot = await currentDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 87var options = await document.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false);
IntroduceVariable\CSharpIntroduceLocalForExpressionCodeRefactoringProvider.cs (2)
95var simplifierOptions = (CSharpSimplifierOptions)await document.GetSimplifierOptionsAsync(cancellationToken).ConfigureAwait(false); 96var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
LineSeparators\CSharpLineSeparatorService.cs (1)
38var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeRefactoringProvider.cs (1)
40var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
NavigationBar\CSharpNavigationBarItemService.cs (1)
52var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
QuickInfo\CSharpDiagnosticAnalyzerQuickInfoProvider.cs (1)
121var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
QuickInfo\CSharpSemanticQuickInfoProvider.cs (1)
235var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
ReplacePropertyWithMethods\CSharpReplacePropertyWithMethodsService.cs (2)
47var options = (CSharpCodeGenerationOptions)await document.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false); 48var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
ReverseForStatement\CSharpReverseForStatementCodeRefactoringProvider.cs (2)
69var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 269var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
SignatureHelp\AttributeSignatureHelpProvider.cs (2)
74var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 80var semanticModel = await document.ReuseExistingSpeculativeModelAsync(attribute, cancellationToken).ConfigureAwait(false);
SignatureHelp\ConstructorInitializerSignatureHelpProvider.cs (2)
43var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 75var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (2)
52var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 58var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
SignatureHelp\GenericNameSignatureHelpProvider.cs (2)
78var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 92var semanticModel = await document.ReuseExistingSpeculativeModelAsync(simpleName, cancellationToken).ConfigureAwait(false);
SignatureHelp\InitializerExpressionSignatureHelpProvider.cs (2)
57var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 71var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
SignatureHelp\InvocationExpressionSignatureHelpProvider.cs (3)
39var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 75var semanticModel = await document.ReuseExistingSpeculativeModelAsync(invocationExpression, cancellationToken).ConfigureAwait(false); 125var semanticModel = await document.ReuseExistingSpeculativeModelAsync(invocationExpression, cancellationToken).ConfigureAwait(false);
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider.cs (4)
36var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 63var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 69var semanticModel = await document.ReuseExistingSpeculativeModelAsync(objectCreationExpression, cancellationToken).ConfigureAwait(false); 113var semanticModel = await document.ReuseExistingSpeculativeModelAsync(objectCreationExpression, cancellationToken).ConfigureAwait(false);
SignatureHelp\PrimaryConstructorBaseTypeSignatureHelpProvider.cs (2)
71var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 80var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
SignatureHelp\TupleConstructionSignatureHelpProvider.cs (2)
108var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 109var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Snippets\AbstractCSharpAutoPropertySnippetProvider.cs (1)
45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Snippets\AbstractCSharpTypeSnippetProvider.cs (4)
50var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 58var analyzerOptionsProvider = await document.GetAnalyzerOptionsProviderAsync(cancellationToken).ConfigureAwait(false); 98var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 100var syntaxFormattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
Snippets\CSharpClassSnippetProvider.cs (1)
48var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Snippets\CSharpConstructorSnippetProvider.cs (1)
61var semanticModel = await document.ReuseExistingSpeculativeModelAsync(position, cancellationToken).ConfigureAwait(false);
Snippets\CSharpEnumSnippetProvider.cs (1)
45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Snippets\CSharpInterfaceSnippetProvider.cs (1)
44var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Snippets\CSharpIntMainSnippetProvider.cs (2)
52var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 57var syntaxFormattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
Snippets\CSharpSnippetFunctionService.cs (4)
24var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 32var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 41var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 58var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Snippets\CSharpSnippetHelpers.cs (2)
49var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 52var syntaxFormattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
Snippets\CSharpStructSnippetProvider.cs (1)
46var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\AddInheritdoc\AddInheritdocCodeFixProvider.cs (4)
40var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 42var semanticModel = await context.Document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 69var options = await document.GetLineFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 71var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\AssignOutParameters\AbstractAssignOutParametersCodeFixProvider.cs (4)
32var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 37var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 97var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 98var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\ConditionalExpressionInStringInterpolation\CSharpAddParenthesesAroundConditionalExpressionInInterpolatedStringCodeFixProvider.cs (5)
35var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 61var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 66var syntaxRoot = await documentWithOpenParenthesis.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 84var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 117var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceCodeFixProvider.cs (2)
58var options = await document.GetCSharpSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 63await converted.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false));
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (4)
39var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false); 54var updatedParsedDocument = await ParsedDocument.CreateAsync(updatedDocument, cancellationToken).ConfigureAwait(false); 241var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false); 254var updatedParsedDocument = await ParsedDocument.CreateAsync(updatedDocument, cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.cs (1)
72var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordEngine.cs (3)
40var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 86var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 246var lineFormattingOptions = await document.GetLineFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\CSharpConvertToRecordCodeFixProvider.cs (1)
36var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\DisambiguateSameVariable\CSharpDisambiguateSameVariableCodeFixProvider.cs (2)
43var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 137var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (1)
76var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\GenerateMethod\GenerateDeconstructMethodCodeFixProvider.cs (2)
41var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 54var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.AddNewKeywordAction.cs (1)
25var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.cs (2)
45var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 77var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (1)
49var options = await document.GetCSharpSimplifierOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\Iterator\CSharpAddYieldCodeFixProvider.cs (1)
53var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\Iterator\CSharpChangeToIEnumerableCodeFixProvider.cs (1)
38var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\MakeLocalFunctionStaticCodeFixHelper.cs (4)
32var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 45var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 46var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 167var info = await document.GetCodeGenerationInfoAsync(CodeGenerationContext.Default, cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (2)
68var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 85var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (2)
37var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 52var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\MakeRefStruct\MakeRefStructCodeFixProvider.cs (3)
41var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 48var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 68var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\MakeStatementAsynchronous\CSharpMakeStatementAsynchronousCodeFixProvider.cs (1)
35var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\MisplacedUsingDirectives\MisplacedUsingDirectivesCodeFixProvider.cs (3)
62var syntaxRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 65var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false); 90var compilationUnit = (CompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementCodeFixProvider.cs (2)
46var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 47var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementCodeFixProvider.cs (2)
46var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 47var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (2)
49var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 50var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (2)
46var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 47var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (2)
48var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 51var options = await document.GetCSharpSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (2)
82var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 167model ??= await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (2)
60var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 61var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\RemoveInKeyword\RemoveInKeywordCodeFixProvider.cs (2)
35var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 59var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\RemoveNewModifier\RemoveNewModifierCodeFixProvider.cs (2)
33var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 62var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\ReplaceDefaultLiteral\CSharpReplaceDefaultLiteralCodeFixProvider.cs (3)
40var syntaxRoot = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 47var semanticModel = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 67var syntaxRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (2)
48var document = await ParsedDocument.CreateAsync(workspaceDocument, cancellationToken).ConfigureAwait(false); 50var formattingOptions = await workspaceDocument.GetCSharpSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (1)
64var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForBuilderCodeFixProvider.cs (3)
44var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 58var root = await newDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 113var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForCreateCodeFixProvider.cs (1)
63semanticDocument.Root.ReplaceNode(invocationExpression, dummyObjectCreation), cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (3)
52var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 86semanticDocument.Root.ReplaceNode(invocationExpression, dummyObjectCreation), cancellationToken).ConfigureAwait(false); 149var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForNewCodeFixProvider.cs (1)
64semanticDocument.Root.ReplaceNode(objectCreationExpression, dummyObjectCreation), cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocCodeFixProvider.cs (1)
40var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentCodeFixProvider.cs (1)
44var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseDefaultLiteral\CSharpUseDefaultLiteralCodeFixProvider.cs (1)
46var options = (CSharpAnalyzerOptionsProvider)await document.GetAnalyzerOptionsProviderAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (2)
102var semanticModel = await context.Document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 117var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseExplicitTypeForConst\UseExplicitTypeForConstCodeFixProvider.cs (3)
39var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 44var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 64var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseExpressionBody\UseExpressionBodyCodeFixProvider.cs (1)
57var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeFixProvider.cs (1)
40var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseImplicitlyTypedLambdaExpression\CSharpUseImplicitObjectCreationCodeFixProvider.cs (1)
49CSharpSimplification.Instance, cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationCodeFixProvider.cs (1)
56CSharpSimplification.Instance, cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (2)
89var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 141var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
92var info = await document.GetCodeGenerationInfoAsync(CodeGenerationContext.Default, cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
76var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (2)
46var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 47var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpUseNotPatternCodeFixProvider.cs (1)
38var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (2)
120var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 129var removedMembers = await RemoveMembersAsync().ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
83semanticModel ??= await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (1)
46var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
StringIndentation\CSharpStringIndentationService.cs (2)
31var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 32var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
UseExpressionBody\UseExpressionBodyCodeRefactoringProvider.cs (8)
65var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 78var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 79var options = (CSharpCodeGenerationOptions)await document.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false); 166var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 197var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 198var options = (CSharpCodeGenerationOptions)await document.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false); 251currentRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 252var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeRefactoringProvider.cs (4)
34var optionProvider = await document.GetAnalyzerOptionsProviderAsync(cancellationToken).ConfigureAwait(false); 169var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 172var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 197var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
UsePatternMatching\CSharpIsAndCastCheckWithoutNameCodeFixProvider.cs (1)
51var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Workspaces (13)
OrganizeImports\CSharpOrganizeImportsService.cs (1)
22var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (6)
431var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 457var contentHash = await document.GetContentHashAsync(cancellationToken).ConfigureAwait(false); 464foreach (var generatedDocument in await document.Project.GetSourceGeneratedDocumentsAsync(cancellationToken).ConfigureAwait(false)) 466var syntaxIndex = await generatedDocument.GetSyntaxTreeIndexAsync(cancellationToken).ConfigureAwait(false); 470var generatedRoot = await generatedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 475var semanticModel = await generatedDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeFixesAndRefactorings\CSharpFixAllSpanMappingService.cs (1)
27var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Formatting\CSharpSyntaxFormattingOptionsProviders.cs (1)
15var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.cs (2)
52var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 71var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
41var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Simplification\CSharpSimplifierOptionsProviders.cs (1)
15var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures (89)
AutomaticCompletion\BraceCompletionSessionProvider.BraceCompletionSession.cs (1)
124var hasBraceCompletions = await _service.HasBraceCompletionAsync(context, document, cancellationToken).ConfigureAwait(true);
Classification\Semantic\AbstractSemanticOrEmbeddedClassificationViewTaggerProvider.cs (1)
175var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (1)
217cancellationToken).ConfigureAwait(false);
CodeActions\CodeActionEditHandlerService.cs (4)
135var text = await singleChangedDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(true); 325var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 349var latestRoot = await latestDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 371var text = await openDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
CodeDefinitionWindow\DefinitionContextTracker.cs (1)
155var text = await item.Document.GetTextAsync(document.Project.Solution, cancellationToken).ConfigureAwait(false);
Copilot\RoslynProposalAdjusterProvider.cs (1)
178document, CopilotEditorUtilities.TryGetNormalizedTextChanges(editGroup), cancellationToken).ConfigureAwait(false);
EditAndContinue\ActiveStatementTrackingService.cs (7)
173var compileTimeDocument = await compileTimeSolution.GetDocumentAsync(designTimeDocument.Id, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 180_ = await GetAdjustedTrackingSpansAsync(compileTimeDocument, snapshot, cancellationToken).ConfigureAwait(false); 207var baseActiveStatementSpans = await _spanProvider.GetBaseActiveStatementSpansAsync(solution, openDocumentIds, cancellationToken).ConfigureAwait(false); 220documents.Add(await solution.GetTextDocumentAsync(id, cancellationToken).ConfigureAwait(false)); 319var document = await solution.GetTextDocumentAsync(documentId, cancellationToken).ConfigureAwait(false); 325var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 361cancellationToken).ConfigureAwait(false);
EditAndContinue\Contracts\ManagedHotReloadServiceBridge.cs (2)
17=> (await service.GetActiveStatementsAsync(cancellation).ConfigureAwait(false)).SelectAsArray(a => a.ToContract()); 20=> (await service.GetAvailabilityAsync(module, cancellation).ConfigureAwait(false)).ToContract();
EditAndContinue\EditAndContinueLanguageService.cs (5)
132cancellationToken).ConfigureAwait(false); 300? await EditSession.HasChangesAsync(oldSolution, newSolution, sourceFilePath, cancellationToken).ConfigureAwait(false) 301: await EditSession.HasChangesAsync(oldSolution, newSolution, cancellationToken).ConfigureAwait(false); 336var result = await GetDebuggingSession().EmitSolutionUpdateAsync(solution, runningProjectOptions, activeStatementSpanProvider, cancellationToken).ConfigureAwait(false); 364await solution.GetDocumentAsync(diagnostic.DocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false) == null)
EditAndContinue\PdbMatchingSourceTextProvider.cs (1)
146var text = await state.GetTextAsync(cancellationToken).ConfigureAwait(false);
EditorConfigSettings\Updater\SettingsUpdaterBase.cs (2)
55var originalText = await analyzerConfigDocument.GetValueTextAsync(token).ConfigureAwait(false); 84var originalText = await analyzerConfigDocument!.GetValueTextAsync(token).ConfigureAwait(false);
ExternalAccess\IntelliCode\IntentProcessor.cs (1)
58var currentText = await currentDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
ExternalAccess\UnitTestGenerator\Api\UnitTestGeneratorOrganizeImportsAccessor.cs (1)
26var options = await document.GetOrganizeImportsOptionsAsync(cancellationToken).ConfigureAwait(false);
ExtractMethod\ExtractMethodCommandHandler.cs (1)
142var options = await document.GetExtractMethodGenerationOptionsAsync(cancellationToken).ConfigureAwait(false);
InlineRename\AbstractEditorInlineRenameService.InlineRenameLocationSet.cs (1)
50var document = await solution.GetRequiredDocumentAsync(location.DocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false);
InlineRename\InlineRenameService.cs (2)
83var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 126var sourceText = await documentSpan.Document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
InlineRename\InlineRenameSession.cs (2)
876? (documentId, newDocument.Name, await newDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false), newText: null) 942var document = await finalSolution.GetDocumentAsync(documentId, includeSourceGenerated: true, CancellationToken.None).ConfigureAwait(true);
InlineRename\InlineRenameSession.OpenTextBufferManager.cs (2)
555var oldText = await oldDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 556var newText = await newDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Interactive\AbstractInteractiveWindowCommandCompletionProvider.cs (2)
28var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 36var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Interactive\InteractiveDocumentNavigationService.cs (1)
50var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
KeywordHighlighting\HighlighterViewTaggerProvider.cs (1)
102var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Navigation\AbstractDefinitionLocationService.cs (12)
49return await GetDefinitionLocationWorkerAsync(document.WithFrozenPartialSemantics(cancellationToken)).ConfigureAwait(false) ?? 50await GetDefinitionLocationWorkerAsync(document).ConfigureAwait(false); 55var semanticModel = await document.GetRequiredNullableDisabledSemanticModelAsync(cancellationToken).ConfigureAwait(false); 56return await GetControlFlowTargetLocationAsync(document, semanticModel).ConfigureAwait(false) ?? 57await GetSymbolLocationAsync(document, semanticModel).ConfigureAwait(false); 96solution, document, span, cancellationToken).ConfigureAwait(false); 146return await TryGetExplicitInterfaceLocationAsync().ConfigureAwait(false) ?? 147await TryGetInterceptedLocationAsync().ConfigureAwait(false) ?? 148await TryGetOtherPartOfPartialAsync().ConfigureAwait(false); 188var document = await project.GetDocumentAsync(contentHash, cancellationToken).ConfigureAwait(false); 192var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 286var semanticModel = await document.GetRequiredNullableDisabledSemanticModelAsync(cancellationToken).ConfigureAwait(false);
NavigationBar\NavigationBarController_ModelComputation.cs (2)
51return await ComputeModelAndSelectItemAsync(frozenPartialSemantics: false, linkedTokenSource.Token).ConfigureAwait(false); 61var model = await ComputeModelAndSelectItemAsync(frozenPartialSemantics: true, cancellationToken).ConfigureAwait(false);
Organizing\OrganizeDocumentCommandHandler.cs (3)
176var options = await document.GetOrganizeImportsOptionsAsync(cancellationToken).ConfigureAwait(false); 188? await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false) 195var options = await document.GetOrganizeImportsOptionsAsync(cancellationToken).ConfigureAwait(false);
Peek\PeekableItemFactory.cs (1)
62symbol = await GoToDefinitionFeatureHelpers.TryGetPreferredSymbolAsync(solution, symbol, cancellationToken).ConfigureAwait(false);
Peek\PeekableItemSource.cs (2)
93var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 135var text = await document.GetTextAsync(project.Solution, cancellationToken).ConfigureAwait(false);
Preview\AbstractPreviewFactoryService.cs (17)
269leftWorkspace: null, workspace, originalBuffer, changedBuffer, [newEditorDocument], zoomLevel, cancellationToken).ConfigureAwait(true); 282var newEditorDocument = await createEditorDocumentAsync(document, cancellationToken).ConfigureAwait(true); 289newEditorDocument, rightWorkspace, document, zoomLevel, cancellationToken).ConfigureAwait(true); 336workspace, rightWorkspace: null, originalBuffer, changedBuffer, [oldEditorDocument], zoomLevel, cancellationToken).ConfigureAwait(true); 359var oldEditorDocument = await createEditorDocumentAsync(document, cancellationToken).ConfigureAwait(true); 366oldEditorDocument, leftWorkspace, document, zoomLevel, cancellationToken).ConfigureAwait(true); 411var oldEditorDocument = await CreateNewBufferAsync(oldDocument, cancellationToken).ConfigureAwait(true); 413var newEditorDocument = await CreateNewBufferAsync(newDocument, cancellationToken).ConfigureAwait(true); 429var newRoot = await newDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(true); 473leftWorkspace, rightWorkspace, zoomLevel, cancellationToken).ConfigureAwait(true); 500var oldEditorDocument = await CreateNewPlainTextBufferAsync(oldDocument, cancellationToken).ConfigureAwait(true); 502var newEditorDocument = await CreateNewPlainTextBufferAsync(newDocument, cancellationToken).ConfigureAwait(true); 526leftWorkspace, rightWorkspace, zoomLevel, cancellationToken).ConfigureAwait(true); 578leftWorkspace, rightWorkspace, originalBuffer, changedBuffer, [oldEditorDocument, newEditorDocument], zoomLevel, cancellationToken).ConfigureAwait(true); 597return await CreateTextBufferCoreAsync(document, contentType, cancellationToken).ConfigureAwait(true); 607return await CreateTextBufferCoreAsync(document, contentType, cancellationToken).ConfigureAwait(true); 614var text = await document.State.GetTextAsync(cancellationToken).ConfigureAwait(true);
QuickInfo\Extensions.cs (1)
50var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Remote\SolutionChecksumUpdater.cs (3)
156cancellationToken).ConfigureAwait(false); 175cancellationToken).ConfigureAwait(false); 251_shutdownToken).ConfigureAwait(false);
RenameTracking\RenameTrackingTaggerProvider.TrackingSession.cs (3)
187var semanticModel = await document.ReuseExistingSpeculativeModelAsync(token.Parent, _cancellationToken).ConfigureAwait(false); 201return await DetermineIfRenamableSymbolsAsync(renameSymbolInfo.Symbols, document).ConfigureAwait(false); 212return await DetermineIfRenamableSymbolAsync(renameSymbolInfo.Symbols.Single(), document, token).ConfigureAwait(false);
Suggestions\SuggestedActionsSource_Async.cs (1)
233priority, cancellationToken).ConfigureAwait(false);
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ProduceTags.cs (2)
253var (newTagTrees, newResult) = await callback(oldTagTrees, args, cancellationToken).ConfigureAwait(true); 299GetTaggerUIData, cancellationToken).ConfigureAwait(true);
TextDiffing\EditorTextDifferencingService.cs (2)
32var oldText = await oldDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 33var newText = await newDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Formatting\CoreFormatterTestsBase.cs (1)
183var documentSyntax = await ParsedDocument.CreateAsync(document, CancellationToken.None).ConfigureAwait(false);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
InheritanceMargin\InheritanceMarginTests.cs (2)
105var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 119cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Extensions.Package (7)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
553builder.Add(await selector(item).ConfigureAwait(false)); 567builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 581builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 592builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
406builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 421builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 442builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
Microsoft.CodeAnalysis.ExternalAccess.AspNetCore (4)
AddPackage\AspNetCoreAddPackageCodeAction.cs (4)
66var codeCleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false); 68updatedDocument, codeCleanupOptions, cancellationToken).ConfigureAwait(false); 78var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 81var addImportOptions = await document.GetAddImportPlacementOptionsAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.ExternalAccess.Copilot (4)
Analyzer\CopilotUtilities.cs (1)
35var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Internal\Analyzer\CSharp\CSharpCopilotCodeAnalysisService.cs (1)
125var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Internal\SemanticSearch\CopilotSemanticSearchQueryExecutor.cs (2)
92cancellationSource.Token).ConfigureAwait(false); 121cancellationSource.Token).ConfigureAwait(false);
Microsoft.CodeAnalysis.ExternalAccess.Debugger (2)
GlassTestsHotReloadService.cs (2)
40cancellationToken).ConfigureAwait(false); 87var results = (await _encService.EmitSolutionUpdateAsync(GetSessionId(), solution, runningProjects: ImmutableDictionary<ProjectId, RunningProjectOptions>.Empty, s_noActiveStatementSpanProvider, cancellationToken).ConfigureAwait(false)).Dehydrate();
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
TaskList\FSharpTaskListService.cs (1)
41var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (7)
Completion\OmniSharpCompletionService.cs (1)
24var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
DocumentationComments\OmniSharpDocumentationCommentOptionsWrapper.cs (1)
42var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
Formatting\OmniSharpOrganizeImportsOptionsWrapper.cs (1)
36=> new(await document.GetOrganizeImportsOptionsAsync(cancellationToken).ConfigureAwait(false));
Formatting\OmniSharpSyntaxFormattingOptionsWrapper.cs (1)
25var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
GoToDefinition\OmniSharpFindDefinitionService.cs (2)
24async (original, solution, cancellationToken) => new OmniSharpNavigableItem(original.DisplayTaggedParts, await original.Document.GetRequiredDocumentAsync(solution, cancellationToken).ConfigureAwait(false), original.SourceSpan), 26cancellationToken).ConfigureAwait(false);
NavigateTo\OmniSharpNavigateToSearchService.cs (1)
44var document = await result.NavigableItem.Document.GetRequiredDocumentAsync(project.Solution, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (11)
RazorClassifierAccessor.cs (1)
18var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
RazorCSharpFormattingInteractionService.cs (1)
50var documentSyntax = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false);
RazorProjectExtensions.cs (1)
22var results = await project.GetSourceGeneratedDocumentsAsync(cancellationToken).ConfigureAwait(false);
Remote\RazorRemoteHostClient.cs (8)
43return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false); 49return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false); 57return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false); 63return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false); 71return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false); 77return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false); 85return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false); 91return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.ExternalAccess.Xaml (2)
Internal\LocationService.cs (2)
40var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 54var document = await item.Document.GetRequiredDocumentAsync(project.Solution, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (878)
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.cs (1)
69var contextInfo = await document.GetCodeGenerationInfoAsync(CodeGenerationContext.Default, cancellationToken).ConfigureAwait(false);
AddDebuggerDisplay\AbstractAddDebuggerDisplayCodeRefactoringProvider.cs (4)
44var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 82var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 115var syntaxRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 116var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
AddFileBanner\AbstractAddFileBannerCodeRefactoringProvider.cs (4)
41var formattingOptions = await document.GetDocumentFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 48var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 136var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 158var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
AddFileBanner\AbstractAddFileBannerNewDocumentFormattingProvider.cs (2)
24var rootToFormat = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 45var hintSyntaxRoot = await hintDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
AddFileBanner\AddFileBannerHelpers.cs (2)
27var fromRoot = await sourceDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 33var destinationRoot = await destinationDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
AddImport\AbstractAddImportCodeFixProvider.cs (2)
59var searchOptions = await document.GetSymbolSearchOptionsAsync(cancellationToken).ConfigureAwait(false); 76searchOptions, cleanupDocument: true, cancellationToken).ConfigureAwait(false);
AddImport\AbstractAddImportFeatureService.cs (5)
77cancellationToken).ConfigureAwait(false); 93var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 106var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 551cancellationToken).ConfigureAwait(false); 571var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
AddImport\AddImportOptions.cs (1)
44var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
AddImport\CodeActions\AddImportCodeAction.cs (1)
61var oldText = await OriginalDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
AddImport\CodeActions\InstallPackageAndAddImportCodeAction.cs (2)
86var oldText = await OriginalDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 87var newText = await updatedDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
AddImport\References\Reference.cs (1)
132? await CodeAction.CleanupDocumentAsync(newDocument, options, cancellationToken).ConfigureAwait(false)
AddImport\SearchScopes\MetadataSymbolsSearchScope.cs (1)
39var info = await service.TryGetPotentiallyStaleMetadataSymbolTreeInfoAsync(_assemblyProject, _metadataReference, cancellationToken).ConfigureAwait(false);
AddImport\SearchScopes\SourceSymbolsProjectSearchScope.cs (1)
33var info = await service.TryGetPotentiallyStaleSourceSymbolTreeInfoAsync(_project, cancellationToken).ConfigureAwait(false);
AddImport\SymbolReferenceFinder_PackageAssemblySearch.cs (2)
137typeQuery, namespaceQuery, cancellationToken).ConfigureAwait(false); 166sourceName, typeQuery, namespaceQuery, cancellationToken).ConfigureAwait(false);
AddPackage\AbstractAddPackageCodeFixProvider.cs (2)
44var options = await document.GetSymbolSearchOptionsAsync(cancellationToken).ConfigureAwait(false); 84sourceName, assemblyName, cancellationToken).ConfigureAwait(false);
BraceMatching\AbstractBraceMatcher.cs (1)
67var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
BraceMatching\AbstractDirectiveTriviaBraceMatcher.cs (1)
31var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
BraceMatching\AbstractEmbeddedLanguageBraceMatcher.cs (2)
34var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 40var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
BraceMatching\BraceMatchingService.cs (1)
26var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
ChangeSignature\AbstractChangeSignatureService.cs (4)
389var lineFormattingOptions = await doc.GetLineFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 404var formattingOptions = await doc.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 424var cleanupOptions = await updatedDoc.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false); 430callback((formattedDoc.Id, await formattedDoc.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false)));
ClassifiedSpansAndHighlightSpanFactory.cs (1)
34var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
271var originalText = await editorConfigDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
CodeFixes\Service\CodeFixService.cs (4)
117var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 211var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 230var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 339var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionBatchFixAllProvider.cs (1)
314var finalText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.cs (3)
213lazyFormattingOptions ??= await documentOpt.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 263var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 284var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.GlobalSuppressMessageCodeAction.cs (2)
28var suppressionsRoot = await suppressionsDoc.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 30var options = await suppressionsDoc.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.GlobalSuppressMessageFixAllCodeAction.cs (2)
134var cleanupOptions = await suppressionsDoc.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false); 148var final = await CleanupDocumentAsync(result, cleanupOptions, cancellationToken).ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaBatchFixHelpers.cs (1)
105var currentText = await currentDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction.cs (1)
39var formattingOptions = await documentOpt.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
CodeLens\CodeLensReferencesService.cs (4)
48var document = await solution.GetDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 93var projectVersion = await GetProjectCodeLensVersionAsync(solution, documentId.ProjectId, cancellationToken).ConfigureAwait(false); 126var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 219var document = await solution.GetDocumentAsync(descriptorAndDocument.DocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false);
CodeRefactorings\AddAwait\AbstractAddAwaitCodeRefactoringProvider.cs (2)
37var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 42var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
CodeRefactorings\AddMissingImports\AbstractAddMissingImportsFeatureService.cs (6)
56cancellationToken).ConfigureAwait(false); 85var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 86var organizeImportsOptions = await document.GetOrganizeImportsOptionsAsync(cancellationToken).ConfigureAwait(false); 116var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 152var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 153var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
CodeRefactorings\AddMissingImports\AbstractAddMissingImportsRefactoringProvider.cs (1)
32var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
CodeRefactorings\ExtractMethod\AbstractExtractMethodCodeRefactoringProvider.cs (1)
47var extractOptions = await document.GetExtractMethodGenerationOptionsAsync(cancellationToken).ConfigureAwait(false);
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeEditor.cs (5)
90documentWithMovedTypeId, await documentWithMovedType.GetRequiredSyntaxRootAsync(CancellationToken).ConfigureAwait(false)); 93var rootWithMovedType = await documentWithMovedType.GetRequiredSyntaxRootAsync(CancellationToken).ConfigureAwait(false); 105sourceDocumentId, await sourceDocument.GetRequiredSyntaxRootAsync(CancellationToken).ConfigureAwait(false)); 203var documentFormattingOptions = await document.GetDocumentFormattingOptionsAsync(CancellationToken).ConfigureAwait(false); 214var lineFormattingOptions = await document.GetLineFormattingOptionsAsync(CancellationToken).ConfigureAwait(false);
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (17)
132var syntaxRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 142var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 157syntaxRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 173var syntaxRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 328var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 372var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 436var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 497callback((result.Id, await result.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false))); 593containersToAddImports = [await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false)]; 604var documentOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false); 614var root = await documentWithAddedImports.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 690var documentOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false); 782var addImportsOptions = await document.GetAddImportPlacementOptionsAsync(cancellationToken).ConfigureAwait(false); 793root = await fixedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 827callback((result.Id, await result.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false))); 841var formattingOptions = await doc.GetSyntaxFormattingOptionsAsync(token).ConfigureAwait(false); 882var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (1)
45var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionProvider.cs (1)
58=> ShouldTriggerCompletion(document.Project.Services, await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false), caretPosition, trigger, options, document.Project.Solution.Options);
Completion\CompletionService.cs (1)
414var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionService_GetCompletions.cs (1)
73var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractAwaitCompletionProvider.cs (4)
84var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 172var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 194var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 230var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractDocCommentCompletionProvider.cs (1)
278var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (5)
121var semanticModel = await document.ReuseExistingSpeculativeModelAsync(attributeNode, cancellationToken).ConfigureAwait(false); 183var syntaxRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 235var semanticModel = await document.ReuseExistingSpeculativeModelAsync(constructorArgument, cancellationToken).ConfigureAwait(false); 252var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 256var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractKeywordCompletionProvider.cs (1)
59var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractMemberInsertingCompletionProvider.cs (9)
51var newText = await newDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 65var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 72var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 112var memberContainingDocumentCleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false); 127var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 176var root = await memberContainingDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 185var text = await memberContainingDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 227root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 228text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractObjectInitializerCompletionProvider.cs (1)
29var semanticModel = await document.ReuseExistingSpeculativeModelAsync(position, cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractOverrideCompletionProvider.ItemGetter.cs (3)
39var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 41var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 56var semanticModel = await Document.ReuseExistingSpeculativeModelAsync(startToken.Parent, CancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractPartialMethodCompletionProvider.cs (4)
42var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 62var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 81var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 96var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractPartialTypeCompletionProvider.cs (2)
35var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 40var semanticModel = await document.ReuseExistingSpeculativeModelAsync(node, cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractPreprocessorCompletionProvider.cs (1)
35var currentSyntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractRecommendationServiceBasedCompletionProvider.cs (3)
229var relatedDocument = await document.Project.Solution.GetRequiredDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 271var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 276var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\ImportCompletionProvider\AbstractImportCompletionProvider.cs (2)
163var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 206var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.cs (4)
44cancellationToken).ConfigureAwait(false); 81cancellationToken).ConfigureAwait(false); 106semanticModel ??= await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 258var info = await TopLevelSyntaxTreeIndex.GetRequiredIndexAsync(document, cancellationToken).ConfigureAwait(false);
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (2)
78await SymbolTreeInfo.GetInfoForMetadataReferenceAsync(project.Solution, peReference, checksum: null, cancellationToken).ConfigureAwait(false); 190_originatingDocument.Project.Solution, peReference, checksum: null, cancellationToken).ConfigureAwait(false);
Completion\Providers\ImportCompletionProvider\ImportCompletionItem.cs (1)
144var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\ImportCompletionProvider\ImportCompletionProviderHelpers.cs (3)
25var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 33var addImportsOptions = await document.GetAddImportPlacementOptionsAsync(cancellationToken).ConfigureAwait(false); 34var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\Scripting\AbstractDirectivePathCompletionProvider.cs (1)
39var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\Snippets\AbstractSnippetCompletionProvider.cs (2)
36var strippedText = await strippedDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 122var originalText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\SymbolCompletionItem.cs (1)
202var semanticModel = await contextDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Completion\Utilities.cs (1)
55var semanticModel = await document.ReuseExistingSpeculativeModelAsync(position, cancellationToken).ConfigureAwait(false);
ConvertAnonymousType\AbstractConvertAnonymousTypeCodeRefactoringProvider.cs (1)
29var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
ConvertAnonymousType\AbstractConvertAnonymousTypeToClassCodeRefactoringProvider.cs (7)
87var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 88var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 132var info = await document.GetCodeGenerationInfoAsync(context, cancellationToken).ConfigureAwait(false); 133var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 154var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 194var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 248var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
ConvertAnonymousType\AbstractConvertAnonymousTypeToTupleCodeRefactoringProvider.cs (4)
33var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 44var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 109var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 112var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
ConvertAutoPropertyToFullProperty\AbstractConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (4)
37var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 43var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 93var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 95var info = (TCodeGenerationContextInfo)await document.GetCodeGenerationInfoAsync(CodeGenerationContext.Default, cancellationToken).ConfigureAwait(false);
ConvertCast\AbstractConvertCastCodeRefactoringProvider.cs (2)
48var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 75var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (2)
68var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 418var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (3)
75var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 323var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 324var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.cs (4)
43var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 245var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 247var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 261var updatedRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ConvertIfToSwitch\AbstractConvertIfToSwitchCodeRefactoringProvider.Rewriting.cs (1)
36var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ConvertLinq\AbstractConvertLinqQueryToForEachProvider.cs (2)
34var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 42var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
ConvertLinq\ConvertForEachToLinqQuery\AbstractConvertForEachToLinqQueryProvider.cs (1)
86var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
ConvertNumericLiteral\AbstractConvertNumericLiteralCodeRefactoringProvider.cs (2)
47var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 59var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ConvertToInterpolatedString\AbstractConvertConcatenationToInterpolatedStringRefactoringProvider.cs (3)
39var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 120var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 133var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (5)
117var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 263var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 264var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 301var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 302var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (18)
88var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 187var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 188var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 206var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 230cancellationToken).ConfigureAwait(false); 255var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 272var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 273var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 365var syntaxRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 366var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 493var info = await document.GetSyntaxTreeIndexAsync(cancellationToken).ConfigureAwait(false); 525var semanticModel = await startingDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 557var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 576var info = await document.GetCodeGenerationInfoAsync(context, cancellationToken).ConfigureAwait(false); 601var formattingOptions = await updatedDocument.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 641var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 754var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 802var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Copilot\ICopilotChangeAnalysisService.cs (3)
69cancellationToken).ConfigureAwait(false); 99var semanticModel = await newDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 116var sourceGeneratedDocuments = await newDocument.Project.GetSourceGeneratedDocumentsAsync(cancellationToken).ConfigureAwait(false);
Copilot\IProposalAdjusterService.cs (2)
52cancellationToken).ConfigureAwait(false); 75var forkedRoot = await forkedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Debugging\AbstractDataTipInfoGetter.cs (1)
29var semanticModel = await document.GetRequiredNullableDisabledSemanticModelAsync(cancellationToken).ConfigureAwait(false);
DesignerAttribute\DesignerAttributeDiscoveryService.cs (8)
110solutionServices, solutionKey, peReference, checksum: null, cancellationToken).ConfigureAwait(false); 138using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 159using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 258hasDesignerCategoryType ??= await HasDesignerCategoryTypeAsync(project, cancellationToken).ConfigureAwait(false); 295var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 304var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 404cancellationToken).ConfigureAwait(false); 414cancellationToken).ConfigureAwait(false);
Diagnostics\Service\DiagnosticAnalyzerService.IncrementalMemberEditAnalyzer.cs (2)
69var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 247var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Diagnostics\Service\DiagnosticAnalyzerService_CompilationWithAnalyzersPair.cs (1)
61using (await s_gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))
Diagnostics\Service\DiagnosticAnalyzerService_DeprioritizationCandidates.cs (1)
60deprioritizedIds = await ComputeDeprioritizedDiagnosticIdsAsync(analyzer).ConfigureAwait(false);
Diagnostics\Service\DiagnosticAnalyzerService_ForceCodeAnalysisDiagnostics.cs (1)
46var sourceGeneratorDocuments = await project.GetSourceGeneratedDocumentsAsync(cancellationToken).ConfigureAwait(false);
Diagnostics\Service\DiagnosticAnalyzerService_GetDiagnosticsForSpan.cs (4)
47var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 66var (syntaxAnalyzers, semanticSpanAnalyzers, semanticDocumentAnalyzers) = await GetAllAnalyzersAsync().ConfigureAwait(false); 98if (!await ShouldIncludeAnalyzerAsync(analyzer).ConfigureAwait(false)) 232if (await ShouldDeprioritizeAnalyzerAsync(analyzer, kind, span).ConfigureAwait(false))
Diagnostics\Service\DiagnosticAnalyzerService_RemoteOrLocalDispatcher.cs (9)
33cancellationToken).ConfigureAwait(false); 38return await ForceRunCodeAnalysisDiagnosticsInProcessAsync(project, cancellationToken).ConfigureAwait(false); 52cancellationToken).ConfigureAwait(false); 75cancellationToken).ConfigureAwait(false); 115cancellationToken).ConfigureAwait(false); 138cancellationToken).ConfigureAwait(false); 162cancellationToken).ConfigureAwait(false); 180cancellationToken).ConfigureAwait(false); 203cancellationToken).ConfigureAwait(false);
Diagnostics\Service\DocumentAnalysisExecutor.cs (3)
136var sourceText = await textDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 273var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 304var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Diagnostics\Service\DocumentAnalysisExecutor_Helpers.cs (1)
179var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
DocumentHighlighting\AbstractDocumentHighlightsService.cs (3)
49cancellationToken).ConfigureAwait(false); 56return await result.Value.SelectAsArrayAsync(h => h.RehydrateAsync(solution, cancellationToken)).ConfigureAwait(false); 68var semanticModel = await document.GetRequiredNullableDisabledSemanticModelAsync(cancellationToken).ConfigureAwait(false);
DocumentHighlighting\IRemoteDocumentHighlightsService.cs (1)
29=> new(await solution.GetRequiredDocumentAsync(DocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false), HighlightSpans);
DocumentIdSpan.cs (1)
30var document = await solution.GetDocumentAsync(this.DocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false);
DocumentSpanExtensions.cs (1)
35var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (11)
522var (oldDocument, oldText) = await GetDocumentContentAsync(oldProject, documentId, cancellationToken).ConfigureAwait(false); 523var (newDocument, newText) = await GetDocumentContentAsync(newProject, documentId, cancellationToken).ConfigureAwait(false); 549var (oldRoot, newRoot) = await GetSyntaxRootsAsync(oldDocument, newDocument, cancellationToken).ConfigureAwait(false); 638var oldModel = await GetDocumentSemanticModelAsync(oldProject, oldDocument, oldTree, cancellationToken).ConfigureAwait(false); 639var newModel = await GetDocumentSemanticModelAsync(newProject, newDocument, newTree, cancellationToken).ConfigureAwait(false); 736var document = await project.GetDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 739text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 756var tree = await oldDocument.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 762var tree = await newDocument.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 780return new DocumentSemanticModel(await document.GetRequiredNullableDisabledSemanticModelAsync(cancellationToken).ConfigureAwait(false)); 3372? new(await oldProject.Solution.GetRequiredDocument(oldDeclaration.SyntaxTree).GetRequiredNullableDisabledSemanticModelAsync(cancellationToken).ConfigureAwait(false))
EditAndContinue\ActiveStatementsMap.cs (1)
174var oldTree = await oldDocument.DocumentState.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
EditAndContinue\CommittedSolution.cs (8)
204var sourceGeneratedDocument = await solution.GetSourceGeneratedDocumentAsync(documentId, cancellationToken).ConfigureAwait(false); 245var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 248var (maybeMatchingSourceText, maybePdbHasDocument) = await TryGetMatchingSourceTextAsync(document, sourceText, currentDocument, cancellationToken).ConfigureAwait(false); 344? await TryGetMatchingSourceTextAsync(_debuggingSession.SessionLog, sourceText, document.FilePath, currentDocument, _debuggingSession.SourceTextProvider, requiredChecksum, checksumAlgorithm, cancellationToken).ConfigureAwait(false) 360var currentDocumentSourceText = await currentDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 367var text = await sourceTextProvider.TryGetMatchingSourceTextAsync(filePath, requiredChecksum, checksumAlgorithm, cancellationToken).ConfigureAwait(false); 415var sourceText = await documentState.GetTextAsync(cancellationToken).ConfigureAwait(false); 420await TryGetMatchingSourceTextAsync(log, sourceText, sourceFilePath, currentDocument: null, sourceTextProvider, requiredChecksum, checksumAlgorithm, cancellationToken).ConfigureAwait(false) is { HasValue: true, Value: not null })
EditAndContinue\DebuggingSession.cs (9)
495var analysis = await EditSession.Analyses.GetDocumentAnalysisAsync(LastCommittedSolution, document.Project.Solution, oldDocument, document, activeStatementSpanProvider, cancellationToken).ConfigureAwait(false); 515var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 537var solutionUpdate = await EditSession.EmitSolutionUpdateAsync(solution, activeStatementSpanProvider, updateId, runningProjects, cancellationToken).ConfigureAwait(false); 709var document = await solution.GetTextDocumentAsync(documentId, cancellationToken).ConfigureAwait(false); 756var newDocument = await solution.GetRequiredDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 767var oldDocumentActiveStatements = await baseActiveStatements.GetOldActiveStatementsAsync(analyzer, oldDocument, cancellationToken).ConfigureAwait(false); 874var newDocumentActiveStatementSpans = await activeStatementSpanProvider(mappedDocument.Id, mappedDocument.FilePath, cancellationToken).ConfigureAwait(false); 890var newUnmappedDocument = await newSolution.GetRequiredDocumentAsync(unmappedDocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 899var analysis = await EditSession.Analyses.GetDocumentAnalysisAsync(LastCommittedSolution, newUnmappedDocument.Project.Solution, oldUnmappedDocument, newUnmappedDocument, activeStatementSpanProvider, cancellationToken).ConfigureAwait(false);
EditAndContinue\EditAndContinueDocumentAnalysesCache.cs (4)
125var newTree = await newDocument.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 131var newMappedDocumentSpans = await newActiveStatementSpanProvider(newDocument.Id, newDocument.FilePath, cancellationToken).ConfigureAwait(false); 144var oldActiveStatements = await baseActiveStatements.GetOldActiveStatementsAsync(analyzer, oldDocument, cancellationToken).ConfigureAwait(false); 151newMappedDocumentSpans = await newActiveStatementSpanProvider((newDocument.FilePath == mappedFilePath) ? newDocument.Id : null, mappedFilePath, cancellationToken).ConfigureAwait(false);
EditAndContinue\EditSession.cs (32)
158var availability = await DebuggingSession.DebuggerService.GetAvailabilityAsync(mvid, cancellationToken).ConfigureAwait(false); 185var oldDocument = await oldProject.GetDocumentAsync(documentAnalysis.DocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 186var newDocument = await newProject.GetDocumentAsync(documentAnalysis.DocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 193var oldText = await oldDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 194var newText = await newDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 195var newTree = await newDocument.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 232var capabilities = await DebuggingSession.DebuggerService.GetCapabilitiesAsync(cancellationToken).ConfigureAwait(false); 246var debugInfos = await DebuggingSession.DebuggerService.GetActiveStatementsAsync(cancellationToken).ConfigureAwait(false); 275return oldDocument != newDocument && !await ContentEqualsAsync(oldDocument, newDocument, cancellationToken).ConfigureAwait(false); 293if (oldProject == null || await HasDifferencesAsync(oldProject, newProject, differences: null, cancellationToken).ConfigureAwait(false)) 329var oldSource = await oldDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 330var newSource = await newDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 359if (await ContentEqualsAsync(oldProject.GetRequiredDocument(documentId), document, cancellationToken).ConfigureAwait(false)) 418if (!await ContentEqualsAsync(oldProject.GetRequiredAdditionalDocument(documentId), document, cancellationToken).ConfigureAwait(false)) 427if (!await ContentEqualsAsync(oldProject.GetRequiredAnalyzerConfigDocument(documentId), document, cancellationToken).ConfigureAwait(false)) 502if (!await HasDifferencesAsync(oldProject, newProject, documentDifferences, cancellationToken).ConfigureAwait(false)) 507var oldSourceGeneratedDocumentStates = await GetSourceGeneratedDocumentStatesAsync(log, oldProject, diagnostics, cancellationToken).ConfigureAwait(false); 510var newSourceGeneratedDocumentStates = await GetSourceGeneratedDocumentStatesAsync(log, newProject, diagnostics, cancellationToken).ConfigureAwait(false); 549var generatorDiagnostics = await project.Solution.CompilationState.GetSourceGeneratorDiagnosticsAsync(project.State, cancellationToken).ConfigureAwait(false); 561return await project.Solution.CompilationState.GetSourceGeneratedDocumentStatesAsync(project.State, cancellationToken).ConfigureAwait(false); 597var oldSourceGeneratedDocumentStates = await GetSourceGeneratedDocumentStatesAsync(log, oldProject, diagnostics: null, cancellationToken).ConfigureAwait(false); 600var newSourceGeneratedDocumentStates = await GetSourceGeneratedDocumentStatesAsync(log, newProject, diagnostics: null, cancellationToken).ConfigureAwait(false); 659: await Analyses.GetDocumentAnalysesAsync(DebuggingSession.LastCommittedSolution, newSolution, documents, newDocumentActiveStatementSpanProvider, cancellationToken).ConfigureAwait(false); 803var oldDocument = await oldProject.GetDocumentAsync(analysis.DocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 806await baseActiveStatements.GetOldActiveStatementsAsync(analyzer, oldDocument, cancellationToken).ConfigureAwait(false); 1161var document = await solution.GetDocumentAsync(analysis.DocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 1162var tree = (document != null) ? await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false) : null; 1224var projectChanges = await GetProjectChangesAsync(oldActiveStatementsMap, oldCompilation, newCompilation, oldProject, newProject, changedDocumentAnalyses, cancellationToken).ConfigureAwait(false); 1350var oldDocument = await oldProject.GetDocumentAsync(changedDocumentAnalysis.DocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 1351var newDocument = await newProject.GetDocumentAsync(changedDocumentAnalysis.DocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 1455async (stream, cancellationToken) => await oldCompilationOutputs.TryCopyAssemblyToAsync(stream, cancellationToken).ConfigureAwait(false), 1462async (stream, cancellationToken) => await oldCompilationOutputs.TryCopyPdbToAsync(stream, cancellationToken).ConfigureAwait(false),
EditAndContinue\Remote\ActiveStatementSpanProviderCallback.cs (1)
24return await _provider(documentId, filePath, cancellationToken).ConfigureAwait(false);
EditAndContinue\Remote\RemoteDebuggingSessionProxy.cs (10)
34cancellationToken).ConfigureAwait(false); 49cancellationToken).ConfigureAwait(false); 66return (await GetLocalService().EmitSolutionUpdateAsync(sessionId, solution, runningProjects, activeStatementSpanProvider, cancellationToken).ConfigureAwait(false)).Dehydrate(); 73cancellationToken).ConfigureAwait(false); 96cancellationToken).ConfigureAwait(false); 111cancellationToken).ConfigureAwait(false); 119return await GetLocalService().GetBaseActiveStatementSpansAsync(sessionId, solution, documentIds, cancellationToken).ConfigureAwait(false); 125cancellationToken).ConfigureAwait(false); 141return await GetLocalService().GetAdjustedActiveStatementSpansAsync(sessionId, document, activeStatementSpanProvider, cancellationToken).ConfigureAwait(false); 148cancellationToken).ConfigureAwait(false);
EditAndContinue\Remote\RemoteEditAndContinueServiceProxy.cs (10)
60return await _sourceTextProvider.TryGetMatchingSourceTextAsync(filePath, requiredChecksum, checksumAlgorithm, cancellationToken).ConfigureAwait(false); 72return await _debuggerService.GetActiveStatementsAsync(cancellationToken).ConfigureAwait(false); 84return await _debuggerService.GetAvailabilityAsync(mvid, cancellationToken).ConfigureAwait(false); 108return await _debuggerService.GetCapabilitiesAsync(cancellationToken).ConfigureAwait(false); 132var sessionId = await GetLocalService().StartDebuggingSessionAsync(solution, debuggerService, sourceTextProvider, captureMatchingDocuments, captureAllMatchingDocuments, reportDiagnostics, cancellationToken).ConfigureAwait(false); 142async (service, solutionInfo, callbackId, cancellationToken) => await service.StartDebuggingSessionAsync(solutionInfo, callbackId, captureMatchingDocuments, captureAllMatchingDocuments, reportDiagnostics, cancellationToken).ConfigureAwait(false), 143cancellationToken).ConfigureAwait(false); 165var diagnostics = await GetLocalService().GetDocumentDiagnosticsAsync(document, activeStatementSpanProvider, cancellationToken).ConfigureAwait(false); 173cancellationToken).ConfigureAwait(false); 189cancellationToken).ConfigureAwait(false);
EditAndContinue\TraceLog.cs (1)
115var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
EmbeddedLanguages\Classification\AbstractEmbeddedLanguageClassificationService.cs (1)
44semanticModel = await document.GetRequiredNullableDisabledSemanticModelAsync(cancellationToken).ConfigureAwait(false);
EmbeddedLanguages\DateAndTime\DateAndTimeEmbeddedCompletionProvider.cs (1)
95var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
EmbeddedLanguages\DateAndTime\LanguageServices\DateAndTimeEmbeddedLanguage.cs (2)
31var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 34var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexEmbeddedLanguage.cs (2)
36var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 39var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
EncapsulateField\AbstractEncapsulateFieldService.cs (7)
127cancellationToken).ConfigureAwait(false); 150var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 185var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 200var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 204semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 206var newRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 219var simplifierOptions = await document.GetSimplifierOptionsAsync(cancellationToken).ConfigureAwait(false);
Extensions\ExtensionMessageHandlerService.cs (1)
181return await extensionFolder.GetExtensionMessageNamesAsync(assemblyFilePath, cancellationToken).ConfigureAwait(false);
Extensions\ExtensionMessageHandlerService_RemoteOrLocal.cs (4)
41cancellationToken).ConfigureAwait(false); 53return await executeInProcessAsync(this, arg, cancellationToken).ConfigureAwait(false); 58cancellationToken).ConfigureAwait(false) 62cancellationToken).ConfigureAwait(false);
ExternalAccess\UnitTesting\API\UnitTestingHotReloadService.cs (2)
71cancellationToken).ConfigureAwait(false); 94.ConfigureAwait(false);
ExternalAccess\UnitTesting\API\UnitTestingSearchHelpers.cs (5)
38cancellationToken).ConfigureAwait(false); 61cancellationToken).ConfigureAwait(false); 189var syntaxTreeIndex = await SyntaxTreeIndex.GetRequiredIndexAsync(document, cancellationToken).ConfigureAwait(false); 199var index = await TopLevelSyntaxTreeIndex.GetRequiredIndexAsync(document, cancellationToken).ConfigureAwait(false); 232tree ??= await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.cs (3)
299var oldProjectSourceGeneratedDocuments = await oldProject.GetSourceGeneratedDocumentsAsync(_shutdownToken).ConfigureAwait(false); 301var newProjectSourceGeneratedDocuments = await newProject.GetSourceGeneratedDocumentsAsync(_shutdownToken).ConfigureAwait(false); 382foreach (var document in await project.GetSourceGeneratedDocumentsAsync(_shutdownToken).ConfigureAwait(false))
ExternalAccess\UnitTesting\SolutionCrawler\UnitTestingWorkCoordinator.UnitTestingNormalPriorityProcessor.cs (1)
205var textDocument = solution.GetTextDocument(documentId) ?? await solution.GetSourceGeneratedDocumentAsync(documentId, cancellationToken).ConfigureAwait(false);
ExternalAccess\VSTypeScript\VSTypeScriptTaskListService.cs (1)
36var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
ExternalAccess\Watch\Api\WatchHotReloadService.cs (2)
174cancellationToken).ConfigureAwait(false); 214var results = await _encService.EmitSolutionUpdateAsync(sessionId, solution, runningProjectsImpl, s_solutionActiveStatementSpanProvider, cancellationToken).ConfigureAwait(false);
ExtractClass\AbstractExtractClassRefactoringProvider.cs (4)
61var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 104var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 121var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 132var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
ExtractClass\ExtractClassWithDialogCodeAction.cs (5)
164var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 165var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 215var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 216var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 241var currentRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ExtractInterface\AbstractExtractInterfaceService.cs (4)
91var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 105var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 287var cleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false); 329var currentRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ExtractMethod\MethodExtractor.CodeGenerator.cs (2)
178var documentWithUpdatedCallSite = await this.SemanticDocument.WithSyntaxRootAsync(rootWithUpdatedCallSite, cancellationToken).ConfigureAwait(false); 183return await documentWithUpdatedCallSite.WithSyntaxRootAsync(finalRoot, cancellationToken).ConfigureAwait(false);
ExtractMethod\MethodExtractor.cs (4)
145var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 152var simplifiedRoot = await simplifiedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 160var formattedRoot = await formattedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 195var finalDocument = await document.WithSyntaxRootAsync(finalRoot, cancellationToken).ConfigureAwait(false);
ExtractMethod\MethodExtractor.TriviaResult.cs (1)
53_result.RestoreTrivia(root, annotationResolver, triviaResolver), cancellationToken).ConfigureAwait(false);
FindUsages\AbstractFindUsagesService.ProgressAdapter.cs (5)
37var options = await classificationOptions.GetOptionsAsync(document.Project.Services, cancellationToken).ConfigureAwait(false); 87using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 100cancellationToken).ConfigureAwait(false); 111var definitionItem = await GetDefinitionItemAsync(group, cancellationToken).ConfigureAwait(false); 125var definitionItem = await @this.GetDefinitionItemAsync(group, cancellationToken).ConfigureAwait(false);
FindUsages\AbstractFindUsagesService_FindImplementations.cs (2)
58cancellationToken).ConfigureAwait(false); 88classificationOptions, solution, FindReferencesSearchOptions.Default, isPrimary: true, includeHiddenLocations: false, cancellationToken).ConfigureAwait(false);
FindUsages\AbstractFindUsagesService_FindReferences.cs (3)
146cancellationToken).ConfigureAwait(false); 175var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 203var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
FindUsages\DefinitionItem.DefaultDefinitionItem.cs (1)
44var (project, symbol) = await TryResolveSymbolAsync(workspace.CurrentSolution, symbolKey, cancellationToken).ConfigureAwait(false);
FindUsages\DefinitionItemFactory.cs (4)
71var classifiedSpans = await ClassifyDocumentSpansAsync(classificationOptions, sourceLocations, cancellationToken).ConfigureAwait(false); 89var classifiedSpans = await ClassifyDocumentSpansAsync(classificationOptions, sourceLocations, cancellationToken).ConfigureAwait(false); 251var options = await optionsProvider.GetOptionsAsync(documentSpan.Document.Project.Services, cancellationToken).ConfigureAwait(false); 303var options = await optionsProvider.GetOptionsAsync(document.Project.Services, cancellationToken).ConfigureAwait(false);
FindUsages\FindUsagesHelpers.cs (1)
46var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
FindUsages\IRemoteFindUsagesService.cs (4)
117var rehydrated = await definition.RehydrateAsync(_solution, cancellationToken).ConfigureAwait(false); 176await solution.GetSourceGeneratedDocumentAsync(DocumentId, cancellationToken).ConfigureAwait(false); 234var sourceSpans = await SourceSpans.SelectAsArrayAsync(static (ss, solution, cancellationToken) => ss.RehydrateAsync(solution, cancellationToken), solution, cancellationToken).ConfigureAwait(false); 307await SourceSpan.RehydrateAsync(solution, cancellationToken).ConfigureAwait(false),
FullyQualify\AbstractFullyQualifyCodeFixProvider.cs (1)
40var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
FullyQualify\AbstractFullyQualifyService.cs (6)
48cancellationToken).ConfigureAwait(false); 67var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 86var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 87var options = await document.GetMemberDisplayOptionsAsync(cancellationToken).ConfigureAwait(false); 222newDocument, await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false), cancellationToken).ConfigureAwait(false);
GenerateComparisonOperators\GenerateComparisonOperatorsCodeRefactoringProvider.cs (4)
47var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 48var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 58var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 137var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
GenerateConstructors\AbstractGenerateConstructorsCodeRefactoringProvider.ConstructorDelegatingCodeAction.cs (3)
43var semanticModel = await _document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 54var useThrowExpressions = await _service.PrefersThrowExpressionAsync(_document, cancellationToken).ConfigureAwait(false); 72var syntaxTree = await _document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
GenerateConstructors\AbstractGenerateConstructorsCodeRefactoringProvider.cs (4)
197var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 198var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 208var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 295var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
GenerateConstructors\AbstractGenerateConstructorsCodeRefactoringProvider.FieldDelegatingCodeAction.cs (2)
46var semanticModel = await _document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 48var preferThrowExpression = await _service.PrefersThrowExpressionAsync(_document, cancellationToken).ConfigureAwait(false);
GenerateEqualsAndGetHashCodeFromMembers\AbstractGenerateEqualsAndGetHashCodeService.cs (2)
43var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 65var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeAction.cs (5)
73var info = await _document.GetCodeGenerationInfoAsync(CodeGenerationContext.Default, cancellationToken).ConfigureAwait(false); 74var formattingOptions = await _document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 101var semanticModel = await _document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 117var oldRoot = await _document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 119var addImportOptions = await _document.GetAddImportPlacementOptionsAsync(cancellationToken).ConfigureAwait(false);
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndGetHashCodeFromMembersCodeRefactoringProvider.cs (6)
75var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 76var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 86var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 185var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 261var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 304var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
GenerateFromMembers\GenerateFromMembersHelpers.cs (2)
27var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 33var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
GenerateOverrides\GenerateOverridesCodeRefactoringProvider.cs (3)
35var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 36var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 46var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
GenerateType\AbstractGenerateTypeService.cs (1)
75var state = await State.GenerateAsync((TService)this, semanticDocument, node, cancellationToken).ConfigureAwait(false);
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
316var cleanupOptions = await codeGenResult.GetCodeCleanupOptionsAsync(_cancellationToken).ConfigureAwait(false);
GenerateType\AbstractGenerateTypeService.State.cs (1)
75return await state.TryInitializeAsync(service, document, node, cancellationToken).ConfigureAwait(false) ? state : (State?)null;
GoToBase\AbstractGoToBaseService.cs (1)
69classificationOptions, solution, FindReferencesSearchOptions.Default, isPrimary: true, includeHiddenLocations: false, cancellationToken: cancellationToken).ConfigureAwait(false);
GoToDefinition\GoToDefinitionFeatureHelpers.cs (1)
58symbol = await TryGetPreferredSymbolAsync(solution, symbol, cancellationToken).ConfigureAwait(false);
ImplementInterface\ImplementInterfaceCodeRefactoringProvider.cs (2)
27var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 28var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
InheritanceMargin\AbstractInheritanceMarginService.cs (1)
49cancellationToken).ConfigureAwait(false);
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (20)
81var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 85var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 86var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 132var (remappedProject, symbolAndLineNumbers) = await GetMemberSymbolsAsync(document, spanToSearch, cancellationToken).ConfigureAwait(false); 151cancellationToken).ConfigureAwait(false)); 166var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 179var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 212var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 323cancellationToken).ConfigureAwait(false); 335cancellationToken).ConfigureAwait(false); 365cancellationToken).ConfigureAwait(false); 393cancellationToken).ConfigureAwait(false); 415.ConfigureAwait(false); 425.ConfigureAwait(false); 453.ConfigureAwait(false); 482.ConfigureAwait(false); 492.ConfigureAwait(false); 522.ConfigureAwait(false); 532.ConfigureAwait(false); 542.ConfigureAwait(false);
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (14)
79var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 108var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 113var simplifierOptions = (TSimplifierOptions)await document.GetSimplifierOptionsAsync(cancellationToken).ConfigureAwait(false); 144var simplifierOptions = (TSimplifierOptions)await document.GetSimplifierOptionsAsync(cancellationToken).ConfigureAwait(false); 185var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 194var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 205lazySimplifierOptions ??= (TSimplifierOptions)await document.GetSimplifierOptionsAsync(cancellationToken).ConfigureAwait(false); 605var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 606var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 638var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 639var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 899var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 910var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 920var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
InitializeParameter\AbstractInitializeMemberFromParameterCodeRefactoringProviderMemberCreation.cs (6)
115var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 371var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 385var currentSemanticModel = await currentDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 387var currentRoot = await currentDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 481var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 484var options = await document.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false);
InitializeParameter\AbstractInitializeParameterCodeRefactoringProvider.cs (1)
72var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
InlineHints\AbstractInlineParameterNameHintsService.cs (2)
58var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 59var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
InlineHints\AbstractInlineTypeHintsService.cs (2)
51var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 52var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
InlineHints\InlineHintHelpers.cs (1)
26var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
InlineMethod\AbstractInlineMethodRefactoringProvider.cs (2)
93var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 374var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
InlineMethod\AbstractInlineMethodRefactoringProvider.InlineContext.cs (2)
53var callerSemanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 55var calleeSemanticModel = await calleeDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
InlineMethod\AbstractInlineMethodRefactoringProvider.MethodParametersInfo.cs (2)
162var callerSemanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 485var semanticModel = await calleeDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
InlineTemporary\AbstractInlineTemporaryCodeRefactoringProvider.cs (2)
29var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 44var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (2)
67var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 205var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (9)
66var semanticModel = await _originalDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 91var semanticModel = await _originalDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 222var invocationSemanticModel = await currentDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 223var root = await currentDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 346var semanticModel = await _originalDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 444var info = await _originalDocument.GetCodeGenerationInfoAsync(CodeGenerationContext.Default, cancellationToken).ConfigureAwait(false); 484var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 486var invocationSemanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 672var originalSemanticModel = await _originalDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
IntroduceUsingStatement\AbstractIntroduceUsingStatementCodeRefactoringProvider.cs (7)
67var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 152var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 153var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 210var options = await document.GetAnalyzerOptionsProviderAsync(cancellationToken).ConfigureAwait(false); 217var semanticModel = await document.GetRequiredNullableDisabledSemanticModelAsync(cancellationToken).ConfigureAwait(false); 223var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 248var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
IntroduceVariable\AbstractIntroduceLocalForExpressionCodeRefactoringProvider.cs (4)
42var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 85var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 102var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 129var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
IntroduceVariable\AbstractIntroduceVariableService.IntroduceVariableCodeAction.cs (1)
55var simplifierOptions = await changedDocument.GetSimplifierOptionsAsync(cancellationToken).ConfigureAwait(false);
IntroduceVariable\IntroduceVariableCodeRefactoringProvider.cs (1)
30var cleanupOptions = await document.GetCodeCleanupOptionsAsync(context.CancellationToken).ConfigureAwait(false);
InvertConditional\AbstractInvertConditionalCodeRefactoringProvider.cs (2)
46var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 47var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
InvertIf\AbstractInvertIfCodeRefactoringProvider.cs (3)
293var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 294var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 295var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
InvertLogical\AbstractInvertLogicalCodeRefactoringProvider.cs (4)
102var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 103var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 116var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 117var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
MetadataAsSource\AbstractMetadataAsSourceService.cs (2)
28var newSemanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 54var node = await docWithAssemblyInfo.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
MetadataAsSource\DecompilationMetadataAsSourceFileProvider.cs (1)
152var text = await temporaryDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
MetadataAsSource\MetadataAsSourceFileService.cs (2)
90using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 262using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))
MetadataAsSource\MetadataAsSourceHelpers.cs (1)
81var tree = await generatedDocument.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
MoveStaticMembers\AbstractMoveStaticMembersRefactoringProvider.cs (1)
36var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (14)
51var root = await _document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 113var destRoot = await newDoc.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 114var destSemanticModel = await newDoc.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 133root = await sourceDoc.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 134var semanticModel = await sourceDoc.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 178var newTypeDoc = await oldSolution.GetRequiredDocumentAsync(newTypeDocId, cancellationToken: cancellationToken).ConfigureAwait(false); 179var newTypeRoot = await newTypeDoc.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 184var oldSourceRoot = await oldSolution.GetRequiredDocument(sourceDocId).GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 217var root = await sourceDoc.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 218var semanticModel = await sourceDoc.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 225newTypeRoot = await newTypeDoc.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 226var newTypeSemanticModel = await newTypeDoc.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 405var root = await sourceDoc.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 406var semanticModel = await sourceDoc.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
MoveToNamespace\AbstractMoveToNamespaceService.cs (6)
68var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 129container = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 188var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 258var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 262var syntaxRoot = await mergedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 279var formattedText = await formattedDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
NameTupleElement\AbstractNameTupleElementCodeRefactoringProvider.cs (2)
58var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 78var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.CachedDocumentSearch.cs (1)
89callback, cancellationToken).ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.GeneratedDocumentSearch.cs (2)
51callback, cancellationToken).ConfigureAwait(false); 79var sourceGeneratedDocs = await project.GetSourceGeneratedDocumentsAsync(cancellationToken).ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (2)
54var index = await TopLevelSyntaxTreeIndex.GetRequiredIndexAsync(document, cancellationToken).ConfigureAwait(false); 60var linkedIndex = await TopLevelSyntaxTreeIndex.GetRequiredIndexAsync(linkedDocument, cancellationToken).ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.NormalSearch.cs (4)
45callback, cancellationToken).ConfigureAwait(false); 108var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 109var semanticModel = await document.GetRequiredNullableDisabledSemanticModelAsync(cancellationToken).ConfigureAwait(false); 177callback, cancellationToken).ConfigureAwait(false);
NavigateTo\INavigateToSearcherHost.cs (2)
59return await workspaceService.IsFullyLoadedAsync(cancellationToken).ConfigureAwait(false); 114_disposalToken).ConfigureAwait(false);
NavigateTo\NavigateToSearcher.cs (1)
160isFullyLoaded = await _host.IsFullyLoadedAsync(cancellationToken).ConfigureAwait(false);
NavigateTo\RoslynNavigateToItem.cs (1)
85DocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false);
Navigation\AbstractNavigableItemsService.cs (3)
46var semanticModel = await document.GetRequiredNullableDisabledSemanticModelAsync(cancellationToken).ConfigureAwait(false); 52symbol = await GoToDefinitionFeatureHelpers.TryGetPreferredSymbolAsync(solution, symbol, cancellationToken).ConfigureAwait(false); 65typeSymbol = await GoToDefinitionFeatureHelpers.TryGetPreferredSymbolAsync(solution, typeSymbol, cancellationToken).ConfigureAwait(false);
Navigation\INavigableItem.cs (2)
79var document = await GetRequiredDocumentAsync(solution, cancellationToken).ConfigureAwait(false); 80return await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
NavigationBar\AbstractNavigationBarItemService.cs (1)
32cancellationToken).ConfigureAwait(false);
OrganizeImports\OrganizeImportsCodeRefactoringProvider.cs (4)
45var oldRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 47var options = await document.GetOrganizeImportsOptionsAsync(cancellationToken).ConfigureAwait(false); 49var newRoot = await newDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 70var oldRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
PreferFrameworkType\PreferFrameworkTypeCodeFixProvider.cs (1)
51var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
PullMemberUp\AbstractPullMemberUpRefactoringProvider.cs (1)
38var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
PullMemberUp\MembersPuller.cs (2)
113var info = await destinationEditor.OriginalDocument.GetCodeGenerationInfoAsync(context, cancellationToken).ConfigureAwait(false); 303var options = await destinationEditor.OriginalDocument.GetCleanCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false);
QuickInfo\AbstractEmbeddedLanguageQuickInfoProvider.cs (1)
34var semanticModel = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false);
QuickInfo\CommonQuickInfoProvider.cs (1)
21var tree = await context.Document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
QuickInfo\CommonSemanticQuickInfoProvider.cs (4)
33var semanticModel = await context.Document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 63var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 89var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 100var linkedModel = await linkedDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
QuickInfo\Presentation\QuickInfoContentBuilder.cs (1)
136var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
RelatedDocuments\AbstractRelatedDocumentsService.cs (3)
55cancellationToken).ConfigureAwait(false); 74var semanticModel = await document.GetRequiredNullableDisabledSemanticModelAsync(cancellationToken).ConfigureAwait(false); 75var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Rename\SymbolicRenameInfo.cs (3)
126var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 141var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 257var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
ReplaceConditionalWithStatements\AbstractReplaceConditionalWithStatementsCodeRefactoringProvider.cs (4)
200var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 201var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 225var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 226var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ReplaceDocCommentTextWithTag\AbstractReplaceDocCommentTextWithTagCodeRefactoringProvider.cs (4)
27var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 45var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 60var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 160var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (7)
53var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 218var root = await originalDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 350documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 360var semanticModel = await updatedDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 361var syntaxTree = await updatedDocument.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 362var root = await updatedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 366var codeGenerationOptions = await updatedDocument.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false);
ReplacePropertyWithMethods\AbstractReplacePropertyWithMethodsService.cs (1)
61var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
ReplacePropertyWithMethods\ReplacePropertyWithMethodsCodeRefactoringProvider.cs (4)
49var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 218var root = await originalDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 352var semanticModel = await updatedDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 361var root = await updatedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
SemanticSearch\IRemoteSemanticSearchService.cs (5)
77var rehydratedDefinition = await definition.RehydrateAsync(solution, cancellationToken).ConfigureAwait(false); 122return await observer.GetClassificationOptionsAsync(solution.Services.GetLanguageServices(language), cancellationToken).ConfigureAwait(false); 174cancellationToken).ConfigureAwait(false); 186cancellationToken).ConfigureAwait(false); 200cancellationToken).ConfigureAwait(false);
SemanticSearch\SemanticSearchDefinitionItemFactory.cs (1)
57return await CreateItemAsync(document, location.SourceSpan, cancellationToken).ConfigureAwait(false);
SemanticSearch\SemanticSearchWorkspace.cs (1)
37cancellationToken).ConfigureAwait(false);
Shared\Extensions\DocumentExtensions.cs (2)
23var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 47var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Shared\Utilities\ExtractTypeHelpers.cs (5)
31var originalRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 36var info = await document.GetCodeGenerationInfoAsync(context, cancellationToken).ConfigureAwait(false); 65var newSemanticModel = await newDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 91var newCleanupOptions = await newTypeDocument.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false); 99var syntaxRoot = await newTypeDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
SignatureHelp\AbstractSignatureHelpProvider.cs (3)
260var semanticModel = await document.ReuseExistingSpeculativeModelAsync(position, cancellationToken).ConfigureAwait(false); 286var relatedSemanticModel = await relatedDocument.ReuseExistingSpeculativeModelAsync(position, cancellationToken).ConfigureAwait(false); 311var syntaxTree = await relatedDocument.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
SignatureHelp\CommonSignatureHelpUtilities.cs (1)
153var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
SignatureHelp\SignatureHelpService.cs (1)
69var options = await document.GetMemberDisplayOptionsAsync(cancellationToken).ConfigureAwait(false);
SimplifyThisOrMe\AbstractSimplifyThisOrMeCodeFixProvider.cs (1)
46var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
SimplifyTypeNames\AbstractSimplifyTypeNamesCodeFixProvider.cs (2)
83var options = (TSimplifierOptions)await document.GetSimplifierOptionsAsync(cancellationToken).ConfigureAwait(false); 107var simplifierOptions = (TSimplifierOptions)await document.GetSimplifierOptionsAsync(cancellationToken).ConfigureAwait(false);
Snippets\RoslynLSPSnippetConverter.cs (1)
111var documentText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Snippets\SnippetFunctionService.cs (3)
45var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 145var syntaxRoot = await documentWithFullyQualifiedTypeName.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 157var simplifiedRoot = await simplifiedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Snippets\SnippetProviders\AbstractConsoleSnippetProvider.cs (2)
45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 76var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Snippets\SnippetProviders\AbstractInlineStatementSnippetProvider.cs (1)
61var semanticModel = await document.ReuseExistingSpeculativeModelAsync(position, cancellationToken).ConfigureAwait(false);
Snippets\SnippetProviders\AbstractSnippetProvider.cs (9)
93var reformattedRoot = await documentWithIndentation.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 109var sourceText = await annotatedReformattedDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 144var addImportPlacementOptions = await document.GetAddImportPlacementOptionsAsync(cancellationToken).ConfigureAwait(false); 145var simplifierOptions = await document.GetSimplifierOptionsAsync(cancellationToken).ConfigureAwait(false); 146var syntaxFormattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 169var root = await snippetDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 190var originalText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 211var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 229var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Snippets\SnippetProviders\AbstractTypeSnippetProvider.cs (1)
44var options = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
Snippets\SnippetProviders\AbstractUsingSnippetProvider.cs (1)
20var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
SpellCheck\AbstractSpellCheckCodeFixProvider.cs (1)
113var memberDisplayOptions = await document.GetMemberDisplayOptionsAsync(cancellationToken).ConfigureAwait(false);
SpellCheck\AbstractSpellCheckSpanService.cs (1)
25var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddAccessibilityModifiers\AbstractAddAccessibilityModifiersCodeFixProvider.cs (1)
45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddAnonymousTypeMemberName\AbstractAddAnonymousTypeMemberNameCodeFixProvider.cs (2)
56var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 90var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (3)
73var root = await document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 74var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 218var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddObsoleteAttribute\AbstractAddObsoleteAttributeCodeFixProvider.cs (2)
43var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 79var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (4)
68var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 71var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 405var semanticModel = await invocationDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 423var semanticModel = await invocationDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AddParameter\AddParameterService.cs (2)
113var syntaxRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 183var rewrittenSyntaxRoot = await rewrittenDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (3)
34var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 41var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 50var placementOption = await document.GetAddImportPlacementOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\AnalyzerOptionsProviders.cs (1)
16var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ConflictMarkerResolution\AbstractConflictMarkerCodeFixProvider.cs (5)
74var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 75var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 319var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 405var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 406var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ConvertToAsync\AbstractConvertToAsyncCodeFixProvider.cs (2)
23var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 54var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ConvertTypeOfToNameOf\AbstractConvertTypeOfToNameOfCodeFixProvider.cs (1)
38var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractAddDocCommentNodesCodeFixProvider.cs (2)
31var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 60var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (2)
35var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 61var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (2)
50var options = await document.GetLineFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 59var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (1)
45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (4)
72var root = await context.Document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 73var text = await context.Document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 82var formattingOptions = await context.Document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 90var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (9)
87if (!(await TryInitializeConstructorInitializerGenerationAsync(node, cancellationToken).ConfigureAwait(false))) 92if (!(await TryInitializeSimpleNameGenerationAsync(node, cancellationToken).ConfigureAwait(false))) 97if (!(await TryInitializeImplicitObjectCreationAsync(node, cancellationToken).ConfigureAwait(false))) 306return await TryDetermineTypeToGenerateInAsync(typeToGenerateIn, cancellationToken).ConfigureAwait(false); 323return await TryDetermineTypeToGenerateInAsync(typeToGenerateIn, cancellationToken).ConfigureAwait(false); 356return await TryDetermineTypeToGenerateInAsync(typeToGenerateIn, cancellationToken).ConfigureAwait(false); 397var definition = await SymbolFinderInternal.FindSourceDefinitionAsync(original, _document.Project.Solution, cancellationToken).ConfigureAwait(false); 464var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 482var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorCodeFixProvider.cs (1)
28var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.State.cs (2)
34return await state.TryInitializeAsync(service, document, node, cancellationToken).ConfigureAwait(false) ? state : null; 67var sourceType = (await SymbolFinderInternal.FindSourceDefinitionAsync(TypeToGenerateIn, document.Project.Solution, cancellationToken).ConfigureAwait(false)) as INamedTypeSymbol;
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberCodeFixProvider.cs (1)
41var root = await document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateConversionService.cs (1)
41return await GetActionsAsync(document, state, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateDeconstructMethodService.cs (1)
36return state != null ? await GetActionsAsync(document, state, cancellationToken).ConfigureAwait(false) : [];
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.cs (1)
42return await GetActionsAsync(document, state, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.CodeAction.cs (2)
68var property = await _state.SignatureInfo.GeneratePropertyAsync(syntaxFactory, _isAbstract, _state.IsWrittenTo, cancellationToken).ConfigureAwait(false); 84var method = await _state.SignatureInfo.GenerateMethodAsync(syntaxFactory, _isAbstract, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (1)
58var returnType = await state.SignatureInfo.DetermineReturnTypeAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (6)
80type: await DetermineReturnTypeAsync(cancellationToken).ConfigureAwait(false), 84parameters: await DetermineParametersAsync(cancellationToken).ConfigureAwait(false), 94var parameters = await DetermineParametersAsync(cancellationToken).ConfigureAwait(false); 95var returnType = await DetermineReturnTypeAsync(cancellationToken).ConfigureAwait(false); 152Document.Project, typeSymbol, compilation, availableTypeParameterNames, cancellationToken).ConfigureAwait(false); 201var types = await SpecializedTasks.WhenAll(DetermineParameterTypes(cancellationToken).Select(t => FixTypeAsync(t, cancellationToken))).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.State.cs (2)
61TypeToGenerateIn = await SymbolFinderInternal.FindSourceDefinitionAsync(TypeToGenerateIn, document.Project.Solution, cancellationToken).ConfigureAwait(false) as INamedTypeSymbol; 90var generatedMethod = await SignatureInfo.GenerateMethodAsync(syntaxFactory, false, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\TypeParameterSubstitution.cs (2)
78var commonDerivedType = await DetermineCommonDerivedTypeAsync(symbol).ConfigureAwait(false); 113_project, commonType, _compilation, _availableTypeParameterNames, _cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (1)
41var state = await State.GenerateAsync((TService)this, semanticDocument, node, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.GenerateLocalCodeAction.cs (2)
46var semanticModel = await _document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 64var info = await _document.GetCodeGenerationInfoAsync(context, cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
80return await state.TryInitializeAsync(interfaceNode, cancellationToken).ConfigureAwait(false) ? state : null;
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\AbstractImplementAbstractClassCodeFixProvider.cs (1)
28var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ImplementAbstractClass\ImplementAbstractClassData.cs (4)
43var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 65var options = await document.GetImplementTypeOptionsAsync(cancellationToken).ConfigureAwait(false); 106var info = await _document.GetCodeGenerationInfoAsync(context, cancellationToken).ConfigureAwait(false); 114var root = await _document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (1)
24var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceService.cs (3)
63var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 80var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 148var options = await document.GetImplementTypeOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (1)
74var tree = await this.Document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_DisposePattern.cs (4)
60var rootWithCoreMembers = await docWithCoreMembers.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 70var info = await document.GetCodeGenerationInfoAsync(context, cancellationToken).ConfigureAwait(false); 91var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 235var options = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\ImplementType\ImplementTypeOptions.cs (1)
79var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\Iterator\AbstractIteratorCodeFixProvider.cs (1)
21var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (2)
44var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 75var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\MakeMethodAsynchronous\AbstractMakeMethodAsynchronousCodeFixProvider.cs (4)
50var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 119var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 177var newRoot = await newDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 180var semanticModel = await newDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (6)
57var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 88var semanticModel = await newDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 106var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 122var syntaxRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 126var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 175var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\MakeTypePartial\AbstractMakeTypePartialCodeFixProvider.cs (1)
32var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\Naming\NamingExtensions.cs (1)
37var options = await document.GetNamingStylePreferencesAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\NamingStyle\NamingStyleCodeFixProvider.cs (2)
57var root = await document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 73var model = await document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\NewLines\ConsecutiveStatementPlacement\ConsecutiveStatementPlacementCodeFixProvider.cs (2)
46var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 47var options = await document.GetLineFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesCodeFixProvider.cs (1)
48var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\OrderModifiers\AbstractOrderModifiersCodeFixProvider.cs (2)
40var syntaxTree = await context.Document.GetRequiredSyntaxTreeAsync(context.CancellationToken).ConfigureAwait(false); 52var options = await document.GetAnalyzerOptionsProviderAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (1)
146var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (2)
44var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 69var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveRedundantEquality\RemoveRedundantEqualityCodeFixProvider.cs (2)
36var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 41var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsCodeFixProvider.cs (1)
57var newRoot = await newDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryAttributeSuppressionsCodeFixProvider.cs (1)
28var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (1)
32var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveUnusedMembers\AbstractRemoveUnusedMembersCodeFixProvider.cs (1)
48var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\RemoveUnusedParametersAndValues\AbstractRemoveUnusedValuesCodeFixProvider.cs (9)
164var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 278var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 286var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 298var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 301var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 784var newRoot = await newDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 843var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 885root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 918var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\SimplifyInterpolation\AbstractSimplifyInterpolationCodeFixProvider.cs (1)
50var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UnsealClass\AbstractUnsealClassCodeFixProvider.cs (4)
34var syntaxRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 35var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 43type, document.Project.Solution, cancellationToken).ConfigureAwait(false); 64var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UpdateLegacySuppressions\UpdateLegacySuppressionsCodeFixProvider.cs (1)
29var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (13)
144field, fieldLocations, propertyDeclaration, cancellationToken).ConfigureAwait(false); 246var declaratorTreeRoot = await fieldDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 260var fieldTreeRoot = await fieldDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 261var propertyTreeRoot = await propertyDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 301var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 374var fieldSemanticModel = await fieldDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 379var propertySemanticModel = await propertyDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 431var options = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 436var codeCleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false); 440return await cleanedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 464async cancellationToken => await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false)); 469lazySemanticModel, location, propertyDeclaration, constructorSpans, cancellationToken).ConfigureAwait(false)) 492if (!await IsWrittenToAsync(location).ConfigureAwait(false))
src\Analyzers\Core\CodeFixes\UseAutoProperty\UseAutoPropertyFixAllProvider.cs (1)
83var changedRoot = await changedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (1)
36var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForNullableTernaryConditionalCheckCodeFixProvider.cs (1)
40var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForTernaryConditionalCheckCodeFixProvider.cs (1)
41var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseCollectionInitializer\AbstractUseCollectionInitializerCodeFixProvider.cs (1)
75var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (4)
48var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 50var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 92var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 148var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForAssignment\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
67var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForReturn\AbstractUseConditionalExpressionForReturnCodeFixProvider.cs (1)
54var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseNullPropagation\AbstractUseNullPropagationCodeFixProvider.cs (2)
106var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 164var semanticModel = await document.GetRequiredSemanticModelAsync(CancellationToken.None).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseObjectInitializer\AbstractUseObjectInitializerCodeFixProvider.cs (3)
71var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 72var currentRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 84var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Analyzers\Core\CodeFixes\UseSystemHashCode\UseSystemHashCodeCodeFixProvider.cs (1)
46var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
StackTraceExplorer\StackTraceExplorerService.cs (2)
56cancellationToken).ConfigureAwait(false); 69return await serializedDefinition.Value.RehydrateAsync(solution, cancellationToken).ConfigureAwait(false);
SymbolSearch\SymbolSearchOptions.cs (1)
109var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
SymbolSearch\Windows\SymbolSearchUpdateEngineProxy.cs (4)
23cancellationToken).ConfigureAwait(false); 33cancellationToken).ConfigureAwait(false); 43cancellationToken).ConfigureAwait(false); 52cancellationToken).ConfigureAwait(false);
TaskList\AbstractTaskListService.cs (2)
37cancellationToken).ConfigureAwait(false); 59var syntaxDoc = await SyntacticDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false);
Testing\AbstractTestMethodFinder.cs (2)
35var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 88var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
UseNamedArguments\AbstractUseNamedArgumentsCodeRefactoringProvider.cs (2)
55var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 205var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
ValueTracking\SerializableValueTrackedItem.cs (3)
46var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 51var parent = Parent is null ? null : await Parent.RehydrateAsync(solution, cancellationToken).ConfigureAwait(false); 53var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
ValueTracking\ValueTrackedItem.cs (1)
49var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
ValueTracking\ValueTracker.cs (6)
140var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 210var semanticModel = await sourceDoc.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 257var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 260var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 297var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 329var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
ValueTracking\ValueTracker.FindReferencesProgress.cs (6)
83var semanticModel = await location.Document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 109var semanticModel = await location.Document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 149var syntaxRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 157var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 172var syntaxRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 183var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
ValueTracking\ValueTrackingProgressCollector.cs (1)
42var item = await ValueTrackedItem.TryCreateAsync(solution, location, symbol, Parent, cancellationToken).ConfigureAwait(false);
ValueTracking\ValueTrackingService.cs (4)
41cancellationToken).ConfigureAwait(false); 49static (item, solution, cancellationToken) => item.RehydrateAsync(solution, cancellationToken), solution, cancellationToken).ConfigureAwait(false); 71cancellationToken).ConfigureAwait(false); 79static (item, solution, cancellationToken) => item.RehydrateAsync(solution, cancellationToken), solution, cancellationToken).ConfigureAwait(false);
Workspace\CompileTimeSolutionProvider.cs (2)
185var compileTimeDocument = await compileTimeSolution.GetDocumentAsync(designTimeDocument.Id, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 200var sourceGeneratedDocuments = await compileTimeSolution.GetRequiredProject(designTimeDocument.Project.Id).GetSourceGeneratedDocumentsAsync(cancellationToken).ConfigureAwait(false);
Wrapping\AbstractCodeActionComputer.cs (3)
102var newParsedDocument = await ParsedDocument.CreateAsync(newDocument, cancellationToken).ConfigureAwait(false); 134var formattedRoot = await formattedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 226var root = await OriginalDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Wrapping\AbstractWrapper.cs (1)
46var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Wrapping\AbstractWrappingCodeRefactoringProvider.cs (2)
42var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 45var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
Wrapping\BinaryExpression\AbstractBinaryExpressionWrapper.cs (1)
90var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Wrapping\ChainedExpression\AbstractChainedExpressionWrapper.cs (1)
111var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Wrapping\SeparatedSyntaxList\AbstractSeparatedSyntaxListWrapper.cs (2)
65var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 84var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features.UnitTests (6)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (1)
4923var generatedDocument1 = (await solution.Projects.Single().GetSourceGeneratedDocumentsAsync().ConfigureAwait(false)).Single();
EditAndContinue\EditSessionActiveStatementsTests.cs (5)
235var oldActiveStatements1 = await baseActiveStatementsMap.GetOldActiveStatementsAsync(analyzer, document1, CancellationToken.None).ConfigureAwait(false); 243var oldActiveStatements2 = await baseActiveStatementsMap.GetOldActiveStatementsAsync(analyzer, document2, CancellationToken.None).ConfigureAwait(false); 368var oldActiveStatements = await baseActiveStatementMap.GetOldActiveStatementsAsync(analyzer, document, CancellationToken.None).ConfigureAwait(false); 551var oldActiveStatements = await baseActiveStatementMap.GetOldActiveStatementsAsync(analyzer, document, CancellationToken.None).ConfigureAwait(false); 703var oldActiveStatements = await baseActiveStatementMap.GetOldActiveStatementsAsync(analyzer, document, CancellationToken.None).ConfigureAwait(false);
Microsoft.CodeAnalysis.InteractiveHost (11)
Interactive\Core\InteractiveHost.RemoteService.cs (1)
85using (await _disposeSemaphore.DisposableWaitAsync().ConfigureAwait(false))
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
553builder.Add(await selector(item).ConfigureAwait(false)); 567builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 581builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 592builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
406builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 421builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 442builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
220return (ranToCompletion: true, await ProcessNextBatchAsync().ConfigureAwait(false));
src\Dependencies\Threading\ValueTaskExtensions.cs (2)
237_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 247_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
Microsoft.CodeAnalysis.LanguageServer (3)
HostWorkspace\LoadedProject.cs (1)
126var disposableBatchScope = await _projectSystemProject.CreateBatchScopeAsync(CancellationToken.None).ConfigureAwait(false);
HostWorkspace\WorkspaceProject.cs (2)
212var disposableBatchScope = await _project.CreateBatchScopeAsync(cancellationToken).ConfigureAwait(false); 222var disposableBatchScope = await _project.CreateBatchScopeAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.LanguageServer.Protocol (89)
Extensions\Extensions.cs (4)
108var textDocument = await solution.GetTextDocumentAsync(documentIdentifier, cancellationToken).ConfigureAwait(false); 118var documents = await solution.GetTextDocumentsAsync(documentIdentifier.DocumentUri, cancellationToken).ConfigureAwait(false); 132var document = await solution.GetDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 211var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Extensions\ProtocolConversions.cs (7)
178var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 399var newDocument = await newSolution.GetRequiredDocumentAsync(docId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 400var oldDocument = await oldSolution.GetRequiredDocumentAsync(docId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 402var oldText = await oldDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 415var newText = await newDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 515var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 859var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
ExternalAccess\Razor\FormatNewFileHandler.cs (3)
75var cleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false); 80var syntaxFormattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 88var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
ExternalAccess\Razor\SimplifyMethodHandler.cs (2)
57var originalTree = await originalDocument.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 67var configOptions = await originalDocument.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
Features\CodeCleanup\AbstractCodeCleanupService.cs (6)
83var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 120var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 123var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 135var organizeOptions = await document.GetOrganizeImportsOptionsAsync(cancellationToken).ConfigureAwait(false); 187var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 209var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Features\EditAndContinue\EditAndContinueDiagnosticSource_OpenDocument.cs (1)
54var rudeEditDiagnostics = await proxy.GetDocumentDiagnosticsAsync(compileTimeDocument, activeStatementSpanProvider, cancellationToken).ConfigureAwait(false);
Features\EditAndContinue\EditAndContinueDiagnosticSource_Workspace.cs (1)
55var document = await solution.GetDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false);
Features\Options\IndentationOptionsStorage.cs (1)
16var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
Features\Suggestions\UnifiedSuggestedActionsSource.cs (1)
54var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Handler\Breakpoints\ValidateBreakableRangeHandler.cs (1)
36var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Handler\CodeActions\CodeActionHelpers.cs (5)
43document, codeFixService, codeRefactoringService, request.Range, cancellationToken).ConfigureAwait(false); 51var documentText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 318document, codeFixService, codeRefactoringService, selection, cancellationToken).ConfigureAwait(false); 388var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 392codeFixService, document, textSpan, priority: null, cancellationToken).ConfigureAwait(false);
Handler\CodeActions\CodeActionResolveHelper.cs (3)
259var newText = await newTextDoc.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 284var oldText = await oldTextDoc.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 297var newText = await newTextDoc.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Handler\CodeLens\CodeLensHandler.cs (1)
67var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Handler\Completion\CompletionHandler.cs (1)
81var documentText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Handler\Completion\CompletionResultFactory.cs (1)
62var documentText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Handler\DataTips\DataTipRangeHandler.cs (1)
35var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Handler\Definitions\AbstractGoToDefinitionHandler.cs (2)
68await definition.Document.GetRequiredDocumentAsync(document.Project.Solution, cancellationToken).ConfigureAwait(false), 78var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (2)
143diagnosticsParams, category, context, cancellationToken).ConfigureAwait(false); 248var document = await solution.GetTextDocumentAsync(textDocumentIdentifier, cancellationToken).ConfigureAwait(false);
Handler\Diagnostics\DiagnosticSourceProviders\DiagnosticSourceManager.cs (2)
77return await provider.CreateDiagnosticSourcesAsync(context, cancellationToken).ConfigureAwait(false); 93var namedSources = await provider.CreateDiagnosticSourcesAsync(context, cancellationToken).ConfigureAwait(false);
Handler\Diagnostics\DiagnosticSourceProviders\WorkspaceDocumentsAndProjectDiagnosticSourceProvider.cs (1)
77var sourceGeneratedDocuments = await project.GetSourceGeneratedDocumentsAsync(cancellationToken).ConfigureAwait(false);
Handler\Diagnostics\DiagnosticSources\AbstractWorkspaceDocumentDiagnosticSource.cs (1)
50var projectDiagnostics = await GetProjectDiagnosticsAsync(cancellationToken).ConfigureAwait(false);
Handler\Extensions\ActivateExtensionHandler.cs (1)
31var handlerNames = await service.GetExtensionMessageNamesAsync(request.AssemblyFilePath, cancellationToken).ConfigureAwait(false);
Handler\Extensions\DispatchDocumentExtensionMessageHandler.cs (1)
35context.Document, request.MessageName, request.Message, cancellationToken).ConfigureAwait(false);
Handler\Extensions\DispatchWorkspaceExtensionMessageHandler.cs (1)
31solution, request.MessageName, request.Message, cancellationToken).ConfigureAwait(false);
Handler\FoldingRanges\FoldingRangesHandler.cs (1)
78var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Handler\Formatting\AbstractFormatDocumentHandlerBase.cs (3)
34var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 35var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 55var organizeImportsOptions = await formattedDocument.GetOrganizeImportsOptionsAsync(cancellationToken).ConfigureAwait(false);
Handler\Formatting\FormatDocumentOnTypeHandler.cs (2)
58var documentSyntax = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false); 72var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Handler\Highlights\DocumentHighlightHandler.cs (2)
55var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 78var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Handler\Hover\HoverHandler.cs (3)
109var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 110var formattingOptions = await document.GetLineFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 140var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Handler\InlayHint\InlayHintHandler.cs (2)
52var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 99var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Handler\InlineCompletions\InlineCompletionsHandler.cs (3)
129var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 154var simplifierOptions = await document.GetSimplifierOptionsAsync(cancellationToken).ConfigureAwait(false); 190var root = await originalDocument.WithText(documentWithSnippetText).GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Handler\MapCode\MapCodeHandler.cs (1)
85var document = await context.Solution.GetDocumentAsync(textDocument, cancellationToken).ConfigureAwait(false);
Handler\OnAutoInsert\OnAutoInsertHandler.cs (4)
127var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false); 157var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 233var documentText = await oldDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 250var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false);
Handler\PullHandlers\VersionedPullCache.CacheItem.cs (1)
64using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))
Handler\References\FindUsagesLSPContext.cs (3)
104using (await _semaphore.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 141using (await _semaphore.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 313var docText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Handler\SemanticTokens\SemanticTokensHelpers.cs (2)
88var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 89var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Handler\SourceGenerators\SourceGeneratedDocumentCache.cs (1)
40var unfrozenDocument = await state.Document.Project.Solution.WithoutFrozenSourceGeneratedDocuments().GetDocumentAsync(state.Document.Id, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false);
Handler\SpellCheck\AbstractSpellCheckingHandler.cs (2)
145var document = await context.Solution.GetDocumentAsync(requestParams.TextDocument, cancellationToken).ConfigureAwait(false); 212var document = await context.Solution.GetTextDocumentAsync(textDocument, cancellationToken).ConfigureAwait(false);
Handler\Symbols\DocumentSymbolsHandler.cs (1)
59var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Handler\Symbols\WorkspaceSymbolsHandler.cs (1)
88var document = await result.NavigableItem.Document.GetRequiredDocumentAsync(solution, cancellationToken).ConfigureAwait(false);
Workspaces\LspWorkspaceManager.cs (7)
253var documents = await lspSolution.GetTextDocumentsAsync(textDocumentIdentifier.DocumentUri, cancellationToken).ConfigureAwait(false); 263if (documents.Length > 1 && await _lspMiscellaneousFilesWorkspaceProvider.IsMiscellaneousFilesDocumentAsync(document, cancellationToken).ConfigureAwait(false)) 271if (_lspMiscellaneousFilesWorkspaceProvider is not null && !await _lspMiscellaneousFilesWorkspaceProvider.IsMiscellaneousFilesDocumentAsync(document, cancellationToken).ConfigureAwait(false)) 305var miscDocument = await _lspMiscellaneousFilesWorkspaceProvider.AddMiscellaneousDocumentAsync(uri, trackedDocument.SourceText, trackedDocument.LanguageId, _logger).ConfigureAwait(false); 515var isTextEquivalent = await AreChecksumsEqualAsync(firstDocument, _trackedDocuments[uriInWorkspace].SourceText, cancellationToken).ConfigureAwait(false); 529var documentText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 598if (await IsMiscellaneousFilesDocumentAsync(document).ConfigureAwait(false))
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (62)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
553builder.Add(await selector(item).ConfigureAwait(false)); 567builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 581builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 592builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
406builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 421builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 442builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
220return (ranToCompletion: true, await ProcessNextBatchAsync().ConfigureAwait(false));
src\Dependencies\Threading\ChannelReaderExtensions.cs (1)
22while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ProducerConsumer.cs (1)
30while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ValueTaskExtensions.cs (2)
237_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 247_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\AddImport\AddImportPlacementOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
99changedRoot, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
83var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\AbstractFixAllSpanMappingService.cs (2)
45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 78var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
244var codeGenOptions = await oldDocument.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false); 256var addImportsOptions = await newDocument.GetAddImportPlacementOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CleanCodeGenerationOptions.cs (2)
42GenerationOptions = await document.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false), 43CleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationOptionsProviders.cs (2)
36var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false); 44var options = await GetCodeGenerationOptionsAsync(document, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringContextExtensions.cs (4)
46var parsedDocument = await ParsedDocument.CreateAsync(context.Document, context.CancellationToken).ConfigureAwait(false); 55var parsedDocument = await ParsedDocument.CreateAsync(context.Document, context.CancellationToken).ConfigureAwait(false); 61var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false); 84var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (5)
37var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 120var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 121var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 180var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 183var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
132var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 136return await ReuseExistingSpeculativeModelAsync(document, node, cancellationToken).ConfigureAwait(false); 225var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\DocumentFormattingOptionsProviders.cs (1)
24var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\FormatterShared.cs (1)
26var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\LineFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\SyntaxFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (2)
119var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 123var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (2)
27var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 34var currentModel = await current.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\NamingStyles\NamingStylePreferencesProviders.cs (1)
17var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
52var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
102return await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 157var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (6)
69var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 96var root = (TCompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 107root = (TCompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 165var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 236semanticModelForReduce = await newDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 291var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplifierOptionsProviders.cs (1)
22var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (2)
33var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 34var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\SemanticDocument.cs (3)
20var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 21var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 22var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\SyntacticDocument.cs (2)
30var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 31var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.PublicApiAnalyzers (12)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
553builder.Add(await selector(item).ConfigureAwait(false)); 567builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 581builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 592builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
406builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 421builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 442builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
220return (ranToCompletion: true, await ProcessNextBatchAsync().ConfigureAwait(false));
src\Dependencies\Threading\ChannelReaderExtensions.cs (1)
22while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ProducerConsumer.cs (1)
30while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ValueTaskExtensions.cs (2)
237_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 247_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
Microsoft.CodeAnalysis.Remote.ServiceHub (100)
Host\AssetProvider.cs (2)
99AssetPathKind.SolutionCompilationStateChecksums, solutionChecksum, cancellationToken).ConfigureAwait(false); 103AssetPathKind.SolutionStateChecksums, compilationStateChecksums.SolutionState, cancellationToken).ConfigureAwait(false);
Host\RemoteWorkspace.cs (12)
62cancellationToken).ConfigureAwait(false); 98var (inFlightSolution, solutionTask) = await AcquireSolutionAndIncrementInFlightCountAsync().ConfigureAwait(false); 102return await ProcessSolutionAsync(inFlightSolution, solutionTask).ConfigureAwait(false); 119using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 152using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 162var result = await implementation(solution).ConfigureAwait(false); 176using (await _gate.DisposableWaitAsync(CancellationToken.None).ConfigureAwait(false)) 223AssetPathKind.SolutionCompilationStateChecksums, solutionChecksum, cancellationToken).ConfigureAwait(false); 225AssetPathKind.SolutionStateChecksums, newSolutionCompilationChecksums.SolutionState, cancellationToken).ConfigureAwait(false); 227AssetPathKind.SolutionAttributes, newSolutionChecksums.Attributes, cancellationToken).ConfigureAwait(false); 289using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 343assetProvider, solutionChecksum, updatePrimaryBranch, _ => ValueTask.FromResult(false), cancellationToken).ConfigureAwait(false);
Host\RemoteWorkspace.SolutionCreator.cs (15)
46AssetPathKind.SolutionCompilationStateChecksums, newSolutionChecksum, cancellationToken).ConfigureAwait(false); 48AssetPathKind.SolutionStateChecksums, newSolutionCompilationChecksums.SolutionState, cancellationToken).ConfigureAwait(false); 56AssetPathKind.SolutionAttributes, newSolutionChecksums.Attributes, cancellationToken).ConfigureAwait(false); 75useAsync: true, deserializedAnalyzerReferences, _workspace.Services.SolutionServices, cancellationToken).ConfigureAwait(false); 83AssetPathKind.SolutionFallbackAnalyzerOptions, newSolutionChecksums.FallbackAnalyzerOptions, cancellationToken).ConfigureAwait(false)); 99new(AssetPathKind.SolutionFrozenSourceGeneratedDocumentIdentities, frozenDocumentId), frozenDocumentIdentity, cancellationToken).ConfigureAwait(false); 102new(AssetPathKind.SolutionFrozenSourceGeneratedDocumentText, frozenDocumentId), frozenDocumentTextChecksum, cancellationToken).ConfigureAwait(false); 105var text = await serializableSourceText.GetTextAsync(cancellationToken).ConfigureAwait(false); 116AssetPathKind.SolutionSourceGeneratorExecutionVersionMap, newSolutionCompilationChecksums.SourceGeneratorExecutionVersionMap, cancellationToken).ConfigureAwait(false); 329assetPath: projectId, newProjectChecksums.Info, cancellationToken).ConfigureAwait(false)); 348assetPath: project.Id, newProjectChecksums.CompilationOptions, cancellationToken).ConfigureAwait(false))); 355assetPath: project.Id, newProjectChecksums.ParseOptions, cancellationToken).ConfigureAwait(false)); 381useAsync: true, deserializedAnalyzerReferences, _workspace.Services.SolutionServices, cancellationToken).ConfigureAwait(false); 552assetPath: document.Id, newDocumentChecksums.textChecksum, cancellationToken).ConfigureAwait(false); 571assetPath: document.Id, infoChecksum, cancellationToken).ConfigureAwait(false);
Host\RemoteWorkspace_SolutionCaching.cs (1)
123using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))
Host\RemoteWorkspaceManager.cs (2)
98cancellationToken).ConfigureAwait(false); 117cancellationToken).ConfigureAwait(false);
Host\TestUtils.cs (4)
108AssetPath.FullLookupForTesting, checksum, CancellationToken.None).ConfigureAwait(false))); 119AssetPathKind.SolutionCompilationStateChecksums, solutionChecksum, CancellationToken.None).ConfigureAwait(false); 121AssetPathKind.SolutionStateChecksums, solutionCompilationChecksums.SolutionState, CancellationToken.None).ConfigureAwait(false); 129assetPath: projectId, projectChecksum, CancellationToken.None).ConfigureAwait(false);
Services\AssetSynchronization\RemoteAssetSynchronizationService.cs (2)
117return await serializableSourceText.GetTextAsync(cancellationToken).ConfigureAwait(false); 138return await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Services\BrokeredServiceBase.cs (3)
98cancellationToken).ConfigureAwait(false); 119return await implementation(cancellationToken).ConfigureAwait(false); 145}, c).ConfigureAwait(false);
Services\CodeLensReferences\RemoteCodeLensReferencesService.cs (10)
30var document = await solution.GetDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 36var syntaxRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 49var syntaxNode = await TryFindNodeAsync(solution, documentId, textSpan, cancellationToken).ConfigureAwait(false); 62cancellationToken).ConfigureAwait(false); 72var syntaxNode = await TryFindNodeAsync(solution, documentId, textSpan, cancellationToken).ConfigureAwait(false); 80}, cancellationToken).ConfigureAwait(false); 90var syntaxNode = await TryFindNodeAsync(solution, documentId, textSpan, cancellationToken).ConfigureAwait(false); 98}, cancellationToken).ConfigureAwait(false); 110var syntaxNode = await TryFindNodeAsync(solution, documentId, textSpan, cancellationToken).ConfigureAwait(false); 118}, cancellationToken).ConfigureAwait(false);
Services\ConvertTupleToStructCodeRefactoringProvider\RemoteConvertTupleToStructCodeRefactoringService.cs (5)
46solution, cleanedSolution, cancellationToken).ConfigureAwait(false); 62var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 84var options = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false); 85var cleaned = await CodeAction.CleanupDocumentAsync(document, options, cancellationToken).ConfigureAwait(false); 87var cleanedRoot = await cleaned.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Services\Copilot\RemoteCopilotChangeAnalysisService.cs (1)
33documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false);
Services\Copilot\RemoteCopilotProposalAdjusterService.cs (2)
29documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 32return await service.TryAdjustProposalAsync(document, textChanges, cancellationToken).ConfigureAwait(false);
Services\DependentTypeFinder\RemoteDependentTypeFinderService.cs (1)
37var symbol = await typeAndProjectId.TryRehydrateAsync(solution, cancellationToken).ConfigureAwait(false);
Services\DiagnosticAnalyzer\RemoteDiagnosticAnalyzerService.cs (2)
107var diagnostics = await project.GetSourceGeneratorDiagnosticsAsync(cancellationToken).ConfigureAwait(false); 231documentId, cancellationToken).ConfigureAwait(false);
Services\DocumentHighlights\RemoteDocumentHighlightsService.cs (2)
36var document = await solution.GetRequiredDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 40var documentsToSearch = await documentIdsToSearch.SelectAsArrayAsync(id => solution.GetDocumentAsync(id, includeSourceGenerated: true, cancellationToken)).ConfigureAwait(false);
Services\EditAndContinue\RemoteEditAndContinueService.cs (7)
90var sessionId = await GetService().StartDebuggingSessionAsync(solution, debuggerService, sourceTextProvider, captureMatchingDocuments, captureAllMatchingDocuments, reportDiagnostics, cancellationToken).ConfigureAwait(false); 128var document = await solution.GetRequiredDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 130var diagnostics = await GetService().GetDocumentDiagnosticsAsync(document, CreateActiveStatementSpanProvider(callbackId), cancellationToken).ConfigureAwait(false); 152return (await service.EmitSolutionUpdateAsync(sessionId, solution, runningProjects, CreateActiveStatementSpanProvider(callbackId), cancellationToken).ConfigureAwait(false)).Dehydrate(); 192return await GetService().GetBaseActiveStatementSpansAsync(sessionId, solution, documentIds, cancellationToken).ConfigureAwait(false); 203var document = await solution.GetRequiredTextDocumentAsync(documentId, cancellationToken).ConfigureAwait(false); 204return await GetService().GetAdjustedActiveStatementSpansAsync(sessionId, document, CreateActiveStatementSpanProvider(callbackId), cancellationToken).ConfigureAwait(false);
Services\EncapsulateField\RemoteEncapsulateFieldService.cs (1)
53solution, newSolution, cancellationToken).ConfigureAwait(false);
Services\ExtensionMessageHandler\RemoteExtensionMessageHandlerService.cs (2)
51var document = await solution.GetRequiredDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 52return await GetExtensionService().HandleExtensionDocumentMessageAsync(document, messageName, jsonMessage, cancellationToken).ConfigureAwait(false);
Services\FindUsages\RemoteFindUsagesService.cs (2)
39solution, cancellationToken).ConfigureAwait(false); 63solution, cancellationToken).ConfigureAwait(false);
Services\FullyQualify\RemoteFullyQualifyService.cs (1)
31var document = await solution.GetRequiredDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false);
Services\InheritanceMargin\RemoteInheritanceMarginService.cs (2)
45var document = await solution.GetRequiredDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 47return await service.GetInheritanceMemberItemsAsync(document, spanToSearch, includeGlobalImports, frozenPartialSemantics, cancellationToken).ConfigureAwait(false);
Services\Initialization\RemoteInitializationService.cs (1)
37}, cancellationToken).ConfigureAwait(false);
Services\MissingImportDiscovery\RemoteMissingImportDiscoveryService.cs (2)
42var document = await solution.GetDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 71var document = await solution.GetDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false);
Services\NavigationBar\RemoteNavigationBarItemService.cs (1)
27var document = await solution.GetDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false);
Services\Renamer\RemoteRenamerService.cs (3)
32solution, cancellationToken).ConfigureAwait(false); 53solution, cancellationToken).ConfigureAwait(false); 78var symbol = await symbolAndProjectId.TryRehydrateAsync(solution, cancellationToken).ConfigureAwait(false);
Services\SemanticClassification\RemoteSemanticClassificationService.Caching.cs (3)
129var storage = await persistenceService.GetStorageAsync(SolutionKey.ToSolutionKey(solution), cancellationToken).ConfigureAwait(false); 151var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 291var storage = await persistenceService.GetStorageAsync(documentKey.Project.Solution, cancellationToken).ConfigureAwait(false);
Services\SemanticClassification\RemoteSemanticClassificationService.cs (1)
33var document = solution.GetDocument(documentId) ?? await solution.GetSourceGeneratedDocumentAsync(documentId, cancellationToken).ConfigureAwait(false);
Services\SemanticSearch\RemoteSemanticSearchService.cs (3)
41var definition = await SemanticSearchDefinitionItemFactory.CreateAsync(solution, symbol, classificationOptions: this, cancellationToken).ConfigureAwait(false); 47var definition = await SemanticSearchDefinitionItemFactory.CreateAsync(document, node, cancellationToken).ConfigureAwait(false); 59var definition = await SemanticSearchDefinitionItemFactory.CreateAsync(solution, location, cancellationToken).ConfigureAwait(false);
Services\SourceGeneration\RemoteSourceGenerationService.cs (4)
40project.State, withFrozenSourceGeneratedDocuments, cancellationToken).ConfigureAwait(false); 60project.State, withFrozenSourceGeneratedDocuments, cancellationToken).ConfigureAwait(false); 67var text = await state.GetTextAsync(cancellationToken).ConfigureAwait(false); 125cancellationToken).ConfigureAwait(false);
Services\SymbolFinder\RemoteSymbolFinderService.cs (1)
45solution, cancellationToken).ConfigureAwait(false);
Services\TaskList\RemoteTaskListService.cs (1)
31var document = await solution.GetRequiredDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false);
Services\ValueTracking\RemoteValueTrackingService.cs (1)
56var previousItem = await previousTrackedItem.RehydrateAsync(solution, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Remote.Workspaces (85)
AbstractAssetProvider.cs (12)
34var solutionCompilationChecksums = await GetAssetAsync<SolutionCompilationStateChecksums>(AssetPathKind.SolutionCompilationStateChecksums, solutionChecksum, cancellationToken).ConfigureAwait(false); 35var solutionChecksums = await GetAssetAsync<SolutionStateChecksums>(AssetPathKind.SolutionStateChecksums, solutionCompilationChecksums.SolutionState, cancellationToken).ConfigureAwait(false); 37var solutionAttributes = await GetAssetAsync<SolutionInfo.SolutionAttributes>(AssetPathKind.SolutionAttributes, solutionChecksums.Attributes, cancellationToken).ConfigureAwait(false); 38await GetAssetAsync<SourceGeneratorExecutionVersionMap>(AssetPathKind.SolutionSourceGeneratorExecutionVersionMap, solutionCompilationChecksums.SourceGeneratorExecutionVersionMap, cancellationToken).ConfigureAwait(false); 58useAsync: true, analyzerReference, solutionServices, cancellationToken).ConfigureAwait(false); 60var fallbackAnalyzerOptions = await GetAssetAsync<ImmutableDictionary<string, StructuredAnalyzerConfigOptions>>(AssetPathKind.SolutionFallbackAnalyzerOptions, solutionChecksums.FallbackAnalyzerOptions, cancellationToken).ConfigureAwait(false); 82var attributes = await GetAssetAsync<ProjectInfo.ProjectAttributes>(new(AssetPathKind.ProjectAttributes, projectId), projectChecksums.Info, cancellationToken).ConfigureAwait(false); 86await GetAssetAsync<CompilationOptions>(new(AssetPathKind.ProjectCompilationOptions, projectId), projectChecksums.CompilationOptions, cancellationToken).ConfigureAwait(false)); 111await parseOptionsTask.ConfigureAwait(false), 115await isolatedAnalyzerReferencesTask.ConfigureAwait(false), 166var attributes = await GetAssetAsync<DocumentInfo.DocumentAttributes>(new(AssetPathKind.DocumentAttributes, documentId), attributeChecksum, cancellationToken).ConfigureAwait(false); 167var serializableSourceText = await GetAssetAsync<SerializableSourceText>(new(AssetPathKind.DocumentText, documentId), textChecksum, cancellationToken).ConfigureAwait(false);
BrokeredServiceConnection.cs (30)
90var proxyRental = await _serviceBrokerClient.GetProxyAsync<TService>(_serviceDescriptor, options, cancellationToken).ConfigureAwait(false); 102using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false); 117using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false); 118return await invocation(rental.Service, cancellationToken).ConfigureAwait(false); 135using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false); 152using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false); 153return await invocation(rental.Service, _callbackHandle.Id, cancellationToken).ConfigureAwait(false); 168using var scope = await _solutionAssetStorage.StoreAssetsAsync(compilationState, cancellationToken).ConfigureAwait(false); 169using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false); 184using var scope = await _solutionAssetStorage.StoreAssetsAsync(compilationState, cancellationToken).ConfigureAwait(false); 185using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false); 186return await invocation(rental.Service, scope.SolutionChecksum, cancellationToken).ConfigureAwait(false); 201using var scope = await _solutionAssetStorage.StoreAssetsAsync(compilationState, projectId, cancellationToken).ConfigureAwait(false); 202using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false); 217using var scope = await _solutionAssetStorage.StoreAssetsAsync(compilationState, projectId, cancellationToken).ConfigureAwait(false); 218using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false); 219return await invocation(rental.Service, scope.SolutionChecksum, cancellationToken).ConfigureAwait(false); 236using var scope = await _solutionAssetStorage.StoreAssetsAsync(compilationState, cancellationToken).ConfigureAwait(false); 237using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false); 255using var scope = await _solutionAssetStorage.StoreAssetsAsync(compilationState, cancellationToken).ConfigureAwait(false); 256using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false); 257return await invocation(rental.Service, scope.SolutionChecksum, _callbackHandle.Id, cancellationToken).ConfigureAwait(false); 274using var scope = await _solutionAssetStorage.StoreAssetsAsync(compilationState, projectId, cancellationToken).ConfigureAwait(false); 275using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false); 293using var scope = await _solutionAssetStorage.StoreAssetsAsync(compilationState, projectId, cancellationToken).ConfigureAwait(false); 294using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false); 295return await invocation(rental.Service, scope.SolutionChecksum, _callbackHandle.Id, cancellationToken).ConfigureAwait(false); 310using var scope1 = await _solutionAssetStorage.StoreAssetsAsync(compilationState1, cancellationToken).ConfigureAwait(false); 311using var scope2 = await _solutionAssetStorage.StoreAssetsAsync(compilationState2, cancellationToken).ConfigureAwait(false); 312using var rental = await RentServiceAsync(cancellationToken).ConfigureAwait(false);
EditAndContinue\ManagedHotReloadLanguageService.cs (8)
67var id = await _solutionSnapshotProvider.RegisterSolutionSnapshotAsync(cancellationToken).ConfigureAwait(false); 84var currentDesignTimeSolution = await GetCurrentDesignTimeSolutionAsync(cancellationToken).ConfigureAwait(false); 96cancellationToken).ConfigureAwait(false); 235var newSolution = await GetCurrentDesignTimeSolutionAsync(cancellationToken).ConfigureAwait(false); 238? await EditSession.HasChangesAsync(oldSolution, newSolution, sourceFilePath, cancellationToken).ConfigureAwait(false) 239: await EditSession.HasChangesAsync(oldSolution, newSolution, cancellationToken).ConfigureAwait(false); 266var designTimeSolution = await GetCurrentDesignTimeSolutionAsync(cancellationToken).ConfigureAwait(false); 274results = (await encService.EmitSolutionUpdateAsync(_debuggingSession.Value, solution, runningProjectOptions, s_emptyActiveStatementProvider, cancellationToken).ConfigureAwait(false)).Dehydrate();
ExternalAccess\Pythia\Api\PythiaRemoteHostClient.cs (8)
43return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false); 49return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false); 57return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false); 63return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false); 71return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false); 77return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false); 85return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false); 91return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false);
ExternalAccess\UnitTesting\Api\UnitTestingRemoteHostClient.cs (8)
43return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false); 49return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false); 57return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false); 63return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false); 71return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false); 77return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false); 85return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false); 91return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false);
RemoteCallback.cs (2)
43rental = await client.GetProxyAsync<T>(serviceDescriptor, cancellationToken).ConfigureAwait(false); 80return await invocation(_callback, cancellationToken).ConfigureAwait(false);
RemoteHostAssetReader.cs (5)
59var responseSolutionChecksum = await ReadChecksumFromPipeReaderAsync(cancellationToken).ConfigureAwait(false); 70var length = await CheckSentinelByteAndReadLengthAsync(cancellationToken).ConfigureAwait(false); 75var fillReadResult = await _pipeReader.ReadAtLeastAsync(length, cancellationToken).ConfigureAwait(false); 99var lengthReadResult = await _pipeReader.ReadAtLeastAsync(HeaderSize, cancellationToken).ConfigureAwait(false); 113var readChecksumResult = await _pipeReader.ReadAtLeastAsync(Checksum.HashSize, cancellationToken).ConfigureAwait(false);
RemoteHostAssetWriter.cs (3)
99await _pipeWriter.FlushAsync(cancellationToken).ConfigureAwait(false); 136await _pipeWriter.FlushAsync(cancellationToken).ConfigureAwait(false); 146await _pipeWriter.FlushAsync(cancellationToken).ConfigureAwait(false);
ServiceBrokerExtensions.cs (6)
16var service = await serviceBroker.GetProxyAsync<TService>(descriptor, cancellationToken).ConfigureAwait(false); 26var service = await serviceBroker.GetProxyAsync<TService>(descriptor, cancellationToken).ConfigureAwait(false); 30return await operation(service, cancellationToken).ConfigureAwait(false); 36var service = await serviceBroker.GetProxyAsync<TService>(descriptor, cancellationToken).ConfigureAwait(false); 40return await operation(service, args, cancellationToken).ConfigureAwait(false); 46var service = await serviceBroker.GetProxyAsync<TService>(descriptor, cancellationToken).ConfigureAwait(false);
ServiceHubRemoteHostClient.cs (2)
78cancellationToken).ConfigureAwait(false); 115cancellationToken).ConfigureAwait(false);
SolutionAssetStorage.cs (1)
128return await _solutionAssetStorage._checksumToScope.Single().Value.GetTestAccessor().GetAssetAsync(checksum, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.ResxSourceGenerator (12)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
553builder.Add(await selector(item).ConfigureAwait(false)); 567builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 581builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 592builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
406builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 421builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 442builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
220return (ranToCompletion: true, await ProcessNextBatchAsync().ConfigureAwait(false));
src\Dependencies\Threading\ChannelReaderExtensions.cs (1)
22while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ProducerConsumer.cs (1)
30while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ValueTaskExtensions.cs (2)
237_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 247_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
Microsoft.CodeAnalysis.Threading.Package (11)
AsyncBatchingWorkQueue`2.cs (1)
220return (ranToCompletion: true, await ProcessNextBatchAsync().ConfigureAwait(false));
ProducerConsumer.cs (1)
30while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
553builder.Add(await selector(item).ConfigureAwait(false)); 567builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 581builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 592builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
406builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 421builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 442builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
ValueTaskExtensions.cs (2)
237_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 247_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
Microsoft.CodeAnalysis.Workspaces (335)
CaseCorrection\AbstractCaseCorrectionService.cs (1)
35var semanticModel = await document.ReuseExistingSpeculativeModelAsync(spans.Collapse(), cancellationToken).ConfigureAwait(false);
Classification\AbstractClassificationService.cs (2)
93cancellationToken).ConfigureAwait(false); 126cancellationToken).ConfigureAwait(false);
Classification\Classifier.cs (1)
32var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Classification\SyntaxClassification\AbstractSyntaxClassificationService.cs (1)
37var semanticModel = await document.GetRequiredNullableDisabledSemanticModelAsync(cancellationToken).ConfigureAwait(false);
CodeActions\CodeAction.cs (2)
469var options = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false); 470return await CleanupDocumentAsync(document, options, cancellationToken).ConfigureAwait(false);
CodeActions\CodeAction_Cleanup.cs (5)
134var document = await changedSolution.GetRequiredDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 139var codeActionOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false); 160return await cleanedSolution.GetRequiredDocumentAsync(document.Id, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 199var document = await solution.GetRequiredDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 208var newRoot = await cleanedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
CodeCleanup\AbstractCodeCleanerService.cs (2)
42var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 483var root = await currentDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
CodeCleanup\CodeCleaner.cs (2)
52var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 62var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
CodeCleanup\Providers\FormatCodeCleanupProvider.cs (1)
23var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
CodeFixes\FixAllOccurrences\BatchFixAllProvider.cs (1)
256var docIdsAndTexts = await docIdsAndMerger.SelectAsArrayAsync(async t => (t.documentId, await t.merger.GetFinalMergedTextAsync(cancellationToken).ConfigureAwait(false))).ConfigureAwait(false);
CodeFixes\FixAllOccurrences\TextChangeMerger.cs (1)
75var oldText = await _oldDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
CodeFixesAndRefactorings\DocumentBasedFixAllProviderHelpers.cs (3)
55.ConfigureAwait(false); 87var newRoot = newDocument.SupportsSyntaxTree ? await newDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false) : null; 88var newText = newDocument.SupportsSyntaxTree ? null : await newDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
CodeRefactorings\SyntaxEditorBasedCodeRefactoringProvider.cs (1)
69var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Diagnostics\DiagnosticData.cs (2)
158var location = await DataLocation.ConvertLocationAsync(project, cancellationToken).ConfigureAwait(false); 159var additionalLocations = await AdditionalLocations.ConvertLocationsAsync(project, cancellationToken).ConfigureAwait(false);
Diagnostics\Extensions.cs (8)
50?? await project.GetSourceGeneratedDocumentAsync(dataLocation.DocumentId, cancellationToken).ConfigureAwait(false); 54var text = await textDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 56? await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false) 358var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 367var model = await ((Document)documentAnalysisScope.TextDocument).GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 439var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 526cancellationToken).ConfigureAwait(false); 534return await project.GetSourceGeneratorDiagnosticsAsync(cancellationToken).ConfigureAwait(false);
Editing\ImportAdder.cs (9)
20var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 26var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 34=> await AddImportsFromSyntaxesAsync(document, await GetSpansAsync(document, cancellationToken).ConfigureAwait(false), options, cancellationToken).ConfigureAwait(false); 46=> await AddImportsFromSyntaxesAsync(document, await GetSpansAsync(document, annotation, cancellationToken).ConfigureAwait(false), options, cancellationToken).ConfigureAwait(false); 63var addImportOptions = await document.GetAddImportPlacementOptionsAsync(cancellationToken).ConfigureAwait(false); 71=> await AddImportsFromSyntaxesAsync(document, await GetSpansAsync(document, cancellationToken).ConfigureAwait(false), options, cancellationToken).ConfigureAwait(false); 77=> await AddImportsFromSyntaxesAsync(document, await GetSpansAsync(document, annotation, cancellationToken).ConfigureAwait(false), options, cancellationToken).ConfigureAwait(false); 89=> await AddImportsFromSymbolAnnotationAsync(document, await GetSpansAsync(document, cancellationToken).ConfigureAwait(false), options, cancellationToken).ConfigureAwait(false); 95=> await AddImportsFromSymbolAnnotationAsync(document, await GetSpansAsync(document, annotation, cancellationToken).ConfigureAwait(false), options, cancellationToken).ConfigureAwait(false);
ExtractMethod\ExtractMethodOptions.cs (2)
47CodeGenerationOptions = await document.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false), 48CodeCleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false),
FindSymbols\Declarations\DeclarationFinder.cs (1)
83project.Solution, reference, checksum: null, cancellationToken).ConfigureAwait(false);
FindSymbols\Declarations\DeclarationFinder_AllDeclarations.cs (2)
45cancellationToken).ConfigureAwait(false); 166var rehydrated = await dehydrated.TryRehydrateAsync(solution, cancellationToken).ConfigureAwait(false);
FindSymbols\Declarations\DeclarationFinder_SourceDeclarations.cs (4)
49cancellationToken).ConfigureAwait(false); 87cancellationToken).ConfigureAwait(false); 120cancellationToken).ConfigureAwait(false); 153cancellationToken).ConfigureAwait(false);
FindSymbols\FindLiterals\FindLiteralsSearchEngine.cs (2)
120document, cancellationToken).ConfigureAwait(false); 141var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\DependentProjectsFinder.cs (4)
146using (await s_solutionToDependentProjectMapGate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 157using (await s_solutionToDependentProjectMapGate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 344using (await s_metadataIdToAssemblyNameGate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 376using (await s_metadataIdToAssemblyNameGate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))
FindSymbols\FindReferences\DependentTypeFinder.cs (5)
245var document = await solution.GetRequiredDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 246var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 262var semanticModel = await GetRequiredSemanticModelAsync(documentId).ConfigureAwait(false); 282var semanticModel = await GetRequiredSemanticModelAsync(documentId).ConfigureAwait(false); 346project.Solution, reference, checksum: null, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\DependentTypeFinder_ProjectIndex.cs (2)
80var sourceGeneratorDocumentStates = await project.Solution.CompilationState.GetSourceGeneratedDocumentStatesAsync(project.State, cancellationToken).ConfigureAwait(false); 91solutionKey, project.State, document, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\DependentTypeFinder_Remote.cs (2)
36cancellationToken).ConfigureAwait(false); 88var rehydrated = await item.TryRehydrateAsync(solution, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (3)
108if (await predicateAsync(document, value, cancellationToken).ConfigureAwait(false)) 340var info = await SyntaxTreeIndex.GetRequiredIndexAsync(d, c).ConfigureAwait(false); 734var index = await SyntaxTreeIndex.GetRequiredIndexAsync(document, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\ConstructorInitializerSymbolReferenceFinder.cs (1)
32var index = await SyntaxTreeIndex.GetRequiredIndexAsync(document, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\ExplicitConversionSymbolReferenceFinder.cs (1)
56var index = await SyntaxTreeIndex.GetRequiredIndexAsync(document, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\ParameterSymbolReferenceFinder.cs (1)
106var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferenceCache.cs (5)
35var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 39var model = await document.GetRequiredNullableDisabledSemanticModelAsync(cancellationToken).ConfigureAwait(false); 40var nullableEnableSemanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 41var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 45var index = await SyntaxTreeIndex.GetRequiredIndexAsync(document, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (2)
171result.Add((symbol, await ReportGroupSeriallyAsync(symbol, symbolToGroup, cancellationToken).ConfigureAwait(false))); 286var cache = await FindReferenceCache.GetCacheAsync(document, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferencesSearchEngine.SymbolSet.cs (4)
68var searchSymbols = await MapToAppropriateSymbolsAsync(solution, symbols, cancellationToken).ConfigureAwait(false); 97result.AddIfNotNull(await TryMapToAppropriateSymbolAsync(solution, symbol, cancellationToken).ConfigureAwait(false)); 203var cascaded = await finder.DetermineCascadedSymbolsAsync(symbol, solution, engine._options, cancellationToken).ConfigureAwait(false); 212var mapped = await TryMapToAppropriateSymbolAsync(solution, symbol, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\FindReferencesSearchEngine_FindReferencesInDocuments.cs (5)
108var cache = await FindReferenceCache.GetCacheAsync(document, cancellationToken).ConfigureAwait(false); 187var (matched, candidate, candidateReason) = await HasInheritanceRelationshipAsync(symbol, symbolInfo).ConfigureAwait(false); 193candidate, symbolToGroup, cancellationToken).ConfigureAwait(false); 205if (await HasInheritanceRelationshipSingleAsync(symbol, symbolInfo.Symbol).ConfigureAwait(false)) 210if (await HasInheritanceRelationshipSingleAsync(symbol, candidate).ConfigureAwait(false))
FindSymbols\ReferenceLocationExtensions.cs (1)
36var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
FindSymbols\Shared\AbstractSyntaxIndex.cs (3)
32var index = await GetIndexAsync(solutionKey, project, document, read, create, cancellationToken).ConfigureAwait(false); 88var (textChecksum, textAndDirectivesChecksum) = await GetChecksumsAsync(project, document, cancellationToken).ConfigureAwait(false); 124var syntaxTree = await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
FindSymbols\Shared\AbstractSyntaxIndex_Persistence.cs (2)
72var storage = await storageService.GetStorageAsync(documentKey.Project.Solution, cancellationToken).ConfigureAwait(false); 163var storage = await persistentStorageService.GetStorageAsync(solutionKey, cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolFinder.cs (3)
131var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 212var linkedSyntaxRoot = await linkedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 218var semanticModel = await linkedDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolFinder.FindReferencesServerCallback.cs (2)
48var symbol = await symbolAndProjectId.TryRehydrateAsync(solution, cancellationToken).ConfigureAwait(false); 93solution, cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolFinder_FindLiteralReferences.cs (1)
36cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolFinder_FindReferences_Current.cs (1)
57cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolTree\SymbolTreeInfo_Serialization.cs (3)
56result = await createAsync(checksum).ConfigureAwait(false); 62var storage = await persistentStorageService.GetStorageAsync(solutionKey, cancellationToken).ConfigureAwait(false); 91var storage = await persistentStorageService.GetStorageAsync(solutionKey, cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolTree\SymbolTreeInfoCacheService.cs (1)
200project.Solution, reference, checksum, cancellationToken).ConfigureAwait(false);
Formatting\Formatter.cs (6)
87var (syntaxFormattingOptions, lineFormattingOptions) = await GetFormattingOptionsAsync(document, options, cancellationToken).ConfigureAwait(false); 93options ??= await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 94var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 134var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 138var (formattingOptions, _) = await GetFormattingOptionsAsync(document, optionSet, cancellationToken).ConfigureAwait(false); 361var options = await GetOrganizeImportsOptionsAsync(document, cancellationToken).ConfigureAwait(false);
LinkedFileDiffMerging\LinkedFileDiffMergingSession.cs (3)
40var newText = await newDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 68var firstSourceText = await firstNewDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 103var firstOldSourceText = await firstOldDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
ObsoleteSymbol\AbstractObsoleteSymbolService.cs (2)
35var semanticModel = await document.GetRequiredNullableDisabledSemanticModelAsync(cancellationToken).ConfigureAwait(false); 36var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
OrganizeImports\OrganizeImportsOptionsProviders.cs (1)
25var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
ReassignedVariable\AbstractReassignedVariableService.cs (1)
46var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Recommendations\Recommender.cs (1)
51var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Remote\RemoteArguments.cs (3)
175var document = await solution.GetRequiredDocumentAsync(this.Document, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 176var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 195var symbol = await Alias.TryRehydrateAsync(solution, cancellationToken).ConfigureAwait(false);
Remote\RemoteHostClient.cs (14)
66return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false); 75return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false); 87return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false); 97return await connection.TryInvokeAsync(invocation, cancellationToken).ConfigureAwait(false); 118return await connection.TryInvokeAsync(compilationState, invocation, cancellationToken).ConfigureAwait(false); 128return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false); 146return await connection.TryInvokeAsync(project, invocation, cancellationToken).ConfigureAwait(false); 157return await connection.TryInvokeAsync(compilationState, projectId, invocation, cancellationToken).ConfigureAwait(false); 173return await connection.TryInvokeAsync(project, invocation, cancellationToken).ConfigureAwait(false); 186return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false); 197return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false); 216return await connection.TryInvokeAsync(project, invocation, cancellationToken).ConfigureAwait(false); 233return await connection.TryInvokeAsync(project, invocation, cancellationToken).ConfigureAwait(false); 246return await connection.TryInvokeAsync(solution1, solution2, invocation, cancellationToken).ConfigureAwait(false);
Remote\RemoteUtilities.cs (3)
68var document = await oldSolution.GetDocumentAsync(tuple.documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 71var oldText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 75.ConfigureAwait(false);
Rename\ConflictEngine\ConflictResolver.cs (1)
68cancellationToken).ConfigureAwait(false);
Rename\ConflictEngine\ConflictResolver.Session.cs (20)
214_documentIdOfRenameSymbolDeclaration, includeSourceGenerated: true, _cancellationToken).ConfigureAwait(false); 215var semanticModel = await declarationDocument.GetRequiredSemanticModelAsync(_cancellationToken).ConfigureAwait(false); 272documentId, includeSourceGenerated: true, _cancellationToken).ConfigureAwait(false); 295documentId, includeSourceGenerated: true, _cancellationToken).ConfigureAwait(false); 328var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(_cancellationToken).ConfigureAwait(false); 353documentId, includeSourceGenerated: true, _cancellationToken).ConfigureAwait(false); 354var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(_cancellationToken).ConfigureAwait(false); 356documentId, includeSourceGenerated: true, _cancellationToken).ConfigureAwait(false); 357var baseSyntaxTree = await baseDocument.GetRequiredSyntaxTreeAsync(_cancellationToken).ConfigureAwait(false); 358var baseRoot = await baseDocument.GetRequiredSyntaxRootAsync(_cancellationToken).ConfigureAwait(false); 381newDocumentSemanticModel ??= await newDocument.GetRequiredSemanticModelAsync(_cancellationToken).ConfigureAwait(false); 446var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(_cancellationToken).ConfigureAwait(false); 448var baseSyntaxTree = await baseDocument.GetRequiredSyntaxTreeAsync(_cancellationToken).ConfigureAwait(false); 517.SelectAsArrayAsync(static (symbol, solution, cancellationToken) => GetSymbolLocationAsync(solution, symbol, cancellationToken), solution, _cancellationToken).ConfigureAwait(false)) 562var newLocation = await GetSymbolLocationAsync(solution, symbol, _cancellationToken).ConfigureAwait(false); 664_documentIdOfRenameSymbolDeclaration, includeSourceGenerated: true, _cancellationToken).ConfigureAwait(false); 724var info = await SyntaxTreeIndex.GetRequiredIndexAsync(document, _cancellationToken).ConfigureAwait(false); 773documentId, includeSourceGenerated: true, _cancellationToken).ConfigureAwait(false); 774var semanticModel = await document.GetRequiredSemanticModelAsync(_cancellationToken).ConfigureAwait(false); 828partiallyRenamedSolution = await MutableConflictResolution.WithDocumentSyntaxRootAsync(partiallyRenamedSolution, documentId, newRoot, _cancellationToken).ConfigureAwait(false);
Rename\ConflictEngine\MutableConflictResolution.cs (4)
73documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 74var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 86intermediateSolution = await WithDocumentSyntaxRootAsync(intermediateSolution, documentId, newRoot, cancellationToken).ConfigureAwait(false); 183_ = await solution.GetRequiredDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false);
Rename\ConflictEngine\RenamedSpansTracker.cs (3)
160documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 164var cleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false); 182var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Rename\IRemoteRenamerService.cs (7)
89var document = await solution.GetRequiredDocumentAsync(DocumentId, includeSourceGenerated: true, cancellation).ConfigureAwait(false); 92var tree = await document.GetRequiredSyntaxTreeAsync(cancellation).ConfigureAwait(false); 123static (loc, solution, cancellationToken) => loc.RehydrateAsync(solution, cancellationToken), solution, cancellationToken).ConfigureAwait(false); 126static (loc, solution, cancellationToken) => loc.RehydrateAsync(solution, cancellationToken), solution, cancellationToken).ConfigureAwait(false); 129static (sym, solution, cancellationToken) => sym.TryRehydrateAsync(solution, cancellationToken), solution, cancellationToken).ConfigureAwait(false); 167locBuilder.Add(await loc.RehydrateAsync(solution, cancellationToken).ConfigureAwait(false)); 248var documentTextChanges = await RemoteUtilities.GetDocumentTextChangesAsync(OldSolution, _newSolutionWithoutRenamedDocument, cancellationToken).ConfigureAwait(false);
Rename\LightweightRenameLocations.cs (4)
52static (sym, solution, cancellationToken) => sym.TryRehydrateAsync(solution, cancellationToken), Solution, cancellationToken).ConfigureAwait(false); 58static (loc, solution, cancellationToken) => loc.RehydrateAsync(solution, cancellationToken), Solution, cancellationToken).ConfigureAwait(false); 90cancellationToken).ConfigureAwait(false); 94var rehydratedLocations = await result.Value.RehydrateLocationsAsync(solution, cancellationToken).ConfigureAwait(false);
Rename\Renamer.cs (1)
170cancellationToken).ConfigureAwait(false);
Rename\Renamer.RenameSymbolDocumentAction.cs (3)
50var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 71var syntaxRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 106var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Rename\SymbolicRenameLocations.cs (1)
142cancellationToken).ConfigureAwait(false));
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (2)
372var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 390var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Serialization\SerializableSourceText.cs (1)
240=> TextAndVersion.Create(await this.SerializableSourceText.GetTextAsync(cancellationToken).ConfigureAwait(false), _version);
Shared\Extensions\DocumentExtensions.cs (1)
16var result = await SyntaxTreeIndex.GetIndexAsync(document, loadOnly: false, cancellationToken).ConfigureAwait(false);
Shared\Extensions\ProjectExtensions.cs (1)
51var document = await project.GetSourceGeneratedDocumentAsync(documentId, cancellationToken).ConfigureAwait(false);
Shared\TestHooks\AsynchronousOperationListenerProvider.cs (1)
136CancellationToken.None).ConfigureAwait(false);
Simplification\Simplifier.cs (8)
74var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 119var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 159var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 167var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 187var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 195var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 247var options = await document.GetSimplifierOptionsAsync(cancellationToken).ConfigureAwait(false); 248var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
165int read = await stream.ReadAsync(buffer.AsMemory(), cancellationToken).ConfigureAwait(false);
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
553builder.Add(await selector(item).ConfigureAwait(false)); 567builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 581builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 592builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
406builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 421builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 442builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
220return (ranToCompletion: true, await ProcessNextBatchAsync().ConfigureAwait(false));
src\Dependencies\Threading\ProducerConsumer.cs (1)
30while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ValueTaskExtensions.cs (2)
237_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 247_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\AddImport\AddImportPlacementOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
99changedRoot, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
83var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\AbstractFixAllSpanMappingService.cs (2)
45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 78var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
244var codeGenOptions = await oldDocument.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false); 256var addImportsOptions = await newDocument.GetAddImportPlacementOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CleanCodeGenerationOptions.cs (2)
42GenerationOptions = await document.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false), 43CleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationOptionsProviders.cs (2)
36var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false); 44var options = await GetCodeGenerationOptionsAsync(document, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringContextExtensions.cs (4)
46var parsedDocument = await ParsedDocument.CreateAsync(context.Document, context.CancellationToken).ConfigureAwait(false); 55var parsedDocument = await ParsedDocument.CreateAsync(context.Document, context.CancellationToken).ConfigureAwait(false); 61var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false); 84var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (5)
37var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 120var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 121var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 180var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 185var model = await document.GetRequiredNullableDisabledSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (2)
132var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 136return await ReuseExistingSpeculativeModelAsync(document, node, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (2)
94=> (await solution.GetDocumentAsync(documentId, includeSourceGenerated, cancellationToken).ConfigureAwait(false)) ?? throw CreateDocumentNotFoundException(); 97=> (await solution.GetTextDocumentAsync(documentId, cancellationToken).ConfigureAwait(false)) ?? throw CreateDocumentNotFoundException();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\DocumentFormattingOptionsProviders.cs (1)
24var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\FormatterShared.cs (1)
26var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\LineFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\SyntaxFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (2)
119var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 123var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (2)
27var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 34var currentModel = await current.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\NamingStyles\NamingStylePreferencesProviders.cs (1)
17var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
52var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
102return await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 157var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (6)
69var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 96var root = (TCompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 107root = (TCompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 165var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 236semanticModelForReduce = await newDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 291var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplifierOptionsProviders.cs (1)
22var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (2)
33var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 34var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\SemanticDocument.cs (3)
20var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 21var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 22var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\SyntacticDocument.cs (2)
30var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 31var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Storage\AbstractPersistentStorageService.cs (5)
57using (await _lock.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 61_currentPersistentStorage = await CreatePersistentStorageAsync(solutionKey, workingFolder, faultInjector, cancellationToken).ConfigureAwait(false); 74var result = await TryCreatePersistentStorageAsync(solutionKey, workingFolderPath, faultInjector, cancellationToken).ConfigureAwait(false) ?? 75await TryCreatePersistentStorageAsync(solutionKey, workingFolderPath, faultInjector, cancellationToken).ConfigureAwait(false); 92return await TryOpenDatabaseAsync(solutionKey, workingFolderPath, databaseFilePath, faultInjector, cancellationToken).ConfigureAwait(false);
Workspace\IsolatedAnalyzerReferenceSet.Core.cs (3)
214cancellationToken).ConfigureAwait(false); 236? await s_gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false) 251? await s_gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)
Workspace\ProjectSystem\ProjectSystemProject.BatchingDocumentCollection.cs (2)
399using (await _project._gate.DisposableWaitAsync().ConfigureAwait(false)) 478using (await _project._gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))
Workspace\ProjectSystem\ProjectSystemProject.cs (2)
525using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 563using (useAsync ? await _gate.DisposableWaitAsync().ConfigureAwait(false) : _gate.DisposableWait())
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (5)
184var disposableBatchScope = await project.CreateBatchScopeAsync(CancellationToken.None).ConfigureAwait(false); 233using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 244using (useAsync ? await _gate.DisposableWaitAsync().ConfigureAwait(false) : _gate.DisposableWait()) 292using (useAsync ? await _gate.DisposableWaitAsync().ConfigureAwait(false) : _gate.DisposableWait()) 340CancellationToken.None).ConfigureAwait(false);
Workspace\Solution\AnalyzerConfigDocumentState.cs (1)
27asynchronousComputeFunction: static async (self, cancellationToken) => AnalyzerConfig.Parse(await self.GetTextAsync(cancellationToken).ConfigureAwait(false), self.FilePath),
Workspace\Solution\Document.cs (3)
350var syntaxTree = await this.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 604var options = await arg.self.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false); 616return await provider.GetOptionsAsync(DocumentState, cancellationToken).ConfigureAwait(false);
Workspace\Solution\DocumentState.cs (2)
106var text = await this.GetTextAsync(cancellationToken).ConfigureAwait(false); 640return await GetTextVersionAsync(cancellationToken).ConfigureAwait(false);
Workspace\Solution\Project.cs (8)
298return await GetSourceGeneratedDocumentAsync(documentId, cancellationToken).ConfigureAwait(false); 310return await GetSourceGeneratedDocumentAsync(documentId, cancellationToken).ConfigureAwait(false); 318var generatedDocumentStates = await Solution.CompilationState.GetSourceGeneratedDocumentStatesAsync(this.State, cancellationToken).ConfigureAwait(false); 330foreach (var document in await GetSourceGeneratedDocumentsAsync(cancellationToken).ConfigureAwait(false)) 350var generatedDocumentStates = await Solution.CompilationState.GetSourceGeneratedDocumentStatesAsync(State, cancellationToken).ConfigureAwait(false); 472var index = await SyntaxTreeIndex.GetRequiredIndexAsync(d, cancellationToken).ConfigureAwait(false); 482var index = await TopLevelSyntaxTreeIndex.GetRequiredIndexAsync(d, cancellationToken).ConfigureAwait(false); 838var documentId = await State.GetDocumentIdAsync(contentHash, cancellationToken).ConfigureAwait(false);
Workspace\Solution\ProjectState.cs (10)
108_lazyLatestDocumentVersion = AsyncLazy.Create(static async (self, c) => await ComputeLatestDocumentVersionAsync(self.DocumentStates, self.AdditionalDocumentStates, c).ConfigureAwait(false), arg: this); 131var text = await documentState.GetTextAsync(cancellationToken).ConfigureAwait(false); 223var version = await state.GetTextVersionAsync(cancellationToken).ConfigureAwait(false); 232var version = await state.GetTextVersionAsync(cancellationToken).ConfigureAwait(false); 264var newVersion = await newDocument.GetTopLevelChangeTextVersionAsync(cancellationToken).ConfigureAwait(false); 279var version = await state.GetTopLevelChangeTextVersionAsync(cancellationToken).ConfigureAwait(false); 287var version = await state.GetTopLevelChangeTextVersionAsync(cancellationToken).ConfigureAwait(false); 1086await ComputeLatestDocumentVersionAsync(arg.newDocumentStates, arg.newAdditionalDocumentStates, cancellationToken).ConfigureAwait(false), 1094var finalVersion = await newDocuments[0].GetTextVersionAsync(cancellationToken).ConfigureAwait(false); 1096finalVersion = finalVersion.GetNewerVersion(await newDocuments[i].GetTextVersionAsync(cancellationToken).ConfigureAwait(false));
Workspace\Solution\ProjectState_Checksum.cs (3)
74documentChecksums: await documentChecksumsTask.ConfigureAwait(false), 75await additionalDocumentChecksumsTask.ConfigureAwait(false), 76await analyzerConfigDocumentChecksumsTask.ConfigureAwait(false));
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
265using (await buildLock.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (7)
39var canSkipRunningGenerators = await CanSkipRunningGeneratorsAsync(creationPolicy, compilationState, cancellationToken).ConfigureAwait(false); 46static (state, cancellationToken) => state.GetSyntaxTreeAsync(cancellationToken), cancellationToken).ConfigureAwait(false); 132cancellationToken).ConfigureAwait(false); 201cancellationToken).ConfigureAwait(false); 255static (state, cancellationToken) => state.GetSyntaxTreeAsync(cancellationToken), cancellationToken).ConfigureAwait(false)); 295treesToRemove.Add(await documentState.Value.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false)); 404static (state, cancellationToken) => state.GetSyntaxTreeAsync(cancellationToken), cancellationToken).ConfigureAwait(false));
Workspace\Solution\SolutionCompilationState.TranslationAction_Actions.cs (5)
40await oldState.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false), 41await newState.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false)); 146syntaxTrees.Add(await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false)); 185callback((document, await document.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false))), 213syntaxTrees.Add(await documentState.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false));
Workspace\Solution\SolutionCompilationState.WithFrozenSourceGeneratedDocumentsCompilationTracker.cs (4)
122compilationState, withFrozenSourceGeneratedDocuments: true, cancellationToken).ConfigureAwait(false); 129var replacementSyntaxTree = await replacementState.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 135var existingSyntaxTree = await existingState.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 163compilationState, withFrozenSourceGeneratedDocuments, cancellationToken).ConfigureAwait(false);
Workspace\Solution\SolutionCompilationState_Checksum.cs (1)
129var frozenSourceGeneratedDocumentTexts = await FrozenSourceGeneratedDocumentStates.GetDocumentChecksumsAndIdsAsync(cancellationToken).ConfigureAwait(false);
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (1)
153cancellationToken).ConfigureAwait(false);
Workspace\Solution\StateChecksums.cs (1)
528var text = await SerializableSourceText.FromTextDocumentStateAsync(state, cancellationToken).ConfigureAwait(false);
Workspace\Solution\TextDocument.cs (1)
93=> await State.GetTextVersionAsync(cancellationToken).ConfigureAwait(false);
Workspace\Solution\TextDocumentState.cs (2)
134var textAndVersion = await GetTextAndVersionAsync(cancellationToken).ConfigureAwait(false); 203var textAndVersion = await GetTextAndVersionAsync(cancellationToken).ConfigureAwait(false);
Workspace\Solution\TextDocumentState_Checksum.cs (1)
40var serializableText = await SerializableSourceText.FromTextDocumentStateAsync(this, cancellationToken).ConfigureAwait(false);
Workspace\Solution\VersionSource\LoadableTextAndVersionSource.cs (1)
73using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))
Workspace\Solution\VersionSource\RecoverableTextAndVersion.cs (2)
128var recoverableText = await GetRecoverableTextAsync(useAsync: true, options, cancellationToken).ConfigureAwait(false); 134var recoverableText = await GetRecoverableTextAsync(useAsync: true, options, cancellationToken).ConfigureAwait(false);
Workspace\Solution\VersionSource\RecoverableTextAndVersion.RecoverableText.cs (1)
112using (await Gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))
Workspace\Workspace.cs (2)
284cancellationToken).ConfigureAwait(false); 530using (useAsync ? await _serializationLock.DisposableWaitAsync(cancellationToken).ConfigureAwait(false) : _serializationLock.DisposableWait(cancellationToken))
Workspace\Workspace_SourceGeneration.cs (1)
57cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces.MSBuild (5)
MSBuild\BuildHostProcessManager.cs (3)
93using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 188using (await _gate.DisposableWaitAsync().ConfigureAwait(false)) 214using (await _gate.DisposableWaitAsync().ConfigureAwait(false))
Rpc\RpcClient.cs (1)
168using (await _streamWritingSemaphore.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))
src\Workspaces\MSBuild\BuildHost\Rpc\Contracts\TextReaderExtensions.cs (1)
26return await streamReader.ReadLineAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (9)
Build\ProjectBuildManager.cs (1)
334using (await s_buildManagerLock.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))
Rpc\RpcServer.cs (1)
175using (await _sendingStreamSemaphore.DisposableWaitAsync().ConfigureAwait(false))
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
553builder.Add(await selector(item).ConfigureAwait(false)); 567builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 581builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 592builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
406builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 421builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 442builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
src\Workspaces\MSBuild\BuildHost\Rpc\RpcServer.cs (1)
175using (await _sendingStreamSemaphore.DisposableWaitAsync().ConfigureAwait(false))
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\SolutionWithSourceGeneratorTests.cs (1)
1417CancellationToken.None).ConfigureAwait(false);
Microsoft.DotNet.Helix.Client (46)
generated-code\Aggregate.cs (11)
213using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 308using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 413using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 525using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 632using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 774using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 868using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 943using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 1060using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 1180using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 1261using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false))
generated-code\Analysis.cs (2)
115using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 207using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false))
generated-code\Information.cs (3)
80using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 154using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 223using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false))
generated-code\Job.cs (7)
124using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 223using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 298using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 373using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 448using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 528using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 594using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false))
generated-code\LogSearch.cs (2)
102using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 192using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false))
generated-code\Machine.cs (2)
91using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 163using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false))
generated-code\ScaleSets.cs (2)
75using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 149using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false))
generated-code\Storage.cs (3)
74using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 160using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 246using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false))
generated-code\Telemetry.cs (8)
133using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 223using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 324using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 405using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 511using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 608using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 705using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 802using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false))
generated-code\WorkItem.cs (5)
109using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 190using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 271using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 341using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false)) 422using (var _res = await Client.SendAsync(_req, cancellationToken).ConfigureAwait(false))
HelixApiTokenAuthenticationPolicy.cs (1)
26var token = await _credential.GetTokenAsync(new TokenRequestContext(Array.Empty<string>(), message.Request.ClientRequestId), message.CancellationToken).ConfigureAwait(false);
Microsoft.DotNet.Internal.SymbolHelper (2)
SymbolUploadHelper.cs (2)
430AccessToken token = await _credential.GetTokenAsync(new TokenRequestContext([AzureDevOpsResource]), ct).ConfigureAwait(false); 505string? line = await vt.ConfigureAwait(false);
Microsoft.Extensions.AI.Abstractions (7)
Functions\AIFunctionFactory.cs (7)
611ReflectionInvoke(FunctionDescriptor.Method, target, args), cancellationToken).ConfigureAwait(true); 936return await marshalResult(null, null, cancellationToken).ConfigureAwait(true); 956return await marshalResult(null, null, cancellationToken).ConfigureAwait(true); 981return await marshalResult(result, taskResultGetter.ReturnType, cancellationToken).ConfigureAwait(true); 990return await SerializeResultAsync(result, returnTypeInfo, cancellationToken).ConfigureAwait(true); 1008return await marshalResult(result, asTaskResultGetter.ReturnType, cancellationToken).ConfigureAwait(true); 1018return await SerializeResultAsync(result, returnTypeInfo, cancellationToken).ConfigureAwait(true);
Microsoft.Extensions.AI.Evaluation (3)
CompositeEvaluator.cs (1)
143cancellationToken).ConfigureAwait(false);
Utilities\TaskExtensions.cs (1)
90yield return await task.ConfigureAwait(false);
Utilities\TimingHelper.cs (1)
104result = await operation().ConfigureAwait(false);
Microsoft.Extensions.AI.Evaluation.Console (2)
src\Libraries\Microsoft.Extensions.AI.Evaluation\Utilities\TimingHelper.cs (1)
104result = await operation().ConfigureAwait(false);
Utilities\LoggerExtensions.cs (1)
128return await operation().ConfigureAwait(false);
Microsoft.Extensions.AI.Evaluation.NLP (1)
src\Libraries\Microsoft.Extensions.AI.Evaluation\Utilities\TimingHelper.cs (1)
104result = await operation().ConfigureAwait(false);
Microsoft.Extensions.AI.Evaluation.Quality (14)
CoherenceEvaluator.cs (1)
98cancellationToken)).ConfigureAwait(false);
CompletenessEvaluator.cs (1)
103cancellationToken)).ConfigureAwait(false);
EquivalenceEvaluator.cs (1)
104cancellationToken)).ConfigureAwait(false);
FluencyEvaluator.cs (1)
90cancellationToken)).ConfigureAwait(false);
GroundednessEvaluator.cs (1)
104cancellationToken)).ConfigureAwait(false);
IntentResolutionEvaluator.cs (2)
148cancellationToken)).ConfigureAwait(false); 353cancellationToken).ConfigureAwait(false);
RelevanceEvaluator.cs (1)
103cancellationToken)).ConfigureAwait(false);
RelevanceTruthAndCompletenessEvaluator.cs (2)
125cancellationToken)).ConfigureAwait(false); 301cancellationToken).ConfigureAwait(false);
RetrievalEvaluator.cs (1)
119cancellationToken)).ConfigureAwait(false);
src\Libraries\Microsoft.Extensions.AI.Evaluation\Utilities\TimingHelper.cs (1)
104result = await operation().ConfigureAwait(false);
TaskAdherenceEvaluator.cs (1)
147cancellationToken)).ConfigureAwait(false);
ToolCallAccuracyEvaluator.cs (1)
147cancellationToken)).ConfigureAwait(false);
Microsoft.Extensions.AI.Evaluation.Reporting (4)
ReportingConfiguration.cs (1)
237cancellationToken).ConfigureAwait(false);
ScenarioRun.cs (1)
165cancellationToken).ConfigureAwait(false);
Storage\DiskBasedResponseCache.CacheEntry.cs (1)
60cancellationToken).ConfigureAwait(false) ??
Storage\DiskBasedResultStore.cs (1)
72cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (4)
Storage\AzureStorageResponseCache.CacheEntry.cs (1)
66cancellationToken).ConfigureAwait(false)
Storage\AzureStorageResponseCache.cs (2)
69await CheckPathsAsync(key, cancellationToken).ConfigureAwait(false); 117await CheckPathsAsync(key, cancellationToken).ConfigureAwait(false);
Storage\AzureStorageResultStore.cs (1)
118cancellationToken).ConfigureAwait(false)
Microsoft.Extensions.AI.Evaluation.Safety (19)
CodeVulnerabilityEvaluator.cs (1)
63cancellationToken: cancellationToken).ConfigureAwait(false);
ContentHarmEvaluator.cs (1)
65cancellationToken: cancellationToken).ConfigureAwait(false);
ContentSafetyChatClient.cs (2)
70cancellationToken).ConfigureAwait(false); 103cancellationToken).ConfigureAwait(false);
ContentSafetyEvaluator.cs (1)
149cancellationToken: cancellationToken)).ConfigureAwait(false);
ContentSafetyService.cs (9)
139await GetServiceUrlAsync(annotationTask, evaluatorName, cancellationToken).ConfigureAwait(false); 146cancellationToken).ConfigureAwait(false); 152cancellationToken).ConfigureAwait(false); 177await GetServiceDiscoveryUrlAsync(evaluatorName, cancellationToken).ConfigureAwait(false); 215cancellationToken: cancellationToken).ConfigureAwait(false); 266cancellationToken: cancellationToken).ConfigureAwait(false); 324cancellationToken).ConfigureAwait(false); 379cancellationToken: cancellationToken).ConfigureAwait(false); 451await serviceConfiguration.Credential.GetTokenAsync(context, cancellationToken).ConfigureAwait(false);
GroundednessProEvaluator.cs (1)
64cancellationToken: cancellationToken).ConfigureAwait(false);
ProtectedMaterialEvaluator.cs (2)
86cancellationToken: cancellationToken).ConfigureAwait(false); 100cancellationToken: cancellationToken).ConfigureAwait(false);
src\Libraries\Microsoft.Extensions.AI.Evaluation\Utilities\TimingHelper.cs (1)
104result = await operation().ConfigureAwait(false);
UngroundedAttributesEvaluator.cs (1)
68cancellationToken: cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.AI.OpenAI (4)
OpenAIAssistantsChatClient.cs (1)
85(RunCreationOptions runOptions, ToolResources? toolResources, List<FunctionResultContent>? toolResults) = await CreateRunOptionsAsync(messages, options, cancellationToken).ConfigureAwait(false);
src\Shared\ServerSentEvents\SseParser_1.cs (3)
205while (await FillLineBufferAsync(cancellationToken).ConfigureAwait(false) != 0 && _lineLength < Utf8Bom.Length) ; 255_ = await FillLineBufferAsync(cancellationToken).ConfigureAwait(false); 527.ConfigureAwait(false);
Microsoft.Extensions.Caching.Hybrid (6)
Internal\DefaultHybridCache.L2.cs (2)
73BufferChunk result = await pending.ConfigureAwait(false) 147BufferChunk buffer = await GetFromL2DirectAsync(TagKeyPrefix + tag, cts.Token).ConfigureAwait(false);
Internal\DefaultHybridCache.StampedeStateT.cs (3)
196result = await Cache.GetFromL2DirectAsync(Key.Key, SharedToken).ConfigureAwait(false); 239if (pendingTags.IsEmpty || !await Cache.IsAnyTagExpiredAsync(pendingTags, CacheItem.CreationTimestamp).ConfigureAwait(false)) 274newValue = await _underlying!(_state!, SharedToken).ConfigureAwait(false);
Internal\DefaultHybridCache.TagInvalidation.cs (1)
155if (await @this.IsTagExpiredAsync(tags[i], timestamp).ConfigureAwait(false))
Microsoft.Extensions.Caching.StackExchangeRedis (4)
RedisCache.cs (4)
216var cache = await ConnectAsync(token).ConfigureAwait(false); 434var cache = await ConnectAsync(token).ConfigureAwait(false); 489var cache = await ConnectAsync(token).ConfigureAwait(false); 753var cache = await ConnectAsync(token).ConfigureAwait(false);
Microsoft.Extensions.Diagnostics.Probes (1)
TcpEndpointProbesService.cs (1)
87using var client = await _listener.AcceptTcpClientAsync(cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.Http (1)
Logging\HttpClientLoggerHandler.cs (1)
33? await _httpClientAsyncLogger.LogRequestStartAsync(request, cancellationToken).ConfigureAwait(false)
Microsoft.Extensions.Http.Diagnostics (9)
Logging\Internal\HttpRequestBodyReader.cs (2)
66return await ReadFromStreamAsync(request, readSizeLimit, joinedTokenSource.Token).ConfigureAwait(false); 90var read = await streamToReadFrom.ReadAsync(buffer.AsMemory(0, readLimit), cancellationToken).ConfigureAwait(false);
Logging\Internal\HttpRequestReader.cs (2)
113logRecord.ResponseBody = await _httpResponseBodyReader.ReadAsync(response, cancellationToken).ConfigureAwait(false); 136.ConfigureAwait(false);
Logging\Internal\HttpResponseBodyReader.cs (5)
81return await ReadFromStreamAsync(response, readSizeLimit, joinedTokenSource.Token).ConfigureAwait(false); 101string bufferedString = await BufferStreamAndWriteToPipeAsync(streamToReadFrom, pipe.Writer, readSizeLimit, cancellationToken).ConfigureAwait(false); 134int bytesRead = await stream.ReadAtLeastAsync(memory, bufferSize, false, cancellationToken).ConfigureAwait(false); 154int bytesRead = await stream.ReadAsync(memory, cancellationToken).ConfigureAwait(false); 162FlushResult result = await writer.FlushAsync(cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Logging\HttpRequestBodyReaderTest.cs (1)
114await httpRequestBodyReader.ReadAsync(httpRequest, token).ConfigureAwait(false);
Microsoft.Extensions.Http.Resilience (5)
Hedging\Internals\RequestMessageSnapshotStrategy.cs (1)
34return await callback(context, state).ConfigureAwait(context.ContinueOnCapturedContext);
Polly\HttpRetryStrategyOptionsExtensions.cs (1)
54var result = await shouldHandle(args).ConfigureAwait(args.Context.ContinueOnCapturedContext);
Resilience\ResilienceHandler.cs (1)
89.ConfigureAwait(context.ContinueOnCapturedContext);
Routing\Internal\RoutingResilienceStrategy.cs (2)
39return await callback(context, state).ConfigureAwait(context.ContinueOnCapturedContext); 55return await callback(context, state).ConfigureAwait(context.ContinueOnCapturedContext);
Microsoft.Extensions.Options.Contextual (1)
Internal\ContextualOptionsFactory.cs (1)
101using var configurer = await loadTasks[i].ConfigureAwait(false); // ValueTasks are awaited only here and only once.
Microsoft.Extensions.Options.Contextual.Tests (1)
AcceptanceTests.cs (1)
57WeatherForecastOptions options = await _contextualOptions.GetAsync(context, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.ServiceDiscovery (6)
Http\HttpServiceEndpointResolver.cs (2)
50var (valid, endpoint) = await resolver.TryGetEndpointAsync(request, cancellationToken).ConfigureAwait(false); 206await _watcher.GetEndpointsAsync(cancellationToken).ConfigureAwait(false);
Http\ResolvingHttpClientHandler.cs (1)
25var result = await _resolver.GetEndpointAsync(request, cancellationToken).ConfigureAwait(false);
Http\ResolvingHttpDelegatingHandler.cs (1)
46var result = await _resolver.GetEndpointAsync(request, cancellationToken).ConfigureAwait(false);
ServiceEndpointResolver.cs (2)
58var (valid, result) = await resolver.GetEndpointsAsync(cancellationToken).ConfigureAwait(false); 199var endpoints = await _watcher.GetEndpointsAsync(cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.ServiceDiscovery.Dns (13)
DnsServiceEndpointProvider.cs (1)
36var addresses = await resolver.ResolveIPAddressesAsync(hostName, ShutdownToken).ConfigureAwait(false);
DnsSrvServiceEndpointProvider.cs (1)
39var result = await resolver.ResolveServiceAsync(srvQuery, cancellationToken: ShutdownToken).ConfigureAwait(false);
Resolver\DnsResolver.cs (11)
137AddressResult[] ipv4Addresses = await ipv4AddressesTask.ConfigureAwait(false); 138AddressResult[] ipv6Addresses = await ipv6AddressesTask.ConfigureAwait(false); 348(SendQueryError error, TResult[] result) = await SendQueryWithRetriesAsync(name, dnsSafeName, queryType, processResponseFunc, cancellationToken).ConfigureAwait(false); 377SendQueryResult queryResult = await SendQueryToServerWithTimeoutAsync(serverEndPoint, name, dnsSafeName, queryType, attempt, cancellationToken).ConfigureAwait(false); 472return await SendQueryToServerAsync(serverEndPoint, name, dnsSafeName, queryType, attempt, cts.Token).ConfigureAwait(false); 516(responseReader, header) = await SendDnsQueryCoreUdpAsync(serverEndPoint, dnsSafeName, queryType, cancellationToken).ConfigureAwait(false); 523(responseReader, header, sendError) = await SendDnsQueryCoreTcpAsync(serverEndPoint, dnsSafeName, queryType, cancellationToken).ConfigureAwait(false); 727await socket.SendToAsync(memory.Slice(0, length), SocketFlags.None, serverEndPoint, cancellationToken).ConfigureAwait(false); 737int packetLength = await socket.ReceiveAsync(memory, SocketFlags.None, cancellationToken).ConfigureAwait(false); 778await socket.SendAsync(buffer.AsMemory(0, length + 2), SocketFlags.None, cancellationToken).ConfigureAwait(false); 784int read = await socket.ReceiveAsync(buffer.AsMemory(bytesRead), SocketFlags.None, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.ServiceDiscovery.Tests (1)
ServiceEndpointResolverTests.cs (1)
261await resolveTask.ConfigureAwait(false);
Microsoft.Extensions.ServiceDiscovery.Yarp (1)
ServiceDiscoveryDestinationResolver.cs (1)
60var result = await resolver.GetEndpointsAsync(serviceName, cancellationToken).ConfigureAwait(false);
Microsoft.ML.Data (1)
Transforms\RowShufflingTransformer.cs (1)
571while (await _toProduceChannel.Reader.WaitToReadAsync().ConfigureAwait(false))
Microsoft.ML.Tokenizers (12)
Model\BertTokenizer.cs (1)
702(Dictionary<StringSpanOrdinalKey, int> vocab, Dictionary<int, string> vocabReverse) = await LoadVocabAsync(vocabStream, useAsync: true, cancellationToken).ConfigureAwait(false);
Model\BPETokenizer.cs (3)
273(Dictionary<StringSpanOrdinalKey, int>? vocab, Vec<(string, string)> merges) result = await ReadModelDataAsync(vocabStream, mergesStream, useAsync: true).ConfigureAwait(false); 1102await ConvertMergesToHashmapAsync(merges, useAsync, cancellationToken).ConfigureAwait(false) : 1146await Helpers.ReadLineAsync(reader, cancellationToken).ConfigureAwait(false) :
Model\TiktokenTokenizer.cs (6)
168string? line = useAsync ? await Helpers.ReadLineAsync(reader, cancellationToken).ConfigureAwait(false) : reader.ReadLine(); 179line = useAsync ? await Helpers.ReadLineAsync(reader, cancellationToken).ConfigureAwait(false) : reader.ReadLine(); 189line = useAsync ? await Helpers.ReadLineAsync(reader, cancellationToken).ConfigureAwait(false) : reader.ReadLine(); 203} while ((line = useAsync ? await Helpers.ReadLineAsync(reader, cancellationToken).ConfigureAwait(false) : reader.ReadLine()) is not null); 226await Helpers.ReadLineAsync(reader, cancellationToken).ConfigureAwait(false) : 1395await LoadTiktokenBpeAsync(vocabStream, useAsync: true, cancellationToken).ConfigureAwait(false);
Model\WordPieceTokenizer.cs (2)
103string? line = useAsync ? await Helpers.ReadLineAsync(reader, cancellationToken).ConfigureAwait(false) : reader.ReadLine(); 115line = useAsync ? await Helpers.ReadLineAsync(reader, cancellationToken).ConfigureAwait(false) : reader.ReadLine();
Microsoft.VisualBasic.Forms.Tests (1)
System\Windows\Forms\SingleInstanceHelpersTests.vb (1)
72.ConfigureAwait(continueOnCapturedContext:=True)
Microsoft.VisualStudio.LanguageServices (71)
CodeCleanup\AbstractCodeCleanUpFixer.cs (1)
228callback((document.Id, await fixedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false)));
CodeLens\CodeLensCallbackListener.cs (5)
80var projectVersion = await service.GetProjectCodeLensVersionAsync(solution, project.Id, cancellationToken).ConfigureAwait(false); 108var currentProjectVersion = await service.GetProjectCodeLensVersionAsync(solution, document.Project.Id, cancellationToken).ConfigureAwait(false); 143var projectVersion = await service.GetProjectCodeLensVersionAsync(solution, document.Id.ProjectId, cancellationToken).ConfigureAwait(false); 187var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 255sourceGeneratorDocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false);
CodeLens\VisualStudioCodeLensReferencesService.cs (4)
48cancellationToken).ConfigureAwait(false); 73cancellationToken).ConfigureAwait(false); 105cancellationToken).ConfigureAwait(false); 130cancellationToken).ConfigureAwait(false);
EditorConfigSettings\SettingsEditorControl.xaml.cs (1)
96var originalText = await analyzerConfigDocument.GetValueTextAsync(default).ConfigureAwait(false);
FindReferences\Contexts\AbstractTableDataSourceFindUsagesContext.cs (2)
407var sourceText = await documentSpan.Document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 440var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Implementation\AbstractEditorFactory.cs (3)
335var cleanupOptions = await addedDocument.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(true); 344var rootToFormat = await addedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(true); 347var unformattedText = await addedDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(true);
InheritanceMargin\InheritanceMarginTaggerProvider.cs (1)
98cancellationToken).ConfigureAwait(false);
KeybindingReset\KeybindingResetDetector.cs (1)
188currentStatus = await IsReSharperRunningAsync(cancellationToken).ConfigureAwait(false);
LanguageClient\VisualStudioLogHubLoggerFactory.cs (2)
48var configuration = await TraceConfiguration.CreateTraceConfigurationInstanceAsync(service, ownsServiceBroker: true, cancellationToken).ConfigureAwait(false); 56var traceSource = await configuration.RegisterLogSourceAsync(logId, logOptions, cancellationToken).ConfigureAwait(false);
Packaging\PackageInstallerServiceFactory.cs (3)
232var packageSourceProvider = await GetPackageSourceProviderAsync().ConfigureAwait(false); 507var nugetService = await serviceBroker.GetProxyAsync<INuGetProjectService>(NuGetServices.NuGetProjectServiceV1, cancellationToken: cancellationToken).ConfigureAwait(false); 516return await doWorkAsync(nugetService, cancellationToken).ConfigureAwait(false);
ProjectSystem\BrokeredService\WorkspaceProject.cs (15)
34var disposableBatchScope = await _project.CreateBatchScopeAsync(cancellationToken).ConfigureAwait(false); 43var disposableBatchScope = await _project.CreateBatchScopeAsync(cancellationToken).ConfigureAwait(false); 52var disposableBatchScope = await _project.CreateBatchScopeAsync(cancellationToken).ConfigureAwait(false); 61var disposableBatchScope = await _project.CreateBatchScopeAsync(cancellationToken).ConfigureAwait(false); 69var disposableBatchScope = await _project.CreateBatchScopeAsync(cancellationToken).ConfigureAwait(false); 78var disposableBatchScope = await _project.CreateBatchScopeAsync(cancellationToken).ConfigureAwait(false); 87var disposableBatchScope = await _project.CreateBatchScopeAsync(cancellationToken).ConfigureAwait(false); 96var disposableBatchScope = await _project.CreateBatchScopeAsync(cancellationToken).ConfigureAwait(false); 109var disposableBatchScope = await _project.CreateBatchScopeAsync(cancellationToken).ConfigureAwait(false); 120var disposableBatchScope = await _project.CreateBatchScopeAsync(cancellationToken).ConfigureAwait(false); 132var disposableBatchScope = await _project.CreateBatchScopeAsync(cancellationToken).ConfigureAwait(false); 141var disposableBatchScope = await _project.CreateBatchScopeAsync(cancellationToken).ConfigureAwait(false); 150var disposableBatchScope = await _project.CreateBatchScopeAsync(cancellationToken).ConfigureAwait(false); 159var disposableBatchScope = await _project.CreateBatchScopeAsync(cancellationToken).ConfigureAwait(false); 186var disposableBatchScope = await _project.CreateBatchScopeAsync(cancellationToken).ConfigureAwait(false);
ProjectSystem\VisualStudioProjectFactory.cs (1)
117await ((IVsTypeScriptVisualStudioProjectFactory)this).CreateAndAddToWorkspaceAsync(projectSystemName, language, projectFilePath, hierarchy, projectGuid, CancellationToken.None).ConfigureAwait(false));
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
631var document = await solutionChanges.OldSolution.GetRequiredDocumentAsync(docId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(true);
Snippets\SnippetExpansionClient.cs (2)
763var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 897var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(true);
Snippets\SnippetFunctions\SnippetFunctionGenerateSwitchCases.cs (1)
58var simplifierOptions = await document.GetSimplifierOptionsAsync(cancellationToken).ConfigureAwait(false);
Snippets\SnippetFunctions\SnippetFunctionSimpleTypeName.cs (1)
45var simplifierOptions = await document.GetSimplifierOptionsAsync(cancellationToken).ConfigureAwait(false);
StackTraceExplorer\StackFrameViewModel.cs (1)
112var sourceText = await textDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
SymbolSearch\VisualStudioSymbolSearchService.cs (4)
121Workspace, FileDownloader.Factory.Instance, cancellationToken).ConfigureAwait(false); 137source, typeQuery, namespaceQuery, cancellationToken).ConfigureAwait(false); 147source, assemblyName, cancellationToken).ConfigureAwait(false); 208typeQuery, namespaceQuery, cancellationToken).ConfigureAwait(false);
TableDataSource\Suppression\VisualStudioDiagnosticListSuppressionStateService.cs (2)
264var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 307var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
TaskList\ExternalErrorDiagnosticUpdateSource.cs (1)
287cancellationToken: cancellationToken).ConfigureAwait(false);
Telemetry\VisualStudioWorkspaceTelemetryService.cs (1)
64cancellationToken).ConfigureAwait(false);
UnusedReferences\UnusedReferenceAnalysisService.cs (1)
35cancellationToken).ConfigureAwait(false);
ValueTracking\ValueTrackingCommandHandler.cs (5)
136solution, child, children: [], toolWindow.ViewModel, _glyphService, valueTrackingService, _globalOptions, _threadingContext, _listener, _threadOperationExecutor, cancellationToken).ConfigureAwait(false); 146solution, child, children: [], toolWindow.ViewModel, _glyphService, valueTrackingService, _globalOptions, _threadingContext, _listener, _threadOperationExecutor, cancellationToken).ConfigureAwait(false); 151solution, parent, childItems.ToImmutable(), toolWindow.ViewModel, _glyphService, valueTrackingService, _globalOptions, _threadingContext, _listener, _threadOperationExecutor, cancellationToken).ConfigureAwait(false); 169var roslynPackage = await RoslynPackage.GetOrLoadAsync(_threadingContext, _serviceProvider, cancellationToken).ConfigureAwait(false); 181var roslynPackage = await RoslynPackage.GetOrLoadAsync(_threadingContext, _serviceProvider, cancellationToken).ConfigureAwait(false);
Venus\ContainedDocument.DocumentServiceProvider.cs (2)
89var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 138var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Workspace\SourceGeneratedFileManager.cs (2)
347generatedDocument = await project.GetSourceGeneratedDocumentAsync(_documentIdentity.DocumentId, cancellationToken).ConfigureAwait(false); 354generatedSource = await generatedDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Workspace\VisualStudioDocumentNavigationService.cs (5)
60var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 77var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 128var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 191var textDocument = await solution.GetTextDocumentAsync(documentId, cancellationToken).ConfigureAwait(false); 264var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Workspace\VisualStudioSourceGeneratorTelemetryCollectorWorkspaceServiceFactory.cs (1)
94var remoteTelemetryData = await client.TryInvokeAsync(static (IRemoteSourceGenerationService service, CancellationToken ct) => service.FetchAndClearTelemetryKeyValuePairsAsync(ct), cancellationToken).ConfigureAwait(false);
Workspace\VisualStudioWorkspaceStatusServiceFactory.cs (2)
113var status = await GetProgressStageStatusAsync(cancellationToken).ConfigureAwait(false); 133var status = await GetProgressStageStatusAsync(cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices.CSharp (6)
LanguageService\CSharpHelpContextService.cs (2)
45var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 50var semanticModel = await document.ReuseExistingSpeculativeModelAsync(span, cancellationToken).ConfigureAwait(false);
SemanticSearch\SemanticSearchQueryExecutor.cs (4)
84var options = await newDocument.GetOrganizeImportsOptionsAsync(cancellationToken).ConfigureAwait(false); 136cancellationToken).ConfigureAwait(false); 161cancellationToken).ConfigureAwait(false); 164var newSolution = await resultsObserver.GetUpdatedSolutionAsync(solution, cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (6)
ProjectSystemShim\CPS\SourceFileHandlingTests.cs (6)
131var disposableBatchScope = await project.CreateBatchScopeAsync(CancellationToken.None).ConfigureAwait(false); 173var disposableBatchScope = await project.CreateBatchScopeAsync(CancellationToken.None).ConfigureAwait(false); 224var disposableBatchScope = await project.CreateBatchScopeAsync(CancellationToken.None).ConfigureAwait(false); 263var disposableBatchScope = await project.CreateBatchScopeAsync(CancellationToken.None).ConfigureAwait(false); 334var disposableBatchScope = await project.CreateBatchScopeAsync(CancellationToken.None).ConfigureAwait(false); 382var disposableBatchScope = await project.CreateBatchScopeAsync(CancellationToken.None).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices.DevKit (5)
EditAndContinue\ManagedHotReloadLanguageServiceBridge.cs (1)
53=> (await service.GetUpdatesAsync(runningProjects.SelectAsArray(static info => info.ToContract()), cancellationToken).ConfigureAwait(false)).FromContract();
SourceLink\VSCodeSourceLinkService.cs (2)
28var proxy = await _serviceBroker.GetProxyAsync<IDebuggerSymbolLocatorService>(BrokeredServiceDescriptors.DebuggerSymbolLocatorService, cancellationToken).ConfigureAwait(false); 52var proxy = await _serviceBroker.GetProxyAsync<IDebuggerSourceLinkService>(BrokeredServiceDescriptors.DebuggerSourceLinkService, cancellationToken).ConfigureAwait(false);
src\EditorFeatures\Core\EditAndContinue\Contracts\ManagedHotReloadServiceBridge.cs (2)
17=> (await service.GetActiveStatementsAsync(cancellation).ConfigureAwait(false)).SelectAsArray(a => a.ToContract()); 20=> (await service.GetAvailabilityAsync(module, cancellation).ConfigureAwait(false)).ToContract();
Microsoft.VisualStudio.LanguageServices.Implementation (13)
CodeModel\AbstractCodeModelService.cs (2)
1044var options = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 1090var simplifierOptions = await document.GetSimplifierOptionsAsync(cancellationToken).ConfigureAwait(false);
CodeModel\FileCodeModel.cs (2)
346var formattingOptions = await result.GetSyntaxFormattingOptionsAsync(CancellationToken.None).ConfigureAwait(false); 703var simplifierOptions = await _batchDocument.GetSimplifierOptionsAsync(CancellationToken.None).ConfigureAwait(false);
ProjectSystem\CPS\CPSProject_IWorkspaceProjectContext.cs (1)
275=> await _projectSystemProject.CreateBatchScopeAsync(cancellationToken).ConfigureAwait(false);
ProjectSystem\CPS\CPSProjectFactory.cs (1)
132var disposableBatchScope = await project.CreateBatchScopeAsync(cancellationToken).ConfigureAwait(false);
ProjectSystem\CPS\TempPECompiler.cs (1)
52syntaxTrees.Add(await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false));
SolutionExplorer\AnalyzerItem\AnalyzerItemSource.cs (1)
165cancellationToken).ConfigureAwait(false);
SolutionExplorer\DiagnosticItem\BaseDiagnosticAndGeneratorItemSource.cs (3)
159var descriptors = await GetDiagnosticDescriptorsAsync().ConfigureAwait(false); 186cancellationToken).ConfigureAwait(false); 217cancellationToken).ConfigureAwait(false);
SolutionExplorer\SourceGeneratedFileItems\SourceGeneratedFileItemSource.cs (1)
61var sourceGeneratedDocuments = await project.GetSourceGeneratedDocumentsAsync(cancellationToken).ConfigureAwait(false);
SolutionExplorer\SymbolTree\RootSymbolTreeItemCollectionSource.cs (1)
80var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
Client\RemoteLanguageServiceWorkspace.cs (2)
155using (await s_RemotePathsGate.DisposableWaitAsync(CancellationToken.None).ConfigureAwait(false)) 296var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Microsoft.VisualStudio.LanguageServices.Xaml (12)
Features\InlineRename\XamlEditorInlineRenameService.cs (1)
170var oldSource = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Implementation\LanguageServer\Handler\Completion\CompletionHandler.cs (1)
66var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Implementation\LanguageServer\Handler\Definitions\GoToDefinitionHandler.cs (2)
118var document = await solution.GetTextDocumentAsync(new TextDocumentIdentifier { DocumentUri = ProtocolConversions.CreateAbsoluteDocumentUri(sourceDefinition.FilePath) }, cancellationToken).ConfigureAwait(false); 166var navigableDocument = await item.Document.GetRequiredDocumentAsync(solution, cancellationToken).ConfigureAwait(false);
Implementation\LanguageServer\Handler\Diagnostics\AbstractPullDiagnosticHandler.cs (2)
79var document = await context.Solution.GetDocumentAsync(previousResult.TextDocument, cancellationToken).ConfigureAwait(false); 97var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Implementation\LanguageServer\Handler\FoldingRanges\FoldingRangesHandler.cs (1)
54var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Implementation\LanguageServer\Handler\Formatting\AbstractFormatDocumentHandlerBase.cs (1)
35var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Implementation\LanguageServer\Handler\Formatting\FormatDocumentOnTypeHandler.cs (1)
51var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Implementation\LanguageServer\Handler\Hover\HoverHandler.cs (1)
81var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Implementation\LanguageServer\Handler\OnAutoInsert\OnAutoInsertHandler.cs (1)
47var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Implementation\LanguageServer\Handler\OnTypeRename\OnTypeRenameHandler.cs (1)
79var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Roslyn.Diagnostics.Analyzers (71)
ImportingConstructorShouldBeObsoleteCodeFixProvider.cs (8)
87var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 88var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 119var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 120var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 140var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 141var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 165var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 184var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
553builder.Add(await selector(item).ConfigureAwait(false)); 567builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 581builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 592builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
406builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 421builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 442builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
220return (ranToCompletion: true, await ProcessNextBatchAsync().ConfigureAwait(false));
src\Dependencies\Threading\ChannelReaderExtensions.cs (1)
22while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ProducerConsumer.cs (1)
30while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ValueTaskExtensions.cs (2)
237_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 247_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
src\RoslynAnalyzers\Utilities\Refactoring\CodeRefactoringContextExtensions.cs (1)
45var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\AddImport\AddImportPlacementOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
99changedRoot, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
83var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\AbstractFixAllSpanMappingService.cs (2)
45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 78var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
244var codeGenOptions = await oldDocument.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false); 256var addImportsOptions = await newDocument.GetAddImportPlacementOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CleanCodeGenerationOptions.cs (2)
42GenerationOptions = await document.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false), 43CleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationOptionsProviders.cs (2)
36var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false); 44var options = await GetCodeGenerationOptionsAsync(document, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringContextExtensions.cs (4)
46var parsedDocument = await ParsedDocument.CreateAsync(context.Document, context.CancellationToken).ConfigureAwait(false); 55var parsedDocument = await ParsedDocument.CreateAsync(context.Document, context.CancellationToken).ConfigureAwait(false); 61var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false); 84var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (5)
37var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 120var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 121var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 180var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 183var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
132var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 136return await ReuseExistingSpeculativeModelAsync(document, node, cancellationToken).ConfigureAwait(false); 225var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\DocumentFormattingOptionsProviders.cs (1)
24var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\FormatterShared.cs (1)
26var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\LineFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\SyntaxFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (2)
119var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 123var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (2)
27var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 34var currentModel = await current.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\NamingStyles\NamingStylePreferencesProviders.cs (1)
17var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
52var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
102return await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 157var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (6)
69var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 96var root = (TCompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 107root = (TCompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 165var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 236semanticModelForReduce = await newDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 291var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplifierOptionsProviders.cs (1)
22var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (2)
33var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 34var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\SemanticDocument.cs (3)
20var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 21var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 22var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\SyntacticDocument.cs (2)
30var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 31var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Roslyn.Diagnostics.CSharp.Analyzers (7)
CSharpDoNotUseDebugAssertForInterpolatedStringsFixer.cs (1)
58var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeFixesAndRefactorings\CSharpFixAllSpanMappingService.cs (1)
27var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Formatting\CSharpSyntaxFormattingOptionsProviders.cs (1)
15var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpRemoveUnnecessaryImportsService.cs (2)
52var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 71var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
41var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Simplification\CSharpSimplifierOptionsProviders.cs (1)
15var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
Roslyn.VisualStudio.DiagnosticsWindow (2)
OptionPages\PerformanceLoggersPage.cs (1)
74CancellationToken.None).ConfigureAwait(false));
Panels\WorkspacePanel.xaml.cs (1)
91var snapshotText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Roslyn.VisualStudio.Next.UnitTests (11)
Remote\SerializationValidator.cs (2)
32var value = await GetAssetAsync<T>(assetPath, checksum, cancellationToken).ConfigureAwait(false); 85var data = await AssetStorage.GetTestAccessor().GetRequiredAssetAsync(checksum, CancellationToken.None).ConfigureAwait(false);
Remote\SnapshotSerializationTests.cs (2)
258using (var scope1 = await validator.AssetStorage.StoreAssetsAsync(solution, CancellationToken.None).ConfigureAwait(false)) 264using (var scope2 = await validator.AssetStorage.StoreAssetsAsync(solution, CancellationToken.None).ConfigureAwait(false))
Services\ServiceHubServicesTests.cs (7)
733CancellationToken.None).ConfigureAwait(false); 817CancellationToken.None).ConfigureAwait(false); 872CancellationToken.None).ConfigureAwait(false); 1428CancellationToken.None).ConfigureAwait(false); 1498CancellationToken.None).ConfigureAwait(false); 1582CancellationToken.None).ConfigureAwait(false); 1661CancellationToken.None).ConfigureAwait(false);
Shared (3)
ServerSentEvents\SseParser_1.cs (3)
205while (await FillLineBufferAsync(cancellationToken).ConfigureAwait(false) != 0 && _lineLength < Utf8Bom.Length) ; 255_ = await FillLineBufferAsync(cancellationToken).ConfigureAwait(false); 527.ConfigureAwait(false);
System.Diagnostics.Process (1)
System\Diagnostics\AsyncStreamReader.cs (1)
97int bytesRead = await _stream.ReadAsync(new Memory<byte>(_byteBuffer), _cts.Token).ConfigureAwait(false);
System.DirectoryServices.Protocols (1)
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (1)
341DirectoryResponse response = await vt.ConfigureAwait(false);
System.Formats.Tar (12)
System\Formats\Tar\SubReadStream.cs (1)
157int ret = await _superStream.ReadAsync(buffer, cancellationToken).ConfigureAwait(false);
System\Formats\Tar\TarFile.cs (1)
508while ((entry = await reader.GetNextEntryAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) != null)
System\Formats\Tar\TarHeader.Read.cs (2)
279_dataStream = await GetDataStreamAsync(archiveStream, copyData, _size, cancellationToken).ConfigureAwait(false); 298await TarHelpers.SkipBlockAlignmentPaddingAsync(archiveStream, _size, cancellationToken).ConfigureAwait(false);
System\Formats\Tar\TarReader.cs (8)
259await TarHelpers.SkipBlockAlignmentPaddingAsync(_archiveStream, _previouslyReadEntry._header._size, cancellationToken).ConfigureAwait(false); 268TarHeader? header = await TryGetNextEntryHeaderAsync(copyData, cancellationToken).ConfigureAwait(false); 345TarHeader? header = await TarHeader.TryGetNextHeaderAsync(_archiveStream, copyData, TarEntryFormat.Unknown, processDataBlock: true, cancellationToken).ConfigureAwait(false); 356TarHeader? mainHeader = await TryProcessExtendedAttributesHeaderAsync(header, copyData, cancellationToken).ConfigureAwait(false); 366TarHeader? mainHeader = await TryProcessGnuMetadataHeaderAsync(header, copyData, cancellationToken).ConfigureAwait(false); 416TarHeader? actualHeader = await TarHeader.TryGetNextHeaderAsync(_archiveStream, copyData, TarEntryFormat.Pax, processDataBlock: false, cancellationToken).ConfigureAwait(false); 529TarHeader? secondHeader = await TarHeader.TryGetNextHeaderAsync(_archiveStream, copyData, TarEntryFormat.Gnu, processDataBlock: true, cancellationToken).ConfigureAwait(false); 548TarHeader? thirdHeader = await TarHeader.TryGetNextHeaderAsync(_archiveStream, copyData, TarEntryFormat.Gnu, processDataBlock: true, cancellationToken).ConfigureAwait(false);
System.IO.Compression (14)
System\IO\Compression\DeflateManaged\DeflateManagedStream.cs (1)
209int bytesRead = await readTask.ConfigureAwait(false);
System\IO\Compression\DeflateZLib\DeflateStream.cs (1)
466int n = await _stream.ReadAsync(new Memory<byte>(_buffer, 0, _buffer.Length), cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipArchive.Async.cs (1)
201int currBytesRead = await _archiveStream.ReadAtLeastAsync(fileBuffer, ZipCentralDirectoryFileHeader.BlockConstantSectionSize, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipArchiveEntry.Async.cs (2)
175await _archive.ArchiveStream.ReadAtLeastAsync(_compressedBytes[i], maxSingleBufferSize, throwOnEndOfStream: true, cancellationToken).ConfigureAwait(false); 177await _archive.ArchiveStream.ReadAtLeastAsync(_compressedBytes[_compressedBytes.Length - 1], (int)(_compressedSize % maxSingleBufferSize), throwOnEndOfStream: true, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipBlocks.Async.cs (6)
63int bytesRead = await stream.ReadAtLeastAsync(blockContents, blockContents.Length, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false); 88int bytesRead = await stream.ReadAtLeastAsync(blockContents, blockContents.Length, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false); 151int bytesRead = await stream.ReadAtLeastAsync(blockBytes, blockBytes.Length, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false); 156bytesRead = await stream.ReadAtLeastAsync(blockBytes, blockBytes.Length, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false); 203int realBytesRead = await furtherReads.ReadAtLeastAsync(collatedHeader.AsMemory(remainingBufferLength..), bytesToRead, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false); 248int bytesRead = await stream.ReadAtLeastAsync(blockContents, blockContents.Length, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipCustomStreams.cs (1)
359int ret = await _superStream.ReadAsync(buffer, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipHelper.Async.cs (2)
101bytesRead = await stream.ReadAtLeastAsync(buffer, buffer.Length, throwOnEndOfStream: true, cancellationToken).ConfigureAwait(false); 108bytesRead = await stream.ReadAtLeastAsync(buffer, bytesToRead, throwOnEndOfStream: true, cancellationToken).ConfigureAwait(false);
System.IO.Compression.Brotli (1)
System\IO\Compression\dec\BrotliStream.Decompress.cs (1)
154int bytesRead = await _stream.ReadAsync(_buffer.AsMemory(_bufferCount), cancellationToken).ConfigureAwait(false);
System.IO.Pipelines (11)
System\IO\Pipelines\PipeReader.cs (3)
70ReadResult result = await ReadAsync(cancellationToken).ConfigureAwait(false); 236ReadResult result = await ReadAsync(cancellationToken).ConfigureAwait(false); 258FlushResult flushResult = await writeAsync(destination, memory, cancellationToken).ConfigureAwait(false);
System\IO\Pipelines\PipeReaderStream.cs (1)
107ReadResult result = await _pipeReader.ReadAsync(cancellationToken).ConfigureAwait(false);
System\IO\Pipelines\PipeWriter.cs (2)
128int read = await source.ReadAsync(buffer, cancellationToken).ConfigureAwait(false); 137FlushResult result = await FlushAsync(cancellationToken).ConfigureAwait(false);
System\IO\Pipelines\PipeWriterStream.cs (1)
115FlushResult result = await valueTask.ConfigureAwait(false);
System\IO\Pipelines\StreamPipeReader.cs (3)
262await reader.InnerStream.ReadAsync(Memory<byte>.Empty, tokenSource.Token).ConfigureAwait(false); 271int length = await reader.InnerStream.ReadAsync(buffer, tokenSource.Token).ConfigureAwait(false); 339FlushResult flushResult = await destination.WriteAsync(segment.Memory.Slice(segmentIndex), tokenSource.Token).ConfigureAwait(false);
System\IO\Pipelines\StreamPipeWriter.cs (1)
248await FlushAsyncInternal(writeToStream: exception == null, data: Memory<byte>.Empty).ConfigureAwait(false);
System.IO.Pipes (3)
System\IO\Pipes\NamedPipeServerStream.Unix.cs (1)
86acceptedSocket = await _instance!.ListeningSocket.AcceptAsync(linkedTokenSource.Token).ConfigureAwait(false);
System\IO\Pipes\PipeStream.Unix.cs (2)
307return await InternalHandle!.PipeSocket.ReceiveAsync(destination, SocketFlags.None, cancellationToken).ConfigureAwait(false); 321int bytesWritten = await _handle!.PipeSocket.SendAsync(source, SocketFlags.None, cancellationToken).ConfigureAwait(false);
System.Net.Http (93)
System\Net\Http\MultipartContent.cs (1)
546int bytesRead = await _current.ReadAsync(buffer, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.cs (6)
241HttpResponseMessage response = await InnerSendAsync(request, async, isProxyAuth, doRequestAuth, pool, cancellationToken).ConfigureAwait(false); 255if (await TrySetDigestAuthToken(request, challenge.Credential, digestResponse, isProxyAuth).ConfigureAwait(false)) 258response = await InnerSendAsync(request, async, isProxyAuth, doRequestAuth, pool, cancellationToken).ConfigureAwait(false); 265await TrySetDigestAuthToken(request, challenge.Credential, digestResponse, isProxyAuth).ConfigureAwait(false)) 268response = await InnerSendAsync(request, async, isProxyAuth, doRequestAuth, pool, cancellationToken).ConfigureAwait(false); 300response = await InnerSendAsync(request, async, isProxyAuth, doRequestAuth, pool, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs (1)
106connection = await connectionPool.CreateHttp11ConnectionAsync(request, async, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\ChunkedEncodingReadStream.cs (2)
189int bytesRead = await _connection.ReadAsync(buffer.Slice(0, (int)Math.Min((ulong)buffer.Length, _chunkBytesRemaining))).ConfigureAwait(false); 209await _connection.ReadAsync(buffer).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\ConnectHelper.cs (1)
131}, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\ConnectionCloseReadStream.cs (1)
60bytesRead = await readTask.ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.cs (15)
423response = await TrySendUsingHttp3Async(request, cancellationToken).ConfigureAwait(false); 448connection = await http2ConnectionWaiter.WaitForConnectionAsync(request, this, async, cancellationToken).ConfigureAwait(false); 456await connection.InitialSettingsReceived.WaitWithCancellationAsync(cancellationToken).ConfigureAwait(false); 480connection = await http11ConnectionWaiter.WaitForConnectionAsync(request, this, async, cancellationToken).ConfigureAwait(false); 573stream = await ConnectToTcpHostAsync(_originAuthority.IdnHost, _originAuthority.Port, request, async, cancellationToken).ConfigureAwait(false); 578stream = await ConnectHelper.EstablishSslConnectionAsync(_sslOptionsProxy, request, async, stream, cancellationToken).ConfigureAwait(false); 583stream = await ConnectToTcpHostAsync(_proxyUri!.IdnHost, _proxyUri.Port, request, async, cancellationToken).ConfigureAwait(false); 588stream = await ConnectHelper.EstablishSslConnectionAsync(_sslOptionsProxy, request, async, stream, cancellationToken).ConfigureAwait(false); 594stream = await EstablishProxyTunnelAsync(async, cancellationToken).ConfigureAwait(false); 605stream = await EstablishSocksTunnel(request, async, cancellationToken).ConfigureAwait(false); 618sslStream = await ConnectHelper.EstablishSslConnectionAsync(GetSslOptionsForRequest(request), request, async, stream, cancellationToken).ConfigureAwait(false); 671stream = await streamTask.ConfigureAwait(false) ?? throw new HttpRequestException(SR.net_http_null_from_connect_callback); 748newStream = await streamTask.ConfigureAwait(false); 781HttpResponseMessage tunnelResponse = await _poolManager.SendProxyConnectAsync(tunnelRequest, _proxyUri!, async, cancellationToken).ConfigureAwait(false); 804Stream stream = await ConnectToTcpHostAsync(_proxyUri.IdnHost, _proxyUri.Port, request, async, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http1.cs (4)
265connection = await CreateHttp11ConnectionAsync(queueItem.Request, true, cts.Token).ConfigureAwait(false); 296(Stream stream, TransportContext? transportContext, Activity? activity, IPEndPoint? remoteEndPoint) = await ConnectAsync(request, async, cancellationToken).ConfigureAwait(false); 297return await ConstructHttp11ConnectionAsync(async, stream, transportContext, request, activity, remoteEndPoint, cancellationToken).ConfigureAwait(false); 302Stream newStream = await ApplyPlaintextFilterAsync(async, stream, HttpVersion.Version11, request, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (5)
187(Stream stream, TransportContext? transportContext, Activity? activity, IPEndPoint? remoteEndPoint) = await ConnectAsync(queueItem.Request, true, cts.Token).ConfigureAwait(false); 204connection = await ConstructHttp2ConnectionAsync(stream, queueItem.Request, activity, remoteEndPoint, cts.Token).ConfigureAwait(false); 216connection = await ConstructHttp2ConnectionAsync(stream, queueItem.Request, activity, remoteEndPoint, cts.Token).ConfigureAwait(false); 248stream = await ApplyPlaintextFilterAsync(async: true, stream, HttpVersion.Version20, request, cancellationToken).ConfigureAwait(false); 347http11Connection = await ConstructHttp11ConnectionAsync(true, stream, transportContext, request, activity, remoteEndPoint, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (2)
91connection = await http3ConnectionWaiter.WaitWithCancellationAsync(cancellationToken).ConfigureAwait(false); 269QuicConnection quicConnection = await ConnectHelper.ConnectQuicAsync(queueItem.Request, new DnsEndPoint(authority.IdnHost, authority.Port), _poolManager.Settings._pooledConnectionIdleTimeout, _sslOptionsHttp3!, connection.StreamCapacityCallback, cts.Token).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionWaiter.cs (1)
40return await WaitWithCancellationAsync(async, requestCancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\ContentLengthReadStream.cs (1)
85bytesRead = await readTask.ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\DecompressionHandler.cs (5)
69HttpResponseMessage response = await _innerHandler.SendAsync(request, async, cancellationToken).ConfigureAwait(false); 280int firstByte = await thisRef._stream.PeekFirstByteAsync(cancellationToken).ConfigureAwait(false); 282return await thisRef._decompressionStream.ReadAsync(buffer, cancellationToken).ConfigureAwait(false); 297int firstByte = await _stream.PeekFirstByteAsync(cancellationToken).ConfigureAwait(false); 353int bytesRead = await _stream.ReadAsync(buffer, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (12)
414await _stream.ReadAsync(Memory<byte>.Empty).ConfigureAwait(false); 418int bytesRead = await _stream.ReadAsync(_incomingBuffer.AvailableMemory).ConfigureAwait(false); 461await _stream.ReadAsync(Memory<byte>.Empty).ConfigureAwait(false); 463int bytesRead = await _stream.ReadAsync(_incomingBuffer.AvailableMemory).ConfigureAwait(false); 488frameHeader = await ReadFrameAsync(initialFrame: true).ConfigureAwait(false); 541await zeroByteReadTask.ConfigureAwait(false); 547int bytesRead = await _stream.ReadAsync(_incomingBuffer.AvailableMemory).ConfigureAwait(false); 560frameHeader = await ReadFrameAsync().ConfigureAwait(false); 678frameHeader = await ReadFrameAsync().ConfigureAwait(false); 1211while (await _writeChannel.Reader.WaitToReadAsync().ConfigureAwait(false)) 1720frameSize = await _connectionWindow.RequestCreditAsync(frameSize, cancellationToken).ConfigureAwait(false); 2008Http2Stream http2Stream = await SendHeadersAsync(request, cancellationToken, mustFlush: shouldExpectContinue || request.IsExtendedConnectRequest).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (2)
205sendRequestContent = await WaitFor100ContinueAsync(_requestBodyCancellationSource.Token).ConfigureAwait(false); 1312sendSize = await _creditWaiter.AsValueTask().ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\Http3Connection.cs (11)
284quicStream = await conn.OpenOutboundStreamAsync(QuicStreamType.Bidirectional, cancellationToken).ConfigureAwait(false); 488_clientControl = await _connection!.OpenOutboundStreamAsync(QuicStreamType.Unidirectional).ConfigureAwait(false); 552QuicStream stream = await streamTask.ConfigureAwait(false); 598bytesRead = await stream.ReadAsync(buffer.AvailableMemory, CancellationToken.None).ConfigureAwait(false); 674bytesRead = await stream.ReadAsync(buffer.AvailableMemory, CancellationToken.None).ConfigureAwait(false); 726(Http3FrameType? frameType, long payloadLength) = await ReadFrameEnvelopeAsync().ConfigureAwait(false); 745(frameType, payloadLength) = await ReadFrameEnvelopeAsync().ConfigureAwait(false); 808bytesRead = await stream.ReadAsync(buffer.AvailableMemory, CancellationToken.None).ConfigureAwait(false); 841bytesRead = await stream.ReadAsync(buffer.AvailableMemory, CancellationToken.None).ConfigureAwait(false); 892bytesRead = await stream.ReadAsync(buffer.AvailableMemory, CancellationToken.None).ConfigureAwait(false); 921int bytesRead = await stream.ReadAsync(buffer.AvailableMemory, CancellationToken.None).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\Http3RequestStream.cs (9)
415(Http3FrameType? frameType, long payloadLength) = await ReadFrameEnvelopeAsync(cancellationToken).ConfigureAwait(false); 598(frameType, payloadLength) = await ReadFrameEnvelopeAsync(cancellationToken).ConfigureAwait(false); 640int bytesRead = await _stream.ReadAsync(_recvBuffer.AvailableMemory, cancellationToken).ConfigureAwait(false); 912bytesRead = await _stream.ReadAsync(_recvBuffer.AvailableMemory, cancellationToken).ConfigureAwait(false); 981int bytesRead = await _stream.ReadAsync(_recvBuffer.AvailableMemory, cancellationToken).ConfigureAwait(false); 1180int bytesRead = await _stream.ReadAsync(_recvBuffer.AvailableMemory, cancellationToken).ConfigureAwait(false); 1284if (_responseDataPayloadRemaining <= 0 && !await ReadNextDataFrameAsync(response, cancellationToken).ConfigureAwait(false)) 1317int bytesRead = await _stream.ReadAsync(buffer.Slice(0, copyLen), cancellationToken).ConfigureAwait(false); 1405(frameType, payloadLength) = await ReadFrameEnvelopeAsync(cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (8)
255await _stream.ReadAsync(Memory<byte>.Empty).ConfigureAwait(false); 258int read = await _stream.ReadAsync(_readBuffer.AvailableMemory).ConfigureAwait(false); 635bytesRead = await vt.ConfigureAwait(false); 1631await _stream.ReadAsync(_readBuffer.AvailableMemory).ConfigureAwait(false) : 1647await _stream.ReadAsync(_readBuffer.AvailableMemory).ConfigureAwait(false) : 1795int count = await _stream.ReadAsync(destination).ConfigureAwait(false); 1849int bytesRead = await _stream.ReadAsync(_readBuffer.AvailableMemory).ConfigureAwait(false); 2093if (!await responseStream.DrainAsync(_pool.Settings._maxResponseDrainSize).ConfigureAwait(false) ||
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (1)
437return await SendAsyncCore(request, firstProxy, async, doRequestAuth, isProxyConnect: false, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\HttpContentReadStream.cs (1)
78bool drained = await DrainAsync(connection._pool.Settings._maxResponseDrainSize).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\RawConnectionStream.cs (1)
67bytesRead = await readTask.ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\RedirectHandler.cs (2)
29HttpResponseMessage response = await _innerHandler.SendAsync(request, async, cancellationToken).ConfigureAwait(false); 87response = await _innerHandler.SendAsync(request, async, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\SocksHelper.cs (1)
357? await stream.ReadAtLeastAsync(buffer, buffer.Length, throwOnEndOfStream: false).ConfigureAwait(false)
System.Net.Http.Json (14)
System\Net\Http\Json\HttpClientJsonExtensions.cs (3)
89.ConfigureAwait(false); 91return await deserializeMethod(readStream, jsonOptions, linkedCTS?.Token ?? cancellationToken).ConfigureAwait(false); 137Stream contentStream = await task.ConfigureAwait(false);
System\Net\Http\Json\HttpClientJsonExtensions.Get.AsyncEnumerable.cs (1)
164.ConfigureAwait(false);
System\Net\Http\Json\HttpContentJsonExtensions.AsyncEnumerable.cs (1)
99.ConfigureAwait(false);
System\Net\Http\Json\HttpContentJsonExtensions.cs (8)
86using (Stream contentStream = await GetContentStreamAsync(content, cancellationToken).ConfigureAwait(false)) 88return await JsonSerializer.DeserializeAsync(contentStream, type, options ?? JsonSerializerOptions.Web, cancellationToken).ConfigureAwait(false); 96using (Stream contentStream = await GetContentStreamAsync(content, cancellationToken).ConfigureAwait(false)) 98return await JsonSerializer.DeserializeAsync<T>(contentStream, options ?? JsonSerializerOptions.Web, cancellationToken).ConfigureAwait(false); 118using (Stream contentStream = await GetContentStreamAsync(content, cancellationToken).ConfigureAwait(false)) 120return await JsonSerializer.DeserializeAsync(contentStream, type, context, cancellationToken).ConfigureAwait(false); 126using (Stream contentStream = await GetContentStreamAsync(content, cancellationToken).ConfigureAwait(false)) 128return await JsonSerializer.DeserializeAsync(contentStream, jsonTypeInfo, cancellationToken).ConfigureAwait(false);
System\Net\Http\Json\LengthLimitReadStream.cs (1)
64int read = await readTask.ConfigureAwait(false);
System.Net.Mail (4)
System\Net\Base64Stream.cs (1)
201int read = await BaseStream.ReadAsync(buffer, cancellationToken).ConfigureAwait(false);
System\Net\BufferedReadStream.cs (1)
72int returnValue = await BaseStream.ReadAsync(buffer, cancellationToken).ConfigureAwait(false);
System\Net\Mail\SmtpReplyReaderFactory.cs (1)
281read = await TIOAdapter.ReadAsync(_bufferedStream, _byteBuffer, cancellationToken).ConfigureAwait(false);
System\Net\Mime\MimePart.cs (1)
178while ((read = await TIOAdapter.ReadAsync(Stream, buffer.AsMemory(0, maxBufferSize), cancellationToken).ConfigureAwait(false)) > 0)
System.Net.Ping (3)
System\Net\NetworkInformation\Ping.cs (1)
719IPAddress address = await getAddress(getAddressArg, _timeoutOrCancellationSource.Token).ConfigureAwait(false);
System\Net\NetworkInformation\Ping.RawSocket.cs (2)
337.ConfigureAwait(false); 352.ConfigureAwait(false);
System.Net.Quic (3)
System\Net\Quic\QuicConnection.cs (1)
575return await _acceptQueue.Reader.ReadAsync(cancellationToken).ConfigureAwait(false);
System\Net\Quic\QuicListener.cs (2)
185object item = await _acceptQueue.Reader.ReadAsync(cancellationToken).ConfigureAwait(false); 238QuicServerConnectionOptions options = await _connectionOptionsCallback(connection, clientHello, cancellationToken).ConfigureAwait(false);
System.Net.Requests (1)
System\Net\HttpWebResponse.cs (1)
416.ConfigureAwait(false);
System.Net.Security (13)
System\Net\Security\NegotiateStream.cs (4)
366int readBytes = await ReadAllAsync(InnerStream, _readHeader, allowZeroRead: true, cancellationToken).ConfigureAwait(false); 391readBytes = await ReadAllAsync(InnerStream, new Memory<byte>(_readBuffer, 0, readBytes), allowZeroRead: false, cancellationToken).ConfigureAwait(false); 450stream, buffer, buffer.Length, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false); 864byte[]? message = await _framer.ReadMessageAsync<TIOAdapter>(InnerStream, cancellationToken).ConfigureAwait(false);
System\Net\Security\SslStream.IO.cs (7)
250int frameSize = await ReceiveHandshakeFrameAsync<TIOAdapter>(cancellationToken).ConfigureAwait(false); 358int frameSize = await ReceiveHandshakeFrameAsync<TIOAdapter>(cancellationToken).ConfigureAwait(false); 437int frameSize = await EnsureFullTlsFrameAsync<TIOAdapter>(cancellationToken, InitialHandshakeBufferSize).ConfigureAwait(false); 488_sslAuthenticationOptions.UserState, cancellationToken).ConfigureAwait(false); 765await TIOAdapter.ReadAsync(InnerStream, Memory<byte>.Empty, cancellationToken).ConfigureAwait(false); 780int bytesRead = await TIOAdapter.ReadAsync(InnerStream, _buffer.AvailableMemory, cancellationToken).ConfigureAwait(false); 896int payloadBytes = await EnsureFullTlsFrameAsync<TIOAdapter>(cancellationToken, ReadBufferSize).ConfigureAwait(false);
System\Net\StreamFramer.cs (2)
35stream, buffer, buffer.Length, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false); 60stream, buffer, buffer.Length, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false);
System.Net.ServerSentEvents (3)
System\Net\ServerSentEvents\SseParser_1.cs (3)
189while (await FillLineBufferAsync(cancellationToken).ConfigureAwait(false) != 0 && _lineLength < Utf8Bom.Length) ; 239await FillLineBufferAsync(cancellationToken).ConfigureAwait(false); 503int bytesRead = await _stream.ReadAsync(_lineBuffer.AsMemory(offset), cancellationToken).ConfigureAwait(false);
System.Net.Sockets (3)
System\Net\Sockets\SocketPal.Unix.cs (1)
2096bytesTransferred = await socket.SendAsync(e.MemoryBuffer.Value, SocketFlags.None, cancellationToken).ConfigureAwait(false) + bytesTransferred;
System\Net\Sockets\TCPListener.cs (1)
243new TcpClient(await task.ConfigureAwait(false));
System\Net\Sockets\UDPClient.cs (1)
652SocketReceiveFromResult result = await task.ConfigureAwait(false);
System.Net.WebClient (2)
System\Net\WebClient.cs (2)
903int bytesRead = await readStream.ReadAsync(new Memory<byte>(copyBuffer)).ConfigureAwait(false); 1036int bytesRead = await readStream.ReadAsync(new Memory<byte>(buffer)).ConfigureAwait(false);
System.Net.WebSockets (6)
System\Net\WebSockets\ManagedWebSocket.cs (4)
820await _stream.ReadAsync(Memory<byte>.Empty, cancellationToken).ConfigureAwait(false); 933readBuffer, bytesToRead, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false); 1479await receiveTask.ConfigureAwait(false); 1592_receiveBuffer.Slice(_receiveBufferCount), bytesToRead, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false);
System\Net\WebSockets\WebSocketStream.cs (2)
229ValueWebSocketReceiveResult result = await WebSocket.ReceiveAsync(buffer, cancellationToken).ConfigureAwait(false); 352ValueWebSocketReceiveResult result = await WebSocket.ReceiveAsync(buffer, cancellationToken).ConfigureAwait(false);
System.Private.CoreLib (26)
src\libraries\System.Private.CoreLib\src\System\IO\BufferedStream.cs (2)
711return await _stream.ReadAsync(buffer, cancellationToken).ConfigureAwait(false) + bytesAlreadySatisfied; 716_readLen = await _stream.ReadAsync(new Memory<byte>(_buffer, 0, _bufferSize), cancellationToken).ConfigureAwait(false);
src\libraries\System.Private.CoreLib\src\System\IO\File.cs (5)
1109int read = await sr.ReadAsync(new Memory<char>(buffer), cancellationToken).ConfigureAwait(false); 1205int n = await RandomAccess.ReadAtOffsetAsync(sfh, bytes.AsMemory(index), index, cancellationToken).ConfigureAwait(false); 1244int n = await RandomAccess.ReadAtOffsetAsync(sfh, rentedArray.AsMemory(bytesRead), bytesRead, cancellationToken).ConfigureAwait(false); 1313while ((line = await sr.ReadLineAsync(cancellationToken).ConfigureAwait(false)) != null) 1639while ((line = await sr.ReadLineAsync(cts.Token).ConfigureAwait(false)) is not null)
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\BufferedFileStreamStrategy.cs (3)
381return await _strategy.ReadAsync(destination, cancellationToken).ConfigureAwait(false); 440return await _strategy.ReadAsync(buffer, cancellationToken).ConfigureAwait(false) + bytesAlreadySatisfied; 445_readLen = await _strategy.ReadAsync(new Memory<byte>(_buffer, 0, _bufferSize), cancellationToken).ConfigureAwait(false);
src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (2)
106while ((bytesRead = await source.ReadAsync(new Memory<byte>(buffer), cancellationToken).ConfigureAwait(false)) != 0) 433int read = await ReadAsync(buffer.Slice(totalRead), cancellationToken).ConfigureAwait(false);
src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (9)
906if (_charPos == _charLen && (await ReadBufferAsync(cancellationToken).ConfigureAwait(false)) == 0) 944if (charPos < charLen || (await ReadBufferAsync(cancellationToken).ConfigureAwait(false)) > 0) 972while (await ReadBufferAsync(cancellationToken).ConfigureAwait(false) > 0); 1041await ReadBufferAsync(cancellationToken).ConfigureAwait(false); 1097if (_charPos == _charLen && (await ReadBufferAsync(cancellationToken).ConfigureAwait(false)) == 0) 1140int len = await tmpStream.ReadAsync(new Memory<byte>(tmpByteBuffer, tmpBytePos, tmpByteBuffer.Length - tmpBytePos), cancellationToken).ConfigureAwait(false); 1176_byteLen = await tmpStream.ReadAsync(new Memory<byte>(tmpByteBuffer), cancellationToken).ConfigureAwait(false); 1335int len = await tmpStream.ReadAsync(tmpByteBuffer.AsMemory(tmpBytePos), cancellationToken).ConfigureAwait(false); 1349_byteLen = await tmpStream.ReadAsync(new Memory<byte>(tmpByteBuffer), cancellationToken).ConfigureAwait(false);
src\libraries\System.Private.CoreLib\src\System\IO\TextReader.cs (2)
248while ((len = await ReadAsyncInternal(chars, cancellationToken).ConfigureAwait(false)) != 0) 318i = await ReadAsyncInternal(buffer.Slice(n), cancellationToken).ConfigureAwait(false);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ConfiguredCancelableAsyncEnumerable.cs (1)
69_enumerator.MoveNextAsync().ConfigureAwait(_continueOnCapturedContext);
src\libraries\System.Private.CoreLib\src\System\Text\TranscodingStream.cs (1)
404int innerBytesReadJustNow = await _innerStream.ReadAsync(rentedBytes.AsMemory(0, DefaultReadByteBufferSize), cancellationToken).ConfigureAwait(false);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskAsyncEnumerableExtensions.ToBlockingEnumerable.cs (1)
47(mres ??= new ManualResetEventWithAwaiterSupport()).Wait(moveNextTask.ConfigureAwait(false).GetAwaiter());
System.Private.Xml (12)
System\Xml\Core\XmlTextReaderImplAsync.cs (12)
684var tuple_0 = await ParseTextAsync(orChars).ConfigureAwait(false); 914int read = await stream.ReadAtLeastAsync(_ps.bytes.AsMemory(_ps.bytesUsed), bytesToRead, throwOnEndOfStream: false).ConfigureAwait(false); 1127int read = await _ps.stream.ReadAsync(_ps.bytes.AsMemory(_ps.bytesUsed)).ConfigureAwait(false); 1149charsRead = await _ps.textReader.ReadAsync(_ps.chars.AsMemory(_ps.charsUsed, _ps.chars.Length - _ps.charsUsed - 1)).ConfigureAwait(false); 2959tuple_9 = await ParseTextAsync(orChars).ConfigureAwait(false); 3007tuple_11 = await ParseTextAsync(orChars).ConfigureAwait(false); 3053var tuple_12 = await ParseTextAsync(orChars).ConfigureAwait(false); 3077tuple_13 = await ParseTextAsync(orChars).ConfigureAwait(false); 3539var tuple_15 = await ParseTextAsync(orChars).ConfigureAwait(false); 3548tuple_15 = await ParseTextAsync(orChars).ConfigureAwait(false); 3618tuple_16 = await ParseTextAsync(orChars).ConfigureAwait(false); 5405var tuple_36 = await ParseTextAsync(orChars).ConfigureAwait(false);
System.Private.Xml.Linq (2)
System\Xml\Linq\XContainer.cs (2)
861while (await cr.ReadContentFromAsync(this, r).ConfigureAwait(false) && await r.ReadAsync().ConfigureAwait(false)); 878while (await cr.ReadContentFromContainerAsync(this, r).ConfigureAwait(false) && await r.ReadAsync().ConfigureAwait(false));
System.Security.Cryptography (8)
System\Security\Cryptography\CryptoStream.cs (4)
243return await ReadAsyncCore(buffer, cancellationToken, useAsync: true).ConfigureAwait(false); 351await _stream.ReadAsync(new Memory<byte>(tempInputBuffer, _inputBufferIndex, numWholeBlocksInBytes - _inputBufferIndex), cancellationToken).ConfigureAwait(false) : 428await _stream.ReadAsync(new Memory<byte>(_inputBuffer, _inputBufferIndex, _inputBlockSize - _inputBufferIndex), cancellationToken).ConfigureAwait(false) : 730bytesRead = await ReadAsync(rentedBuffer.AsMemory(0, bufferSize), cancellationToken).ConfigureAwait(false);
System\Security\Cryptography\HashAlgorithm.cs (1)
138while ((bytesRead = await inputStream.ReadAsync(buffer, cancellationToken).ConfigureAwait(false)) > 0)
System\Security\Cryptography\LiteHashProvider.cs (2)
154while ((read = await source.ReadAsync(rented, cancellationToken).ConfigureAwait(false)) > 0) 177int written = await ProcessStreamAsync(hash, source, result, cancellationToken).ConfigureAwait(false);
System\Security\Cryptography\LiteHashProvider.Xof.cs (1)
139while ((read = await source.ReadAsync(rented, cancellationToken).ConfigureAwait(false)) > 0)
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseMessage.cs (1)
476while ((bytesRead = await content.ReadAsync(contentBuffer, cancellationToken).ConfigureAwait(false)) > 0)
System.Text.Json (15)
System\Text\Json\Document\JsonDocument.Parse.cs (4)
223ArraySegment<byte> drained = await ReadToEndAsync(utf8Json, cancellationToken).ConfigureAwait(false); 247ArraySegment<byte> drained = await ReadToEndAsync(utf8Json, cancellationToken).ConfigureAwait(false); 911lastRead = await stream.ReadAsync(rented.AsMemory(written, utf8BomLength - written), cancellationToken).ConfigureAwait(false); 934lastRead = await stream.ReadAsync(rented.AsMemory(written), cancellationToken).ConfigureAwait(false);
System\Text\Json\Serialization\JsonSerializer.Read.Pipe.cs (1)
340bufferState = await bufferState.ReadAsync(utf8Json, cancellationToken, fillBuffer: false).ConfigureAwait(false);
System\Text\Json\Serialization\JsonSerializer.Read.Stream.cs (1)
496bufferState = await bufferState.ReadAsync(utf8Json, cancellationToken, fillBuffer: false).ConfigureAwait(false);
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.ReadHelper.cs (3)
39bufferState = await bufferState.ReadAsync(utf8Json, cancellationToken).ConfigureAwait(false); 119T? result = await DeserializeAsync(utf8Json, bufferState, cancellationToken).ConfigureAwait(false); 125T? result = await DeserializeAsync<PipeReadBufferState, PipeReader>(utf8Json, bufferState: new PipeReadBufferState(utf8Json), cancellationToken).ConfigureAwait(false);
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.WriteHelpers.cs (2)
121FlushResult result = await pipeWriter.FlushAsync(cancellationToken).ConfigureAwait(false); 183FlushResult result = await pipeWriter.FlushAsync(cancellationToken).ConfigureAwait(false);
System\Text\Json\Serialization\PipeReadBufferState.cs (1)
62ReadResult readResult = await _utf8Json.ReadAtLeastAsync(minBufferSize, cancellationToken).ConfigureAwait(false);
System\Text\Json\Serialization\StreamReadBufferState.cs (1)
74int bytesRead = await stream.ReadAsync(bufferState._buffer.AsMemory(bufferState._count), cancellationToken).ConfigureAwait(false);
System\Text\Json\Serialization\WriteStack.cs (2)
353exception = await DisposeFrame(Current.CollectionEnumerator, Current.AsyncDisposable, exception).ConfigureAwait(false); 358exception = await DisposeFrame(_stack[i].CollectionEnumerator, _stack[i].AsyncDisposable, exception).ConfigureAwait(false);
System.Threading.Channels (3)
System\Threading\Channels\ChannelReader.cs (2)
83if (!await WaitToReadAsync(ct).ConfigureAwait(false)) 105while (await WaitToReadAsync(cancellationToken).ConfigureAwait(false))
System\Threading\Channels\ChannelWriter.cs (1)
56while (await WaitToWriteAsync(ct).ConfigureAwait(false))
System.Threading.RateLimiting (2)
System\Threading\RateLimiting\ChainedPartitionedRateLimiter.cs (1)
103lease = await _limiters[i].AcquireAsync(resource, permitCount, cancellationToken).ConfigureAwait(false);
System\Threading\RateLimiting\ChainedRateLimiter.cs (1)
124lease = await _limiters[i].AcquireAsync(permitCount, cancellationToken).ConfigureAwait(false);
System.Windows.Forms (1)
System\Windows\Forms\Control_InvokeAsync.cs (1)
418T returnValue = await callback(cancellationToken).ConfigureAwait(false);
Test.Utilities (12)
src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
165int read = await stream.ReadAsync(buffer.AsMemory(), cancellationToken).ConfigureAwait(false);
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
553builder.Add(await selector(item).ConfigureAwait(false)); 567builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 581builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 592builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
406builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 421builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 442builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
220return (ranToCompletion: true, await ProcessNextBatchAsync().ConfigureAwait(false));
src\Dependencies\Threading\ProducerConsumer.cs (1)
30while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ValueTaskExtensions.cs (2)
237_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 247_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
TestDiscoveryWorker (1)
Program.cs (1)
124while (await _channel.Reader.WaitToReadAsync(CancellationToken.None).ConfigureAwait(false))
Text.Analyzers (62)
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
553builder.Add(await selector(item).ConfigureAwait(false)); 567builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 581builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 592builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
406builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 421builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 442builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
220return (ranToCompletion: true, await ProcessNextBatchAsync().ConfigureAwait(false));
src\Dependencies\Threading\ChannelReaderExtensions.cs (1)
22while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ProducerConsumer.cs (1)
30while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Dependencies\Threading\ValueTaskExtensions.cs (2)
237_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 247_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\AddImport\AddImportPlacementOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
99changedRoot, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
83var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixesAndRefactorings\AbstractFixAllSpanMappingService.cs (2)
45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 78var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
244var codeGenOptions = await oldDocument.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false); 256var addImportsOptions = await newDocument.GetAddImportPlacementOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CleanCodeGenerationOptions.cs (2)
42GenerationOptions = await document.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false), 43CleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationOptionsProviders.cs (2)
36var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false); 44var options = await GetCodeGenerationOptionsAsync(document, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringContextExtensions.cs (4)
46var parsedDocument = await ParsedDocument.CreateAsync(context.Document, context.CancellationToken).ConfigureAwait(false); 55var parsedDocument = await ParsedDocument.CreateAsync(context.Document, context.CancellationToken).ConfigureAwait(false); 61var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false); 84var parsedDocument = await ParsedDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (5)
37var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 120var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 121var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 180var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 183var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
132var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 136return await ReuseExistingSpeculativeModelAsync(document, node, cancellationToken).ConfigureAwait(false); 225var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\DocumentFormattingOptionsProviders.cs (1)
24var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\FormatterShared.cs (1)
26var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\LineFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\SyntaxFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\InitializeParameter\AbstractInitializerParameterService.cs (2)
119var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 123var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsService.cs (2)
27var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 34var currentModel = await current.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\NamingStyles\NamingStylePreferencesProviders.cs (1)
17var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
52var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SemanticModelReuse\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
102return await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 157var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (6)
69var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 96var root = (TCompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 107root = (TCompilationUnitSyntax)await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 165var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 236semanticModelForReduce = await newDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 291var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplifierOptionsProviders.cs (1)
22var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (2)
33var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 34var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\SemanticDocument.cs (3)
20var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 21var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 22var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\SyntacticDocument.cs (2)
30var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 31var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);