1 implementation of ICodeGenerationService
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
25
internal abstract partial class AbstractCodeGenerationService<TCodeGenerationContextInfo> :
ICodeGenerationService
13 references to ICodeGenerationService
Microsoft.CodeAnalysis.CodeStyle.Fixes (13)
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.CodeAction.cs (2)
27
var
codeGenerator = languageServices.GetService<
ICodeGenerationService
>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
43
CodeGenerationContextInfo
ICodeGenerationService
.GetInfo(CodeGenerationContext context, CodeGenerationOptions options, ParseOptions parseOptions)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationContextInfo.cs (2)
26
public
ICodeGenerationService
Service => ServiceImpl;
30
protected abstract
ICodeGenerationService
ServiceImpl { get; }
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationOptionsProviders.cs (4)
19
=> languageServices.GetRequiredService<
ICodeGenerationService
>().GetCodeGenerationOptions(options);
46
var
service = document.GetRequiredLanguageService<
ICodeGenerationService
>();
51
=> languageServices.GetRequiredService<
ICodeGenerationService
>().DefaultOptions;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerator.cs (2)
23
private static
ICodeGenerationService
GetCodeGenerationService(HostWorkspaceServices services, string language)
24
=> services.GetExtendedLanguageServices(language).GetRequiredService<
ICodeGenerationService
>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (2)
41
var
codeGenerator = document.GetRequiredLanguageService<
ICodeGenerationService
>();