11 references to ISimplificationService
Microsoft.CodeAnalysis.Workspaces (11)
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\AbstractSimplificationService.cs (1)
29
TCrefSyntax>(ImmutableArray<AbstractReducer> reducers) :
ISimplificationService
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;