29 references to GetLanguageServices
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.CodeAction.cs (1)
67var syntaxFactory = _document.Project.Solution.Services.GetLanguageServices(_state.TypeToGenerateIn.Language).GetService<SyntaxGenerator>();
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\SnippetCompletionProvider.cs (1)
169var service = services.GetLanguageServices(semanticModel.Language).GetService<ISnippetInfoService>();
Microsoft.CodeAnalysis.EditorFeatures (2)
Shared\Extensions\HostWorkspaceServicesExtensions.cs (2)
31return workspaceServices.GetLanguageServices(language); 83l => hostWorkspaceServices.GetLanguageServices(l).GetRequiredService<IContentTypeLanguageService>().GetDefaultContentType().TypeName);
Microsoft.CodeAnalysis.ExternalAccess.Razor (1)
RazorCSharpFormattingInteractionService.cs (1)
86: legacyOptionsService.GetSyntaxFormattingOptions(services.GetLanguageServices(LanguageNames.CSharp));
Microsoft.CodeAnalysis.Features (5)
Completion\CompletionService.cs (1)
102var languageServices = document?.Project.Services ?? _services.GetLanguageServices(Language);
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
194.GetLanguageServices(document.Project.Language).HostLanguageServices;
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (1)
37: sourceProject.Solution.Services.GetLanguageServices(LanguageName).GetRequiredService<ISyntaxTreeFactoryService>().GetDefaultParseOptionsWithLatestLanguageVersion();
QuickInfo\CommonSemanticQuickInfoProvider.cs (1)
193var languageServices = services.GetLanguageServices(semanticModel.Language);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.CodeAction.cs (1)
67var syntaxFactory = _document.Project.Solution.Services.GetLanguageServices(_state.TypeToGenerateIn.Language).GetService<SyntaxGenerator>();
Microsoft.CodeAnalysis.VisualBasic.Features (4)
CodeFixes\GenerateEvent\GenerateEventCodeFixProvider.vb (4)
127Dim codeGenService = document.Project.Solution.Services.GetLanguageServices(targetType.Language).GetService(Of ICodeGenerationService) 128Dim syntaxFactService = document.Project.Solution.Services.GetLanguageServices(targetType.Language).GetService(Of ISyntaxFactsService) 269Dim codeGenService = document.Project.Solution.Services.GetLanguageServices(targetType.Language).GetService(Of ICodeGenerationService) 379Dim codeGenService = document.Project.Solution.Services.GetLanguageServices(originalTargetType.Language).GetService(Of ICodeGenerationService)
Microsoft.CodeAnalysis.Workspaces (12)
Classification\AbstractClassificationService.cs (1)
234var classificationService = services.GetLanguageServices(oldRoot.Language).GetService<ISyntaxClassificationService>();
Classification\Classifier.cs (1)
78var projectServices = services.GetLanguageServices(semanticModel.Language);
Editing\SyntaxGenerator.cs (1)
66=> services.GetLanguageServices(language).GetRequiredService<SyntaxGenerator>();
Rename\ConflictEngine\ConflictResolver.cs (1)
156var languageServices = solution.Services.GetLanguageServices(language);
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
719solution.Services.GetLanguageServices(language).GetService<IRenameRewriterLanguageService>()
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
337var syntaxFactsLanguageService = solution.Services.GetLanguageServices(documentsGroupedByLanguage.Key).GetService<ISyntaxFactsService>();
Shared\Extensions\IFindReferencesResultExtensions.cs (1)
131var isCaseSensitive = solution.Services.GetLanguageServices(reference.Definition.Language).GetRequiredService<ISyntaxFactsService>().IsCaseSensitive;
Shared\Extensions\ITypeSymbolExtensions.cs (1)
149var provider = services.GetLanguageServices(typeSymbol.Language);
Shared\Extensions\SemanticModelExtensions.cs (1)
76var languageServices = services.GetLanguageServices(token.Language);
Workspace\CommandLineProject.cs (1)
28var languageServices = workspace.Services.SolutionServices.GetLanguageServices(language);
Workspace\Host\SolutionServices.cs (1)
62=> this.GetLanguageServices(language).GetRequiredService<TLanguageService>();
Workspace\ProjectSystem\ProjectSystemProjectOptionsProcessor.cs (1)
53_commandLineParserService = workspaceServices.GetLanguageServices(project.Language).GetRequiredService<ICommandLineParserService>();
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
MSBuild\MSBuildProjectLoader.Worker.cs (1)
502.GetLanguageServices(languageName)
MSBuild\ProjectFileExtensionRegistry.cs (1)
63_solutionServices.GetLanguageServices(language).GetService<ICommandLineParserService>() is not null)
Microsoft.VisualStudio.LanguageServices (1)
Progression\GraphBuilder.cs (1)
343var progressionLanguageService = solution.Services.GetLanguageServices(symbol.Language).GetService<IProgressionLanguageService>();