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