1 implementation of ISimplificationService
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
25
internal abstract class AbstractSimplificationService<TCompilationUnitSyntax, TExpressionSyntax, TStatementSyntax, TCrefSyntax> :
ISimplificationService
10 references to ISimplificationService
Microsoft.CodeAnalysis.Workspaces (10)
Simplification\Simplifier.cs (7)
103
var result = services.GetRequiredLanguageService<
ISimplificationService
>(node.Language)
145
return services.GetRequiredLanguageService<
ISimplificationService
>(token.Language)
236
return await document.GetRequiredLanguageService<
ISimplificationService
>().ReduceAsync(
241
=> document.GetRequiredLanguageService<
ISimplificationService
>().ReduceAsync(
249
return await document.GetRequiredLanguageService<
ISimplificationService
>()
258
var
simplificationService = document.Project.Solution.Services.GetRequiredLanguageService<
ISimplificationService
>(document.Project.Language);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplifierOptionsProviders.cs (3)
15
=> languageServices.GetService<
ISimplificationService
>()?.GetSimplifierOptions(options) ?? SimplifierOptions.CommonDefaults;
18
=> GetSimplifierOptionsAsync(document, document.GetRequiredLanguageService<
ISimplificationService
>(), cancellationToken);
27
=> languageServices.GetRequiredService<
ISimplificationService
>().DefaultOptions;