3307 references to ConfigureAwait
aspire (19)
Acquisition\PeerInstallProbe.cs (1)
359read = await stream.ReadAsync(buffer.AsMemory(), cancellationToken).ConfigureAwait(false);
Backchannel\AppHostAuxiliaryBackchannel.cs (1)
182socket = await appHostSocket.ConnectAsync(cancellationToken).ConfigureAwait(false);
Backchannel\AppHostCliBackchannel.cs (1)
214hasNext = await enumerator.MoveNextAsync().ConfigureAwait(false);
Backchannel\AuxiliaryBackchannelMonitor.cs (2)
81while (await timer.WaitForNextTickAsync(cancellationToken).ConfigureAwait(false)); 527socket = await appHostSocket.ConnectAsync(cancellationToken).ConfigureAwait(false);
Backchannel\ExtensionBackchannel.cs (1)
217} while (await timer.WaitForNextTickAsync(cancellationToken).ConfigureAwait(false));
Backchannel\ProfilingJsonRpcExtensions.cs (1)
137if (!await enumerator.MoveNextAsync().ConfigureAwait(false))
Commands\AgentMcpCommand.cs (2)
341return await tool.CallToolAsync(context, cancellationToken).ConfigureAwait(false); 394return await HandleCallToolAsync(request, cancellationToken).ConfigureAwait(false);
Commands\TelemetryCommandHelpers.cs (1)
675line = await reader.ReadLineAsync(cancellationToken).ConfigureAwait(false);
Documentation\Docs\DocsSearchService.cs (1)
136var searchResults = await _docsIndexService.SearchAsync(query, topK, cancellationToken).ConfigureAwait(false);
Documentation\FileBackedDocumentContentCache.cs (1)
197var value = await JsonSerializer.DeserializeAsync(stream, jsonTypeInfo, cancellationToken).ConfigureAwait(false);
Interaction\ExtensionInteractionService.cs (2)
691while (await _extensionTaskChannel.Reader.WaitToReadAsync(_cancellationToken).ConfigureAwait(false)) 695var taskFunction = await _extensionTaskChannel.Reader.ReadAsync().ConfigureAwait(false);
Mcp\Tools\GetDocTool.cs (1)
78var doc = await _docsIndexService.GetDocumentAsync(slug, section, cancellationToken).ConfigureAwait(false);
Mcp\Tools\ListDocsTool.cs (1)
45var docs = await _docsIndexService.ListDocumentsAsync(cancellationToken).ConfigureAwait(false);
src\Shared\ChannelExtensions.cs (1)
36if (await channel.Reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Shared\ParentProcessLivenessMonitor.cs (1)
105} while (await timer.WaitForNextTickAsync(stopToken).ConfigureAwait(false));
Utils\ArchiveHelper.cs (1)
79while (await tarReader.GetNextEntryAsync(cancellationToken: cancellationToken).ConfigureAwait(false) is { } entry)
aspire-managed (1)
src\Shared\ParentProcessLivenessMonitor.cs (1)
105} while (await timer.WaitForNextTickAsync(stopToken).ConfigureAwait(false));
aspire-tray (3)
src\Aspire.Tray\Common\CliAppHostClient.cs (1)
60available = await stream.MoveNextAsync().ConfigureAwait(false);
src\Aspire.Tray\Common\CliProcess.cs (1)
37while (await reader.ReadAsync(buffer.AsMemory(), cancellationToken).ConfigureAwait(false) != 0)
src\Aspire.Tray\Common\CliProtocol.cs (1)
102while ((count = await reader.ReadAsync(buffer.AsMemory(), cancellationToken).ConfigureAwait(false)) != 0)
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.Azure.Storage.Files.DataLake (1)
AzureDataLakeStorageHealthCheck.cs (1)
29.ConfigureAwait(false);
Aspire.Cli.Tests (1)
Projects\RunningInstanceManagerTests.cs (1)
90var serverSocket = await _listener.AcceptAsync(_cts.Token).ConfigureAwait(false);
Aspire.Confluent.Kafka (1)
MetricsService.cs (1)
19while (await channel.Reader.WaitToReadAsync(stoppingToken).ConfigureAwait(false))
Aspire.Dashboard (36)
Api\TelemetryApiService.cs (1)
543await signal.Reader.ReadAsync(cancellationToken).ConfigureAwait(false);
Components\Controls\ApplicationSummary.razor.cs (1)
862while (await timer.WaitForNextTickAsync(cancellationToken).ConfigureAwait(false))
Components\Layout\ResourcesLayout.razor.cs (1)
1323while (await timer.WaitForNextTickAsync(cancellationToken).ConfigureAwait(false))
Components\Layout\TerminalDock.razor.cs (1)
192"import", $"./{Assets["Components/Layout/TerminalDock.razor.js"]}").ConfigureAwait(true);
Model\BrowserStorage\BrowserStorageBase.cs (1)
25var result = await _protectedBrowserStorage.GetAsync<TValue>(key).ConfigureAwait(false);
Model\BrowserStorage\LocalBrowserStorage.cs (1)
45var json = await _jsRuntime.InvokeAsync<string?>("localStorage.getItem", key).ConfigureAwait(false);
Model\TerminalWindowLauncher.cs (2)
118_module = await _js.InvokeAsync<IJSObjectReference>("import", moduleUri.PathAndQuery).ConfigureAwait(false); 161await module.InvokeAsync<bool>("focusTerminalWindow", 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)
256result = await httpContext.Request.BodyReader.ReadAsync().ConfigureAwait(false);
Otlp\Storage\SqliteTelemetryRepository.cs (2)
134using (await _database.WriteLock.LockAsync().ConfigureAwait(false)) 180using (await _database.WriteLock.LockAsync().ConfigureAwait(false))
Otlp\Storage\SqliteTelemetryRepository.Logs.cs (2)
27using (await _database.WriteLock.LockAsync().ConfigureAwait(false)) 755using (await _database.WriteLock.LockAsync().ConfigureAwait(false))
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (2)
33using (await _database.WriteLock.LockAsync().ConfigureAwait(false)) 887using (await _database.WriteLock.LockAsync().ConfigureAwait(false))
Otlp\Storage\SqliteTelemetryRepository.Resources.cs (1)
31using (await _database.WriteLock.LockAsync().ConfigureAwait(false))
Otlp\Storage\SqliteTelemetryRepository.Traces.Writes.cs (3)
28using (await _database.WriteLock.LockAsync().ConfigureAwait(false)) 1014using (await _database.WriteLock.LockAsync().ConfigureAwait(false)) 1213using (await _database.WriteLock.LockAsync().ConfigureAwait(false))
ServiceClient\DashboardClient.cs (2)
1178while ((bytesRead = await fileStream.ReadAsync(buffer, combinedTokens.Token).ConfigureAwait(false)) > 0) 1236hasNext = await updates.MoveNextAsync().ConfigureAwait(false);
ServiceClient\DashboardSqliteDatabase.cs (1)
134using (await WriteLock.LockAsync(cancellationToken).ConfigureAwait(false))
ServiceClient\SqliteResourceRepository.cs (6)
123using (await _database.WriteLock.LockAsync(cancellationToken).ConfigureAwait(false)) 185using (await _database.WriteLock.LockAsync().ConfigureAwait(false)) 238using (await _database.WriteLock.LockAsync().ConfigureAwait(false)) 293using (await _database.WriteLock.LockAsync().ConfigureAwait(false)) 322using (await _database.WriteLock.LockAsync().ConfigureAwait(false)) 404using (await _database.WriteLock.LockAsync().ConfigureAwait(false))
src\Shared\ChannelExtensions.cs (1)
36if (await channel.Reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\Shared\ParentProcessLivenessMonitor.cs (1)
105} while (await timer.WaitForNextTickAsync(stopToken).ConfigureAwait(false));
Terminal\TerminalWebSocketProxy.cs (3)
463while (await grpc.ReadAsync(buffer, timeout.Token).ConfigureAwait(false) != 0) 528var frame = await presentation.ReadFrameAsync(frameCancellationToken).ConfigureAwait(false); 561result = await socket.ReceiveAsync(buffer.AsMemory(length), cancellationToken).ConfigureAwait(false);
Aspire.Hosting (90)
ApplicationModel\ConnectionStringReference.cs (2)
72? await expression.GetValueAsync(context, cancellationToken).ConfigureAwait(false) 73: await Resource.GetValueAsync(context, cancellationToken).ConfigureAwait(false);
ApplicationModel\ContainerImagePushOptions.cs (2)
98.ConfigureAwait(false); 102? await registry.Repository.GetValueAsync(cancellationToken).ConfigureAwait(false)
ApplicationModel\ContainerImageReference.cs (1)
56cancellationToken).ConfigureAwait(false);
ApplicationModel\EndpointHostHelpers.cs (1)
129var allocatedUrl = await endpoint.GetValueAsync(cancellationToken).ConfigureAwait(false);
ApplicationModel\EndpointReference.cs (1)
369_ => await ResolveValueWithAllocatedAddress().ConfigureAwait(false)
ApplicationModel\ExecutionConfigurationGathererContext.cs (2)
64var resolvedValue = await resource.ResolveValueAsync(executionContext, resourceLogger, kvp.Value, null, cancellationToken).ConfigureAwait(false); 114var resolvedValue = await resource.ResolveValueAsync(executionContext, resourceLogger, argument, null, cancellationToken).ConfigureAwait(false);
ApplicationModel\ExpressionResolver.cs (6)
15var conditionResult = await ResolveInternalAsync(expr.Condition!, context).ConfigureAwait(false); 27var result = await ResolveInternalAsync(expr.ValueProviders[i], context).ConfigureAwait(false); 50var value = await vp.GetValueAsync(context, cancellationToken).ConfigureAwait(false); 63var value = await ResolveInternalAsync(cs.ConnectionStringExpression, context).ConfigureAwait(false); 82IResourceWithConnectionString cs and not ConnectionStringParameterResource => await ResolveInternalAsync(cs.ConnectionStringExpression, context).ConfigureAwait(false), 92return await resolver.ResolveInternalAsync(valueProvider, context).ConfigureAwait(false);
ApplicationModel\HostUrl.cs (1)
84var port = await targetEndpoint.Property(EndpointProperty.Port).GetValueAsync(context, cancellationToken).ConfigureAwait(false);
ApplicationModel\HttpsCertificateExecutionConfigurationGatherer.cs (1)
61Password = effectiveAnnotation.Password is not null ? await effectiveAnnotation.Password.GetValueAsync(cancellationToken).ConfigureAwait(false) : null,
ApplicationModel\McpServerEndpointAnnotation.cs (1)
48var baseUrl = await endpoint.GetValueAsync(cancellationToken).ConfigureAwait(false);
ApplicationModel\ReferenceExpression.cs (3)
193var conditionValue = await _condition!.GetValueAsync(context, cancellationToken).ConfigureAwait(false); 195return await branch.GetValueAsync(context, cancellationToken).ConfigureAwait(false); 207args[i] = await ValueProviders[i].GetValueAsync(context, cancellationToken).ConfigureAwait(false);
ApplicationModel\ResourceExtensions.cs (7)
293cancellationToken).ConfigureAwait(false); 364var resolvedValue = await resource.ResolveValueAsync(executionContext, logger, a, null, cancellationToken).ConfigureAwait(false); 399var args = await GatherArgumentValuesWithoutCachingAsync(resource, executionContext, logger, cancellationToken).ConfigureAwait(false); 460var resolvedValue = await resource.ResolveValueAsync(executionContext, logger, expr, key, cancellationToken).ConfigureAwait(false); 491var config = await GatherEnvironmentVariableValuesAsync(resource, executionContext, logger, cancellationToken).ConfigureAwait(false); 700return await task.ConfigureAwait(false); 1739cancellationToken).ConfigureAwait(false);
ApplicationModel\ResourceUrlsEditor.cs (2)
33var urlValue = await referenceExpression.GetValueAsync(_cancellationToken).ConfigureAwait(false); 64var urlValue = await referenceExpression.GetValueAsync(_cancellationToken).ConfigureAwait(false);
ApplicationModel\TerminalClientStream.cs (1)
36return await transport.ReadAsync(buffer, linked.Token).ConfigureAwait(false);
ApplicationModel\TerminalService.cs (1)
339while (await channel.Reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
Backchannel\AppHostRpcTarget.cs (1)
92publishingActivity = await activityReporter.ActivityItemUpdated.Reader.ReadAsync(linkedToken).ConfigureAwait(false);
Backchannel\AuxiliaryBackchannelRpcTarget.cs (2)
1842var result = await mcpClient.CallToolAsync(toolName, arguments, cancellationToken: cancellationToken).ConfigureAwait(false); 1922var toolsList = await mcpClient.ListToolsAsync(cancellationToken: linked.Token).ConfigureAwait(false);
Backchannel\AuxiliaryBackchannelService.cs (1)
65var clientSocket = await _appHostSocket.Socket.AcceptAsync(stoppingToken).ConfigureAwait(false);
Backchannel\BackchannelService.cs (1)
74var clientSocket = await serverSocket.AcceptAsync(stoppingToken).ConfigureAwait(false);
Backchannel\DashboardUrlsHelper.cs (1)
98apiBaseUrl = await EndpointHostHelpers.GetUrlWithTargetHostAsync(apiEndpoint, cancellationToken).ConfigureAwait(false);
Cli\CliOrphanDetector.cs (1)
88} while (await periodic.WaitForNextTickAsync(stoppingToken).ConfigureAwait(false));
Dashboard\DashboardEventHandlers.cs (6)
370? await EndpointHostHelpers.GetUrlWithTargetHostAsync(endpoint, cancellationToken).ConfigureAwait(false) 372}, options.DashboardUrl).ConfigureAwait(false); 384options.OtlpGrpcEndpointUrl).ConfigureAwait(false); 388options.OtlpHttpEndpointUrl).ConfigureAwait(false); 401var url = await resolveCallback().ConfigureAwait(false); 425? await EndpointHostHelpers.GetUrlWithTargetHostAsync(endpoint, cancellationToken).ConfigureAwait(false)
Dcp\ContainerCreator.cs (3)
626IValueProvider valueProvider => await valueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false), 642IValueProvider valueProvider => await valueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false), 670cancellationToken).ConfigureAwait(false);
Dcp\DcpExecutor.cs (5)
973using var _ = await ConcurrencyUtils.AcquireAllAsync(replicas.Select(r => r.SerializedOpSemaphore), cancellationToken).ConfigureAwait(false); 1178using var _ = await ConcurrencyUtils.AcquireAllAsync([appResource.SerializedOpSemaphore], cancellationToken).ConfigureAwait(false); 1218}, resourceReference.DcpResourceName, cancellationToken).ConfigureAwait(false); 1249using var _ = await ConcurrencyUtils.AcquireAllAsync([appResource.SerializedOpSemaphore], cancellationToken).ConfigureAwait(false); 1365}, resource.DcpResourceName, cancellationToken).ConfigureAwait(false);
Dcp\DcpHost.cs (3)
544var acceptedSocket = await socket.AcceptAsync(_shutdownCts.Token).ConfigureAwait(false); 610var result = await reader.ReadAsync(CancellationToken.None).ConfigureAwait(false); 695while (await timer.WaitForNextTickAsync(notificationCts.Token).ConfigureAwait(false))
Dcp\DcpKubernetesClient.cs (2)
243(line, terminated) = await ReadEventLineAsync(linkedCts.Token).ConfigureAwait(false); 286var result = await _reader.ReadAsync(cancellationToken).ConfigureAwait(false);
Dcp\KubernetesService.cs (4)
200}, cancellationToken).ConfigureAwait(false); 536}, cancellationToken).ConfigureAwait(false); 632}, cancellationToken).ConfigureAwait(false); 868}, cancellationToken).ConfigureAwait(false);
Dcp\ResourceLogSource.cs (1)
172var read = await sr.ReadAsync(buffer.AsMemory(), cancellationToken).ConfigureAwait(false);
Devcontainers\DevcontainerSettingsWriter.cs (1)
72while (await reader.WaitToReadAsync(_processingCancellation.Token).ConfigureAwait(false))
ExternalServiceBuilderExtensions.cs (3)
139: await resource.UrlParameter.GetValueAsync(ct).ConfigureAwait(false); 414var urlValue = await _urlParameter.GetValueAsync(cancellationToken).ConfigureAwait(false); 482var endpointValue = await _endpoint.GetValueAsync(cancellationToken).ConfigureAwait(false);
Lifecycle\TerminalHostOrphanCleanupService.cs (1)
267cancellationToken: cancellationToken).ConfigureAwait(false);
McpServerResourceBuilderExtensions.cs (1)
89var baseUrl = await endpoint.GetValueAsync(cancellationToken).ConfigureAwait(false);
Orchestrator\ApplicationOrchestrator.cs (2)
86var connectionString = await resourceWithConnectionString.GetConnectionStringAsync(token).ConfigureAwait(false); 92connectionProperties[property.Key] = await property.Value.GetValueAsync(token).ConfigureAwait(false);
Orchestrator\ParameterProcessor.cs (1)
925var value = await parameter.GetValueAsync(cancellationToken).ConfigureAwait(false);
Pipelines\DistributedApplicationPipeline.cs (1)
199context.CancellationToken).ConfigureAwait(false);
Pipelines\PipelineStepHelpers.cs (5)
36context.CancellationToken).ConfigureAwait(false); 47var registryEndpoint = await registry.Endpoint.GetValueAsync(context.CancellationToken).ConfigureAwait(false); 65var targetTag = await cir.GetValueAsync(new ValueProviderContext { ExecutionContext = context.ExecutionContext }, context.CancellationToken).ConfigureAwait(false); 107var registryName = await registry.Name.GetValueAsync(context.CancellationToken).ConfigureAwait(false) 111var targetTag = await cir.GetValueAsync(new ValueProviderContext { ExecutionContext = context.ExecutionContext }, context.CancellationToken).ConfigureAwait(false);
Publishing\ContainerImageArchiveRewriter.cs (1)
166while (await reader.GetNextEntryAsync(copyData: false, cancellationToken).ConfigureAwait(false) is { } entry)
Publishing\ManifestPublishingContext.cs (1)
887var resolvedValue = await conditional.GetValueAsync(CancellationToken).ConfigureAwait(false);
Publishing\ResourceContainerImageManager.cs (2)
285cancellationToken).ConfigureAwait(false); 1014IValueProvider valueProvider => await valueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false),
ResourceBuilderExtensions.cs (4)
460var url = await externalService.Resource.UrlParameter.GetValueAsync(context.CancellationToken).ConfigureAwait(false); 1656else if (ExternalServiceResource.UrlIsValidForExternalService(await externalService.Resource.UrlParameter.GetValueAsync(context.CancellationToken).ConfigureAwait(false), out var uri, out var message)) 2446var urlValue = await url.GetValueAsync(c.CancellationToken).ConfigureAwait(false); 3570var processCommandSpec = await processSpecFactory(context).ConfigureAwait(false)
src\Shared\ChannelExtensions.cs (1)
36if (await channel.Reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
Utils\AsyncEnumerableUtils.cs (1)
27hasNext = await enumerator.MoveNextAsync().ConfigureAwait(false);
Utils\PeriodicRestartAsyncEnumerable.cs (2)
49if (!await enumerator.MoveNextAsync().ConfigureAwait(false)) 115if (!await enumerator.MoveNextAsync().ConfigureAwait(false))
Aspire.Hosting.Azure (9)
AcrLoginService.cs (1)
80var aadToken = await credential.GetTokenAsync(tokenRequestContext, cancellationToken).ConfigureAwait(false);
AzureEnvironmentResource.cs (1)
220await credential.GetTokenAsync(new TokenRequestContext([scope]), context.CancellationToken).ConfigureAwait(false);
AzurePublishingContext.cs (1)
537var value = await p.GetValueAsync(cancellationToken).ConfigureAwait(false);
Provisioning\BicepUtilities.cs (2)
84IValueProvider v => await v.GetValueAsync(valueProviderContext, cancellationToken).ConfigureAwait(false), 203IValueProvider v => await v.GetValueAsync(cancellationToken).ConfigureAwait(false),
Provisioning\Internal\DefaultAzurePrincipalProvider.cs (1)
34response = await credential.GetTokenAsync(new([scope]), cancellationToken).ConfigureAwait(false);
Provisioning\Provisioners\BicepProvisioner.cs (3)
64var currentCheckSum = await BicepUtilities.GetCurrentChecksumAsync(resource, stateSection, executionContext, logger, cancellationToken).ConfigureAwait(false); 713await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); 1290IValueProvider valueProvider => await valueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false) ?? throw new InvalidOperationException("The Azure resource scope value cannot be null."),
Aspire.Hosting.Azure.AppContainers (3)
AzureContainerAppEnvironmentResource.cs (1)
165var domainValue = await ContainerAppDomain.GetValueAsync(context.CancellationToken).ConfigureAwait(false);
AzureContainerAppResource.cs (1)
48var domainValue = await containerAppEnv.ContainerAppDomain.GetValueAsync(ctx.CancellationToken).ConfigureAwait(false);
ContainerAppUrls.cs (1)
15var environmentIdValue = await containerAppEnv.ContainerAppEnvironmentId.GetValueAsync(cancellationToken).ConfigureAwait(false)
Aspire.Hosting.Azure.AppService (4)
AppSvcUrls.cs (1)
16var planIdValue = await computerEnv.PlanIdOutputReference.GetValueAsync(cancellationToken).ConfigureAwait(false)
AzureAppServiceEnvironmentResource.cs (1)
242var dashboardUri = await DashboardUriReference.GetValueAsync(context.CancellationToken).ConfigureAwait(false);
AzureAppServiceWebSiteResource.cs (2)
53await computerEnv.DeploymentSlotParameter.GetValueAsync(ctx.CancellationToken).ConfigureAwait(false); 112var websiteSuffix = await computerEnv.WebSiteSuffix.GetValueAsync(context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.ContainerRegistry (2)
AzureContainerRegistryHelpers.cs (2)
26var registryName = await registry.Name.GetValueAsync(context.CancellationToken).ConfigureAwait(false) ?? 29var registryEndpoint = await registry.Endpoint.GetValueAsync(context.CancellationToken).ConfigureAwait(false) ??
Aspire.Hosting.Azure.CosmosDB (1)
AzureCosmosDBExtensions.cs (1)
122var connectionString = await cosmosDb.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false);
Aspire.Hosting.Azure.EntraId (4)
EntraIdEndpointRedirectUri.cs (1)
130var allocated = await endpoint.Property(EndpointProperty.Url).GetValueAsync(cancellationToken).ConfigureAwait(false);
EntraIdResourceExtensions.cs (3)
156tenantId = await resource.TenantIdOutputReference.GetValueAsync(cancellationToken).ConfigureAwait(false); 157clientId = await resource.ClientIdOutputReference.GetValueAsync(cancellationToken).ConfigureAwait(false); 289parameterValue = await parameter.GetValueAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.Functions (1)
DurableTask\DurableTaskResourceExtensions.cs (1)
237? await ReferenceExpression.Create($"{r.Parent.EmulatorDashboardEndpoint}/subscriptions/default/schedulers/default/taskhubs/{r.TaskHubName}").GetValueAsync(ct).ConfigureAwait(false)
Aspire.Hosting.Azure.Kubernetes (3)
AzureKubernetesEnvironmentResource.AksPipeline.cs (3)
213var clusterName = await NameOutputReference.GetValueAsync(context.CancellationToken).ConfigureAwait(false) 535var subnetId = await ((IValueProvider)lb.SubnetIdReference).GetValueAsync(context.CancellationToken).ConfigureAwait(false); 801await provider.GetValueAsync(cancellationToken).ConfigureAwait(false) is { Length: > 0 } resolved => resolved,
Aspire.Hosting.Azure.Kusto (5)
AzureKustoBuilderExtensions.cs (5)
127var connectionString = await db.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false) ?? 242var connectionString = await resource.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false) ?? 302await AzureKustoEmulatorResiliencePipelines.Default.ExecuteAsync(async ct => await adminProvider.ExecuteControlCommandAsync(databaseResource.DatabaseName, script, crp).ConfigureAwait(false), cancellationToken).ConfigureAwait(false); 385.ConfigureAwait(false) ?? 400.ConfigureAwait(false) ??
Aspire.Hosting.Azure.Sandboxes (5)
AzureSandboxContainerDeployment.cs (4)
681var registryEndpoint = await registry.RegistryEndpoint.GetValueAsync(cancellationToken).ConfigureAwait(false); 977.ConfigureAwait(false) 1183context.CancellationToken).ConfigureAwait(false) ?? string.Empty; 1209.ConfigureAwait(false) ?? string.Empty;
Internal\Adc\AzureDevComputeClient.cs (1)
450_accessToken = await credential.GetTokenAsync(new TokenRequestContext(s_authorizationScopes), cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Azure.Storage (7)
AzureStorageExtensions.cs (7)
221var 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."); 224var 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."); 515connectionString = await resource.Parent.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false); 568connectionString = await blobStorage.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false); 679connectionString = await resource.Parent.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false); 832connectionString = await resource.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false); 874connectionString = await resource.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false);
Aspire.Hosting.Azure.WebPubSub (1)
AzureWebPubSubExtensions.cs (1)
238["UrlTemplate"] = await url.GetValueAsync(valueContext, cancellationToken).ConfigureAwait(false),
Aspire.Hosting.Blazor (2)
GatewayOriginReference.cs (2)
18var url = await endpoint.GetValueAsync(cancellationToken).ConfigureAwait(false); 24var url = await endpoint.GetValueAsync(context, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Browsers (1)
BrowserLogsCdpConnection.cs (1)
543_readBufferCount = await _readStream.ReadAsync(_readBuffer, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Browsers.Tests (2)
BrowserLogsSessionManagerTests.cs (1)
587await stream.ReadAsync(buffer).ConfigureAwait(false);
src\Aspire.Hosting.Browsers\BrowserLogsCdpConnection.cs (1)
543_readBufferCount = await _readStream.ReadAsync(_readBuffer, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.DevTunnels (7)
DevTunnelCli.cs (1)
399var line = await reader.ReadLineAsync(cancellationToken).ConfigureAwait(false);
DevTunnelMonitor.cs (1)
72ports.Add(port, await port.GetTunnelPortAsync(cancellationToken).ConfigureAwait(false));
DevTunnelResource.cs (3)
106return await GetResolvedEndpointPortAsync(EndpointProperty.Port, cancellationToken).ConfigureAwait(false) 115return await GetResolvedEndpointPortAsync(EndpointProperty.TargetPort, cancellationToken).ConfigureAwait(false) 124resolvedTargetPort = await TargetEndpoint.Property(property).GetValueAsync(cancellationToken).ConfigureAwait(false);
DevTunnelResourceBuilderExtensions.cs (2)
195var tunnelPort = await portResource.GetTunnelPortAsync(ct).ConfigureAwait(false); 719var port = await portResource.GetTunnelPortAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Docker (3)
DockerComposeEnvironmentResource.cs (2)
565defaultValue ??= await parameter.GetValueAsync(context.CancellationToken).ConfigureAwait(false); 570defaultValue = await vp.GetValueAsync(context.CancellationToken).ConfigureAwait(false);
DockerComposeServiceResourceExtensions.cs (1)
66var conditionStr = await expr.Condition!.GetValueAsync(default).ConfigureAwait(false);
Aspire.Hosting.EntityFrameworkCore (2)
EFCoreOperationExecutor.cs (1)
515var line = await reader.ReadLineAsync(cancellationToken).ConfigureAwait(false);
EFResourceBuilderExtensions.cs (1)
541context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Foundry (28)
FoundryLocalService.cs (1)
478while (await reader.ReadLineAsync(readCancellationToken).ConfigureAwait(false) is { } line)
HostedAgent\AzureHostedAgentResource.cs (14)
108var imageName = await ((IValueProvider)Image).GetValueAsync(context.CancellationToken).ConfigureAwait(false); 162var projectEndpoint = await project.Endpoint.GetValueAsync(context.CancellationToken).ConfigureAwait(false); 254var foundryResourceId = await project.Parent.Id.GetValueAsync(context.CancellationToken).ConfigureAwait(false); 357resolvedEnvVars[key] = await ResolveValueProviderAsync(provider, context, hostedAgent, target, key, cancellationToken).ConfigureAwait(false) ?? string.Empty; 424return await ResolvePublishedEndpointAsync(endpointReference.Property(EndpointProperty.Url), context, hostedAgent, resource, environmentVariableName, cancellationToken).ConfigureAwait(false); 426return await ResolvePublishedEndpointAsync(endpointReferenceExpression, context, hostedAgent, resource, environmentVariableName, cancellationToken).ConfigureAwait(false); 428return await ResolveReferenceExpressionAsync(referenceExpression, context, hostedAgent, resource, environmentVariableName, cancellationToken).ConfigureAwait(false); 430var connectionString = await ResolveReferenceExpressionAsync(connectionStringReference.ConnectionStringExpression, context, hostedAgent, resource, environmentVariableName, cancellationToken).ConfigureAwait(false); 438return await ResolveReferenceExpressionAsync(connectionStringResource.ConnectionStringExpression, context, hostedAgent, resource, environmentVariableName, cancellationToken).ConfigureAwait(false); 448cancellationToken).ConfigureAwait(false); 461var conditionValue = await ResolveValueProviderAsync(expression.Condition!, context, hostedAgent, resource, environmentVariableName, cancellationToken).ConfigureAwait(false); 464return await ResolveReferenceExpressionAsync(branch, context, hostedAgent, resource, environmentVariableName, cancellationToken).ConfigureAwait(false); 475args[i] = await ResolveValueProviderAsync(expression.ValueProviders[i], context, hostedAgent, resource, environmentVariableName, cancellationToken).ConfigureAwait(false); 518cancellationToken).ConfigureAwait(false);
PromptAgent\AzurePromptAgentResource.cs (4)
202var projectEndpoint = await project.Endpoint.GetValueAsync(cancellationToken).ConfigureAwait(false); 247}, cancellationToken).ConfigureAwait(false); 422var foundryAccountName = await Project.Parent.NameOutputReference.GetValueAsync(cancellationToken).ConfigureAwait(false); 423var projectNameOutput = await Project.NameOutputReference.GetValueAsync(cancellationToken).ConfigureAwait(false);
PromptAgent\PromptAgentBuilderExtensions.cs (1)
84var endpoint = await agent.Project.Endpoint.GetValueAsync(ctx.CancellationToken).ConfigureAwait(false);
Toolbox\FoundryToolboxResource.cs (4)
209tools.Add(await tool.ResolveAsync(cancellationToken).ConfigureAwait(false)); 266var projectEndpoint = await Parent.Endpoint.GetValueAsync(cancellationToken).ConfigureAwait(false); 417.GetValueAsync(cancellationToken).ConfigureAwait(false); 428cancellationToken).ConfigureAwait(false);
Toolbox\FoundryToolboxToolDefinition.cs (2)
146var endpoint = await EndpointExpression.GetValueAsync(cancellationToken).ConfigureAwait(false); 388var connectionId = await connectionIdRef.GetValueAsync(cancellationToken).ConfigureAwait(false);
ToolResources\AzureAISearchToolResource.cs (1)
66var connectionId = await connectionIdRef.GetValueAsync(cancellationToken).ConfigureAwait(false);
ToolResources\BingGroundingToolResource.cs (1)
64var connectionId = await connectionIdRef.GetValueAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Garnet (1)
GarnetBuilderExtensions.cs (1)
118connectionString = await garnet.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false);
Aspire.Hosting.Go (2)
GoRunDebugging.cs (2)
34context.ExecutionContext, context.Logger, original, "GOFLAGS", context.CancellationToken).ConfigureAwait(false))?.Value; 109context.ExecutionContext, context.Logger, value, name, context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Java (1)
JavaHostingExtensions.cs (1)
1731var bundlePathValue = await bundlePath.GetValueAsync(ctx.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.JavaScript (1)
JavaScriptHostingExtensions.cs (1)
2062ReferenceExpression re => await re.GetValueAsync(ctx.CancellationToken).ConfigureAwait(false),
Aspire.Hosting.Kafka (1)
KafkaBuilderExtensions.cs (1)
46connectionString = await kafka.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false);
Aspire.Hosting.Kubernetes (23)
CertManagerExtensions.cs (4)
598var hmacKey = await binding.HmacKey.GetValueAsync(cancellationToken).ConfigureAwait(false); 761var server = await acme.ServerUrl.GetValueAsync(cancellationToken).ConfigureAwait(false); 762var email = await acme.Email.GetValueAsync(cancellationToken).ConfigureAwait(false); 771var keyId = await binding.KeyId.GetValueAsync(cancellationToken).ConfigureAwait(false);
Deployment\HelmDeploymentEngine.cs (5)
50var resolvedRelease = await releaseAnnotation.ReleaseName.GetValueAsync(context.CancellationToken).ConfigureAwait(false); 74var resolvedNs = await nsAnnotation.Namespace.GetValueAsync(context.CancellationToken).ConfigureAwait(false); 310var resolvedValue = await captured.Parameter.GetValueAsync(cancellationToken).ConfigureAwait(false); 334var resolvedImage = await cir.GetValueAsync(cancellationToken).ConfigureAwait(false); 348var resolvedValue = await valueProviderRef.ValueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false);
KubernetesEnvironmentResource.cs (8)
611return (await expression.GetValueAsync(cancellationToken).ConfigureAwait(false))!; 640return (await expression.GetValueAsync(cancellationToken).ConfigureAwait(false))!; 677return (await parameter.GetValueAsync(cancellationToken).ConfigureAwait(false)) ?? string.Empty; 711return (await valueProvider.GetValueAsync(cancellationToken).ConfigureAwait(false)) ?? string.Empty; 1447var resolvedNs = await nsAnnotation.Namespace.GetValueAsync(context.CancellationToken).ConfigureAwait(false); 1762}, context.CancellationToken).ConfigureAwait(false); 1901var resolvedNs = await nsAnnotation.Namespace.GetValueAsync(context.CancellationToken).ConfigureAwait(false); 2205var resolvedNs = await nsAnnotation.Namespace.GetValueAsync(context.CancellationToken).ConfigureAwait(false);
KubernetesPublishingContext.cs (5)
301value = await parameter.GetValueAsync(cancellationToken).ConfigureAwait(false); 357paramValues[valuesKey] = await imageReference.GetValueAsync(cancellationToken).ConfigureAwait(false) 459var name = await nameAnnotation.Name.GetValueAsync(cancellationToken).ConfigureAwait(false); 469var version = await versionAnnotation.Version.GetValueAsync(cancellationToken).ConfigureAwait(false); 479var description = await descriptionAnnotation.Description.GetValueAsync(cancellationToken).ConfigureAwait(false);
KubernetesResource.cs (1)
622var conditionStr = await expr.Condition!.GetValueAsync(conditionContext, default).ConfigureAwait(false);
Aspire.Hosting.Maui (14)
Lifecycle\MauiBuildQueueEventSubscriber.cs (1)
265var line = await reader.ReadLineAsync(cancellationToken).ConfigureAwait(false);
MauiOtlpExtensions.cs (13)
165ct).ConfigureAwait(false); 200ct).ConfigureAwait(false) is { } dashboardOtlpEndpoint) 278if (await TryResolveEndpointAsync(httpEndpoint, OtlpHttpProtobufProtocol, cancellationToken).ConfigureAwait(false) is { } httpTarget) 283if (await HasUnresolvedTargetPortExpressionAsync(httpEndpoint, cancellationToken).ConfigureAwait(false)) 290cancellationToken).ConfigureAwait(false); 297if (await TryResolveEndpointAsync(grpcEndpoint, OtlpGrpcProtocol, cancellationToken).ConfigureAwait(false) is { } grpcTarget) 302if (!await HasUnresolvedTargetPortExpressionAsync(grpcEndpoint, cancellationToken).ConfigureAwait(false)) 312cancellationToken).ConfigureAwait(false); 328var allocatedPort = await TryGetEndpointPortAsync(endpointReference, EndpointProperty.Port, cancellationToken).ConfigureAwait(false); 338var targetPort = await TryGetEndpointPortAsync(endpointReference, EndpointProperty.TargetPort, cancellationToken).ConfigureAwait(false); 365var targetPort = await TryGetEndpointPortAsync(endpointReference, EndpointProperty.TargetPort, cancellationToken).ConfigureAwait(false); 377portValue = await endpointReference.Property(property).GetValueAsync(cancellationToken).ConfigureAwait(false); 587return await tunnelEndpoint.GetValueAsync(timeoutCts.Token).ConfigureAwait(false);
Aspire.Hosting.MongoDB (9)
MongoDBBuilderExtensions.cs (5)
102connectionString = await resource.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false) 213var username = await resource.UserNameReference.GetValueAsync(cancellationToken).ConfigureAwait(false); 214var password = await passwordParameter.GetValueAsync(cancellationToken).ConfigureAwait(false); 276connectionString = await mongoDBDatabase.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false); 622Contents = await keyValue.GetValueAsync(ct).ConfigureAwait(false),
MongoDBSingleMemberReplicaSet.cs (1)
56var connectionString = await resource.ConnectionStringExpression.GetValueAsync(timeout.Token).ConfigureAwait(false)
ReplicaSet\MongoDBReplicaSetBuilderExtensions.cs (3)
129connectionString = await rsResource.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false); 149await member.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false) 162.ConfigureAwait(false) ?? throw new DistributedApplicationException($"The endpoint of MongoDB replica set member '{m.Name}' could not be resolved.")
Aspire.Hosting.MySql (4)
MySqlBuilderExtensions.cs (4)
51connectionString = await resource.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false); 122var password = await resource.PasswordParameter.GetValueAsync(cancellationToken).ConfigureAwait(false); 181connectionString = await mySqlDatabase.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false); 492var pwd = await mySqlInstance.PasswordParameter.GetValueAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Native.Server (8)
Dcp\DcpApiClient.cs (2)
160var length = await reader.ReadBlockAsync(text.AsMemory(0, 65537), timeout.Token).ConfigureAwait(false); 198return await JsonSerializer.DeserializeAsync(input, responseType, timeout.Token).ConfigureAwait(false);
Dcp\DcpResponseStream.cs (1)
33var count = await input.ReadAsync(buffer[..Math.Min(buffer.Length, _remaining + 1)], cancellationToken).ConfigureAwait(false);
Rpc\NativeBackchannelRpc.cs (1)
241if (!_finished && await _enumerator.MoveNextAsync().ConfigureAwait(false))
Rpc\NativeRpcFraming.cs (1)
29_length = await stream.ReadAsync(_buffer, cancellationToken).ConfigureAwait(false);
Rpc\NativeRpcListener.cs (1)
166return new NetworkStream(await _listener.AcceptAsync(cancellationToken).ConfigureAwait(false), ownsSocket: true);
src\Shared\ParentProcessLivenessMonitor.cs (1)
105} while (await timer.WaitForNextTickAsync(stopToken).ConfigureAwait(false));
Transport\SocketConnectionListener.cs (1)
23var socket = await listener.AcceptAsync(lifetime.Token).ConfigureAwait(false);
Aspire.Hosting.Nats (3)
NatsBuilderExtensions.cs (3)
66var connectionString = await nats.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false) 79Username = await nats.UserNameReference.GetValueAsync(ct).ConfigureAwait(false), 80Password = await nats.PasswordParameter!.GetValueAsync(ct).ConfigureAwait(false),
Aspire.Hosting.OpenAI (4)
OpenAIExtensions.cs (3)
80var cs = await r.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false); 128var cs = await r.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false); 231return 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)
47connectionString = await oracleDatabaseServer.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false);
Aspire.Hosting.PostgreSQL (8)
PostgresBuilderExtensions.cs (8)
68connectionString = await postgresServer.GetConnectionStringAsync(ct).ConfigureAwait(false); 156var username = await resource.UserNameReference.GetValueAsync(cancellationToken).ConfigureAwait(false); 157var password = await resource.PasswordParameter.GetValueAsync(cancellationToken).ConfigureAwait(false); 210connectionString = await postgresDatabase.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false); 693: await postgresDatabase.Parent.UserNameParameter.GetValueAsync(cancellationToken).ConfigureAwait(false); 695var password = await postgresDatabase.Parent.PasswordParameter.GetValueAsync(cancellationToken).ConfigureAwait(false) ?? "password"; 733: await postgresInstance.UserNameParameter.GetValueAsync(cancellationToken).ConfigureAwait(false); 734var password = await postgresInstance.PasswordParameter.GetValueAsync(cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Qdrant (1)
QdrantBuilderExtensions.cs (1)
58var connectionString = await qdrant.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false)
Aspire.Hosting.RabbitMQ (1)
RabbitMQBuilderExtensions.cs (1)
49connectionString = await rabbitMq.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false);
Aspire.Hosting.Radius (5)
Publishing\RadCredentialRegisterStep.cs (1)
243return await parameter.Resource.GetValueAsync(cancellationToken).ConfigureAwait(false) ?? string.Empty;
Publishing\RadiusDeploymentPipelineStep.cs (1)
678var value = await parameter.GetValueAsync(cancellationToken).ConfigureAwait(false) ?? string.Empty;
Publishing\RadiusInfrastructureBuilder.cs (3)
2851var value = await userNameParameter.GetValueAsync(_cancellationToken).ConfigureAwait(false); 4193resolved = await valueProvider.GetValueAsync(context, _cancellationToken).ConfigureAwait(false); 4385conditionValue = await expression.Condition!.GetValueAsync(conditionContext, _cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Redis (3)
RedisBuilderExtensions.cs (3)
85connectionString = await redis.GetConnectionStringAsync(ct).ConfigureAwait(false); 254var password = await passwordParameter.GetValueAsync(cancellationToken).ConfigureAwait(false); 331var password = await redisInstance.PasswordParameter.GetValueAsync(ct).ConfigureAwait(false);
Aspire.Hosting.RemoteHost (4)
JsonRpcServer.cs (1)
172var clientSocket = await _listenSocket.AcceptAsync(cancellationToken).ConfigureAwait(false);
OrphanDetector.cs (1)
91} while (await periodic.WaitForNextTickAsync(stoppingToken).ConfigureAwait(false));
src\Shared\ChildProcess.cs (1)
737while (await reader.ReadLineAsync(readersCancellation.Token).ConfigureAwait(false) is { } line)
src\Shared\ParentProcessLivenessMonitor.cs (1)
105} while (await timer.WaitForNextTickAsync(stopToken).ConfigureAwait(false));
Aspire.Hosting.SqlServer (3)
SqlServerBuilderExtensions.cs (3)
69connectionString = await sqlServer.GetConnectionStringAsync(ct).ConfigureAwait(false); 182var password = await resource.PasswordParameter.GetValueAsync(cancellationToken).ConfigureAwait(false); 250var connectionString = await sqlServerDatabase.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false);
Aspire.Hosting.Testing (1)
DistributedApplicationHostingTestingExtensions.cs (1)
106var dashboardUrl = await EndpointHostHelpers.GetUrlWithTargetHostAsync(dashboardEndpoint, cancellationToken).ConfigureAwait(false);
Aspire.Hosting.Tests (4)
Backchannel\AuxiliaryBackchannelRpcTargetTests.cs (1)
1220while (await enumerator.MoveNextAsync().ConfigureAwait(false))
Backchannel\GetTerminalInfoAsyncTests.cs (1)
462client = await _listenSocket!.AcceptAsync(ct).ConfigureAwait(false);
Dcp\DcpExecutorTests.cs (2)
4634}, context.CancellationToken).ConfigureAwait(false); 4676var url = await database.GetEndpoint("NoPortTargetPortSet").GetValueAsync(context.CancellationToken).ConfigureAwait(false);
Aspire.Hosting.Valkey (2)
ValkeyBuilderExtensions.cs (2)
134connectionString = await valkey.ConnectionStringExpression.GetValueAsync(ct).ConfigureAwait(false); 226var password = await passwordParameter.GetValueAsync(cancellationToken).ConfigureAwait(false);
Aspire.TerminalHost (6)
DcpUpstreamAdapter.cs (2)
119if (!await _outputChannel.Reader.WaitToReadAsync(ct).ConfigureAwait(false)) 451var n = await stream.ReadAsync(buffer.AsMemory(read), ct).ConfigureAwait(false);
Hmp1UdsServerListenerFilter.cs (1)
134var socket = await listener.AcceptAsync(ct).ConfigureAwait(false);
src\Shared\ParentProcessLivenessMonitor.cs (1)
105} while (await timer.WaitForNextTickAsync(stopToken).ConfigureAwait(false));
TerminalHostControlListener.cs (1)
118client = await _socket.AcceptAsync(cancellationToken).ConfigureAwait(false);
TerminalReplica.cs (1)
610var socket = await listener.AcceptAsync(ct).ConfigureAwait(false);
Aspire.TerminalHost.Tests (2)
TerminalHostAppTests.cs (2)
981var read = await _stream.ReadAsync(buffer.AsMemory(offset, buffer.Length - offset), ct).ConfigureAwait(false); 1150var read = await _stream.ReadAsync(buffer.AsMemory(offset), ct).ConfigureAwait(false);
Aspire.Tray.Tests (3)
src\Aspire.Tray\Common\CliAppHostClient.cs (1)
60available = await stream.MoveNextAsync().ConfigureAwait(false);
src\Aspire.Tray\Common\CliProcess.cs (1)
37while (await reader.ReadAsync(buffer.AsMemory(), cancellationToken).ConfigureAwait(false) != 0)
src\Aspire.Tray\Common\CliProtocol.cs (1)
102while ((count = await reader.ReadAsync(buffer.AsMemory(), cancellationToken).ConfigureAwait(false)) != 0)
DotNetInvocationHostedAgent (1)
EchoInvocationHandler.cs (1)
27var payload = await request.ReadFromJsonAsync<InvocationMessage>(cancellationToken).ConfigureAwait(false);
GenerateDocumentationAndConfigFiles (64)
src\5f6f2f95b47c3dc6\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
102return await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 157var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\7a47995420f988d7\AbstractRemoveUnnecessaryImportsService.cs (2)
27var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 34var currentModel = await current.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\ce8c1e82c1124a2b\AbstractInitializerParameterService.cs (2)
119var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 123var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
165int read = await stream.ReadAsync(buffer.AsMemory(), cancellationToken).ConfigureAwait(false);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
566builder.Add(await selector(item).ConfigureAwait(false)); 580builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 594builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 605builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
429builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 444builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 465builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
251return (ranToCompletion: true, await ProcessNextBatchAsync().ConfigureAwait(false));
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (1)
30while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\roslyn\src\Dependencies\Threading\ValueTaskExtensions.cs (2)
237_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 247_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\AddImport\AddImportPlacementOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
103changedRoot, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\MultiProjectSafeFixAllProvider.cs (1)
101var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
83var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CleanCodeGenerationOptions.cs (2)
42GenerationOptions = await document.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false), 43CleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false)
src\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
146var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 150return await ReuseExistingSpeculativeModelAsync(document, node, cancellationToken).ConfigureAwait(false); 239var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\DocumentFormattingOptionsProviders.cs (1)
24var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\FormatterShared.cs (1)
26var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\LineFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\SyntaxFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\NamingStyles\NamingStylePreferencesProviders.cs (1)
17var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
52var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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); 239semanticModelForReduce = await newDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 299var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplifierOptionsProviders.cs (1)
22var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
35return await FindSourceDefinitionWorkerAsync(symbol, solution, cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\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\roslyn\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.AspNetCore.Components.Platform (3)
Storage.cs (3)
32return await storage.GetValueAsync<uint>("length").ConfigureAwait(false); 44return await storage.InvokeAsync<string?>("key", [index]).ConfigureAwait(false); 59return await storage.InvokeAsync<string?>("getItem", [key]).ConfigureAwait(false);
Microsoft.AspNetCore.Http.Connections (1)
src\aspnetcore\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\aspnetcore\src\SignalR\common\Shared\PipeWriterStream.cs (1)
94var flushResult = await flushTask.ConfigureAwait(false);
Microsoft.AspNetCore.Identity (2)
PasskeyHandler.cs (2)
441}).ConfigureAwait(false); 724var isOriginValid = await ValidateOriginAsync(clientData, httpContext).ConfigureAwait(false);
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (7)
RedisOutputCacheStore.cs (7)
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.Razor.Utilities.Shared (1)
Utilities\Hashing\NonCryptographicHashAlgorithm.cs (1)
164int read = await stream.ReadAsync(buffer.AsMemory(), 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 (24)
HubConnection.cs (12)
525var connection = await _connectionFactory.ConnectAsync(_endPoint, cancellationToken).ConfigureAwait(false); 972while (await reader.WaitToReadAsync(cts.Token).ConfigureAwait(false)) 1168while (await enumerator.MoveNextAsync().ConfigureAwait(false)) 1202while (await reader.WaitToReadAsync(tokenSource.Token).ConfigureAwait(false)) 1523await connectionState.WriteAsync(hubMessage, cancellationToken).ConfigureAwait(false); 1529await connectionState.Connection.Transport.Output.FlushAsync(cancellationToken).ConfigureAwait(false); 1781else if (!await irq.StreamItem(streamItem.Item).ConfigureAwait(false)) 1814var sendHandshakeResult = await startingConnectionState.Connection.Transport.Output.FlushAsync(CancellationToken.None).ConfigureAwait(false); 1835var result = await input.ReadAsync(linkedToken).ConfigureAwait(false); 1933while (await invocationMessageChannelReader.WaitToReadAsync().ConfigureAwait(false)) 1955var result = await input.ReadAsync().ConfigureAwait(false); 2614return await _messageBuffer.WriteAsync(message, linkedToken).ConfigureAwait(false);
HubConnectionExtensions.StreamAsChannelAsync.cs (2)
291while (await inputChannel.WaitToReadAsync().ConfigureAwait(false)) 297if (!await outputChannel.Writer.WaitToWriteAsync().ConfigureAwait(false))
Internal\InvocationRequest.cs (1)
148if (!await _channel.Writer.WaitToWriteAsync().ConfigureAwait(false))
src\aspnetcore\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\aspnetcore\src\SignalR\common\Shared\MessageBuffer.cs (6)
101while (await _timer.WaitForNextTickAsync().ConfigureAwait(false)) 119await _writer.FlushAsync(cts.Token).ConfigureAwait(false); 159while (await _waitForAck.Reader.WaitToReadAsync(linkedToken).ConfigureAwait(false)) 201return await writeTask.ConfigureAwait(false); 311finalResult = await _writer.WriteAsync(item.HubMessage, cts.Token).ConfigureAwait(false); 325finalResult = await _writer.FlushAsync(cts.Token).ConfigureAwait(false);
src\aspnetcore\src\SignalR\common\Shared\PipeWriterStream.cs (1)
94var flushResult = await flushTask.ConfigureAwait(false);
Microsoft.AspNetCore.SignalR.Core (8)
src\aspnetcore\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\aspnetcore\src\SignalR\common\Shared\MessageBuffer.cs (6)
101while (await _timer.WaitForNextTickAsync().ConfigureAwait(false)) 119await _writer.FlushAsync(cts.Token).ConfigureAwait(false); 159while (await _waitForAck.Reader.WaitToReadAsync(linkedToken).ConfigureAwait(false)) 201return await writeTask.ConfigureAwait(false); 311finalResult = await _writer.WriteAsync(item.HubMessage, cts.Token).ConfigureAwait(false); 325finalResult = await _writer.FlushAsync(cts.Token).ConfigureAwait(false);
Microsoft.AspNetCore.WebUtilities (1)
HttpRequestStreamReader.cs (1)
490_bytesRead = await _stream.ReadAsync(_byteBuffer.AsMemory(0, _byteBufferSize)).ConfigureAwait(false);
Microsoft.Build (13)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
1217int bytesRead = await _readStream.ReadAsync(_headerByte.AsMemory(totalBytesRead, _headerByte.Length - totalBytesRead), CancellationToken.None).ConfigureAwait(false); 1250int bytesRead = await _readStream.ReadAsync(packetData.AsMemory(totalBytesRead, packetLength - totalBytesRead), CancellationToken.None).ConfigureAwait(false);
Logging\BinaryLogger\Postprocessing\SubStream.cs (2)
79cancellationToken).ConfigureAwait(false); 96int read = await _stream.ReadAsync(buffer, cancellationToken).ConfigureAwait(false);
Logging\BinaryLogger\Postprocessing\TransparentReadStream.cs (2)
125cancellationToken).ConfigureAwait(false); 150int cnt = await _stream.ReadAsync(buffer, cancellationToken).ConfigureAwait(false);
src\9f0d3f3da306d8cf\IEnumerableExtensions.cs (4)
502builder.Add(await selector(item).ConfigureAwait(false)); 517builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 532builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 544builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\9f0d3f3da306d8cf\ImmutableArrayExtensions.cs (3)
431builder[i] = await selector(array[i], cancellationToken).ConfigureAwait(false); 449builder[i] = await selector(array[i], arg, cancellationToken).ConfigureAwait(false); 475builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
Microsoft.Build.Tasks.Core (5)
AssemblyDependency\Node\RarNodeBuildEngine.cs (2)
120int eventCount = await _eventCountChannel.Reader.ReadAsync(cancellationToken).ConfigureAwait(false); 130BuildEventArgs buildEventArgs = await _eventChannel.Reader.ReadAsync(cancellationToken).ConfigureAwait(false);
parent\Shared\NodePipeBase.cs (3)
159int headerBytesRead = await ReadAsync(_headerData, HeaderLength, cancellationToken).ConfigureAwait(false); 180int packetBytesRead = await ReadAsync(_readBuffer.GetBuffer(), packetLength, cancellationToken).ConfigureAwait(false); 233int bytesRead = await NodeStream.ReadAsync(buffer.AsMemory(totalBytesRead, bytesToRead - totalBytesRead), cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis (31)
DiagnosticAnalyzer\AnalyzerDriver.cs (13)
1612var optionalEvent = await CompilationEventQueue.TryDequeueAsync(cancellationToken).ConfigureAwait(false); 1651EventProcessedState eventProcessedState = await TryProcessEventCoreAsync(e, analysisScope, cancellationToken).ConfigureAwait(false); 1740return await TryProcessSymbolDeclaredAsync(symbolEvent, analysisScope, cancellationToken).ConfigureAwait(false); 1778await GetPerSymbolAnalyzerActionsAsync(symbol, analysisScope, cancellationToken).ConfigureAwait(false) : 2061var analyzerActions = await analyzerManager.GetAnalyzerActionsAsync(analyzer, analyzerExecutor, cancellationToken).ConfigureAwait(false); 2151var analyzerActions = await GetPerSymbolAnalyzerActionsAsync(symbol, analyzer, analysisScope.OriginalFilterFile?.SourceTree, analysisScope.OriginalFilterSpan, cancellationToken).ConfigureAwait(false); 2183return await getAllActionsAsync(this, symbol, analyzer, filterTree, filterSpan, cancellationToken).ConfigureAwait(false); 2191var allActions = await getAllActionsAsync(this, symbol, analyzer, filterTree, filterSpan, cancellationToken).ConfigureAwait(false); 2197var inheritedActions = await getInheritedActionsAsync(driver, symbol, analyzer, filterTree, filterSpan, cancellationToken).ConfigureAwait(false); 2200AnalyzerActions myActions = await getSymbolActionsCoreAsync(driver, symbol, analyzer, filterTree, filterSpan, cancellationToken).ConfigureAwait(false); 2215var containerActions = await driver.GetPerSymbolAnalyzerActionsAsync(symbol.ContainingSymbol, analyzer, filterTree, filterSpan, cancellationToken).ConfigureAwait(false); 2247return await driver.AnalyzerManager.GetPerSymbolAnalyzerActionsAsync(symbol, isGeneratedCodeSymbol, filterTree, filterSpan, analyzer, driver.AnalyzerExecutor, cancellationToken).ConfigureAwait(false); 2392var 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\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
566builder.Add(await selector(item).ConfigureAwait(false)); 580builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 594builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 605builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
429builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 444builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 465builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
Microsoft.CodeAnalysis.Analyzers (76)
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\5f6f2f95b47c3dc6\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
102return await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 157var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\7a47995420f988d7\AbstractRemoveUnnecessaryImportsService.cs (2)
27var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 34var currentModel = await current.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\ce8c1e82c1124a2b\AbstractInitializerParameterService.cs (2)
119var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 123var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
566builder.Add(await selector(item).ConfigureAwait(false)); 580builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 594builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 605builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
429builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 444builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 465builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
251return (ranToCompletion: true, await ProcessNextBatchAsync().ConfigureAwait(false));
src\roslyn\src\Dependencies\Threading\ChannelReaderExtensions.cs (1)
22while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (1)
30while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\roslyn\src\Dependencies\Threading\ValueTaskExtensions.cs (2)
237_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 247_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\AddImport\AddImportPlacementOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
103changedRoot, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\MultiProjectSafeFixAllProvider.cs (1)
101var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
83var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CleanCodeGenerationOptions.cs (2)
42GenerationOptions = await document.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false), 43CleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false)
src\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
146var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 150return await ReuseExistingSpeculativeModelAsync(document, node, cancellationToken).ConfigureAwait(false); 239var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\DocumentFormattingOptionsProviders.cs (1)
24var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\FormatterShared.cs (1)
26var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\LineFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\SyntaxFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\NamingStyles\NamingStylePreferencesProviders.cs (1)
17var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
52var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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); 239semanticModelForReduce = await newDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 299var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplifierOptionsProviders.cs (1)
22var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
35return await FindSourceDefinitionWorkerAsync(symbol, solution, cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
566builder.Add(await selector(item).ConfigureAwait(false)); 580builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 594builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 605builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
429builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 444builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 465builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
251return (ranToCompletion: true, await ProcessNextBatchAsync().ConfigureAwait(false));
src\roslyn\src\Dependencies\Threading\ChannelReaderExtensions.cs (1)
22while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (1)
30while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\roslyn\src\Dependencies\Threading\ValueTaskExtensions.cs (2)
237_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 247_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
Microsoft.CodeAnalysis.CodeStyle (12)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
566builder.Add(await selector(item).ConfigureAwait(false)); 580builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 594builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 605builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
429builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 444builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 465builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
251return (ranToCompletion: true, await ProcessNextBatchAsync().ConfigureAwait(false));
src\roslyn\src\Dependencies\Threading\ChannelReaderExtensions.cs (1)
22while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (1)
30while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\roslyn\src\Dependencies\Threading\ValueTaskExtensions.cs (2)
237_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 247_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
Microsoft.CodeAnalysis.CodeStyle.Fixes (216)
src\5f6f2f95b47c3dc6\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
102return await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 157var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\7a47995420f988d7\AbstractRemoveUnnecessaryImportsService.cs (2)
27var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 34var currentModel = await current.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\939a5660f39ce290\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
66var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\ce8c1e82c1124a2b\AbstractInitializerParameterService.cs (2)
119var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 123var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\AddAccessibilityModifiers\AbstractAddAccessibilityModifiersCodeFixProvider.cs (1)
43var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (3)
71var root = await document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 72var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 216var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (3)
34var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 41var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 49var placementOption = await document.GetAddImportPlacementOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\AnalyzerOptionsProviders.cs (1)
16var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\ConvertTypeOfToNameOf\AbstractConvertTypeOfToNameOfCodeFixProvider.cs (1)
37var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (2)
48var options = await document.GetLineFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 57var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (1)
43var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (4)
70var root = await context.Document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 71var text = await context.Document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 80var formattingOptions = await context.Document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 88var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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))) 308return await TryDetermineTypeToGenerateInAsync(typeToGenerateIn, cancellationToken).ConfigureAwait(false); 325return await TryDetermineTypeToGenerateInAsync(typeToGenerateIn, cancellationToken).ConfigureAwait(false); 358return await TryDetermineTypeToGenerateInAsync(typeToGenerateIn, cancellationToken).ConfigureAwait(false); 399var definition = await SymbolFinderInternal.FindSourceDefinitionAsync(original, _document.Project.Solution, cancellationToken).ConfigureAwait(false); 467var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 485var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorCodeFixProvider.cs (1)
28var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberCodeFixProvider.cs (1)
41var root = await document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateConversionService.cs (1)
41return await GetActionsAsync(document, state, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateConversionService.State.cs (1)
25if (!await state.TryInitializeConversionAsync(service, document, interfaceNode, cancellationToken).ConfigureAwait(false))
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateDeconstructMethodService.cs (1)
36return state != null ? await GetActionsAsync(document, state, cancellationToken).ConfigureAwait(false) : [];
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.cs (1)
42return await GetActionsAsync(document, state, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.CodeAction.cs (2)
69var property = await _state.SignatureInfo.GeneratePropertyAsync(syntaxFactory, _isAbstract, _state.IsWrittenTo, cancellationToken).ConfigureAwait(false); 85var method = await _state.SignatureInfo.GenerateMethodAsync(syntaxFactory, _isAbstract, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (1)
62var returnType = await state.SignatureInfo.DetermineReturnTypeAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.State.cs (2)
60TypeToGenerateIn = await SymbolFinderInternal.FindSourceDefinitionAsync(TypeToGenerateIn, document.Project.Solution, cancellationToken).ConfigureAwait(false) as INamedTypeSymbol; 92var generatedMethod = await SignatureInfo.GenerateMethodAsync(syntaxFactory, false, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\TypeParameterSubstitution.cs (2)
78var commonDerivedType = await DetermineCommonDerivedTypeAsync(symbol).ConfigureAwait(false); 113_project, commonType, _compilation, _availableTypeParameterNames, _cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (1)
41var state = await State.GenerateAsync((TService)this, semanticDocument, node, cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (2)
81return await state.TryInitializeAsync(interfaceNode, cancellationToken).ConfigureAwait(false) ? state : null; 154TypeToGenerateIn, _document.Project.Solution, cancellationToken).ConfigureAwait(false) as INamedTypeSymbol;
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementAbstractClass\AbstractImplementAbstractClassCodeFixProvider.cs (1)
28var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementAbstractClass\ImplementAbstractClassData.cs (4)
43var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 68var options = await document.GetImplementTypeOptionsAsync(cancellationToken).ConfigureAwait(false); 109var info = await _document.GetCodeGenerationInfoAsync(context, cancellationToken).ConfigureAwait(false); 117var root = await _document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (1)
24var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\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); 236var options = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (1)
74var tree = await this.Document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementType\ImplementTypeOptions.cs (1)
79var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\Iterator\AbstractIteratorCodeFixProvider.cs (1)
21var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (2)
43var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 74var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\MakeMethodAsynchronous\AbstractMakeMethodAsynchronousCodeFixProvider.cs (4)
55var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 210var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 276var newRoot = await newDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 279var semanticModel = await newDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (6)
55var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 86var semanticModel = await newDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 104var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 120var syntaxRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 124var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 173var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\MakeTypePartial\AbstractMakeTypePartialCodeFixProvider.cs (1)
27var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\Naming\NamingExtensions.cs (1)
37var options = await document.GetNamingStylePreferencesAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\NewLines\ConsecutiveStatementPlacement\ConsecutiveStatementPlacementCodeFixProvider.cs (2)
45var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 46var options = await document.GetLineFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesCodeFixProvider.cs (1)
47var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\OrderModifiers\AbstractOrderModifiersCodeFixProvider.cs (2)
34var syntaxTree = await context.Document.GetRequiredSyntaxTreeAsync(context.CancellationToken).ConfigureAwait(false); 46var options = await document.GetAnalyzerOptionsProviderAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (1)
141var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (2)
40var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 58var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsCodeFixProvider.cs (1)
56var newRoot = await newDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryAttributeSuppressionsCodeFixProvider.cs (1)
28var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (1)
32var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnusedMembers\AbstractRemoveUnusedMembersCodeFixProvider.cs (1)
47var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\SimplifyInterpolation\AbstractSimplifyInterpolationCodeFixProvider.cs (1)
49var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\UpdateLegacySuppressions\UpdateLegacySuppressionsCodeFixProvider.cs (1)
29var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (15)
141var updatedProperty = await GetUpdatedPropertyDeclarationAsync().ConfigureAwait(false); 228var declaratorTreeRoot = await fieldDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 242var fieldTreeRoot = await fieldDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 243var propertyTreeRoot = await propertyDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 274cancellationToken).ConfigureAwait(false); 333var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 406var fieldSemanticModel = await fieldDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 411var propertySemanticModel = await propertyDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 463var options = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 468var codeCleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false); 472return await cleanedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 502async cancellationToken => await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false)); 507await IsWrittenToOutsideOfConstructorOrPropertyAsync(lazySemanticModel, location, propertyDeclaration, constructorSpans, cancellationToken).ConfigureAwait(false); 509await IsWrittenNullAsync(syntaxFacts, lazySemanticModel, location, cancellationToken).ConfigureAwait(false); 562if (!await IsWrittenToAsync(location).ConfigureAwait(false))
src\roslyn\src\Analyzers\Core\CodeFixes\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (1)
36var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForNullableTernaryConditionalCheckCodeFixProvider.cs (1)
39var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForTernaryConditionalCheckCodeFixProvider.cs (1)
40var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\UseCollectionInitializer\AbstractUseCollectionInitializerCodeFixProvider.cs (1)
75var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (4)
50var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 52var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 94var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 158var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForReturn\AbstractUseConditionalExpressionForReturnCodeFixProvider.cs (1)
55var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\UseSystemHashCode\UseSystemHashCodeCodeFixProvider.cs (1)
45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\AddImport\AddImportPlacementOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
103changedRoot, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\MultiProjectSafeFixAllProvider.cs (1)
101var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
83var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CleanCodeGenerationOptions.cs (2)
42GenerationOptions = await document.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false), 43CleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false)
src\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
146var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 150return await ReuseExistingSpeculativeModelAsync(document, node, cancellationToken).ConfigureAwait(false); 239var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\DocumentFormattingOptionsProviders.cs (1)
24var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\FormatterShared.cs (1)
26var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\LineFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\SyntaxFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\NamingStyles\NamingStylePreferencesProviders.cs (1)
17var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
52var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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); 239semanticModelForReduce = await newDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 299var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplifierOptionsProviders.cs (1)
22var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
35return await FindSourceDefinitionWorkerAsync(symbol, solution, cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\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\roslyn\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.CSharp.CodeStyle.Fixes (119)
src\50a3a051b0fef0d6\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
41var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\cef93d2425d77fca\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\roslyn\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\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceCodeFixProvider.cs (2)
54var options = await document.GetCSharpSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 59await converted.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false));
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.cs (1)
63var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\CSharpConvertToRecordCodeFixProvider.cs (1)
36var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (1)
76var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.AddNewKeywordAction.cs (1)
25var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (1)
48var options = await document.GetCSharpSimplifierOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\Iterator\CSharpAddYieldCodeFixProvider.cs (1)
53var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\Iterator\CSharpChangeToIEnumerableCodeFixProvider.cs (1)
38var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (2)
66var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 83var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (3)
37var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 52var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 113var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\MakeStatementAsynchronous\CSharpMakeStatementAsynchronousCodeFixProvider.cs (1)
35var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementCodeFixProvider.cs (2)
45var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 46var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementCodeFixProvider.cs (2)
45var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 46var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (2)
48var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 49var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (2)
45var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 46var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (2)
47var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 50var options = await document.GetCSharpSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (2)
82var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 167model ??= await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (2)
58var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 59var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnneccessaryUnsafeModifier\CSharpRemoveUnnecessaryUnsafeModifierCodeFixProvider.cs (4)
55var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 67var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 68var options = await document.GetLineFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 69var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryNullableWarningSuppressionsCodeFixProvider.cs (2)
42var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 52var linkedSemanticModel = await linkedDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (2)
50var document = await ParsedDocument.CreateAsync(workspaceDocument, cancellationToken).ConfigureAwait(false); 52var formattingOptions = await workspaceDocument.GetCSharpSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (1)
64var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForCreateCodeFixProvider.cs (1)
63semanticDocument.Root.ReplaceNode(invocationExpression, dummyObjectCreation), cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForNewCodeFixProvider.cs (1)
64semanticDocument.Root.ReplaceNode(objectCreationExpression, dummyObjectCreation), cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocCodeFixProvider.cs (1)
40var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentCodeFixProvider.cs (1)
43var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseDefaultLiteral\CSharpUseDefaultLiteralCodeFixProvider.cs (1)
45var options = (CSharpAnalyzerOptionsProvider)await document.GetAnalyzerOptionsProviderAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\UseExpressionBody\UseExpressionBodyCodeFixProvider.cs (1)
56var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeFixProvider.cs (1)
40var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitlyTypedLambdaExpression\CSharpUseImplicitObjectCreationCodeFixProvider.cs (1)
48CSharpSimplification.Instance, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationCodeFixProvider.cs (1)
55CSharpSimplification.Instance, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (2)
95var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 147var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseLabeledJumpStatements\CSharpUseLabeledJumpStatementsCodeFixProvider.cs (1)
45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
92var info = await document.GetCodeGenerationInfoAsync(CodeGenerationContext.Default, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
74var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (2)
45var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 46var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpUseNotPatternCodeFixProvider.cs (1)
37var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (2)
118var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 127var removedMembers = await RemoveMembersAsync().ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
81semanticModel ??= await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (1)
45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeFixesAndRefactorings\CSharpFixAllSpanMappingService.cs (1)
27var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Formatting\CSharpSyntaxFormattingOptionsProviders.cs (1)
15var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Simplification\CSharpSimplifierOptionsProviders.cs (1)
15var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Features (310)
AddImport\CSharpAddImportFeatureService.cs (1)
410var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
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); 871var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 872var 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\AwaitCompletionProvider.cs (2)
71var newTypeName = await GetNewTypeNameAsync().ConfigureAwait(false); 84if (await IsMethodUsedAsEventHandlerAsync().ConfigureAwait(false))
Completion\CompletionProviders\CrefCompletionProvider.cs (2)
94var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 109parentNode, 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)
67var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 71var semanticModel = await document.ReuseExistingSpeculativeModelAsync(token.SpanStart, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.cs (1)
56var 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\FileBasedPrograms\AbstractAppDirectiveCompletionProvider.cs (1)
46var tree = await context.Document.GetRequiredSyntaxTreeAsync(context.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)
70var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\NamedParameterCompletionProvider.cs (2)
56var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 70var semanticModel = await document.ReuseExistingSpeculativeModelAsync(argumentList, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\ObjectAndWithInitializerCompletionProvider.cs (2)
59var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 73var semanticModel = await document.ReuseExistingSpeculativeModelAsync(expression, 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\OperatorsAndIndexer\UnnamedSymbolCompletionProvider.cs (2)
106var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 185var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\PropertySubPatternCompletionProvider.cs (2)
46var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 58var semanticModel = await document.ReuseExistingSpeculativeModelAsync(position, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\SnippetCompletionProvider.cs (1)
102var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\SpeculativeTCompletionProvider.cs (1)
65var 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);
Completion\CSharpCompletionService.cs (1)
73var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
ConvertAutoPropertyToFullProperty\CSharpConvertAutoPropertyToFullPropertyCodeRefactoringProvider.cs (2)
165var info = (CSharpCodeGenerationContextInfo)await document.GetCodeGenerationInfoAsync(CodeGenerationContext.Default, cancellationToken).ConfigureAwait(false); 167var 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)
36var options = await document.GetCSharpSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 50var 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\CSharpImplementNotImplementedExceptionFixProvider.cs (1)
88var 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)
749var 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)
64var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 65var root = await document.GetRequiredSyntaxRootAsync(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);
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider.cs (2)
50var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 72var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(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)
112var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
QuickInfo\CSharpSemanticQuickInfoProvider.cs (1)
328var 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\AbstractGenericNameSignatureHelpProvider.cs (2)
41var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 55var semanticModel = await document.ReuseExistingSpeculativeModelAsync(simpleName, 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 (1)
66var 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\InitializerExpressionSignatureHelpProvider.cs (2)
57var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 71var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
SignatureHelp\InvocationExpressionSignatureHelpProvider.cs (2)
66var semanticModel = await document.ReuseExistingSpeculativeModelAsync(invocationExpression, cancellationToken).ConfigureAwait(false); 116var semanticModel = await document.ReuseExistingSpeculativeModelAsync(invocationExpression, cancellationToken).ConfigureAwait(false);
SignatureHelp\ObjectCreationExpressionSignatureHelpProvider.cs (3)
54var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 60var semanticModel = await document.ReuseExistingSpeculativeModelAsync(objectCreationExpression, cancellationToken).ConfigureAwait(false); 104var 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);
SignatureHelp\WithElementSignatureHelpProvider.cs (2)
53var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 59var semanticModel = await document.ReuseExistingSpeculativeModelAsync(withElement, cancellationToken).ConfigureAwait(false);
Snippets\AbstractCSharpAutoPropertySnippetProvider.cs (1)
45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Snippets\AbstractCSharpTypeSnippetProvider.cs (4)
52var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 60var analyzerOptionsProvider = await document.GetAnalyzerOptionsProviderAsync(cancellationToken).ConfigureAwait(false); 100var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 102var syntaxFormattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
Snippets\CSharpConstructorSnippetProvider.cs (1)
61var semanticModel = await document.ReuseExistingSpeculativeModelAsync(position, 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);
src\cef93d2425d77fca\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\roslyn\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\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceCodeFixProvider.cs (2)
54var options = await document.GetCSharpSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 59await converted.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false));
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionCodeFixProvider.cs (1)
63var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\ConvertToRecord\CSharpConvertToRecordCodeFixProvider.cs (1)
36var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (1)
76var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.AddNewKeywordAction.cs (1)
25var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\InlineDeclaration\CSharpInlineDeclarationCodeFixProvider.cs (1)
48var options = await document.GetCSharpSimplifierOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\Iterator\CSharpAddYieldCodeFixProvider.cs (1)
53var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\Iterator\CSharpChangeToIEnumerableCodeFixProvider.cs (1)
38var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\MakeLocalFunctionStatic\PassInCapturedVariablesAsArgumentsCodeFixProvider.cs (2)
66var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 83var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\MakeMemberRequired\CSharpMakeMemberRequiredCodeFixProvider.cs (3)
37var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 52var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 113var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\MakeStatementAsynchronous\CSharpMakeStatementAsynchronousCodeFixProvider.cs (1)
35var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementCodeFixProvider.cs (2)
45var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 46var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementCodeFixProvider.cs (2)
45var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 46var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementCodeFixProvider.cs (2)
48var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 49var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementCodeFixProvider.cs (2)
45var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 46var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementCodeFixProvider.cs (2)
47var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 50var options = await document.GetCSharpSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (2)
82var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 167model ??= await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionCodeFixProvider.cs (2)
58var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 59var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnneccessaryUnsafeModifier\CSharpRemoveUnnecessaryUnsafeModifierCodeFixProvider.cs (4)
55var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 67var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 68var options = await document.GetLineFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 69var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\RemoveUnnecessarySuppressions\CSharpRemoveUnnecessaryNullableWarningSuppressionsCodeFixProvider.cs (2)
42var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 52var linkedSemanticModel = await linkedDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (2)
50var document = await ParsedDocument.CreateAsync(workspaceDocument, cancellationToken).ConfigureAwait(false); 52var formattingOptions = await workspaceDocument.GetCSharpSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForArrayCodeFixProvider.cs (1)
64var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForCreateCodeFixProvider.cs (1)
63semanticDocument.Root.ReplaceNode(invocationExpression, dummyObjectCreation), cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForNewCodeFixProvider.cs (1)
64semanticDocument.Root.ReplaceNode(objectCreationExpression, dummyObjectCreation), cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForStackAllocCodeFixProvider.cs (1)
40var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentCodeFixProvider.cs (1)
43var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseDefaultLiteral\CSharpUseDefaultLiteralCodeFixProvider.cs (1)
45var options = (CSharpAnalyzerOptionsProvider)await document.GetAnalyzerOptionsProviderAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\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\roslyn\src\Analyzers\CSharp\CodeFixes\UseExpressionBody\UseExpressionBodyCodeFixProvider.cs (1)
56var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeFixProvider.cs (1)
40var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitlyTypedLambdaExpression\CSharpUseImplicitObjectCreationCodeFixProvider.cs (1)
48CSharpSimplification.Instance, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationCodeFixProvider.cs (1)
55CSharpSimplification.Instance, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseImplicitOrExplicitType\UseExplicitTypeCodeFixProvider.cs (2)
95var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 147var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseLabeledJumpStatements\CSharpUseLabeledJumpStatementsCodeFixProvider.cs (1)
45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
92var info = await document.GetCodeGenerationInfoAsync(CodeGenerationContext.Default, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePatternCombinators\CSharpUsePatternCombinatorsCodeFixProvider.cs (1)
74var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpAsAndNullCheckCodeFixProvider.cs (2)
45var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 46var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePatternMatching\CSharpUseNotPatternCodeFixProvider.cs (1)
37var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UsePrimaryConstructor\CSharpUsePrimaryConstructorCodeFixProvider.cs (2)
118var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 127var removedMembers = await RemoveMembersAsync().ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseSystemThreadingLock\CSharpUseSystemThreadingLockCodeFixProvider.cs (1)
81semanticModel ??= await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (1)
45var 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)
45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (13)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\CSharpStaticHolderTypes.Fixer.cs (1)
29SyntaxNode root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\CSharpAvoidDuplicateElementInitializationFixer.cs (1)
38var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\InteropServices\CSharpDisableRuntimeMarshalling.FixAllProvider.cs (1)
35SyntaxNode root = await document.GetRequiredSyntaxRootAsync(fixAllContext.CancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\InteropServices\CSharpDisableRuntimeMarshalling.Fixer.cs (1)
38SyntaxNode root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\InteropServices\CSharpDynamicInterfaceCastableImplementation.Fixer.cs (2)
30var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 183var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Performance\CSharpCollapseMultiplePathOperations.Fixer.cs (1)
28var root = await document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Performance\CSharpPreferDictionaryTryMethodsOverContainsKeyGuardFixer.cs (3)
36SyntaxNode root = await document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 40var model = await document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 61var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\CSharpAvoidRedundantRegexIsMatchBeforeMatch.Fixer.cs (3)
52SyntaxNode root = await doc.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 53SemanticModel model = await doc.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 63SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.CSharp.Workspaces (29)
FileBasedPrograms\FileBasedProgramService.cs (1)
50.ConfigureAwait(false);
OrganizeImports\CSharpOrganizeImportsService.cs (1)
22var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\50a3a051b0fef0d6\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
41var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (6)
496var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 522var contentHash = await document.GetContentHashAsync(cancellationToken).ConfigureAwait(false); 529foreach (var generatedDocument in await document.Project.GetSourceGeneratedDocumentsAsync(cancellationToken).ConfigureAwait(false)) 531var syntaxIndex = await generatedDocument.GetSyntaxTreeIndexAsync(cancellationToken).ConfigureAwait(false); 535var generatedRoot = await generatedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 540var semanticModel = await generatedDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeFixesAndRefactorings\CSharpFixAllSpanMappingService.cs (1)
27var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Formatting\CSharpSyntaxFormattingOptionsProviders.cs (1)
15var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Simplification\CSharpSimplifierOptionsProviders.cs (1)
15var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
SyncedSource\FileBasedPrograms\VirtualProjectBuilder.cs (15)
239projectDirective = projectDirective.WithName(await project.ExpandStringAsync(projectDirective.Name).ConfigureAwait(false), CSharpDirective.Project.NameKind.Expanded); 246refDirective = refDirective.WithName(await project.ExpandStringAsync(refDirective.Name).ConfigureAwait(false), CSharpDirective.Ref.NameKind.Expanded); 253var expandedPath = await project.ExpandStringAsync(includeOrExcludeDirective.Name).ConfigureAwait(false); 259mapping = await GetItemMappingAsync(project, reportError).ConfigureAwait(false); 279await project.GetPropertyValueAsync(CSharpDirective.IncludeOrExclude.MappingPropertyName).ConfigureAwait(false), 295(text, path, textSpan, message, _) => errorReporter(path, text.Lines.GetLinePositionSpan(textSpan).Start.Line + 1, message)).ConfigureAwait(false); 341additionalGlobalProperties).ConfigureAwait(false); 359additionalGlobalProperties).ConfigureAwait(false); 362var fileEvaluatedDirectives = await EvaluateDirectivesAsync(project, directivesForEvaluation, reportError).ConfigureAwait(false); 397additionalGlobalProperties).ConfigureAwait(false); 400var compileItems = await project.GetItemMetadataValuesAsync("Compile", ["FullPath"]).ConfigureAwait(false); 500var project = await _buildService.CreateProjectInstanceFromProjectRootElementAsync(projectRoot, projectCollection, additionalGlobalProperties).ConfigureAwait(false); 508var supportsFileBasedAppArtifactsPath = await project.GetPropertyValueAsync("_SupportsFileBasedAppArtifactsPath").ConfigureAwait(false); 514return await CreateProjectInstanceNoEvaluation(projectCollection, directives, additionalGlobalProperties).ConfigureAwait(false); 569processedRefFiles: processedFiles).ConfigureAwait(false);
Microsoft.CodeAnalysis.Extensions.Package (7)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
566builder.Add(await selector(item).ConfigureAwait(false)); 580builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 594builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 605builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
429builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 444builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 465builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
Microsoft.CodeAnalysis.ExternalAccess.HotReload (2)
Api\HotReloadMSBuildWorkspace.cs (1)
185var newText = await GetSourceTextAsync(path, oldText.Encoding, oldText.ChecksumAlgorithm, cancellationToken).ConfigureAwait(false);
Api\HotReloadService.cs (1)
211var results = await _encService.EmitSolutionUpdateAsync(sessionId, solution, runningProjectsImpl, s_solutionActiveStatementSpanProvider, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Features (902)
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.cs (1)
65var 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\AbstractAddImportCodeRefactoringProvider.cs (3)
53var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 62var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 162var options = await document.GetAddImportPlacementOptionsAsync(cancellationToken).ConfigureAwait(false);
AddImport\AbstractAddImportFeatureService.cs (5)
78cancellationToken).ConfigureAwait(false); 94var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 107var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 527cancellationToken).ConfigureAwait(false); 547var 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);
CallHierarchy\AbstractCallHierarchyService.cs (1)
232var semanticModel = await document.GetRequiredSemanticModelAsync(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)
115var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 206var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 225var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 275var 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)
47var document = await solution.GetDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 92var projectVersion = await GetProjectCodeLensVersionAsync(solution, documentId.ProjectId, cancellationToken).ConfigureAwait(false); 125var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 218var 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 (18)
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); 881var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).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_GetCompletions.cs (1)
74var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Completion\CompletionService.cs (1)
415var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractAwaitCompletionProvider.cs (4)
84var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 177var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 199var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 212var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\AbstractDocCommentCompletionProvider.cs (1)
290var 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)
28var 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)
253var relatedDocument = await document.Project.Solution.GetRequiredDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 295var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 300var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\ImportCompletionProvider\AbstractImportCompletionProvider.cs (2)
172var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 215var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\ImportCompletionProvider\ExtensionMemberImportCompletionHelper.cs (4)
43cancellationToken).ConfigureAwait(false); 81cancellationToken).ConfigureAwait(false); 107semanticModel ??= await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 259var info = await TopLevelSyntaxTreeIndex.GetRequiredIndexAsync(document, cancellationToken).ConfigureAwait(false);
Completion\Providers\ImportCompletionProvider\ExtensionMemberImportCompletionHelper.SymbolComputer.cs (2)
81await SymbolTreeInfo.GetInfoForMetadataReferenceAsync(project.Solution, peReference, checksum: null, cancellationToken).ConfigureAwait(false); 225_originatingDocument.Project.Solution, peReference, checksum: null, cancellationToken).ConfigureAwait(false);
Completion\Providers\ImportCompletionProvider\ImportCompletionItem.cs (1)
163var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Completion\Providers\ImportCompletionProvider\ImportCompletionProviderHelpers.cs (4)
25var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 33var addImportsOptions = await document.GetAddImportPlacementOptionsAsync(cancellationToken).ConfigureAwait(false); 34var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 39var semanticModel = await document.GetRequiredSemanticModelAsync(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)
210var 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); 325var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 326var 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)
130var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 276var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 277var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 314var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 315var 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);
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_CompilationWithAnalyzersPair.cs (1)
61using (await s_gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))
Diagnostics\Service\DiagnosticAnalyzerService_CoreAnalyze.cs (3)
116var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 125var model = await ((Document)documentAnalysisScope.TextDocument).GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 198var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Diagnostics\Service\DiagnosticAnalyzerService_ForceCodeAnalysisDiagnostics.cs (1)
46var sourceGeneratorDocuments = await project.GetSourceGeneratedDocumentsAsync(cancellationToken).ConfigureAwait(false);
Diagnostics\Service\DiagnosticAnalyzerService_GetDiagnosticsForSpan.cs (5)
32var diagnostics = await executor.ComputeDiagnosticsInProcessAsync(analyzer, cancellationToken).ConfigureAwait(false); 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 (10)
33cancellationToken).ConfigureAwait(false); 38return await ForceRunCodeAnalysisDiagnosticsInProcessAsync(project, cancellationToken).ConfigureAwait(false); 52cancellationToken).ConfigureAwait(false); 75cancellationToken).ConfigureAwait(false); 115cancellationToken).ConfigureAwait(false); 141cancellationToken).ConfigureAwait(false); 164cancellationToken).ConfigureAwait(false); 188cancellationToken).ConfigureAwait(false); 206cancellationToken).ConfigureAwait(false); 229cancellationToken).ConfigureAwait(false);
Diagnostics\Service\DiagnosticAnalyzerService.IncrementalMemberEditAnalyzer.cs (3)
69var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 184var diagnostics = await executor.ComputeDiagnosticsInProcessAsync(analyzer, cancellationToken).ConfigureAwait(false); 247var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Diagnostics\Service\DocumentAnalysisExecutor.cs (11)
129AnalysisKind.Syntax => await GetSyntaxDiagnosticsInProcessAsync().ConfigureAwait(false), 130AnalysisKind.Semantic => await GetSemanticDiagnosticsInProcessAsync().ConfigureAwait(false), 138diagnostics = await RemapDiagnosticLocationsIfRequiredAsync(diagnostics).ConfigureAwait(false); 142var sourceText = await textDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 191var analysisResult = await GetAnalysisResultInProcessAsync(analysisScope).ConfigureAwait(false); 214return await GetCompilerAnalyzerDiagnosticsInProcessAsync(AnalysisScope.Span).ConfigureAwait(false); 222var syntaxDiagnostics = await GetAnalysisResultInProcessAsync(analysisScope).ConfigureAwait(false); 249var adjustedSpan = await GetAdjustedSpanForCompilerAnalyzerAsync(document).ConfigureAwait(false); 250return await GetCompilerAnalyzerDiagnosticsInProcessAsync(adjustedSpan).ConfigureAwait(false); 258var semanticDiagnostics = await GetAnalysisResultInProcessAsync(analysisScope).ConfigureAwait(false); 280var root = await document.GetRequiredSyntaxRootAsync(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)
527var (oldDocument, oldText) = await GetDocumentContentAsync(oldProject, documentId, cancellationToken).ConfigureAwait(false); 528var (newDocument, newText) = await GetDocumentContentAsync(newProject, documentId, cancellationToken).ConfigureAwait(false); 554var (oldRoot, newRoot) = await GetSyntaxRootsAsync(oldDocument, newDocument, cancellationToken).ConfigureAwait(false); 643var oldModel = await GetDocumentSemanticModelAsync(oldProject, oldDocument, oldTree, cancellationToken).ConfigureAwait(false); 644var newModel = await GetDocumentSemanticModelAsync(newProject, newDocument, newTree, cancellationToken).ConfigureAwait(false); 741var document = await project.GetDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 744text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 761var tree = await oldDocument.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 767var tree = await newDocument.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 785return new DocumentSemanticModel(await document.GetRequiredNullableDisabledSemanticModelAsync(cancellationToken).ConfigureAwait(false)); 3388? new(await oldProject.Solution.GetRequiredDocument(oldDeclaration.SyntaxTree).GetRequiredNullableDisabledSemanticModelAsync(cancellationToken).ConfigureAwait(false))
EditAndContinue\ActiveStatementsMap.cs (1)
168var oldTree = await oldDocument.DocumentState.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
EditAndContinue\CommittedSolution.cs (6)
192var sourceGeneratedDocument = await solution.GetSourceGeneratedDocumentAsync(documentId, cancellationToken).ConfigureAwait(false); 233var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 236var (maybeMatchingSourceText, maybePdbHasDocument) = await TryGetMatchingSourceTextAsync(document, sourceText, currentDocument, cancellationToken).ConfigureAwait(false); 341cancellationToken).ConfigureAwait(false) 383var currentDocumentSourceText = await currentDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 390var text = await sourceTextProvider.TryGetMatchingSourceTextAsync(filePath, requiredChecksum, checksumAlgorithm, cancellationToken).ConfigureAwait(false);
EditAndContinue\DebuggingSession.cs (9)
497var analysis = await EditSession.Analyses.GetDocumentAnalysisAsync(LastCommittedSolution, document.Project.Solution, oldDocument, document, activeStatementSpanProvider, cancellationToken).ConfigureAwait(false); 517var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 540var solutionUpdate = await EditSession.EmitSolutionUpdateAsync(solution, activeStatementSpanProvider, updateId, runningProjects, cancellationToken).ConfigureAwait(false); 721var document = await solution.GetTextDocumentAsync(documentId, cancellationToken).ConfigureAwait(false); 768var newDocument = await solution.GetRequiredDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 779var oldDocumentActiveStatements = await baseActiveStatements.GetOldActiveStatementsAsync(analyzer, oldDocument, cancellationToken).ConfigureAwait(false); 886var newDocumentActiveStatementSpans = await activeStatementSpanProvider(mappedDocument.Id, mappedDocument.FilePath, cancellationToken).ConfigureAwait(false); 902var newUnmappedDocument = await newSolution.GetRequiredDocumentAsync(unmappedDocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 911var 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 (36)
161var availability = await DebuggerService.GetAvailabilityAsync(mvid, cancellationToken).ConfigureAwait(false); 188var oldDocument = await oldProject.GetDocumentAsync(documentAnalysis.DocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 189var newDocument = await newProject.GetDocumentAsync(documentAnalysis.DocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 196var oldText = await oldDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 197var newText = await newDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 198var newTree = await newDocument.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 235var capabilities = await DebuggerService.GetUpdateCapabilitiesAsync(cancellationToken).ConfigureAwait(false); 249var debugInfos = await DebuggerService.GetActiveStatementsAsync(cancellationToken).ConfigureAwait(false); 278return oldDocument != newDocument && !await ContentEqualsAsync(oldDocument, newDocument, cancellationToken).ConfigureAwait(false); 296if (oldProject == null || await HasDifferencesAsync(oldProject, newProject, differences: null, cancellationToken).ConfigureAwait(false)) 332var oldSource = await oldDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 333var newSource = await newDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 364if (await ContentEqualsAsync(oldProject.GetRequiredDocument(documentId), document, cancellationToken).ConfigureAwait(false)) 423if (!await ContentEqualsAsync(oldProject.GetRequiredAdditionalDocument(documentId), document, cancellationToken).ConfigureAwait(false)) 432if (!await ContentEqualsAsync(oldProject.GetRequiredAnalyzerConfigDocument(documentId), document, cancellationToken).ConfigureAwait(false)) 521var hasNonGeneratedDifferences = await HasDifferencesAsync(oldProject, newProject, documentDifferences, cancellationToken).ConfigureAwait(false); 530var oldSourceGeneratedDocumentStates = await GetSourceGeneratedDocumentStatesAsync(log, oldProject, diagnostics, cancellationToken).ConfigureAwait(false); 533var newSourceGeneratedDocumentStates = await GetSourceGeneratedDocumentStatesAsync(log, newProject, diagnostics, cancellationToken).ConfigureAwait(false); 591var generatorDiagnostics = await project.Solution.CompilationState.GetSourceGeneratorDiagnosticsAsync(project.State, cancellationToken).ConfigureAwait(false); 603return await project.Solution.CompilationState.GetSourceGeneratedDocumentStatesAsync(project.State, cancellationToken).ConfigureAwait(false); 639var oldSourceGeneratedDocumentStates = await GetSourceGeneratedDocumentStatesAsync(log, oldProject, diagnostics: null, cancellationToken).ConfigureAwait(false); 642var newSourceGeneratedDocumentStates = await GetSourceGeneratedDocumentStatesAsync(log, newProject, diagnostics: null, cancellationToken).ConfigureAwait(false); 730var analyses = await Analyses.GetDocumentAnalysesAsync(DebuggingSession.LastCommittedSolution, newSolution, documents, newDocumentActiveStatementSpanProvider, cancellationToken).ConfigureAwait(false); 873var oldDocument = await oldProject.GetDocumentAsync(analysis.DocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 876await baseActiveStatements.GetOldActiveStatementsAsync(analyzer, oldDocument, cancellationToken).ConfigureAwait(false); 882var (mergedEdits, addedSymbols) = await MergePartialEditsAsync(oldCompilation, newCompilation, oldProject, newProject, allEdits, cancellationToken).ConfigureAwait(false); 979cancellationToken).ConfigureAwait(false); 1095var oldDocument = await oldProject.GetDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 1103var oldRoot = await oldDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 1344var document = await solution.GetDocumentAsync(analysis.DocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 1345var tree = (document != null) ? await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false) : null; 1407var projectChanges = await GetProjectChangesAsync(oldActiveStatementsMap, oldCompilation, newCompilation, oldProject, newProject, changedDocumentAnalyses, cancellationToken).ConfigureAwait(false); 1533var oldDocument = await oldProject.GetDocumentAsync(changedDocumentAnalysis.DocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 1534var newDocument = await newProject.GetDocumentAsync(changedDocumentAnalysis.DocumentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 1656async (stream, cancellationToken) => await oldCompilationOutputs.TryCopyAssemblyToAsync(stream, cancellationToken).ConfigureAwait(false), 1663async (stream, cancellationToken) => await oldCompilationOutputs.TryCopyPdbToAsync(stream, cancellationToken).ConfigureAwait(false),
EditAndContinue\PdbMatchingSourceTextProvider.cs (1)
137var text = await state.GetTextAsync(cancellationToken).ConfigureAwait(false);
EditAndContinue\Remote\ActiveStatementSpanProviderCallback.cs (1)
24return await _provider(documentId, filePath, cancellationToken).ConfigureAwait(false);
EditAndContinue\Remote\DebuggingSessionProxy.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 (9)
60return await _sourceTextProvider.TryGetMatchingSourceTextAsync(filePath, requiredChecksum, checksumAlgorithm, cancellationToken).ConfigureAwait(false); 72return await _state.GetActiveStatementsAsync(cancellationToken).ConfigureAwait(false); 84return await _state.GetAvailabilityAsync(mvid, cancellationToken).ConfigureAwait(false); 108return await _state.GetUpdateCapabilitiesAsync(cancellationToken).ConfigureAwait(false); 140async (service, solutionInfo, callbackId, cancellationToken) => await service.StartDebuggingSessionAsync(solutionInfo, callbackId, reportDiagnostics, cancellationToken).ConfigureAwait(false), 141cancellationToken).ConfigureAwait(false); 163var diagnostics = await GetLocalService().GetDocumentDiagnosticsAsync(document, activeStatementSpanProvider, cancellationToken).ConfigureAwait(false); 171cancellationToken).ConfigureAwait(false); 187cancellationToken).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_RemoteOrLocal.cs (4)
41cancellationToken).ConfigureAwait(false); 53return await executeInProcessAsync(this, arg, cancellationToken).ConfigureAwait(false); 58cancellationToken).ConfigureAwait(false) 62cancellationToken).ConfigureAwait(false);
Extensions\ExtensionMessageHandlerService.cs (1)
181return await extensionFolder.GetExtensionMessageNamesAsync(assemblyFilePath, cancellationToken).ConfigureAwait(false);
ExternalAccess\UnitTesting\API\UnitTestingHotReloadService.cs (1)
95.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)
311var oldProjectSourceGeneratedDocuments = await oldProject.GetSourceGeneratedDocumentsAsync(_shutdownToken).ConfigureAwait(false); 313var newProjectSourceGeneratedDocuments = await newProject.GetSourceGeneratedDocumentsAsync(_shutdownToken).ConfigureAwait(false); 396foreach (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);
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)
167var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 168var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 218var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 219var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 244var 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); 290var cleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false); 332var 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_FindImplementations.cs (2)
58cancellationToken).ConfigureAwait(false); 88classificationOptions, solution, FindReferencesSearchOptions.Default, isPrimary: true, includeHiddenLocations: false, cancellationToken).ConfigureAwait(false);
FindUsages\AbstractFindUsagesService_FindReferences.cs (4)
76var thirdParty = await provider.GetThirdPartyDefinitionItemAsync(solution, definition, cancellationToken).ConfigureAwait(false); 146cancellationToken).ConfigureAwait(false); 175var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 203var semanticModel = await document.GetRequiredSemanticModelAsync(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\DefinitionItem.DefaultDefinitionItem.cs (1)
44var (project, symbol) = await TryResolveSymbolAsync(workspace.CurrentSolution, symbolKey, cancellationToken).ConfigureAwait(false);
FindUsages\DefinitionItemFactory.cs (4)
75var classifiedSpans = await ClassifyDocumentSpansAsync(classificationOptions, sourceLocations, cancellationToken).ConfigureAwait(false); 93var classifiedSpans = await ClassifyDocumentSpansAsync(classificationOptions, sourceLocations, cancellationToken).ConfigureAwait(false); 261var options = await optionsProvider.GetOptionsAsync(documentSpan.Document.Project.Services, cancellationToken).ConfigureAwait(false); 317var 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); 180await solution.GetSourceGeneratedDocumentAsync(DocumentId, cancellationToken).ConfigureAwait(false); 238var sourceSpans = await SourceSpans.SelectAsArrayAsync(static (ss, solution, cancellationToken) => ss.RehydrateAsync(solution, cancellationToken), solution, cancellationToken).ConfigureAwait(false); 311await SourceSpan.RehydrateAsync(solution, cancellationToken).ConfigureAwait(false),
FullyQualify\AbstractFullyQualifyCodeFixProvider.cs (1)
47var 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 (3)
43var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 54var semanticModel = await document.GetRequiredSemanticModelAsync(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)
76var state = await State.GenerateAsync((TService)this, semanticDocument, node, cancellationToken).ConfigureAwait(false);
GenerateType\AbstractGenerateTypeService.Editor.cs (1)
317var cleanupOptions = await codeGenResult.GetCodeCleanupOptionsAsync(_cancellationToken).ConfigureAwait(false);
GenerateType\AbstractGenerateTypeService.State.cs (1)
76return 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 (2)
58symbol = await TryGetPreferredSymbolAsync(solution, symbol, cancellationToken).ConfigureAwait(false); 91var thirdPartyItem = await provider.GetThirdPartyDefinitionItemAsync(solution, definitionItem, 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_Helpers.cs (20)
88var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 92var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 93var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 139var (remappedProject, symbolAndLineNumbers) = await GetMemberSymbolsAsync(document, spanToSearch, cancellationToken).ConfigureAwait(false); 158cancellationToken).ConfigureAwait(false)); 173var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 186var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 219var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 332cancellationToken).ConfigureAwait(false); 344cancellationToken).ConfigureAwait(false); 374cancellationToken).ConfigureAwait(false); 402cancellationToken).ConfigureAwait(false); 424.ConfigureAwait(false); 434.ConfigureAwait(false); 462.ConfigureAwait(false); 491.ConfigureAwait(false); 501.ConfigureAwait(false); 531.ConfigureAwait(false); 541.ConfigureAwait(false); 551.ConfigureAwait(false);
InheritanceMargin\AbstractInheritanceMarginService.cs (1)
49cancellationToken).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)
59var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 60var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
InlineHints\AbstractInlineTypeHintsService.cs (2)
52var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 53var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
InlineHints\InlineHintHelpers.cs (1)
26var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
InlineMethod\AbstractInlineMethodRefactoringProvider.cs (1)
86var 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); 263var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
IntroduceParameter\IntroduceParameterDocumentRewriter.cs (9)
66var semanticModel = await _originalDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 90var semanticModel = await _originalDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 230var invocationSemanticModel = await currentDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 231var root = await currentDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 354var semanticModel = await _originalDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 452var info = await _originalDocument.GetCodeGenerationInfoAsync(CodeGenerationContext.Default, cancellationToken).ConfigureAwait(false); 492var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 494var invocationSemanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 688var 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 (6)
95if (await TryComputeRefactoringForIfDirectiveAsync(context).ConfigureAwait(false)) 107var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 159var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 402var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 403var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 404var 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)
153var 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)
54var root = await _document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 116var destRoot = await newDoc.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 117var destSemanticModel = await newDoc.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 136root = await sourceDoc.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 137var semanticModel = await sourceDoc.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 181var newTypeDoc = await oldSolution.GetRequiredDocumentAsync(newTypeDocId, cancellationToken: cancellationToken).ConfigureAwait(false); 182var newTypeRoot = await newTypeDoc.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 187var oldSourceRoot = await oldSolution.GetRequiredDocument(sourceDocId).GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 220var root = await sourceDoc.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 221var semanticModel = await sourceDoc.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 228newTypeRoot = await newTypeDoc.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 229var newTypeSemanticModel = await newTypeDoc.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 408var root = await sourceDoc.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 409var 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)
99callback, cancellationToken).ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.GeneratedDocumentSearch.cs (2)
51callback, cancellationToken).ConfigureAwait(false); 81var sourceGeneratedDocs = await project.GetSourceGeneratedDocumentsAsync(cancellationToken).ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (3)
102var filterIndex = await NavigateToSearchIndex.GetRequiredIndexAsync(document, cancellationToken).ConfigureAwait(false); 107var index = await TopLevelSyntaxTreeIndex.GetRequiredIndexAsync(document, cancellationToken).ConfigureAwait(false); 113var linkedIndex = await TopLevelSyntaxTreeIndex.GetRequiredIndexAsync(linkedDocument, cancellationToken).ConfigureAwait(false);
NavigateTo\AbstractNavigateToSearchService.NormalSearch.cs (4)
45callback, cancellationToken).ConfigureAwait(false); 110var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 111var semanticModel = await document.GetRequiredNullableDisabledSemanticModelAsync(cancellationToken).ConfigureAwait(false); 179callback, 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)
42var 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)
19var tree = await context.Document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
QuickInfo\CommonSemanticQuickInfoProvider.cs (4)
33var semanticModel = await context.Document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 52var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 78var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 89var linkedModel = await linkedDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
QuickInfo\Presentation\QuickInfoContentBuilder.cs (1)
136var text = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
Rename\SymbolicRenameInfo.cs (3)
126var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 141var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 254var 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)
257var semanticModel = await document.ReuseExistingSpeculativeModelAsync(position, cancellationToken).ConfigureAwait(false); 283var relatedSemanticModel = await relatedDocument.ReuseExistingSpeculativeModelAsync(position, cancellationToken).ConfigureAwait(false); 308var syntaxTree = await relatedDocument.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
SignatureHelp\CommonSignatureHelpUtilities.cs (2)
112var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 169var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
SignatureHelp\SignatureHelpService.cs (1)
69var options = await document.GetMemberDisplayOptionsAsync(cancellationToken).ConfigureAwait(false);
SimplifyThisOrMe\AbstractSimplifyThisOrMeCodeFixProvider.cs (1)
40var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
SimplifyTypeNames\AbstractSimplifyTypeNamesCodeFixProvider.cs (2)
78var options = (TSimplifierOptions)await document.GetSimplifierOptionsAsync(cancellationToken).ConfigureAwait(false); 97var 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 (1)
45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Snippets\SnippetProviders\AbstractInlineStatementSnippetProvider.cs (2)
59var semanticModel = await document.ReuseExistingSpeculativeModelAsync(position, cancellationToken).ConfigureAwait(false); 60var simplifierOptions = await document.GetSimplifierOptionsAsync(cancellationToken).ConfigureAwait(false);
Snippets\SnippetProviders\AbstractSnippetProvider.cs (11)
95var reformattedRoot = await documentWithIndentation.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 107document, mainChangeNode, syntaxFacts, cancellationToken).ConfigureAwait(false); 112var sourceText = await annotatedReformattedDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 147var addImportPlacementOptions = await document.GetAddImportPlacementOptionsAsync(cancellationToken).ConfigureAwait(false); 148var simplifierOptions = await document.GetSimplifierOptionsAsync(cancellationToken).ConfigureAwait(false); 149var syntaxFormattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 172var root = await snippetDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 193var originalText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 214var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 218var reformatSnippetNode = await AdjustSnippetExpressionAsync(document, snippetExpressionNode, cancellationToken).ConfigureAwait(false); 238var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Snippets\SnippetProviders\AbstractTypeSnippetProvider.cs (5)
50var (prefix, _, _) = await GetNamePartsAsync(document, cancellationToken).ConfigureAwait(false); 60var options = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false); 69var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 71var (prefix, main, suffix) = await GetNamePartsAsync(document, cancellationToken).ConfigureAwait(false); 81var namingStylePreferences = await document.GetNamingStylePreferencesAsync(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\939a5660f39ce290\AbstractUseConditionalExpressionForAssignmentCodeFixProvider.cs (1)
66var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\AddAccessibilityModifiers\AbstractAddAccessibilityModifiersCodeFixProvider.cs (1)
43var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (3)
71var root = await document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 72var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 216var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (3)
34var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 41var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 49var placementOption = await document.GetAddImportPlacementOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\AnalyzerOptionsProviders.cs (1)
16var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\ConvertTypeOfToNameOf\AbstractConvertTypeOfToNameOfCodeFixProvider.cs (1)
37var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\FileHeaders\AbstractFileHeaderCodeFixProvider.cs (2)
48var options = await document.GetLineFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 57var tree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\ForEachCast\AbstractForEachCastCodeFixProvider.cs (1)
43var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\Formatting\FormattingCodeFixProvider.cs (4)
70var root = await context.Document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 71var text = await context.Document.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 80var formattingOptions = await context.Document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 88var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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))) 308return await TryDetermineTypeToGenerateInAsync(typeToGenerateIn, cancellationToken).ConfigureAwait(false); 325return await TryDetermineTypeToGenerateInAsync(typeToGenerateIn, cancellationToken).ConfigureAwait(false); 358return await TryDetermineTypeToGenerateInAsync(typeToGenerateIn, cancellationToken).ConfigureAwait(false); 399var definition = await SymbolFinderInternal.FindSourceDefinitionAsync(original, _document.Project.Solution, cancellationToken).ConfigureAwait(false); 467var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 485var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorCodeFixProvider.cs (1)
28var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberCodeFixProvider.cs (1)
41var root = await document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateConversionService.cs (1)
41return await GetActionsAsync(document, state, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateConversionService.State.cs (1)
25if (!await state.TryInitializeConversionAsync(service, document, interfaceNode, cancellationToken).ConfigureAwait(false))
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateDeconstructMethodService.cs (1)
36return state != null ? await GetActionsAsync(document, state, cancellationToken).ConfigureAwait(false) : [];
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateMethodService.cs (1)
42return await GetActionsAsync(document, state, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.CodeAction.cs (2)
69var property = await _state.SignatureInfo.GeneratePropertyAsync(syntaxFactory, _isAbstract, _state.IsWrittenTo, cancellationToken).ConfigureAwait(false); 85var method = await _state.SignatureInfo.GenerateMethodAsync(syntaxFactory, _isAbstract, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (1)
62var returnType = await state.SignatureInfo.DetermineReturnTypeAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.State.cs (2)
60TypeToGenerateIn = await SymbolFinderInternal.FindSourceDefinitionAsync(TypeToGenerateIn, document.Project.Solution, cancellationToken).ConfigureAwait(false) as INamedTypeSymbol; 92var generatedMethod = await SignatureInfo.GenerateMethodAsync(syntaxFactory, false, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\TypeParameterSubstitution.cs (2)
78var commonDerivedType = await DetermineCommonDerivedTypeAsync(symbol).ConfigureAwait(false); 113_project, commonType, _compilation, _availableTypeParameterNames, _cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.cs (1)
41var state = await State.GenerateAsync((TService)this, semanticDocument, node, cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (2)
81return await state.TryInitializeAsync(interfaceNode, cancellationToken).ConfigureAwait(false) ? state : null; 154TypeToGenerateIn, _document.Project.Solution, cancellationToken).ConfigureAwait(false) as INamedTypeSymbol;
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementAbstractClass\AbstractImplementAbstractClassCodeFixProvider.cs (1)
28var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementAbstractClass\ImplementAbstractClassData.cs (4)
43var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 68var options = await document.GetImplementTypeOptionsAsync(cancellationToken).ConfigureAwait(false); 109var info = await _document.GetCodeGenerationInfoAsync(context, cancellationToken).ConfigureAwait(false); 117var root = await _document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\AbstractImplementInterfaceCodeFixProvider.cs (1)
24var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\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); 236var options = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (1)
74var tree = await this.Document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\ImplementType\ImplementTypeOptions.cs (1)
79var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\Iterator\AbstractIteratorCodeFixProvider.cs (1)
21var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\MakeFieldReadonly\AbstractMakeFieldReadonlyCodeFixProvider.cs (2)
43var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 74var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\MakeMethodAsynchronous\AbstractMakeMethodAsynchronousCodeFixProvider.cs (4)
55var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 210var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 276var newRoot = await newDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 279var semanticModel = await newDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\MakeMethodSynchronous\AbstractMakeMethodSynchronousCodeFixProvider.cs (6)
55var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 86var semanticModel = await newDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 104var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 120var syntaxRoot = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 124var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 173var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\MakeTypePartial\AbstractMakeTypePartialCodeFixProvider.cs (1)
27var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\Naming\NamingExtensions.cs (1)
37var options = await document.GetNamingStylePreferencesAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\NewLines\ConsecutiveStatementPlacement\ConsecutiveStatementPlacementCodeFixProvider.cs (2)
45var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 46var options = await document.GetLineFormattingOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\NewLines\MultipleBlankLines\AbstractMultipleBlankLinesCodeFixProvider.cs (1)
47var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\OrderModifiers\AbstractOrderModifiersCodeFixProvider.cs (2)
34var syntaxTree = await context.Document.GetRequiredSyntaxTreeAsync(context.CancellationToken).ConfigureAwait(false); 46var options = await document.GetAnalyzerOptionsProviderAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\PopulateSwitch\AbstractPopulateSwitchCodeFixProvider.cs (1)
141var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveAsyncModifier\AbstractRemoveAsyncModifierCodeFixProvider.cs (2)
40var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 58var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsCodeFixProvider.cs (1)
56var newRoot = await newDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryAttributeSuppressionsCodeFixProvider.cs (1)
28var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnnecessarySuppressions\RemoveUnnecessaryPragmaSuppressionsCodeFixProvider.cs (1)
32var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\RemoveUnusedMembers\AbstractRemoveUnusedMembersCodeFixProvider.cs (1)
47var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\SimplifyInterpolation\AbstractSimplifyInterpolationCodeFixProvider.cs (1)
49var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\UpdateLegacySuppressions\UpdateLegacySuppressionsCodeFixProvider.cs (1)
29var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\UseAutoProperty\AbstractUseAutoPropertyCodeFixProvider.cs (15)
141var updatedProperty = await GetUpdatedPropertyDeclarationAsync().ConfigureAwait(false); 228var declaratorTreeRoot = await fieldDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 242var fieldTreeRoot = await fieldDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 243var propertyTreeRoot = await propertyDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 274cancellationToken).ConfigureAwait(false); 333var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 406var fieldSemanticModel = await fieldDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 411var propertySemanticModel = await propertyDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 463var options = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 468var codeCleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false); 472return await cleanedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 502async cancellationToken => await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false)); 507await IsWrittenToOutsideOfConstructorOrPropertyAsync(lazySemanticModel, location, propertyDeclaration, constructorSpans, cancellationToken).ConfigureAwait(false); 509await IsWrittenNullAsync(syntaxFacts, lazySemanticModel, location, cancellationToken).ConfigureAwait(false); 562if (!await IsWrittenToAsync(location).ConfigureAwait(false))
src\roslyn\src\Analyzers\Core\CodeFixes\UseAutoProperty\UseAutoPropertyFixAllProvider.cs (1)
83var changedRoot = await changedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\UseCoalesceExpression\AbstractUseCoalesceExpressionForIfNullStatementCheckCodeFixProvider.cs (1)
36var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForNullableTernaryConditionalCheckCodeFixProvider.cs (1)
39var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\UseCoalesceExpression\UseCoalesceExpressionForTernaryConditionalCheckCodeFixProvider.cs (1)
40var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\UseCollectionInitializer\AbstractUseCollectionInitializerCodeFixProvider.cs (1)
75var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\UseConditionalExpression\AbstractUseConditionalExpressionCodeFixProvider.cs (4)
50var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 52var formattingOptions = await document.GetSyntaxFormattingOptionsAsync(cancellationToken).ConfigureAwait(false); 94var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 158var sourceText = await document.GetValueTextAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Analyzers\Core\CodeFixes\UseConditionalExpression\ForReturn\AbstractUseConditionalExpressionForReturnCodeFixProvider.cs (1)
55var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\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\roslyn\src\Analyzers\Core\CodeFixes\UseSystemHashCode\UseSystemHashCodeCodeFixProvider.cs (1)
45var 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);
TaskList\AbstractTaskListService.cs (2)
37cancellationToken).ConfigureAwait(false); 59var syntaxDoc = await SyntacticDocument.CreateAsync(document, cancellationToken).ConfigureAwait(false);
Testing\AbstractTestMethodFinder.cs (3)
86var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 97var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 100? await document.GetRequiredSemanticModelAsync(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);
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.ExternalAccess (7)
AspNetCore\AddPackage\AspNetCoreAddPackageCodeAction.cs (5)
66var codeCleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false); 68updatedDocument, codeCleanupOptions, cancellationToken).ConfigureAwait(false); 78var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 79var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 81var addImportOptions = await document.GetAddImportPlacementOptionsAsync(cancellationToken).ConfigureAwait(false);
Copilot\Internal\SemanticSearch\CopilotSemanticSearchQueryExecutor.cs (2)
92cancellationSource.Token).ConfigureAwait(false); 121cancellationSource.Token).ConfigureAwait(false);
Microsoft.CodeAnalysis.NetAnalyzers (149)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\AbstractTypesShouldNotHaveConstructors.Fixer.cs (1)
42SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DefineAccessorsForAttributeArguments.Fixer.cs (2)
36SyntaxNode root = await document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 128SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DoNotDirectlyAwaitATask.Fixer.cs (1)
30SyntaxNode root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EnumsShouldHaveZeroValue.Fixer.cs (2)
27SemanticModel model = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 37SyntaxNode root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EnumWithFlagsAttribute.Fixer.cs (2)
30SemanticModel model = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 64SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EquatableAnalyzer.Fixer.cs (3)
40SyntaxNode root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 50await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 101SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\IdentifiersShouldNotContainUnderscores.Fixer.cs (2)
34var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 35var model = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ImplementStandardExceptionConstructors.Fixer.cs (1)
50SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\InterfaceMethodsShouldBeCallableByChildTypes.Fixer.cs (2)
35SemanticModel semanticModel = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 36SyntaxNode root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\MarkAttributesWithAttributeUsage.Fixer.cs (2)
38var semanticModel = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 94var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OperatorOverloadsHaveNamedAlternates.Fixer.cs (1)
41SemanticModel semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OperatorsShouldHaveSymmetricalOverloads.Fixer.cs (1)
40var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverloadOperatorEqualsOnOverridingValueTypeEquals.Fixer.cs (1)
40SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverrideEqualsAndOperatorEqualsOnValueTypes.Fixer.cs (1)
71SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverrideEqualsOnOverloadingOperatorEquals.Fixer.cs (1)
34SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverrideGetHashCodeOnOverridingEquals.Fixer.cs (1)
36SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverrideMethodsOnComparableTypes.Fixer.cs (3)
37SyntaxNode root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 45SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 60SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ParameterNamesShouldMatchBaseDeclaration.Fixer.cs (2)
35SyntaxNode syntaxRoot = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 36SemanticModel semanticModel = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\TypesThatOwnDisposableFieldsShouldBeDisposable.Fixer.cs (2)
29SyntaxNode root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 49SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\UriParametersShouldNotBeStrings.Fixer.cs (1)
71SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidLengthCalculationWhenSlicingToEnd.Fixer.cs (3)
29var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 30var semanticModel = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\Maintainability\UseNameofInPlaceOfString.Fixer.cs (1)
26var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\MarkMembersAsStatic.Fixer.cs (7)
44var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 68root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 70var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 87root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 140var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 141var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 258var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\RethrowToPreserveStackDetails.Fixer.cs (1)
27var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\SealMethodsThatSatisfyPrivateInterfaces.Fixer.cs (1)
32var model = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\UseLiteralsWhereAppropriate.Fixer.cs (1)
25SyntaxNode root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\ImmutableCollections\DoNotCallToImmutableCollectionOnAnImmutableCollectionValue.Fixer.cs (2)
41var root = await document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 48var semanticModel = await document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\InteropServices\DynamicInterfaceCastableImplementation.Fixer.cs (1)
29SyntaxNode root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\InteropServices\SpecifyMarshalingForPInvokeStringArguments.Fixer.cs (3)
27SyntaxNode root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 34SemanticModel model = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 52SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Performance\DoNotGuardCall.Fixer.cs (1)
28SyntaxNode root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Performance\DoNotUseCountWhenAnyCanBeUsed.Fixer.cs (1)
58var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Performance\PreferConvertToHexStringOverBitConverter.Fixer.cs (3)
45var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 46var semanticModel = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 67var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Performance\PreferHashDataOverComputeHash.Fixer.cs (2)
28var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 117SyntaxNode root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Performance\PreferIsEmptyOverCount.Fixer.cs (1)
24SyntaxNode root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Performance\PreferLengthCountIsEmptyOverAny.Fixer.cs (1)
37SyntaxNode root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Performance\PreferReadOnlySpanOverSpan.Fixer.cs (4)
34var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 46var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 48var semanticModel = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 104var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Performance\RecommendCaseInsensitiveStringComparison.Fixer.cs (2)
44SyntaxNode root = await doc.GetRequiredSyntaxRootAsync(ct).ConfigureAwait(false); 51SemanticModel model = await doc.GetRequiredSemanticModelAsync(ct).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Performance\UseAsSpanInsteadOfRangeIndexer.Fixer.cs (1)
49var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Performance\UsePropertyInsteadOfCountMethodWhenAvailable.Fixer.cs (1)
39var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Performance\UseSearchValues.Fixer.cs (1)
134(var typeDeclaration, var typeSymbol, bool isRealType) = await GetTypeSymbolAsync(semanticModel, argumentNode, cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Performance\UseSpanClearInsteadOfFIll.Fixer.cs (1)
25var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Performance\UseStringContainsCharOverloadWithSingleCharacters.Fixer.cs (1)
22var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Performance\UseStringMethodCharOverloadWithSingleCharacters.Fixer.cs (3)
25var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 28var model = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 39var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\AvoidConstArrays.Fixer.cs (1)
71SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\AvoidUnreliableStreamRead.Fixer.cs (3)
37var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 38var semanticModel = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 50var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\AvoidZeroLengthArrayAllocations.Fixer.cs (1)
40SemanticModel semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\DoNotUseEnumerableMethodsOnIndexableCollectionsInsteadUseTheCollectionDirectly.Fixer.cs (2)
47var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 54var semanticModel = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\ForwardCancellationTokenToInvocations.Fixer.cs (3)
53SyntaxNode root = await doc.GetRequiredSyntaxRootAsync(ct).ConfigureAwait(false); 54SemanticModel model = await doc.GetRequiredSemanticModelAsync(ct).ConfigureAwait(false); 68SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\InstantiateArgumentExceptionsCorrectly.Fixer.cs (3)
38SyntaxNode root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 39SemanticModel model = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 61SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\MarkAllNonSerializableFields.Fixer.cs (2)
28SyntaxNode root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 43SemanticModel model = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\MarkISerializableTypesWithSerializable.Fixer.cs (1)
41SemanticModel semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\PreferAsSpanOverSubstring.Fixer.cs (2)
35SyntaxNode root = await document.GetRequiredSyntaxRootAsync(token).ConfigureAwait(false); 36SemanticModel model = await document.GetRequiredSemanticModelAsync(token).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\PreferConstCharOverConstUnitString.Fixer.cs (3)
37SyntaxNode root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 38SemanticModel semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 62SemanticModel semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\PreferDictionaryContainsMethods.Fixer.cs (1)
32SyntaxNode root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\PreferJsonElementParse.Fixer.cs (3)
31SemanticModel model = await doc.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 32SyntaxNode root = await doc.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 48SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\PreferStreamAsyncMemoryOverloads.Fixer.cs (3)
63SyntaxNode root = await doc.GetRequiredSyntaxRootAsync(ct).ConfigureAwait(false); 64SemanticModel model = await doc.GetRequiredSemanticModelAsync(ct).ConfigureAwait(false); 84SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\PreferStringContainsOverIndexOf.Fixer.cs (3)
28SyntaxNode root = await doc.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 29SemanticModel semanticModel = await doc.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 44SemanticModel semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\PreferTypedStringBuilderAppendOverloads.Fixer.cs (3)
37SyntaxNode root = await doc.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 38SemanticModel model = await doc.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 61SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\SealInternalTypes.Fixer.cs (1)
50var root = await document.GetRequiredSyntaxRootAsync(token).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\SpecifyCultureForToLowerAndToUpper.Fixer.cs (2)
30SyntaxNode root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 69SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\TestForEmptyStringsUsingStringLength.Fixer.cs (3)
35SyntaxNode root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 45SemanticModel model = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 76SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\TestForNaNCorrectly.Fixer.cs (3)
25SyntaxNode root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 26SemanticModel model = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 36SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\UseCancellationTokenThrowIfCancellationRequested.Fixer.cs (2)
33SemanticModel model = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 36SyntaxNode root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\UseEnvironmentMembersFixer.cs (3)
40SemanticModel model = await doc.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 41SyntaxNode root = await doc.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 74SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\UseExceptionThrowHelpersFixer.cs (2)
32SemanticModel model = await doc.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 33SyntaxNode root = await doc.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\UseOrdinalStringComparison.Fixer.cs (3)
23SyntaxNode root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 51SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 76SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\UseRegexMembersFixer.cs (3)
41SemanticModel model = await doc.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 42SyntaxNode root = await doc.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 74SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\UseSpanBasedStringConcat.Fixer.cs (3)
38var model = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 39var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 50var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Runtime\UseStringEqualsOverStringCompare.Fixer.cs (3)
32var semanticModel = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 33var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Tasks\DoNotCreateTaskCompletionSourceWithWrongArguments.Fixer.cs (3)
30SyntaxNode root = await doc.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 31SemanticModel model = await doc.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 44SemanticModel model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Tasks\DoNotUseWhenAllOrWaitAllWithSingleArgumentFixer.cs (2)
26var root = await context.Document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 33var semanticModel = await context.Document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Usage\DoNotPassNonNullableValueToArgumentNullExceptionThrowIfNull.Fixer.cs (1)
40SyntaxNode root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Usage\PreferGenericOverloads.Fixer.cs (2)
30var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 38var semanticModel = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false);
Microsoft.NetCore.Analyzers\Usage\UseVolatileReadWrite.Fixer.cs (3)
31var root = await context.Document.GetRequiredSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false); 32var semanticModel = await context.Document.GetRequiredSemanticModelAsync(context.CancellationToken).ConfigureAwait(false); 45var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
SyntaxEditorFixAllProvider.cs (1)
175SyntaxNode root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.Razor.DotNetFormat (5)
RazorProjectGeneratorRunResult.cs (2)
36var generatedDocuments = await project.GetSourceGeneratedDocumentsAsync(cancellationToken).ConfigureAwait(false); 45var result = await project.GetSourceGeneratorRunResultAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.Formatting\DocumentFormatting\FormattingContext.Shared.cs (1)
98var codeDocument = await changedSnapshot.GetGeneratedOutputAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Razor\src\Razor\src\Microsoft.CodeAnalysis.Razor.Formatting\Passes\CSharpFormattingPass.cs (2)
37var declSyntaxTree = await changedContext.CurrentSnapshot.GetCSharpSyntaxTreeAsync(declarationDocument: true, cancellationToken).ConfigureAwait(false); 41var csharpSyntaxTree = await changedContext.CurrentSnapshot.GetCSharpSyntaxTreeAsync(declarationDocument: false, cancellationToken).ConfigureAwait(false);
Microsoft.CodeAnalysis.ResxSourceGenerator (12)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
566builder.Add(await selector(item).ConfigureAwait(false)); 580builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 594builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 605builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
429builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 444builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 465builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
251return (ranToCompletion: true, await ProcessNextBatchAsync().ConfigureAwait(false));
src\roslyn\src\Dependencies\Threading\ChannelReaderExtensions.cs (1)
22while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (1)
30while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\roslyn\src\Dependencies\Threading\ValueTaskExtensions.cs (2)
237_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 247_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
Microsoft.CodeAnalysis.VisualBasic.Features (1)
SignatureHelp\AbstractIntrinsicOperatorSignatureHelpProvider.vb (1)
43For Each documentation In Await GetIntrinsicOperatorDocumentationAsync(node, document, cancellationToken).ConfigureAwait(False)
Microsoft.CodeAnalysis.Workspaces (355)
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_Cleanup.cs (7)
137var document = await changedSolution.GetRequiredDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 142var codeActionOptions = await GetCodeActionCleanupOptionsAsync(document, cancellationToken).ConfigureAwait(false); 160await sourceGeneratedOptionsProvider.GetOptionsAsync(sourceGeneratedDocument, cancellationToken).ConfigureAwait(false) is { } sourceGeneratedOptions) 171return await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false); 186return await cleanedSolution.GetRequiredDocumentAsync(document.Id, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 225var document = await solution.GetRequiredDocumentAsync(documentId, includeSourceGenerated: true, cancellationToken).ConfigureAwait(false); 234var newRoot = await cleanedDocument.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
CodeActions\CodeAction.cs (2)
469var options = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false); 470return await CleanupDocumentAsync(document, options, 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 (7)
49?? await project.GetSourceGeneratedDocumentAsync(dataLocation.DocumentId, cancellationToken).ConfigureAwait(false); 53var text = await textDocument.GetValueTextAsync(cancellationToken).ConfigureAwait(false); 55? await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false) 386var frozenDocumentChecksum = await frozenState.GetChecksumAsync(cancellationToken).ConfigureAwait(false); 394var projectChecksum = await project.State.GetChecksumAsync(cancellationToken).ConfigureAwait(false); 421cancellationToken).ConfigureAwait(false); 429return 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_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\Declarations\DeclarationFinder.cs (1)
83project.Solution, reference, checksum: null, cancellationToken).ConfigureAwait(false);
FindSymbols\FindLiterals\FindLiteralsSearchEngine.cs (2)
120document, cancellationToken).ConfigureAwait(false); 141var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\DependentProjectsFinder.cs (4)
156using (await s_solutionToDependentProjectMapGate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 167using (await s_solutionToDependentProjectMapGate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 354using (await s_metadataIdToAssemblyNameGate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 386using (await s_metadataIdToAssemblyNameGate.DisposableWaitAsync(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\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\Finders\AbstractReferenceFinder.cs (4)
107if (await predicateAsync(document, value, cancellationToken).ConfigureAwait(false)) 339var info = await SyntaxTreeIndex.GetRequiredIndexAsync(d, c).ConfigureAwait(false); 744return await DetermineCascadedSymbolsAsync(typedSymbol, solution, options, cancellationToken).ConfigureAwait(false); 770var 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\ExplicitOrImplicitConstructorInitializerSymbolReferenceFinder.cs (1)
33var index = await SyntaxTreeIndex.GetRequiredIndexAsync(document, cancellationToken).ConfigureAwait(false);
FindSymbols\FindReferences\Finders\ParameterSymbolReferenceFinder.cs (1)
105var 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_FindReferencesInDocuments.cs (5)
108var cache = await FindReferenceCache.GetCacheAsync(document, cancellationToken).ConfigureAwait(false); 185var (matched, candidate, candidateReason) = await HasInheritanceRelationshipAsync(symbol, symbolInfo).ConfigureAwait(false); 191candidate, symbolToGroup, cancellationToken).ConfigureAwait(false); 203if (await HasInheritanceRelationshipSingleAsync(symbol, symbolInfo.Symbol).ConfigureAwait(false)) 208if (await HasInheritanceRelationshipSingleAsync(symbol, candidate).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)); 198var cascaded = await finder.DetermineCascadedSymbolsAsync(symbol, solution, engine._options, cancellationToken).ConfigureAwait(false); 207var mapped = await TryMapToAppropriateSymbolAsync(solution, symbol, cancellationToken).ConfigureAwait(false);
FindSymbols\ReferenceLocationExtensions.cs (1)
36var semanticModel = await document.GetRequiredSemanticModelAsync(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\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\SymbolFinder_FindLiteralReferences.cs (1)
36cancellationToken).ConfigureAwait(false);
FindSymbols\SymbolFinder_FindReferences_Current.cs (1)
57cancellationToken).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\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)
197project.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);
Log\WorkspaceStructureLogger.cs (2)
85var sourceGeneratedDocuments = await project.GetSourceGeneratedDocumentsAsync(cancellationToken).ConfigureAwait(false); 92foreach (var diagnostic in await project.GetSourceGeneratorDiagnosticsAsync(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\IRemoteKeepAliveService.cs (3)
115session.KeepAliveTokenSource.Token).ConfigureAwait(false); 155linkedTokenSource.Token).ConfigureAwait(false); 211cancellationToken).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 (15)
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); 124? await connection.TryInvokeAsync(compilationState, invocation, cancellationToken).ConfigureAwait(false) 125: await connection.TryInvokeAsync(compilationState, projectId, invocation, cancellationToken).ConfigureAwait(false); 135return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false); 153return await connection.TryInvokeAsync(project, invocation, cancellationToken).ConfigureAwait(false); 164return await connection.TryInvokeAsync(compilationState, projectId, invocation, cancellationToken).ConfigureAwait(false); 180return await connection.TryInvokeAsync(project, invocation, cancellationToken).ConfigureAwait(false); 193return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false); 204return await connection.TryInvokeAsync(solution, invocation, cancellationToken).ConfigureAwait(false); 223return await connection.TryInvokeAsync(project, invocation, cancellationToken).ConfigureAwait(false); 240return await connection.TryInvokeAsync(project, invocation, cancellationToken).ConfigureAwait(false); 253return 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 (21)
214_documentIdOfRenameSymbolDeclaration, includeSourceGenerated: true, _cancellationToken).ConfigureAwait(false); 215var semanticModel = await declarationDocument.GetRequiredSemanticModelAsync(_cancellationToken).ConfigureAwait(false); 328documentId, includeSourceGenerated: true, _cancellationToken).ConfigureAwait(false); 329var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(_cancellationToken).ConfigureAwait(false); 354documentId, includeSourceGenerated: true, _cancellationToken).ConfigureAwait(false); 355var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(_cancellationToken).ConfigureAwait(false); 357documentId, includeSourceGenerated: true, _cancellationToken).ConfigureAwait(false); 358var baseSyntaxTree = await baseDocument.GetRequiredSyntaxTreeAsync(_cancellationToken).ConfigureAwait(false); 359var baseRoot = await baseDocument.GetRequiredSyntaxRootAsync(_cancellationToken).ConfigureAwait(false); 382newDocumentSemanticModel ??= await newDocument.GetRequiredSemanticModelAsync(_cancellationToken).ConfigureAwait(false); 450unprocessedDocumentIdWithPotentialDeclarationConflicts, includeSourceGenerated: true, _cancellationToken).ConfigureAwait(false); 451var syntaxRoot = await newDocument.GetRequiredSyntaxRootAsync(_cancellationToken).ConfigureAwait(false); 453unprocessedDocumentIdWithPotentialDeclarationConflicts, includeSourceGenerated: true, _cancellationToken).ConfigureAwait(false); 454var baseSyntaxTree = await baseDocument.GetRequiredSyntaxTreeAsync(_cancellationToken).ConfigureAwait(false); 523.SelectAsArrayAsync(static (symbol, solution, cancellationToken) => GetSymbolLocationAsync(solution, symbol, cancellationToken), solution, _cancellationToken).ConfigureAwait(false)) 568var newLocation = await GetSymbolLocationAsync(solution, symbol, _cancellationToken).ConfigureAwait(false); 672_documentIdOfRenameSymbolDeclaration, includeSourceGenerated: true, _cancellationToken).ConfigureAwait(false); 732var info = await SyntaxTreeIndex.GetRequiredIndexAsync(document, _cancellationToken).ConfigureAwait(false); 781documentId, includeSourceGenerated: true, _cancellationToken).ConfigureAwait(false); 782var semanticModel = await document.GetRequiredSemanticModelAsync(_cancellationToken).ConfigureAwait(false); 836partiallyRenamedSolution = 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)
90var document = await solution.GetRequiredDocumentAsync(DocumentId, includeSourceGenerated: true, cancellation).ConfigureAwait(false); 93var tree = await document.GetRequiredSyntaxTreeAsync(cancellation).ConfigureAwait(false); 124static (loc, solution, cancellationToken) => loc.RehydrateAsync(solution, cancellationToken), solution, cancellationToken).ConfigureAwait(false); 127static (loc, solution, cancellationToken) => loc.RehydrateAsync(solution, cancellationToken), solution, cancellationToken).ConfigureAwait(false); 130static (sym, solution, cancellationToken) => sym.TryRehydrateAsync(solution, cancellationToken), solution, cancellationToken).ConfigureAwait(false); 168locBuilder.Add(await loc.RehydrateAsync(solution, cancellationToken).ConfigureAwait(false)); 249var 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); 98cancellationToken).ConfigureAwait(false); 102var rehydratedLocations = await result.Value.RehydrateLocationsAsync(solution, cancellationToken).ConfigureAwait(false);
Rename\Renamer.cs (1)
181cancellationToken).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\RenameUtilities.cs (1)
340var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
Rename\SymbolicRenameLocations.cs (1)
151cancellationToken).ConfigureAwait(false));
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (4)
343var syntaxRoot = await location.Document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 350var semanticModel = await location.Document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 405var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 423var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
Serialization\SerializableSourceText.cs (2)
133var text = await state.GetTextAsync(cancellationToken).ConfigureAwait(false); 235=> 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\5f6f2f95b47c3dc6\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
102return await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 157var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\7a47995420f988d7\AbstractRemoveUnnecessaryImportsService.cs (2)
27var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 34var currentModel = await current.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\ce8c1e82c1124a2b\AbstractInitializerParameterService.cs (2)
119var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 123var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Compilers\Core\Portable\Hashing\NonCryptographicHashAlgorithm.cs (1)
165int read = await stream.ReadAsync(buffer.AsMemory(), cancellationToken).ConfigureAwait(false);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
566builder.Add(await selector(item).ConfigureAwait(false)); 580builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 594builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 605builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
429builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 444builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 465builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
251return (ranToCompletion: true, await ProcessNextBatchAsync().ConfigureAwait(false));
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (1)
30while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\roslyn\src\Dependencies\Threading\ValueTaskExtensions.cs (2)
237_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 247_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\AddImport\AddImportPlacementOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
103changedRoot, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\MultiProjectSafeFixAllProvider.cs (1)
101var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
83var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CleanCodeGenerationOptions.cs (2)
42GenerationOptions = await document.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false), 43CleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false)
src\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (2)
146var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 150return await ReuseExistingSpeculativeModelAsync(document, node, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ISolutionExtensions.cs (2)
94=> (await solution.GetDocumentAsync(documentId, includeSourceGenerated, cancellationToken).ConfigureAwait(false)) ?? throw CreateDocumentNotFoundException(documentId); 97=> (await solution.GetTextDocumentAsync(documentId, cancellationToken).ConfigureAwait(false)) ?? throw CreateDocumentNotFoundException(documentId);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\DocumentFormattingOptionsProviders.cs (1)
24var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\FormatterShared.cs (1)
26var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\LineFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\SyntaxFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\NamingStyles\NamingStylePreferencesProviders.cs (1)
17var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
52var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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); 239semanticModelForReduce = await newDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 299var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplifierOptionsProviders.cs (1)
22var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
35return await FindSourceDefinitionWorkerAsync(symbol, solution, cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\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\roslyn\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 (1)
276using (await _project._gate.DisposableWaitAsync().ConfigureAwait(false))
Workspace\ProjectSystem\ProjectSystemProject.cs (3)
500using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 538using (useAsync ? await _gate.DisposableWaitAsync().ConfigureAwait(false) : _gate.DisposableWait()) 1193using (useAsync ? await _gate.DisposableWaitAsync().ConfigureAwait(false) : _gate.DisposableWait())
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (5)
201var disposableBatchScope = await project.CreateBatchScopeAsync(CancellationToken.None).ConfigureAwait(false); 250using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 261using (useAsync ? await _gate.DisposableWaitAsync().ConfigureAwait(false) : _gate.DisposableWait()) 309using (useAsync ? await _gate.DisposableWaitAsync().ConfigureAwait(false) : _gate.DisposableWait()) 357CancellationToken.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 (4)
194return await DocumentState.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false); 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); 473var index = await SyntaxTreeIndex.GetRequiredIndexAsync(d, cancellationToken).ConfigureAwait(false); 483var index = await TopLevelSyntaxTreeIndex.GetRequiredIndexAsync(d, cancellationToken).ConfigureAwait(false); 839var documentId = await State.GetDocumentIdAsync(contentHash, cancellationToken).ConfigureAwait(false);
Workspace\Solution\ProjectState_Checksum.cs (3)
71documentChecksums: await documentChecksumsTask.ConfigureAwait(false), 72await additionalDocumentChecksumsTask.ConfigureAwait(false), 73await analyzerConfigDocumentChecksumsTask.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); 1076await ComputeLatestDocumentVersionAsync(arg.newDocumentStates, arg.newAdditionalDocumentStates, cancellationToken).ConfigureAwait(false), 1084var finalVersion = await newDocuments[0].GetTextVersionAsync(cancellationToken).ConfigureAwait(false); 1086finalVersion = finalVersion.GetNewerVersion(await newDocuments[i].GetTextVersionAsync(cancellationToken).ConfigureAwait(false));
Workspace\Solution\Solution.cs (3)
262return await project.GetDocumentAsync(documentId, includeSourceGenerated, cancellationToken).ConfigureAwait(false); 277return await project.GetTextDocumentAsync(documentId, cancellationToken).ConfigureAwait(false); 316return await project.GetSourceGeneratedDocumentAsync(documentId, cancellationToken).ConfigureAwait(false);
Workspace\Solution\SolutionCompilationState_Checksum.cs (1)
129var frozenSourceGeneratedDocumentTexts = await FrozenSourceGeneratedDocumentStates.GetDocumentChecksumsAndIdsAsync(cancellationToken).ConfigureAwait(false);
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (1)
162cancellationToken).ConfigureAwait(false);
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (7)
37var canSkipRunningGenerators = await CanSkipRunningGeneratorsAsync(creationPolicy, compilationState, cancellationToken).ConfigureAwait(false); 44static (state, cancellationToken) => state.GetSyntaxTreeAsync(cancellationToken), cancellationToken).ConfigureAwait(false); 140cancellationToken).ConfigureAwait(false); 213cancellationToken).ConfigureAwait(false); 267static (state, cancellationToken) => state.GetSyntaxTreeAsync(cancellationToken), cancellationToken).ConfigureAwait(false)); 295treesToRemove.Add(await documentState.Value.GetSyntaxTreeAsync(cancellationToken).ConfigureAwait(false)); 423static (state, cancellationToken) => state.GetSyntaxTreeAsync(cancellationToken), cancellationToken).ConfigureAwait(false));
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
265using (await buildLock.DisposableWaitAsync(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\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_Checksum.cs (1)
37var serializableText = await SerializableSourceText.FromTextDocumentStateAsync(this, cancellationToken).ConfigureAwait(false);
Workspace\Solution\TextDocumentState.cs (3)
105var textAndVersion = await GetTextAndVersionAsync(cancellationToken).ConfigureAwait(false); 129var textAndVersion = await GetTextAndVersionAsync(cancellationToken).ConfigureAwait(false); 198var textAndVersion = await GetTextAndVersionAsync(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_SourceGeneration.cs (1)
55cancellationToken).ConfigureAwait(false);
Workspace\Workspace.cs (2)
281cancellationToken).ConfigureAwait(false); 495using (useAsync ? await _serializationLock.DisposableWaitAsync(cancellationToken).ConfigureAwait(false) : _serializationLock.DisposableWait(cancellationToken))
Microsoft.CodeAnalysis.Workspaces.MSBuild (5)
MSBuild\BuildHostProcessManager.cs (3)
106using (await _gate.DisposableWaitAsync(cancellationToken).ConfigureAwait(false)) 216using (await _gate.DisposableWaitAsync().ConfigureAwait(false)) 242using (await _gate.DisposableWaitAsync().ConfigureAwait(false))
MSBuild\FileBasedProgramsProjectLoader.cs (1)
34reportError).ConfigureAwait(false);
Rpc\RpcClient.cs (1)
169using (await _streamWritingSemaphore.DisposableWaitAsync(cancellationToken).ConfigureAwait(false))
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Rpc\RpcServer.cs (1)
195using (await _sendingStreamSemaphore.DisposableWaitAsync().ConfigureAwait(false))
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (1)
TextReaderExtensions.cs (1)
26return await streamReader.ReadLineAsync(cancellationToken).ConfigureAwait(false);
Microsoft.DotNet.Cli.InternalMicrosoft (1)
InternalMicrosoftDetector.cs (1)
356cancellationToken).ConfigureAwait(false);
Microsoft.DotNet.ProjectTools (15)
src\sdk\src\Cli\Microsoft.DotNet.FileBasedPrograms\VirtualProjectBuilder.cs (15)
239projectDirective = projectDirective.WithName(await project.ExpandStringAsync(projectDirective.Name).ConfigureAwait(false), CSharpDirective.Project.NameKind.Expanded); 246refDirective = refDirective.WithName(await project.ExpandStringAsync(refDirective.Name).ConfigureAwait(false), CSharpDirective.Ref.NameKind.Expanded); 253var expandedPath = await project.ExpandStringAsync(includeOrExcludeDirective.Name).ConfigureAwait(false); 259mapping = await GetItemMappingAsync(project, reportError).ConfigureAwait(false); 279await project.GetPropertyValueAsync(CSharpDirective.IncludeOrExclude.MappingPropertyName).ConfigureAwait(false), 295(text, path, textSpan, message, _) => errorReporter(path, text.Lines.GetLinePositionSpan(textSpan).Start.Line + 1, message)).ConfigureAwait(false); 341additionalGlobalProperties).ConfigureAwait(false); 359additionalGlobalProperties).ConfigureAwait(false); 362var fileEvaluatedDirectives = await EvaluateDirectivesAsync(project, directivesForEvaluation, reportError).ConfigureAwait(false); 397additionalGlobalProperties).ConfigureAwait(false); 400var compileItems = await project.GetItemMetadataValuesAsync("Compile", ["FullPath"]).ConfigureAwait(false); 500var project = await _buildService.CreateProjectInstanceFromProjectRootElementAsync(projectRoot, projectCollection, additionalGlobalProperties).ConfigureAwait(false); 508var supportsFileBasedAppArtifactsPath = await project.GetPropertyValueAsync("_SupportsFileBasedAppArtifactsPath").ConfigureAwait(false); 514return await CreateProjectInstanceNoEvaluation(projectCollection, directives, additionalGlobalProperties).ConfigureAwait(false); 569processedRefFiles: processedFiles).ConfigureAwait(false);
Microsoft.Extensions.AI (11)
ChatRouting\FailoverChatClient.cs (6)
109await SelectClientAsync(context, cancellationToken).ConfigureAwait(false) ?? 178await SelectClientAsync(context, cancellationToken).ConfigureAwait(false) ?? 197hasCurrent = await enumerator.MoveNextAsync().ConfigureAwait(false); 202Exception exception = (await DisposeEnumeratorAsync(enumerator, ex).ConfigureAwait(false))!; 256hasCurrent = await enumerator.MoveNextAsync().ConfigureAwait(false); 274await DisposeEnumeratorAsync(enumerator, terminalException).ConfigureAwait(false);
Common\FunctionInvocationProcessor.cs (1)
209result = await _invokeFunction(context, cancellationToken).ConfigureAwait(false);
Files\LoggingHostedFileClient.cs (1)
228if (!await e.MoveNextAsync().ConfigureAwait(false))
Files\OpenTelemetryHostedFileClient.cs (1)
329if (!await e.MoveNextAsync().ConfigureAwait(false))
Realtime\LoggingRealtimeClientSession.cs (1)
146if (!await e.MoveNextAsync().ConfigureAwait(false))
Realtime\OpenTelemetryRealtimeClientSession.cs (1)
236if (!await responseEnumerator.MoveNextAsync().ConfigureAwait(false))
Microsoft.Extensions.AI.Abstractions (10)
ChatRouting\RoutingChatClient.cs (2)
70IChatClient client = await SelectClientAsync(context, cancellationToken).ConfigureAwait(false) ?? 87IChatClient client = await SelectClientAsync(context, cancellationToken).ConfigureAwait(false) ??
Contents\DataContent.cs (1)
150return await LoadFromAsync(fileStream, mediaType, cancellationToken).ConfigureAwait(false);
Functions\AIFunctionFactory.cs (7)
682ReflectionInvoke(FunctionDescriptor.Method, target, args), cancellationToken).ConfigureAwait(true); 1057return await marshalResult(null, null, cancellationToken).ConfigureAwait(true); 1077return await marshalResult(null, null, cancellationToken).ConfigureAwait(true); 1103return await marshalResult(result, taskResultGetter.ReturnType, cancellationToken).ConfigureAwait(true); 1124return await SerializeResultAsync(result, returnTypeInfo, cancellationToken).ConfigureAwait(true); 1143return await marshalResult(result, asTaskResultGetter.ReturnType, cancellationToken).ConfigureAwait(true); 1166return await SerializeResultAsync(result, returnTypeInfo, cancellationToken).ConfigureAwait(true);
Microsoft.Extensions.AI.Evaluation (3)
CompositeEvaluator.cs (1)
141cancellationToken).ConfigureAwait(false);
Utilities\TaskExtensions.cs (1)
90yield return await task.ConfigureAwait(false);
Utilities\TimingHelper.cs (1)
108result = await operation().ConfigureAwait(false);
Microsoft.Extensions.AI.Evaluation.Console (6)
src\Libraries\Microsoft.Extensions.AI.Evaluation\Utilities\TimingHelper.cs (1)
108result = await operation().ConfigureAwait(false);
Telemetry\TelemetryExtensions.cs (4)
80TimeSpan duration = await TimingHelper.ExecuteWithTimingAsync(operation).ConfigureAwait(false); 100TimeSpan duration = await TimingHelper.ExecuteWithTimingAsync(operation).ConfigureAwait(false); 121await TimingHelper.ExecuteWithTimingAsync(operation).ConfigureAwait(false); 144await TimingHelper.ExecuteWithTimingAsync(operation).ConfigureAwait(false);
Utilities\LoggerExtensions.cs (1)
108return await operation().ConfigureAwait(false);
Microsoft.Extensions.AI.Evaluation.NLP (1)
src\Libraries\Microsoft.Extensions.AI.Evaluation\Utilities\TimingHelper.cs (1)
108result = 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)
106cancellationToken)).ConfigureAwait(false);
FluencyEvaluator.cs (1)
90cancellationToken)).ConfigureAwait(false);
GroundednessEvaluator.cs (1)
104cancellationToken)).ConfigureAwait(false);
IntentResolutionEvaluator.cs (2)
148cancellationToken)).ConfigureAwait(false); 351cancellationToken).ConfigureAwait(false);
RelevanceEvaluator.cs (1)
103cancellationToken)).ConfigureAwait(false);
RelevanceTruthAndCompletenessEvaluator.cs (2)
125cancellationToken)).ConfigureAwait(false); 299cancellationToken).ConfigureAwait(false);
RetrievalEvaluator.cs (1)
119cancellationToken)).ConfigureAwait(false);
src\Libraries\Microsoft.Extensions.AI.Evaluation\Utilities\TimingHelper.cs (1)
108result = 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)
235cancellationToken).ConfigureAwait(false);
ScenarioRun.cs (1)
161cancellationToken).ConfigureAwait(false);
Storage\DiskBasedResponseCache.CacheEntry.cs (1)
55cancellationToken).ConfigureAwait(false) ??
Storage\DiskBasedResultStore.cs (1)
75cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (4)
Storage\AzureStorageResponseCache.CacheEntry.cs (1)
61cancellationToken).ConfigureAwait(false)
Storage\AzureStorageResponseCache.cs (2)
65await CheckPathsAsync(key, cancellationToken).ConfigureAwait(false); 113await CheckPathsAsync(key, cancellationToken).ConfigureAwait(false);
Storage\AzureStorageResultStore.cs (1)
126cancellationToken).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)
65cancellationToken).ConfigureAwait(false); 98cancellationToken).ConfigureAwait(false);
ContentSafetyEvaluator.cs (1)
140cancellationToken: cancellationToken)).ConfigureAwait(false);
ContentSafetyService.cs (9)
129await GetServiceUrlAsync(annotationTask, evaluatorName, cancellationToken).ConfigureAwait(false); 136cancellationToken).ConfigureAwait(false); 142cancellationToken).ConfigureAwait(false); 167await GetServiceDiscoveryUrlAsync(evaluatorName, cancellationToken).ConfigureAwait(false); 205cancellationToken: cancellationToken).ConfigureAwait(false); 256cancellationToken: cancellationToken).ConfigureAwait(false); 314cancellationToken).ConfigureAwait(false); 369cancellationToken: cancellationToken).ConfigureAwait(false); 439await 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)
108result = await operation().ConfigureAwait(false);
UngroundedAttributesEvaluator.cs (1)
68cancellationToken: cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.Caching.Abstractions (1)
Hybrid\HybridCache.cs (1)
168}, innerOptions, tags, cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.Caching.Hybrid (6)
Internal\DefaultHybridCache.L2.cs (2)
71BufferChunk result = await pending.ConfigureAwait(false) 144BufferChunk buffer = await GetFromL2DirectAsync(TagKeyPrefix + tag, cts.Token).ConfigureAwait(false);
Internal\DefaultHybridCache.StampedeStateT.cs (3)
190result = await Cache.GetFromL2DirectAsync(Key.Key, SharedToken).ConfigureAwait(false); 233|| !await Cache.IsAnyTagExpiredAsync(parsed.PendingTags, parsed.CreationTime).ConfigureAwait(false)) 268newValue = 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.DataIngestion.MarkItDown (3)
MarkItDownMcpReader.cs (3)
47DataContent dataContent = await DataContent.LoadFromAsync(source.FullName, mediaType, cancellationToken).ConfigureAwait(false); 61DataContent dataContent = await DataContent.LoadFromAsync(source, mediaType, cancellationToken).ConfigureAwait(false); 90var result = await client.CallToolAsync("convert_to_markdown", parameters, cancellationToken: cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.Diagnostics.Probes (1)
TcpEndpointProbesService.cs (1)
87using var client = await _listener.AcceptTcpClientAsync(cancellationToken).ConfigureAwait(false);
Microsoft.Extensions.DotNetDeltaApplier (7)
src\sdk\src\Dotnet.Watch\HotReloadAgent.Host\Listener.cs (7)
89using var request = await transport.ReceiveAsync(cancellationToken).ConfigureAwait(false); 95var payloadType = (RequestType)await request.Stream.ReadByteAsync(cancellationToken).ConfigureAwait(false); 122var environmentVariableCount = await stream.ReadInt32Async(cancellationToken).ConfigureAwait(false); 128var name = await stream.ReadStringAsync(cancellationToken).ConfigureAwait(false); 129var value = await stream.ReadStringAsync(cancellationToken).ConfigureAwait(false); 145var request = await ManagedCodeUpdateRequest.ReadAsync(stream, cancellationToken).ConfigureAwait(false); 167var request = await StaticAssetUpdateRequest.ReadAsync(stream, 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)
112logRecord.ResponseBody = await _httpResponseBodyReader.ReadAsync(response, cancellationToken).ConfigureAwait(false); 135.ConfigureAwait(false);
Logging\Internal\HttpResponseBodyReader.cs (5)
83return await ReadFromStreamAsync(response, readSizeLimit, joinedTokenSource.Token).ConfigureAwait(false); 103string bufferedString = await BufferStreamAndWriteToPipeAsync(streamToReadFrom, pipe.Writer, readSizeLimit, cancellationToken).ConfigureAwait(false); 136int bytesRead = await stream.ReadAtLeastAsync(memory, bufferSize, false, cancellationToken).ConfigureAwait(false); 156int bytesRead = await stream.ReadAsync(memory, cancellationToken).ConfigureAwait(false); 164FlushResult 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)
53var result = await shouldHandle(args).ConfigureAwait(args.Context.ContinueOnCapturedContext);
Resilience\ResilienceHandler.cs (1)
87.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)
100using 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)
126AddressResult[] ipv4Addresses = await ipv4AddressesTask.ConfigureAwait(false); 127AddressResult[] ipv6Addresses = await ipv6AddressesTask.ConfigureAwait(false); 362(SendQueryError error, TResult[] result) = await SendQueryWithRetriesAsync(name, dnsSafeName, queryType, processResponseFunc, cancellationToken).ConfigureAwait(false); 391SendQueryResult queryResult = await SendQueryToServerWithTimeoutAsync(serverEndPoint, name, dnsSafeName, queryType, attempt, cancellationToken).ConfigureAwait(false); 486return await SendQueryToServerAsync(serverEndPoint, name, dnsSafeName, queryType, attempt, cts.Token).ConfigureAwait(false); 530(responseReader, header) = await SendDnsQueryCoreUdpAsync(serverEndPoint, dnsSafeName, queryType, cancellationToken).ConfigureAwait(false); 537(responseReader, header, sendError) = await SendDnsQueryCoreTcpAsync(serverEndPoint, dnsSafeName, queryType, cancellationToken).ConfigureAwait(false); 741await socket.SendToAsync(memory.Slice(0, length), SocketFlags.None, serverEndPoint, cancellationToken).ConfigureAwait(false); 751int packetLength = await socket.ReceiveAsync(memory, SocketFlags.None, cancellationToken).ConfigureAwait(false); 792await socket.SendAsync(buffer.AsMemory(0, length + 2), SocketFlags.None, cancellationToken).ConfigureAwait(false); 798int 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 (13)
Model\BertTokenizer.cs (1)
702(Dictionary<StringSpanOrdinalKey, int> vocab, Dictionary<int, string> vocabReverse) = await LoadVocabAsync(vocabStream, useAsync: true, cancellationToken).ConfigureAwait(false);
Model\BPETokenizer.cs (4)
278(Dictionary<StringSpanOrdinalKey, int>? vocab, Vec<(string, string)> merges) result = await ReadModelDataAsync(vocabStream, mergesStream, useAsync: true).ConfigureAwait(false); 1102? await JsonSerializer.DeserializeAsync(vocab, ModelSourceGenerationContext.Default.DictionaryStringSpanOrdinalKeyInt32, cancellationToken).ConfigureAwait(false) 1106await ConvertMergesToHashmapAsync(merges, useAsync, cancellationToken).ConfigureAwait(false) : 1150await 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) : 1409await 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.NET.Build.Containers (3)
LocalDaemons\ContainerRuntime.cs (2)
87IContainerRuntime runtime = await GetRuntimeAsync(cancellationToken).ConfigureAwait(false) 99IContainerRuntime runtime = await GetRuntimeAsync(cancellationToken).ConfigureAwait(false)
Registry\Registry.cs (1)
513int bytesRead = await contents.ReadAsync(chunkBackingStore, cancellationToken).ConfigureAwait(false);
Microsoft.NET.ProjectData (3)
CacheFileReader.cs (3)
382 string? firstLineRaw = await reader.ReadLineAsync(cancellationToken).ConfigureAwait(false); 390 firstLine = await reader.ReadLineAsync(cancellationToken).ConfigureAwait(false); 433 while ((line = await reader.ReadLineAsync(cancellationToken).ConfigureAwait(false)) is not null)
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\ApplicationServices\SingleInstanceHelpers.vb (1)
27cancellationToken).ConfigureAwait(continueOnCapturedContext:=False)
NativeIntegrations.DockerCompose (1)
DockerCommand.cs (1)
84while ((count = await stream.ReadAsync(buffer, deadline.Token).ConfigureAwait(false)) != 0)
Pipelines.Library (1)
DistributedApplicationPipelineExtensions.cs (1)
150var accessToken = await credential.GetTokenAsync(tokenRequestContext, cancellationToken).ConfigureAwait(false);
Roslyn.Diagnostics.Analyzers (73)
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\5f6f2f95b47c3dc6\SemanticModelWorkspaceServiceFactory.SemanticModelWorkspaceService.cs (2)
102return await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 157var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\7a47995420f988d7\AbstractRemoveUnnecessaryImportsService.cs (2)
27var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 34var currentModel = await current.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\ce8c1e82c1124a2b\AbstractInitializerParameterService.cs (2)
119var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 123var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
566builder.Add(await selector(item).ConfigureAwait(false)); 580builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 594builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 605builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\roslyn\src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (3)
429builder.Add(await selector(item, cancellationToken).ConfigureAwait(false)); 444builder.Add(await selector(item, arg, cancellationToken).ConfigureAwait(false)); 465builder.AddRange(await selector(item, arg, cancellationToken).ConfigureAwait(false));
src\roslyn\src\Dependencies\Threading\AsyncBatchingWorkQueue`2.cs (1)
251return (ranToCompletion: true, await ProcessNextBatchAsync().ConfigureAwait(false));
src\roslyn\src\Dependencies\Threading\ChannelReaderExtensions.cs (1)
22while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\roslyn\src\Dependencies\Threading\ProducerConsumer.cs (1)
30while (await reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false))
src\roslyn\src\Dependencies\Threading\ValueTaskExtensions.cs (2)
237_task.ConfigureAwait(_captureContext).GetAwaiter().OnCompleted(continuation); 247_task.ConfigureAwait(_captureContext).GetAwaiter().UnsafeOnCompleted(continuation);
src\roslyn\src\RoslynAnalyzers\Utilities\Refactoring\CodeRefactoringContextExtensions.cs (1)
45var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\AddImport\AddImportPlacementOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupOptionsProviders.cs (1)
29var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\ForkingSyntaxEditorBasedCodeFixProvider.cs (1)
103changedRoot, cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\MultiProjectSafeFixAllProvider.cs (1)
101var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeFixes\SyntaxEditorBasedCodeFixProvider.cs (1)
83var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CleanCodeGenerationOptions.cs (2)
42GenerationOptions = await document.GetCodeGenerationOptionsAsync(cancellationToken).ConfigureAwait(false), 43CleanupOptions = await document.GetCodeCleanupOptionsAsync(cancellationToken).ConfigureAwait(false)
src\roslyn\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\roslyn\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\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (3)
146var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false); 150return await ReuseExistingSpeculativeModelAsync(document, node, cancellationToken).ConfigureAwait(false); 239var syntaxTree = await document.GetRequiredSyntaxTreeAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\DocumentFormattingOptionsProviders.cs (1)
24var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\FormatterShared.cs (1)
26var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\LineFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\SyntaxFormattingOptionsProviders.cs (1)
19var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\NamingStyles\NamingStylePreferencesProviders.cs (1)
17var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\MemberDisplayOptions.cs (1)
52var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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); 239semanticModelForReduce = await newDocument.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false); 299var model = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplifierOptionsProviders.cs (1)
22var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\SymbolFinder\SymbolFinderInternal.cs (1)
35return await FindSourceDefinitionWorkerAsync(symbol, solution, cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\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\roslyn\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\50a3a051b0fef0d6\CSharpReplaceDiscardDeclarationsWithAssignmentsService.cs (1)
41var semanticModel = await document.GetRequiredSemanticModelAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeFixesAndRefactorings\CSharpFixAllSpanMappingService.cs (1)
27var root = await document.GetRequiredSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Formatting\CSharpSyntaxFormattingOptionsProviders.cs (1)
15var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
src\roslyn\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\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Simplification\CSharpSimplifierOptionsProviders.cs (1)
15var configOptions = await document.GetHostAnalyzerConfigOptionsAsync(cancellationToken).ConfigureAwait(false);
System.Diagnostics.Process (4)
System\Diagnostics\AsyncStreamReader.cs (1)
97int bytesRead = await _stream.ReadAsync(new Memory<byte>(_byteBuffer), _cts.Token).ConfigureAwait(false);
System\Diagnostics\Process.Multiplexing.cs (3)
489while ((read = await stream.ReadAsync(buffer.AsMemory(bytesRead), cancellationToken).ConfigureAwait(false)) > 0) 551while (await channel.Reader.WaitToReadAsync(cancellationToken).ConfigureAwait(false)) 575while (await reader.ReadLineAsync(ct).ConfigureAwait(false) is string line)
System.DirectoryServices.Protocols (1)
System\DirectoryServices\Protocols\ldap\LdapConnection.cs (1)
338DirectoryResponse response = await vt.ConfigureAwait(false);
System.Formats.Tar (22)
src\runtime\src\libraries\Common\src\System\IO\SubReadStream.cs (1)
236int ret = await _superStream.ReadAsync(buffer, cancellationToken).ConfigureAwait(false);
System\Formats\Tar\GnuSparseStream.cs (10)
65var segments = await ParseSparseMapCoreAsync<TAdapter>(_rawStream, cancellationToken).ConfigureAwait(false); 243int bytesRead = await ReadFromPackedDataCoreAsync<TAdapter>(buffer.Slice(totalFilled, countToRead), packedOffset, cancellationToken).ConfigureAwait(false); 306int bytesRead = await ReadFromPackedDataCoreAsync<TAdapter>(buffer.AsMemory(0, toRead), _packedStartOffsets[i] + written, cancellationToken).ConfigureAwait(false); 347int bytesRead = await TAdapter.ReadAsync(_rawStream, destination, cancellationToken).ConfigureAwait(false); 467int newBytes = await TAdapter.ReadAtLeastAsync(rawStream, bytes.AsMemory(availableStart, TarHelpers.RecordSize), TarHelpers.RecordSize, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false); 497if (!await FillBufferAsync().ConfigureAwait(false)) 505await FillBufferAsync().ConfigureAwait(false); 507long numSegments = await ReadLineAsync().ConfigureAwait(false); 516long offset = await ReadLineAsync().ConfigureAwait(false); 517long length = await ReadLineAsync().ConfigureAwait(false);
System\Formats\Tar\TarFile.cs (1)
691while ((entry = await reader.GetNextEntryAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) != null)
System\Formats\Tar\TarHeader.Read.cs (2)
329_dataStream = await GetDataStreamCoreAsync<TAdapter>(archiveStream, copyData, cancellationToken).ConfigureAwait(false); 362await TarHelpers.SkipBlockAlignmentPaddingCoreAsync<TAdapter>(archiveStream, _size, cancellationToken).ConfigureAwait(false);
System\Formats\Tar\TarReader.cs (8)
203await TarHelpers.SkipBlockAlignmentPaddingCoreAsync<TAdapter>(_archiveStream, _previouslyReadEntry._header._size, cancellationToken).ConfigureAwait(false); 213TarHeader? header = await TryGetNextEntryHeaderCoreAsync<TAdapter>(copyData, cancellationToken).ConfigureAwait(false); 249TarHeader? header = await TarHeader.TryGetNextHeaderCoreAsync<TAdapter>(_archiveStream, copyData, TarEntryFormat.Unknown, processDataBlock: true, cancellationToken).ConfigureAwait(false); 260TarHeader? mainHeader = await TryProcessExtendedAttributesHeaderCoreAsync<TAdapter>(header, copyData, cancellationToken).ConfigureAwait(false); 270TarHeader? mainHeader = await TryProcessGnuMetadataHeaderCoreAsync<TAdapter>(header, copyData, cancellationToken).ConfigureAwait(false); 288TarHeader? actualHeader = await TarHeader.TryGetNextHeaderCoreAsync<TAdapter>(_archiveStream, copyData, TarEntryFormat.Pax, processDataBlock: false, cancellationToken).ConfigureAwait(false); 318TarHeader? secondHeader = await TarHeader.TryGetNextHeaderCoreAsync<TAdapter>(_archiveStream, copyData, TarEntryFormat.Gnu, processDataBlock: true, cancellationToken).ConfigureAwait(false); 337TarHeader? thirdHeader = await TarHeader.TryGetNextHeaderCoreAsync<TAdapter>(_archiveStream, copyData, TarEntryFormat.Gnu, processDataBlock: true, cancellationToken).ConfigureAwait(false);
System.IO.Compression (20)
src\runtime\src\libraries\Common\src\System\IO\SubReadStream.cs (1)
236int ret = await _superStream.ReadAsync(buffer, cancellationToken).ConfigureAwait(false);
System\IO\Compression\DeflateManaged\DeflateManagedStream.cs (1)
209int bytesRead = await readTask.ConfigureAwait(false);
System\IO\Compression\DeflateZLib\DeflateStream.cs (1)
489int n = await _stream.ReadAsync(new Memory<byte>(_buffer, 0, _buffer.Length), cancellationToken).ConfigureAwait(false);
System\IO\Compression\WinZipAesStream.cs (1)
455int bytesRead = await _baseStream.ReadAsync(buffer.Slice(0, bytesToRead), cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipArchive.Async.cs (1)
228int currBytesRead = await _archiveStream.ReadAtLeastAsync(fileBuffer, ZipCentralDirectoryFileHeader.BlockConstantSectionSize, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipArchiveEntry.Async.cs (2)
484await _archive.ArchiveStream.ReadAtLeastAsync(_compressedBytes[i], maxSingleBufferSize, throwOnEndOfStream: true, cancellationToken).ConfigureAwait(false); 486await _archive.ArchiveStream.ReadAtLeastAsync(_compressedBytes[_compressedBytes.Length - 1], (int)(_compressedSize % maxSingleBufferSize), throwOnEndOfStream: true, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipBlocks.Async.cs (6)
84int bytesRead = await stream.ReadAtLeastAsync(blockContents, blockContents.Length, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false); 109int bytesRead = await stream.ReadAtLeastAsync(blockContents, blockContents.Length, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false); 171int bytesRead = await stream.ReadAtLeastAsync(blockBytes, blockBytes.Length, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false); 176bytesRead = await stream.ReadAtLeastAsync(blockBytes, blockBytes.Length, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false); 219int realBytesRead = await furtherReads.ReadAtLeastAsync(collatedHeader.Slice(remainingBufferLength), bytesToRead, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false); 265int bytesRead = await stream.ReadAtLeastAsync(blockContents, blockContents.Length, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipCryptoStream.cs (1)
403int n = await _base.ReadAsync(buffer, cancellationToken).ConfigureAwait(false);
System\IO\Compression\ZipCustomStreams.cs (1)
604int bytesRead = await _baseStream.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\Zstandard\ZstandardStream.Decompress.cs (3)
241? await _stream.ReadAtLeastAsync(_buffer.AvailableMemory.Slice(0, needed), needed, throwOnEndOfStream: false, cancellationToken: cancellationToken).ConfigureAwait(false) 346int bytesRead = await _stream.ReadAsync(_buffer.AvailableMemory, cancellationToken).ConfigureAwait(false); 379if (!await AdvanceToNextFrame(async: true, cancellationToken: cancellationToken).ConfigureAwait(false))
System.IO.Compression.Brotli (1)
System\IO\Compression\dec\BrotliStream.Decompress.cs (1)
178int 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)
260await reader.InnerStream.ReadAsync(Memory<byte>.Empty, tokenSource.Token).ConfigureAwait(false); 269int length = await reader.InnerStream.ReadAsync(buffer, tokenSource.Token).ConfigureAwait(false); 337FlushResult 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.Linq.AsyncEnumerable (4)
System\Linq\Append.cs (3)
57if (await _enumerator.MoveNextAsync().ConfigureAwait(false)) 115if (await LoadFromEnumeratorAsync().ConfigureAwait(false)) 210if (await LoadFromEnumeratorAsync().ConfigureAwait(false))
System\Linq\Concat.cs (1)
227if (await _enumerator.MoveNextAsync().ConfigureAwait(false))
System.Net.Http (92)
System\Net\Http\MultipartContent.cs (1)
536int bytesRead = await _current.ReadAsync(buffer, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.cs (6)
256HttpResponseMessage response = await InnerSendAsync(request, async, isProxyAuth, doRequestAuth, pool, cancellationToken).ConfigureAwait(false); 270if (await TrySetDigestAuthToken(request, challenge.Credential, digestResponse, isProxyAuth).ConfigureAwait(false)) 273response = await InnerSendAsync(request, async, isProxyAuth, doRequestAuth, pool, cancellationToken).ConfigureAwait(false); 280await TrySetDigestAuthToken(request, challenge.Credential, digestResponse, isProxyAuth).ConfigureAwait(false)) 283response = await InnerSendAsync(request, async, isProxyAuth, doRequestAuth, pool, cancellationToken).ConfigureAwait(false); 315response = await InnerSendAsync(request, async, isProxyAuth, doRequestAuth, pool, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs (1)
76connection = 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)
441response = await TrySendUsingHttp3Async(request, cancellationToken).ConfigureAwait(false); 467connection = await http2ConnectionWaiter.WaitForConnectionAsync(request, this, async, cancellationToken).ConfigureAwait(false); 475await connection.InitialSettingsReceived.WaitWithCancellationAsync(cancellationToken).ConfigureAwait(false); 499connection = await http11ConnectionWaiter.WaitForConnectionAsync(request, this, async, cancellationToken).ConfigureAwait(false); 599stream = await ConnectToTcpHostAsync(_originAuthority.IdnHost, _originAuthority.Port, request, async, connectionId, cancellationToken).ConfigureAwait(false); 604stream = await ConnectHelper.EstablishSslConnectionAsync(_sslOptionsProxy, request, async, stream, cancellationToken).ConfigureAwait(false); 609stream = await ConnectToTcpHostAsync(_proxyUri!.IdnHost, _proxyUri.Port, request, async, connectionId, cancellationToken).ConfigureAwait(false); 614stream = await ConnectHelper.EstablishSslConnectionAsync(_sslOptionsProxy, request, async, stream, cancellationToken).ConfigureAwait(false); 620stream = await EstablishProxyTunnelAsync(async, cancellationToken).ConfigureAwait(false); 631stream = await EstablishSocksTunnel(request, async, connectionId, cancellationToken).ConfigureAwait(false); 644sslStream = await ConnectHelper.EstablishSslConnectionAsync(GetSslOptionsForRequest(request, isForHttp2), request, async, stream, cancellationToken).ConfigureAwait(false); 697stream = await streamTask.ConfigureAwait(false) ?? throw new HttpRequestException(SR.net_http_null_from_connect_callback); 776newStream = await streamTask.ConfigureAwait(false); 809HttpResponseMessage tunnelResponse = await _poolManager.SendProxyConnectAsync(tunnelRequest, _proxyUri!, async, cancellationToken).ConfigureAwait(false); 832Stream stream = await ConnectToTcpHostAsync(_proxyUri.IdnHost, _proxyUri.Port, request, async, connectionId, 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, long connectionId) = await ConnectAsync(request, async, isForHttp2: false, cancellationToken).ConfigureAwait(false); 297return await ConstructHttp11ConnectionAsync(async, stream, transportContext, request, activity, remoteEndPoint, connectionId, cancellationToken).ConfigureAwait(false); 302Stream newStream = await ApplyPlaintextFilterAsync(async, stream, HttpVersion.Version11, request, connectionId, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http2.cs (5)
196(Stream stream, TransportContext? transportContext, Activity? activity, IPEndPoint? remoteEndPoint, long connectionId) = await ConnectAsync(queueItem.Request, true, isForHttp2: true, cts.Token).ConfigureAwait(false); 213connection = await ConstructHttp2ConnectionAsync(stream, queueItem.Request, activity, remoteEndPoint, connectionId, cts.Token).ConfigureAwait(false); 225connection = await ConstructHttp2ConnectionAsync(stream, queueItem.Request, activity, remoteEndPoint, connectionId, cts.Token).ConfigureAwait(false); 257stream = await ApplyPlaintextFilterAsync(async: true, stream, HttpVersion.Version20, request, connectionId, cancellationToken).ConfigureAwait(false); 368http11Connection = await ConstructHttp11ConnectionAsync(true, stream, transportContext, request, activity, remoteEndPoint, connectionId, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\ConnectionPool\HttpConnectionPool.Http3.cs (2)
92connection = await http3ConnectionWaiter.WaitWithCancellationAsync(cancellationToken).ConfigureAwait(false); 271QuicConnection quicConnection = await ConnectHelper.ConnectQuicAsync(queueItem.Request, connectEndPoint, _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)
98HttpResponseMessage response = await _innerHandler.SendAsync(request, async, cancellationToken).ConfigureAwait(false); 299int firstByte = await thisRef._stream.PeekFirstByteAsync(cancellationToken).ConfigureAwait(false); 301return await thisRef._decompressionStream.ReadAsync(buffer, cancellationToken).ConfigureAwait(false); 316int firstByte = await _stream.PeekFirstByteAsync(cancellationToken).ConfigureAwait(false); 372int bytesRead = await _stream.ReadAsync(buffer, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (12)
426await _stream.ReadAsync(Memory<byte>.Empty).ConfigureAwait(false); 430int bytesRead = await _stream.ReadAsync(_incomingBuffer.AvailableMemory).ConfigureAwait(false); 473await _stream.ReadAsync(Memory<byte>.Empty).ConfigureAwait(false); 475int bytesRead = await _stream.ReadAsync(_incomingBuffer.AvailableMemory).ConfigureAwait(false); 500frameHeader = await ReadFrameAsync(initialFrame: true).ConfigureAwait(false); 553await zeroByteReadTask.ConfigureAwait(false); 559int bytesRead = await _stream.ReadAsync(_incomingBuffer.AvailableMemory).ConfigureAwait(false); 572frameHeader = await ReadFrameAsync().ConfigureAwait(false); 690frameHeader = await ReadFrameAsync().ConfigureAwait(false); 1231while (await _writeChannel.Reader.WaitToReadAsync().ConfigureAwait(false)) 1777frameSize = await _connectionWindow.RequestCreditAsync(frameSize, cancellationToken).ConfigureAwait(false); 2091Http2Stream 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 (10)
288quicStream = await conn.OpenOutboundStreamAsync(QuicStreamType.Bidirectional, cancellationToken).ConfigureAwait(false); 492_clientControl = await _connection!.OpenOutboundStreamAsync(QuicStreamType.Unidirectional).ConfigureAwait(false); 556QuicStream stream = await streamTask.ConfigureAwait(false); 607bytesRead = await stream.ReadAsync(buffer.AvailableMemory, CancellationToken.None).ConfigureAwait(false); 722(Http3FrameType? frameType, long payloadLength) = await ReadFrameEnvelopeAsync().ConfigureAwait(false); 741(frameType, payloadLength) = await ReadFrameEnvelopeAsync().ConfigureAwait(false); 804bytesRead = await stream.ReadAsync(buffer.AvailableMemory, CancellationToken.None).ConfigureAwait(false); 837bytesRead = await stream.ReadAsync(buffer.AvailableMemory, CancellationToken.None).ConfigureAwait(false); 888bytesRead = await stream.ReadAsync(buffer.AvailableMemory, CancellationToken.None).ConfigureAwait(false); 917int 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); 908bytesRead = await _stream.ReadAsync(_recvBuffer.AvailableMemory, cancellationToken).ConfigureAwait(false); 967int bytesRead = await _stream.ReadAsync(_recvBuffer.AvailableMemory, cancellationToken).ConfigureAwait(false); 1173int bytesRead = await _stream.ReadAsync(_recvBuffer.AvailableMemory, cancellationToken).ConfigureAwait(false); 1277if (_responseDataPayloadRemaining <= 0 && !await ReadNextDataFrameAsync(response, cancellationToken).ConfigureAwait(false)) 1310int bytesRead = await _stream.ReadAsync(buffer.Slice(0, copyLen), cancellationToken).ConfigureAwait(false); 1398(frameType, payloadLength) = await ReadFrameEnvelopeAsync(cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (8)
256await _stream.ReadAsync(Memory<byte>.Empty).ConfigureAwait(false); 259int read = await _stream.ReadAsync(_readBuffer.AvailableMemory).ConfigureAwait(false); 638bytesRead = await vt.ConfigureAwait(false); 1656await _stream.ReadAsync(_readBuffer.AvailableMemory).ConfigureAwait(false) : 1672await _stream.ReadAsync(_readBuffer.AvailableMemory).ConfigureAwait(false) : 1820int count = await _stream.ReadAsync(destination).ConfigureAwait(false); 1875int bytesRead = await _stream.ReadAsync(_readBuffer.AvailableMemory).ConfigureAwait(false); 2119if (!await responseStream.DrainAsync(_pool.Settings._maxResponseDrainSize).ConfigureAwait(false) ||
System\Net\Http\SocketsHttpHandler\HttpConnectionPoolManager.cs (1)
475return 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)
68bytesRead = await readTask.ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\RedirectHandler.cs (2)
29HttpResponseMessage response = await _innerHandler.SendAsync(request, async, cancellationToken).ConfigureAwait(false); 88response = await _innerHandler.SendAsync(request, async, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\SocksHelper.cs (1)
358? 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)
196int 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)
279read = 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.NameResolution (4)
System\Net\DnsResolverPal.Managed.cs (4)
640await socket.SendAsync(query, timeoutCts.Token).ConfigureAwait(false); 641return await socket.ReceiveAsync(responseBuffer, timeoutCts.Token).ConfigureAwait(false); 757int received = await socket.ReceiveAsync(buffer[totalReceived..], cancellationToken).ConfigureAwait(false); 789int sent = await socket.SendAsync(buffer[totalSent..], cancellationToken).ConfigureAwait(false);
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)
334.ConfigureAwait(false); 349.ConfigureAwait(false);
System.Net.Quic (3)
System\Net\Quic\QuicConnection.cs (1)
578return 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)
363int readBytes = await ReadAllAsync(InnerStream, _readHeader, allowZeroRead: true, cancellationToken).ConfigureAwait(false); 389readBytes = await ReadAllAsync(InnerStream, new Memory<byte>(_readBuffer, 0, readBytes), allowZeroRead: false, cancellationToken).ConfigureAwait(false); 455stream, buffer, buffer.Length, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false); 870byte[]? message = await _framer.ReadMessageAsync<TIOAdapter>(InnerStream, cancellationToken).ConfigureAwait(false);
System\Net\Security\SslStream.IO.cs (7)
235int frameSize = await ReceiveHandshakeFrameAsync<TIOAdapter>(cancellationToken).ConfigureAwait(false); 378int frameSize = await ReceiveHandshakeFrameAsync<TIOAdapter>(cancellationToken).ConfigureAwait(false); 465int frameSize = await EnsureFullTlsFrameAsync<TIOAdapter>(cancellationToken, InitialHandshakeBufferSize).ConfigureAwait(false); 534_sslAuthenticationOptions.UserState, cancellationToken).ConfigureAwait(false); 860await TIOAdapter.ReadAsync(InnerStream, Memory<byte>.Empty, cancellationToken).ConfigureAwait(false); 875int bytesRead = await TIOAdapter.ReadAsync(InnerStream, _buffer.AvailableMemory, cancellationToken).ConfigureAwait(false); 952int 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)
158while (await FillLineBufferAsync(cancellationToken).ConfigureAwait(false) != 0 && _lineBuffer.ActiveLength < Utf8Bom.Length) ; 183await FillLineBufferAsync(cancellationToken).ConfigureAwait(false); 441int bytesRead = await _stream.ReadAsync(_lineBuffer.AvailableMemory, cancellationToken).ConfigureAwait(false);
System.Net.Sockets (3)
System\Net\Sockets\SocketPal.Unix.cs (1)
2130bytesTransferred = await socket.SendAsync(e.MemoryBuffer.Value, SocketFlags.None, cancellationToken).ConfigureAwait(false) + bytesTransferred;
System\Net\Sockets\TCPListener.cs (1)
240new TcpClient(await task.ConfigureAwait(false));
System\Net\Sockets\UDPClient.cs (1)
657SocketReceiveFromResult result = await task.ConfigureAwait(false);
System.Net.WebSockets (6)
System\Net\WebSockets\ManagedWebSocket.cs (4)
841await _stream.ReadAsync(Memory<byte>.Empty, cancellationToken).ConfigureAwait(false); 953readBuffer, bytesToRead, throwOnEndOfStream: false, cancellationToken).ConfigureAwait(false); 1520await receiveTask.ConfigureAwait(false); 1632_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 (28)
src\ea87ea297559d2f4\TaskAsyncEnumerableExtensions.ToBlockingEnumerable.MultiThreading.cs (1)
32(mres ??= new ManualResetEventWithAwaiterSupport()).Wait(moveNextTask.ConfigureAwait(false).GetAwaiter());
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\IO\File.cs (5)
1137int read = await sr.ReadAsync(new Memory<char>(buffer), cancellationToken).ConfigureAwait(false); 1235int n = await RandomAccess.ReadAtOffsetAsync(sfh, bytes.AsMemory(index), index, cancellationToken).ConfigureAwait(false); 1274int n = await RandomAccess.ReadAtOffsetAsync(sfh, rentedArray.AsMemory(bytesRead), bytesRead, cancellationToken).ConfigureAwait(false); 1343while ((line = await sr.ReadLineAsync(cancellationToken).ConfigureAwait(false)) != null) 1692while ((line = await sr.ReadLineAsync(cts.Token).ConfigureAwait(false)) is not null)
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Strategies\BufferedFileStreamStrategy.cs (3)
381return await _strategy.ReadAsync(destination, cancellationToken).ConfigureAwait(false); 441return await _strategy.ReadAsync(buffer, cancellationToken).ConfigureAwait(false) + bytesAlreadySatisfied; 446_readLen = await _strategy.ReadAsync(new Memory<byte>(_buffer, 0, _bufferSize), cancellationToken).ConfigureAwait(false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\Stream.cs (2)
106while ((bytesRead = await source.ReadAsync(new Memory<byte>(buffer), cancellationToken).ConfigureAwait(false)) != 0) 435int read = await ReadAsync(buffer.Slice(totalRead), cancellationToken).ConfigureAwait(false);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\StreamReader.cs (11)
935if (_charPos == _charLen && (await ReadBufferAsync(cancellationToken).ConfigureAwait(false)) == 0) 973if (charPos < charLen || (await ReadBufferAsync(cancellationToken).ConfigureAwait(false)) > 0) 1001while (await ReadBufferAsync(cancellationToken).ConfigureAwait(false) > 0); 1069await ReadBufferAsync(cancellationToken).ConfigureAwait(false); 1110return await ReadAsyncInternal(buffer, cancellationToken).ConfigureAwait(false); 1135if (_charPos == _charLen && (await ReadBufferAsync(cancellationToken).ConfigureAwait(false)) == 0) 1178int len = await tmpStream.ReadAsync(new Memory<byte>(tmpByteBuffer, tmpBytePos, tmpByteBuffer.Length - tmpBytePos), cancellationToken).ConfigureAwait(false); 1214_byteLen = await tmpStream.ReadAsync(new Memory<byte>(tmpByteBuffer), cancellationToken).ConfigureAwait(false); 1370return await ReadBlockAsyncInternal(buffer, token).ConfigureAwait(false); 1394int len = await tmpStream.ReadAsync(tmpByteBuffer.AsMemory(tmpBytePos), cancellationToken).ConfigureAwait(false); 1408_byteLen = await tmpStream.ReadAsync(new Memory<byte>(tmpByteBuffer), cancellationToken).ConfigureAwait(false);
src\runtime\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\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ConfiguredCancelableAsyncEnumerable.cs (1)
69_enumerator.MoveNextAsync().ConfigureAwait(_continueOnCapturedContext);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\TranscodingStream.cs (1)
404int innerBytesReadJustNow = await _innerStream.ReadAsync(rentedBytes.AsMemory(0, DefaultReadByteBufferSize), cancellationToken).ConfigureAwait(false);
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); 1157int read = await _ps.stream.ReadAsync(_ps.bytes.AsMemory(_ps.bytesUsed)).ConfigureAwait(false); 1179charsRead = await _ps.textReader.ReadAsync(_ps.chars.AsMemory(_ps.charsUsed, _ps.chars.Length - _ps.charsUsed - 1)).ConfigureAwait(false); 2989tuple_9 = await ParseTextAsync(orChars).ConfigureAwait(false); 3037tuple_11 = await ParseTextAsync(orChars).ConfigureAwait(false); 3083var tuple_12 = await ParseTextAsync(orChars).ConfigureAwait(false); 3107tuple_13 = await ParseTextAsync(orChars).ConfigureAwait(false); 3569var tuple_15 = await ParseTextAsync(orChars).ConfigureAwait(false); 3578tuple_15 = await ParseTextAsync(orChars).ConfigureAwait(false); 3648tuple_16 = await ParseTextAsync(orChars).ConfigureAwait(false); 5435var tuple_36 = await ParseTextAsync(orChars).ConfigureAwait(false);
System.Private.Xml.Linq (2)
System\Xml\Linq\XContainer.cs (2)
869while (await cr.ReadContentFromAsync(this, r).ConfigureAwait(false) && await r.ReadAsync().ConfigureAwait(false)); 890while (await cr.ReadContentFromContainerAsync(this, r).ConfigureAwait(false) && await r.ReadAsync().ConfigureAwait(false));
System.Security.Cryptography (10)
System\Security\Cryptography\CryptographicOperations.cs (1)
1047cancellationToken).ConfigureAwait(false);
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\HMACStatic.cs (1)
231cancellationToken).ConfigureAwait(false);
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)
499while ((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); 909lastRead = await stream.ReadAsync(rented.AsMemory(written, utf8BomLength - written), cancellationToken).ConfigureAwait(false); 932lastRead = await stream.ReadAsync(rented.AsMemory(written), cancellationToken).ConfigureAwait(false);
System\Text\Json\Serialization\JsonSerializer.Read.Pipe.cs (1)
344bufferState = await bufferState.ReadAsync(utf8Json, cancellationToken, fillBuffer: false).ConfigureAwait(false);
System\Text\Json\Serialization\JsonSerializer.Read.Stream.cs (1)
500bufferState = 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); 120T? result = await DeserializeAsync(utf8Json, bufferState, cancellationToken).ConfigureAwait(false); 126T? result = await DeserializeAsync<PipeReadBufferState, PipeReader>(utf8Json, bufferState: new PipeReadBufferState(utf8Json), cancellationToken).ConfigureAwait(false);
System\Text\Json\Serialization\Metadata\JsonTypeInfoOfT.WriteHelpers.cs (2)
129FlushResult result = await pipeWriter.FlushAsync(cancellationToken).ConfigureAwait(false); 199result = 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)
333exception = await DisposeFrame(Current.CollectionEnumerator, Current.AsyncEnumerator, exception).ConfigureAwait(false); 350exception = await DisposeFrame(_stack[i].CollectionEnumerator, _stack[i].AsyncEnumerator, 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 (4)
System\Threading\RateLimiting\ChainedPartitionedRateLimiter.cs (1)
103lease = await _limiters[i].AcquireAsync(resource, permitCount, cancellationToken).ConfigureAwait(false);
System\Threading\RateLimiting\ChainedRateLimiter.cs (1)
46return await ChainedRateLimiterShared.AcquireAsyncChained(_limiters, permitCount, cancellationToken).ConfigureAwait(false);
System\Threading\RateLimiting\ChainedRateLimiterShared.cs (1)
109lease = await limiters[i].AcquireAsync(permitCount, cancellationToken).ConfigureAwait(false);
System\Threading\RateLimiting\ChainedReplenishingRateLimiter.cs (1)
111return await ChainedRateLimiterShared.AcquireAsyncChained(_limiters, permitCount, cancellationToken).ConfigureAwait(false);
System.Windows.Extensions (2)
System\Media\SoundPlayer.cs (2)
503int readBytes = await _stream.ReadAsync(_streamData.AsMemory(_currentPos, BlockSize), cancellationToken).ConfigureAwait(false); 515readBytes = await _stream.ReadAsync(_streamData.AsMemory(_currentPos, BlockSize), cancellationToken).ConfigureAwait(false);
System.Windows.Forms (1)
System\Windows\Forms\Control_InvokeAsync.cs (1)
418T returnValue = await callback(cancellationToken).ConfigureAwait(false);