4 types derived from HostLanguageServices
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
Host\Mef\CodeStyleHostLanguageServices.cs (1)
19internal sealed partial class CodeStyleHostLanguageServices : HostLanguageServices
Host\Mef\CodeStyleHostLanguageServices.MefHostExportProvider.cs (1)
11internal sealed partial class CodeStyleHostLanguageServices : HostLanguageServices
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
20internal sealed class MefLanguageServices : HostLanguageServices
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
20internal sealed class MefLanguageServices : HostLanguageServices
127 references to HostLanguageServices
Microsoft.CodeAnalysis.CodeStyle.Fixes (16)
Host\Mef\CodeStyleHostLanguageServices.MefHostExportProvider.cs (8)
13private static readonly ConditionalWeakTable<HostLanguageServices, CodeStyleHostLanguageServices> s_mappedLanguageServices = 14new ConditionalWeakTable<HostLanguageServices, CodeStyleHostLanguageServices>(); 18private readonly HostLanguageServices _hostLanguageServices; 19private readonly HostLanguageServices _codeStyleLanguageServices; 22private CodeStyleHostLanguageServices(HostLanguageServices hostLanguageServices) 31public static CodeStyleHostLanguageServices? GetMappedCodeStyleLanguageServices(HostLanguageServices? hostLanguageServices) 34public static CodeStyleHostLanguageServices GetRequiredMappedCodeStyleLanguageServices(HostLanguageServices hostLanguageServices) 37private static CodeStyleHostLanguageServices Create(HostLanguageServices hostLanguageServices)
src\Analyzers\Core\CodeFixes\GenerateEnumMember\AbstractGenerateEnumMemberService.CodeAction.cs (1)
26var languageServices = _document.Project.Solution.Workspace.Services.GetExtendedLanguageServices(_state.TypeToGenerateIn.Language);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.SignatureInfo.cs (1)
128var languageServiceProvider = Document.Project.Solution.Workspace.Services.GetExtendedLanguageServices(State.TypeToGenerateIn.Language);
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.State.cs (1)
85var destinationProvider = document.Project.Solution.Workspace.Services.GetExtendedLanguageServices(TypeToGenerateIn.Language);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\HostWorkspaceServicesExtensions.cs (2)
19public static HostLanguageServices GetExtendedLanguageServices(this HostWorkspaceServices hostWorkspaceServices, string languageName) 21var languageServices = hostWorkspaceServices.GetLanguageServices(languageName);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
36public static HostLanguageServices GetExtendedLanguageServices(this Project project)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
28internal readonly record struct ParsedDocument(DocumentId Id, SourceText Text, SyntaxNode Root, HostLanguageServices HostLanguageServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
176public override HostLanguageServices GetLanguageServices(string languageName)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationServiceFactory.cs (1)
22public ILanguageService CreateLanguageService(HostLanguageServices provider)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharLanguageServiceFactory.cs (1)
22public ILanguageService CreateLanguageService(HostLanguageServices languageServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSemanticFactsServiceFactory.cs (1)
24public ILanguageService CreateLanguageService(HostLanguageServices languageServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxFactsServiceFactory.cs (1)
24public ILanguageService CreateLanguageService(HostLanguageServices languageServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxKindsServiceFactory.cs (1)
24public ILanguageService CreateLanguageService(HostLanguageServices languageServices)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Completion\CompletionProviders\LoadDirectiveCompletionProviderTests.cs (1)
86var languageServices = workspace.Services.GetLanguageServices(LanguageNames.CSharp);
Completion\CompletionProviders\ReferenceDirectiveCompletionProviderTests.cs (1)
127var languageServices = workspace.Services.GetLanguageServices(LanguageNames.CSharp);
Microsoft.CodeAnalysis.CSharp.Features (8)
Completion\CompletionProviders\ImportCompletion\TypeImportCompletionServiceFactory.cs (1)
22public ILanguageService CreateLanguageService(HostLanguageServices languageServices)
Completion\CSharpCompletionService.cs (1)
27public ILanguageService CreateLanguageService(HostLanguageServices languageServices)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
36public ILanguageService CreateLanguageService(HostLanguageServices languageServices)
ExtractMethod\CSharpSyntaxTriviaServiceFactory.cs (1)
24public ILanguageService CreateLanguageService(HostLanguageServices provider)
LanguageServices\CSharpSymbolDisplayServiceFactory.cs (1)
24public ILanguageService CreateLanguageService(HostLanguageServices provider)
MetadataAsSource\CSharpMetadataAsSourceServiceFactory.cs (1)
24public ILanguageService CreateLanguageService(HostLanguageServices provider)
QuickInfo\CSharpQuickInfoSevice.cs (1)
22public ILanguageService CreateLanguageService(HostLanguageServices languageServices)
Structure\CSharpBlockStructureService.cs (1)
25public ILanguageService CreateLanguageService(HostLanguageServices languageServices)
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
CodeCleanup\CSharpCodeCleanerServiceFactory.cs (1)
22public ILanguageService CreateLanguageService(HostLanguageServices provider)
Formatting\CSharpSyntaxFormattingService.cs (1)
39public ILanguageService CreateLanguageService(HostLanguageServices languageServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationServiceFactory.cs (1)
22public ILanguageService CreateLanguageService(HostLanguageServices provider)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\EmbeddedLanguages\VirtualChars\CSharpVirtualCharLanguageServiceFactory.cs (1)
22public ILanguageService CreateLanguageService(HostLanguageServices languageServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSemanticFactsServiceFactory.cs (1)
24public ILanguageService CreateLanguageService(HostLanguageServices languageServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxFactsServiceFactory.cs (1)
24public ILanguageService CreateLanguageService(HostLanguageServices languageServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxKindsServiceFactory.cs (1)
24public ILanguageService CreateLanguageService(HostLanguageServices languageServices)
Microsoft.CodeAnalysis.EditorFeatures (2)
ExternalAccess\VSTypeScript\Api\ITypeScriptGoToDefinitionServiceFactoryImplementation.cs (1)
11ILanguageService CreateLanguageService(HostLanguageServices languageServices);
Interactive\Completion\InteractiveCommandCompletionService.cs (1)
23public ILanguageService CreateLanguageService(HostLanguageServices languageServices)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Workspaces\EditorTestHostDocument.cs (1)
46HostLanguageServices? languageServiceProvider,
Workspaces\EditorTestHostProject.cs (1)
15HostLanguageServices languageServices,
Workspaces\EditorTestWorkspace.cs (2)
62HostLanguageServices? languageServiceProvider, 77HostLanguageServices languageServices,
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (2)
Workspaces\SymbolDescriptionServiceTests.vb (2)
17Private Shared Async Function TestAsync(languageServiceProvider As HostLanguageServices, workspace As EditorTestWorkspace, expectedDescription As String) As Task 53Private Shared Function GetLanguageServiceProvider(workspace As EditorTestWorkspace, language As String) As HostLanguageServices
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Editor\IFSharpIndentationService.cs (1)
64FSharpIndentationResult? GetDesiredIndentation(HostLanguageServices services, SourceText text, DocumentId documentId, string path, int lineNumber, FSharpIndentationOptions options);
Microsoft.CodeAnalysis.Features (2)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
193var hostServices = document.Project.Solution.Services
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
304var languageServices = workspace.Services.GetLanguageServices(languageName);
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Completion\CompletionFeaturesTests.cs (2)
623public ILanguageService CreateLanguageService(HostLanguageServices languageServices) 914public ILanguageService CreateLanguageService(HostLanguageServices languageServices)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (5)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationServiceFactory.vb (1)
20Public Function CreateLanguageService(provider As HostLanguageServices) As ILanguageService Implements ILanguageServiceFactory.CreateLanguageService
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\EmbeddedLanguages\VirtualChars\VisualBasicVirtualCharLanguageServiceFactory.vb (1)
20Public Function CreateLanguageService(languageServices As HostLanguageServices) As ILanguageService Implements ILanguageServiceFactory.CreateLanguageService
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSemanticFactsService.vb (1)
25Public Function CreateLanguageService(languageServices As HostLanguageServices) As ILanguageService Implements ILanguageServiceFactory.CreateLanguageService
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxFactsServiceFactory.vb (1)
20Public Function CreateLanguageService(languageServices As HostLanguageServices) As ILanguageService Implements ILanguageServiceFactory.CreateLanguageService
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxKindsServiceFactory.vb (1)
20Public Function CreateLanguageService(languageServices As HostLanguageServices) As ILanguageService Implements ILanguageServiceFactory.CreateLanguageService
Microsoft.CodeAnalysis.VisualBasic.Features (8)
Completion\CompletionProviders\ImportCompletionProvider\TypeImportCompletionServiceFactory.vb (1)
21Public Function CreateLanguageService(languageServices As HostLanguageServices) As ILanguageService Implements ILanguageServiceFactory.CreateLanguageService
Completion\VisualBasicCompletionService.vb (1)
32Public Function CreateLanguageService(languageServices As HostLanguageServices) As ILanguageService Implements ILanguageServiceFactory.CreateLanguageService
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (1)
31Public Function CreateLanguageService(languageServices As HostLanguageServices) As ILanguageService Implements ILanguageServiceFactory.CreateLanguageService
ExtractMethod\VisualBasicSyntaxTriviaServiceFactory.vb (1)
20Public Function CreateLanguageService(provider As HostLanguageServices) As ILanguageService Implements ILanguageServiceFactory.CreateLanguageService
LanguageServices\VisualBasicSymbolDisplayServiceFactory.vb (1)
20Public Function CreateLanguageService(provider As HostLanguageServices) As ILanguageService Implements ILanguageServiceFactory.CreateLanguageService
MetadataAsSource\VisualBasicMetadataAsSourceServiceFactory.vb (1)
20Public Function CreateLanguageService(provider As HostLanguageServices) As ILanguageService Implements ILanguageServiceFactory.CreateLanguageService
QuickInfo\VisualBasicQuickInfoService.vb (1)
20Public Function CreateLanguageService(languageServices As HostLanguageServices) As ILanguageService Implements ILanguageServiceFactory.CreateLanguageService
Structure\VisualBasicBlockStructureService.vb (1)
21Public Function CreateLanguageService(languageServices As HostLanguageServices) As ILanguageService Implements ILanguageServiceFactory.CreateLanguageService
Microsoft.CodeAnalysis.VisualBasic.Workspaces (9)
CaseCorrection\VisualBasicCaseCorrectionService.vb (1)
23Public Sub New(provider As HostLanguageServices)
CaseCorrection\VisualBasicCaseCorrectionServiceFactory.vb (1)
20Public Function CreateLanguageService(provider As HostLanguageServices) As ILanguageService Implements ILanguageServiceFactory.CreateLanguageService
CodeCleanup\VisualBasicCodeCleanerServiceFactory.vb (1)
20Public Function CreateLanguageService(provider As HostLanguageServices) As ILanguageService Implements ILanguageServiceFactory.CreateLanguageService
Rename\VisualBasicRenameRewriterLanguageServiceFactory.vb (1)
20Public Function CreateLanguageService(provider As HostLanguageServices) As ILanguageService Implements ILanguageServiceFactory.CreateLanguageService
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationServiceFactory.vb (1)
20Public Function CreateLanguageService(provider As HostLanguageServices) As ILanguageService Implements ILanguageServiceFactory.CreateLanguageService
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\EmbeddedLanguages\VirtualChars\VisualBasicVirtualCharLanguageServiceFactory.vb (1)
20Public Function CreateLanguageService(languageServices As HostLanguageServices) As ILanguageService Implements ILanguageServiceFactory.CreateLanguageService
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSemanticFactsService.vb (1)
25Public Function CreateLanguageService(languageServices As HostLanguageServices) As ILanguageService Implements ILanguageServiceFactory.CreateLanguageService
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxFactsServiceFactory.vb (1)
20Public Function CreateLanguageService(languageServices As HostLanguageServices) As ILanguageService Implements ILanguageServiceFactory.CreateLanguageService
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxKindsServiceFactory.vb (1)
20Public Function CreateLanguageService(languageServices As HostLanguageServices) As ILanguageService Implements ILanguageServiceFactory.CreateLanguageService
Microsoft.CodeAnalysis.Workspaces (22)
Formatting\Formatter.cs (1)
242var languageServices = workspace.Services.GetLanguageServices(node.Language);
Shared\Extensions\ILanguageServiceProviderExtensions.cs (1)
16this HostLanguageServices serviceProvider,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\HostWorkspaceServicesExtensions.cs (2)
19public static HostLanguageServices GetExtendedLanguageServices(this HostWorkspaceServices hostWorkspaceServices, string languageName) 21var languageServices = hostWorkspaceServices.GetLanguageServices(languageName);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (1)
36public static HostLanguageServices GetExtendedLanguageServices(this Project project)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
28internal readonly record struct ParsedDocument(DocumentId Id, SourceText Text, SyntaxNode Root, HostLanguageServices HostLanguageServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
176public override HostLanguageServices GetLanguageServices(string languageName)
Workspace\Host\HostLanguageServices.cs (1)
36/// cref="HostLanguageServices"/> when possible.
Workspace\Host\HostWorkspaceServices.cs (2)
139/// Gets the <see cref="HostLanguageServices"/> for the language name. 142public virtual HostLanguageServices GetLanguageServices(string languageName)
Workspace\Host\LanguageServices.cs (6)
14private readonly HostLanguageServices _services; 17internal LanguageServices(HostLanguageServices services) 25internal HostLanguageServices HostLanguageServices => _services; 27/// <inheritdoc cref="HostLanguageServices.Language"/> 31/// <inheritdoc cref="HostLanguageServices.GetService"/> 35/// <inheritdoc cref="HostLanguageServices.GetRequiredService"/>
Workspace\Host\Mef\ExportLanguageServiceAttribute.cs (1)
17/// <param name="type">The type that will be used to retrieve the service from a <see cref="HostLanguageServices"/>.</param>
Workspace\Host\Mef\ExportLanguageServiceFactoryAttribute.cs (1)
17/// <param name="type">The type that will be used to retrieve the service from a <see cref="HostLanguageServices"/>.</param>
Workspace\Host\Mef\ILanguageServiceFactory.cs (2)
19/// <param name="languageServices">The <see cref="HostLanguageServices"/> that can be used to access other services.</param> 20ILanguageService CreateLanguageService(HostLanguageServices languageServices);
Workspace\Host\SolutionServices.cs (1)
64internal HostLanguageServices GetExtendedLanguageServices(string language)
Workspace\Solution\Project.cs (1)
102public HostLanguageServices LanguageServices => State.LanguageServices.HostLanguageServices;
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (22)
MEF\UseExportProviderAttribute.cs (1)
36/// object obtained from it or one of its related interfaces such as <see cref="HostLanguageServices"/>.</item>
Workspaces\AbstractTestHostProject.cs (1)
17public abstract HostLanguageServices LanguageServiceProvider { get; }
Workspaces\TestHostDocument.cs (2)
21protected HostLanguageServices? LanguageServiceProvider; 89HostLanguageServices? languageServiceProvider,
Workspaces\TestHostProject.cs (3)
17HostLanguageServices languageServices, 26HostLanguageServices languageServices, 58HostLanguageServices languageServices,
Workspaces\TestHostProject`1.cs (3)
22private readonly HostLanguageServices _languageServices; 90HostLanguageServices languageServices, 240public override HostLanguageServices LanguageServiceProvider
Workspaces\TestHostSolution.cs (1)
15HostLanguageServices languageServiceProvider,
Workspaces\TestWorkspace.cs (2)
48HostLanguageServices? languageServiceProvider, 62HostLanguageServices languageServices,
Workspaces\TestWorkspace_XmlConsumption.cs (6)
152var languageServices = Services.GetLanguageServices(language); 233private static ParseOptions GetParseOptions(XElement projectElement, string language, HostLanguageServices languageServices) 240private static ParseOptions GetParseOptionsWorker(XElement projectElement, string language, HostLanguageServices languageServices) 513var languageServices = Services.GetLanguageServices(language); 548HostLanguageServices languageServiceProvider, 766var languageServices = Services.GetLanguageServices(languageName);
Workspaces\TestWorkspace`1.cs (3)
189HostLanguageServices? languageServiceProvider, 202HostLanguageServices languageServices, 748var languageServices = Services.GetLanguageServices(languageName);
Microsoft.VisualStudio.LanguageServices (2)
LanguageService\AbstractLanguageService`2.cs (1)
220var languageServices = this.Workspace.Services.GetLanguageServices(RoslynLanguageName);
LanguageService\AbstractLanguageService`2.VsLanguageDebugInfo.cs (1)
43HostLanguageServices languageServiceProvider,
Microsoft.VisualStudio.LanguageServices.CSharp (5)
CodeModel\CSharpCodeModelNavigationPointServiceFactory.cs (1)
26public ILanguageService CreateLanguageService(HostLanguageServices provider)
CodeModel\CSharpCodeModelService.cs (1)
44HostLanguageServices languageServiceProvider,
CodeModel\CSharpCodeModelServiceFactory.cs (1)
37public ILanguageService CreateLanguageService(HostLanguageServices provider)
EditorConfigSettings\DataProvider\CodeStyle\CSharpCodeStyleSettingsLanguageServiceFactory.cs (1)
28public ILanguageService CreateLanguageService(HostLanguageServices languageServices)
EditorConfigSettings\DataProvider\Whitespace\CSharpWhitespaceSettingsLanguageServiceFactory.cs (1)
28public ILanguageService CreateLanguageService(HostLanguageServices languageServices)
Microsoft.VisualStudio.LanguageServices.VisualBasic (3)
CodeModel\VisualBasicCodeModelNavigationPointServiceFactory.vb (1)
22Public Function CreateLanguageService(provider As HostLanguageServices) As ILanguageService Implements ILanguageServiceFactory.CreateLanguageService
CodeModel\VisualBasicCodeModelService.vb (1)
41provider As HostLanguageServices,
CodeModel\VisualBasicCodeModelServiceFactory.vb (1)
39Public Function CreateLanguageService(provider As HostLanguageServices) As ILanguageService Implements ILanguageServiceFactory.CreateLanguageService