3 overrides of GetService
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
Host\Mef\CodeStyleHostLanguageServices.MefHostExportProvider.cs (1)
44public override TLanguageService? GetService<TLanguageService>()
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
82public override TLanguageService GetService<TLanguageService>()
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
82public override TLanguageService GetService<TLanguageService>()
43 references to GetService
Microsoft.CodeAnalysis.CodeStyle.Fixes (10)
Host\Mef\CodeStyleHostLanguageServices.MefHostExportProvider.cs (2)
46=> _codeStyleLanguageServices.GetService<TLanguageService>() ?? _hostLanguageServices.GetService<TLanguageService>();
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.CodeAction.cs (2)
27var codeGenerator = languageServices.GetService<ICodeGenerationService>(); 28var semanticFacts = languageServices.GetService<ISemanticFactsService>();
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.cs (1)
57var semanticFacts = document.Project.Solution.Workspace.Services.GetExtendedLanguageServices(state.TypeToGenerateIn.Language).GetService<ISemanticFactsService>();
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
130var syntaxFacts = languageServiceProvider.GetService<ISyntaxFactsService>();
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.State.cs (2)
87var syntaxFacts = destinationProvider.GetService<ISyntaxFactsService>(); 88var syntaxFactory = destinationProvider.GetService<SyntaxGenerator>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\HostWorkspaceServicesExtensions.cs (1)
10=> hostWorkspaceServices?.GetExtendedLanguageServices(languageName).GetService<TLanguageService>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
20=> project?.GetExtendedLanguageServices().GetService<TLanguageService>();
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Workspaces\DefaultMefHostTests.cs (2)
26var csservice = ws.Services.GetLanguageServices(LanguageNames.CSharp).GetService<Microsoft.CodeAnalysis.Completion.CompletionService>(); 29var vbservice = ws.Services.GetLanguageServices(LanguageNames.VisualBasic).GetService<Microsoft.CodeAnalysis.Completion.CompletionService>();
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Peek\PeekHelpers.cs (1)
53var syntaxFactsService = workspace.Services.GetLanguageServices(root.Language).GetService<ISyntaxFactsService>();
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Workspaces\SymbolDescriptionServiceTests.vb (1)
28Dim symbolDescriptionService = languageServiceProvider.GetService(Of ISymbolDisplayService)()
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
CaseCorrection\VisualBasicCaseCorrectionService.vb (1)
24_syntaxFactsService = provider.GetService(Of ISyntaxFactsService)()
Microsoft.CodeAnalysis.Workspaces (7)
Formatting\Formatter.cs (1)
243var languageFormatter = languageServices.GetService<ISyntaxFormattingService>();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\HostWorkspaceServicesExtensions.cs (1)
10=> hostWorkspaceServices?.GetExtendedLanguageServices(languageName).GetService<TLanguageService>();
Workspace\Host\HostLanguageServices.cs (3)
64var service = GetService<TLanguageService>(); 83get { return this.GetService<ICompilationFactoryService>(); } 89get { return this.GetService<ISyntaxTreeFactoryService>(); }
Workspace\Host\LanguageServices.cs (2)
31/// <inheritdoc cref="HostLanguageServices.GetService"/> 33=> _services.GetService<TLanguageService>();
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (5)
Workspaces\TestHostProject`1.cs (2)
146CompilationOptions = compilationOptions ?? this.LanguageServiceProvider.GetService<ICompilationFactoryService>().GetDefaultCompilationOptions(); 147ParseOptions = parseOptions ?? this.LanguageServiceProvider.GetService<ISyntaxTreeFactoryService>().GetDefaultParseOptions();
Workspaces\TestWorkspace_XmlConsumption.cs (3)
250parseOptions = languageServices.GetService<ISyntaxTreeFactoryService>().GetDefaultParseOptions(); 515var compilationOptions = languageServices.GetService<ICompilationFactoryService>().GetDefaultCompilationOptions(); 767var compilationFactory = languageServices.GetService<ICompilationFactoryService>();
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
FormattingTests.cs (2)
37var service = workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetService<ISyntaxFormattingService>(); 64var service = workspace.Services.GetLanguageServices(LanguageNames.VisualBasic).GetService<ISyntaxFormattingService>();
SolutionTests\SolutionTests.cs (2)
3842var service = ws.Services.GetLanguageServices(LanguageNames.CSharp).GetService<ITestLanguageService>(); 3846var service2 = ws2.Services.GetLanguageServices(LanguageNames.CSharp).GetService<ITestLanguageService>();
Microsoft.VisualStudio.LanguageServices (9)
LanguageService\AbstractLanguageService`2.cs (1)
106var formatter = this.Workspace.Services.GetLanguageServices(RoslynLanguageName).GetService<ISyntaxFormattingService>();
LanguageService\AbstractLanguageService`2.VsLanguageDebugInfo.cs (3)
53_languageDebugInfo = languageServiceProvider.GetService<ILanguageDebugInfoService>(); 54_breakpointService = languageServiceProvider.GetService<IBreakpointResolutionService>(); 55_proximityExpressionsService = languageServiceProvider.GetService<IProximityExpressionsService>();
Library\ObjectBrowser\AbstractObjectBrowserLibraryManager.cs (1)
58_libraryService = new Lazy<ILibraryService>(() => Workspace.Services.GetLanguageServices(_languageName).GetService<ILibraryService>());
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
1578language => Services.GetLanguageServices(language).GetService<IProjectExistsUIContextProviderLanguageService>()?.GetUIContext());
Venus\ContainedDocument.cs (3)
604_workspace.Services.GetLanguageServices(_project.Language).GetService<IContentTypeLanguageService>().GetDefaultContentType()); 974var service = _workspace.Services.GetLanguageServices(_project.Language).GetService<IVenusBraceMatchingService>(); 998var syntaxFact = _workspace.Services.GetLanguageServices(_project.Language).GetService<ISyntaxFactsService>();
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelNavigationPointServiceFactory.cs (1)
29return provider.GetService<ICodeModelService>();
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
F1Help\F1HelpTests.cs (1)
30var service = Assert.IsType<CSharpHelpContextService>(workspace.Services.GetLanguageServices(LanguageNames.CSharp).GetService<IHelpContextService>());
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\VisualBasicCodeModelNavigationPointServiceFactory.vb (1)
24Return provider.GetService(Of ICodeModelService)