20 references to GetRequiredLanguageService
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (1)
266var compilationFactory = project.Solution.Services.GetRequiredLanguageService<ICompilationFactoryService>(LanguageNames.CSharp);
Microsoft.CodeAnalysis.CSharp.Features (1)
SemanticSearch\CSharpSemanticSearchService.cs (1)
30var syntaxTreeFactory = services.GetRequiredLanguageService<ISyntaxTreeFactoryService>(LanguageNames.CSharp);
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (4)
SemanticSearch\CSharpSemanticSearchServiceTests.cs (4)
66var service = solution.Services.GetRequiredLanguageService<ISemanticSearchService>(LanguageNames.CSharp); 103var service = solution.Services.GetRequiredLanguageService<ISemanticSearchService>(LanguageNames.CSharp); 153var service = solution.Services.GetRequiredLanguageService<ISemanticSearchService>(LanguageNames.CSharp); 207var service = solution.Services.GetRequiredLanguageService<ISemanticSearchService>(LanguageNames.CSharp);
Microsoft.CodeAnalysis.Features (5)
Completion\CommonCompletionUtilities.cs (2)
110var symbolDisplayService = workspaceServices.GetRequiredLanguageService<ISymbolDisplayService>(semanticModel.Language); 111var formatter = workspaceServices.GetRequiredLanguageService<IDocumentationCommentFormattingService>(semanticModel.Language);
MetadataAsSource\MetadataAsSourceGeneratedFileInfo.cs (1)
63var compilationOptions = services.GetRequiredLanguageService<ICompilationFactoryService>(LanguageName).GetDefaultCompilationOptions().WithOutputKind(OutputKind.DynamicallyLinkedLibrary);
QuickInfo\CommonSemanticQuickInfoProvider.cs (1)
163var syntaxFactsService = services.GetRequiredLanguageService<ISyntaxFactsService>(semanticModel.Language);
QuickInfo\QuickInfoUtilities.cs (1)
36var descriptionService = services.GetRequiredLanguageService<ISymbolDisplayService>(semanticModel.Language);
Microsoft.CodeAnalysis.Workspaces (9)
CaseCorrection\CaseCorrector.cs (1)
70=> services.GetRequiredLanguageService<ICaseCorrectionService>(root.Language).CaseCorrect(root, spans, cancellationToken);
CodeCleanup\CodeCleaner.cs (1)
96var cleanupService = services.GetRequiredLanguageService<ICodeCleanerService>(root.Language);
CodeCleanup\Providers\FormatCodeCleanupProvider.cs (1)
34var formatter = services.GetRequiredLanguageService<ISyntaxFormattingService>(root.Language);
FindSymbols\SymbolFinder.cs (1)
101var syntaxFacts = services.GetRequiredLanguageService<ISyntaxFactsService>(semanticModel.Language);
Formatting\Formatter.cs (2)
256var formatter = services.GetRequiredLanguageService<ISyntaxFormattingService>(node.Language); 314var formatter = services.GetRequiredLanguageService<ISyntaxFormattingService>(node.Language);
Simplification\Simplifier.cs (3)
103var result = services.GetRequiredLanguageService<ISimplificationService>(node.Language) 145return services.GetRequiredLanguageService<ISimplificationService>(token.Language) 258var simplificationService = document.Project.Solution.Services.GetRequiredLanguageService<ISimplificationService>(document.Project.Language);