49 references to GetRequiredLanguageService
Microsoft.CodeAnalysis.Workspaces (49)
CaseCorrection\CaseCorrector.cs (1)
64=> document.GetRequiredLanguageService<ICaseCorrectionService>().CaseCorrectAsync(document, spans, cancellationToken);
Classification\AbstractClassificationService.cs (3)
147var classificationService = document.GetRequiredLanguageService<ISyntaxClassificationService>(); 156var reassignedVariableService = document.GetRequiredLanguageService<IReassignedVariableService>(); 164var obsoleteSymbolService = document.GetRequiredLanguageService<IObsoleteSymbolService>();
CodeCleanup\CodeCleaner.cs (1)
79var cleanupService = document.GetRequiredLanguageService<ICodeCleanerService>();
CodeCleanup\Providers\FormatCodeCleanupProvider.cs (1)
22var formatter = document.GetRequiredLanguageService<ISyntaxFormattingService>();
Editing\ImportAdder.cs (2)
84=> document.GetRequiredLanguageService<ImportAdderService>().AddImportsAsync(document, spans, ImportAdderService.Strategy.AddImportsFromSyntaxes, options, cancellationToken); 99=> document.GetRequiredLanguageService<ImportAdderService>().AddImportsAsync(document, spans, ImportAdderService.Strategy.AddImportsFromSymbolAnnotations, options, cancellationToken);
ExternalAccess\Pythia\Api\PythiaSyntaxFactsServiceWrapper.cs (1)
20=> new(document.GetRequiredLanguageService<ISyntaxFactsService>());
ExternalAccess\Pythia\Api\PythiaTypeInferenceServiceWrapper.cs (1)
20=> new(document.GetRequiredLanguageService<ITypeInferenceService>());
FindSymbols\FindLiterals\FindLiteralsSearchEngine.cs (1)
140var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
FindSymbols\FindReferences\Finders\ParameterSymbolReferenceFinder.cs (3)
103var semanticFacts = document.GetRequiredLanguageService<ISemanticFactsService>(); 113var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>(); 137var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
FindSymbols\FindReferences\FindReferenceCache.cs (1)
82SyntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
LanguageServices\FixAllSpanMappingService\AbstractFixAllSpanMappingService.cs (2)
48var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>(); 78var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
LinkedFileDiffMerging\LinkedFileDiffMergingSession.cs (1)
128mergeConflictHandler ??= firstOldDocument.GetRequiredLanguageService<ILinkedFileMergeConflictCommentAdditionService>();
ObsoleteSymbol\AbstractObsoleteSymbolService.cs (1)
32var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
ReassignedVariable\AbstractReassignedVariableService.cs (2)
42var semanticFacts = document.GetRequiredLanguageService<ISemanticFactsService>(); 43var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
Recommendations\Recommender.cs (4)
28var context = document.GetRequiredLanguageService<ISyntaxContextService>().CreateContext(document, semanticModel, position, cancellationToken); 30var languageRecommender = document.GetRequiredLanguageService<IRecommendationService>(); 52var context = document.GetRequiredLanguageService<ISyntaxContextService>().CreateContext(document, semanticModel, position, cancellationToken); 53var languageRecommender = document.GetRequiredLanguageService<IRecommendationService>();
Rename\ConflictEngine\ConflictResolver.cs (2)
140var renameRewriterService = document.GetRequiredLanguageService<IRenameRewriterLanguageService>(); 147var renameRewriterService = document.GetRequiredLanguageService<IRenameRewriterLanguageService>();
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
836var renameRewriterLanguageService = document.GetRequiredLanguageService<IRenameRewriterLanguageService>();
Rename\Renamer.RenameSymbolDocumentAction.cs (1)
72var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
Rename\Renamer.SyncNamespaceDocumentAction.cs (2)
42var changeNamespaceService = document.GetRequiredLanguageService<IChangeNamespaceService>(); 69var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>();
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
202.GetRequiredLanguageService<ISyntaxFactsService>();
Simplification\Simplifier.cs (3)
236return await document.GetRequiredLanguageService<ISimplificationService>().ReduceAsync( 241=> document.GetRequiredLanguageService<ISimplificationService>().ReduceAsync( 249return await document.GetRequiredLanguageService<ISimplificationService>()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\AddImport\AddImportPlacementOptionsProviders.cs (1)
30var service = document.GetRequiredLanguageService<IAddImportsService>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (1)
258var service = newDocument.GetRequiredLanguageService<ImportAdderService>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationOptionsProviders.cs (1)
46var service = document.GetRequiredLanguageService<ICodeGenerationService>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Editing\ImportAdderService.cs (3)
40var addImportsService = document.GetRequiredLanguageService<IAddImportsService>(); 41var codeGenerator = document.GetRequiredLanguageService<ICodeGenerationService>(); 42var generator = document.GetRequiredLanguageService<SyntaxGenerator>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ContextQuery\SyntaxContext.cs (2)
124this.InferredTypes = document.GetRequiredLanguageService<ITypeInferenceService>().InferTypes(semanticModel, position, cancellationToken); 131=> Document.GetRequiredLanguageService<TService>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\SyntaxFormattingOptionsProviders.cs (1)
18=> GetSyntaxFormattingOptionsAsync(document, document.GetRequiredLanguageService<ISyntaxFormattingService>(), cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.cs (2)
130var bannerService = document.GetRequiredLanguageService<IFileBannerFactsService>(); 166var bannerService = document.GetRequiredLanguageService<IFileBannerFactsService>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\LanguageServices\MoveDeclarationNearReference\AbstractMoveDeclarationNearReferenceService.State.cs (2)
59var syntaxFacts = document.GetRequiredLanguageService<ISyntaxFactsService>(); 60var blockFacts = document.GetRequiredLanguageService<IBlockFactsService>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplifierOptionsProviders.cs (1)
18=> GetSimplifierOptionsAsync(document, document.GetRequiredLanguageService<ISimplificationService>(), cancellationToken);