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