18 references to GetLanguageService
Microsoft.CodeAnalysis.Workspaces (18)
Classification\AbstractClassificationService.cs (2)
54var classificationService = document.GetLanguageService<ISyntaxClassificationService>(); 172var embeddedLanguageService = document.GetLanguageService<IEmbeddedLanguageClassificationService>();
Classification\ClassifierHelper.cs (1)
59var classificationService = document.GetLanguageService<IClassificationService>();
CodeCleanup\CodeCleaner.cs (1)
35var service = document.GetLanguageService<ICodeCleanerService>();
CodeFixes\FixAllOccurrences\FixAllContextHelper.cs (1)
51document.GetLanguageService<IFixAllSpanMappingService>() is { } spanMappingService)
CodeRefactorings\FixAllOccurences\FixAllState.cs (1)
97var spanMappingService = Document.GetLanguageService<IFixAllSpanMappingService>();
Editing\ImportAdder.cs (1)
57var service = document.GetLanguageService<ImportAdderService>();
Formatting\Formatter.cs (3)
81var formattingService = document.GetLanguageService<IFormattingService>(); 332var syntaxFormattingService = document.GetLanguageService<ISyntaxFormattingService>(); 356var organizeImportsService = document.GetLanguageService<IOrganizeImportsService>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ContextQuery\SyntaxContext.cs (1)
128=> Document.GetLanguageService<TService>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\DocumentExtensions.cs (2)
205var generatedCodeRecognitionService = document.GetLanguageService<IGeneratedCodeRecognitionService>(); 212var generatedCodeRecognitionService = document.GetLanguageService<IGeneratedCodeRecognitionService>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxEditorExtensions.cs (1)
164var syntaxFacts = document.GetLanguageService<ISyntaxFactsService>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\GeneratedCodeRecognition\AbstractGeneratedCodeRecognitionService.cs (1)
33var syntaxFacts = document.GetLanguageService<ISyntaxFactsService>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (3)
207var syntaxFacts = document.GetLanguageService<ISyntaxFactsService>(); 236var generator = document.GetLanguageService<SyntaxGeneratorInternal>(); 238var syntaxFacts = document.GetLanguageService<ISyntaxFactsService>();