1 instantiation of LanguageServices
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Host\HostLanguageServices.cs (1)
43LanguageServices = new LanguageServices(this);
169 references to LanguageServices
GenerateDocumentationAndConfigFiles (19)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\AddImport\AddImportPlacementOptionsProviders.cs (1)
24public static AddImportPlacementOptions GetAddImportPlacementOptions(this IOptionsReader options, Host.LanguageServices languageServices, bool? allowInHiddenRegions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupOptionsProviders.cs (2)
18public static CodeCleanupOptions GetCodeCleanupOptions(this IOptionsReader options, LanguageServices languageServices, bool? allowImportsInHiddenRegions = null) 33public static CodeCleanupOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
30LanguageServices languageServices) 36public LanguageServices LanguageServices { get; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CleanCodeGenerationOptions.cs (1)
32public static CleanCodeGenerationOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeAndImportGenerationOptionsProviders.cs (1)
12internal static CodeAndImportGenerationOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationOptionsProviders.cs (4)
17public static CodeGenerationOptions GetCodeGenerationOptions(this IOptionsReader options, LanguageServices languageServices) 20public static CodeAndImportGenerationOptions GetCodeAndImportGenerationOptions(this IOptionsReader options, LanguageServices languageServices, bool? allowImportsInHiddenRegions = null) 27public static CleanCodeGenerationOptions GetCleanCodeGenerationOptions(this IOptionsReader options, LanguageServices languageServices, bool? allowImportsInHiddenRegions = null) 49public static CodeGenerationOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\SyntaxFormattingOptionsProviders.cs (2)
14public static SyntaxFormattingOptions GetSyntaxFormattingOptions(this IOptionsReader options, Host.LanguageServices languageServices) 24public static SyntaxFormattingOptions GetDefault(Host.LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\IndentationOptionsProviders.cs (1)
12public static IndentationOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\OptionsProvider.cs (2)
16ValueTask<TOptions> GetOptionsAsync(LanguageServices languageServices, CancellationToken cancellationToken); 23public async ValueTask<TOptions> GetOptionsAsync(LanguageServices languageServices, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplifierOptionsProviders.cs (2)
14public static SimplifierOptions GetSimplifierOptions(this IOptionsReader options, Host.LanguageServices languageServices) 26public static SimplifierOptions GetDefault(Host.LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
28public LanguageServices LanguageServices => HostLanguageServices.LanguageServices;
Microsoft.CodeAnalysis.Analyzers (19)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\AddImport\AddImportPlacementOptionsProviders.cs (1)
24public static AddImportPlacementOptions GetAddImportPlacementOptions(this IOptionsReader options, Host.LanguageServices languageServices, bool? allowInHiddenRegions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupOptionsProviders.cs (2)
18public static CodeCleanupOptions GetCodeCleanupOptions(this IOptionsReader options, LanguageServices languageServices, bool? allowImportsInHiddenRegions = null) 33public static CodeCleanupOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
30LanguageServices languageServices) 36public LanguageServices LanguageServices { get; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CleanCodeGenerationOptions.cs (1)
32public static CleanCodeGenerationOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeAndImportGenerationOptionsProviders.cs (1)
12internal static CodeAndImportGenerationOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationOptionsProviders.cs (4)
17public static CodeGenerationOptions GetCodeGenerationOptions(this IOptionsReader options, LanguageServices languageServices) 20public static CodeAndImportGenerationOptions GetCodeAndImportGenerationOptions(this IOptionsReader options, LanguageServices languageServices, bool? allowImportsInHiddenRegions = null) 27public static CleanCodeGenerationOptions GetCleanCodeGenerationOptions(this IOptionsReader options, LanguageServices languageServices, bool? allowImportsInHiddenRegions = null) 49public static CodeGenerationOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\SyntaxFormattingOptionsProviders.cs (2)
14public static SyntaxFormattingOptions GetSyntaxFormattingOptions(this IOptionsReader options, Host.LanguageServices languageServices) 24public static SyntaxFormattingOptions GetDefault(Host.LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\IndentationOptionsProviders.cs (1)
12public static IndentationOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\OptionsProvider.cs (2)
16ValueTask<TOptions> GetOptionsAsync(LanguageServices languageServices, CancellationToken cancellationToken); 23public async ValueTask<TOptions> GetOptionsAsync(LanguageServices languageServices, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplifierOptionsProviders.cs (2)
14public static SimplifierOptions GetSimplifierOptions(this IOptionsReader options, Host.LanguageServices languageServices) 26public static SimplifierOptions GetDefault(Host.LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
28public LanguageServices LanguageServices => HostLanguageServices.LanguageServices;
Microsoft.CodeAnalysis.CodeStyle.Fixes (20)
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.State.cs (1)
79var destinationProvider = semanticDocument.Project.Solution.Services.GetLanguageServices(ClassType.Language);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\AddImport\AddImportPlacementOptionsProviders.cs (1)
24public static AddImportPlacementOptions GetAddImportPlacementOptions(this IOptionsReader options, Host.LanguageServices languageServices, bool? allowInHiddenRegions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupOptionsProviders.cs (2)
18public static CodeCleanupOptions GetCodeCleanupOptions(this IOptionsReader options, LanguageServices languageServices, bool? allowImportsInHiddenRegions = null) 33public static CodeCleanupOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
30LanguageServices languageServices) 36public LanguageServices LanguageServices { get; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CleanCodeGenerationOptions.cs (1)
32public static CleanCodeGenerationOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeAndImportGenerationOptionsProviders.cs (1)
12internal static CodeAndImportGenerationOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationOptionsProviders.cs (4)
17public static CodeGenerationOptions GetCodeGenerationOptions(this IOptionsReader options, LanguageServices languageServices) 20public static CodeAndImportGenerationOptions GetCodeAndImportGenerationOptions(this IOptionsReader options, LanguageServices languageServices, bool? allowImportsInHiddenRegions = null) 27public static CleanCodeGenerationOptions GetCleanCodeGenerationOptions(this IOptionsReader options, LanguageServices languageServices, bool? allowImportsInHiddenRegions = null) 49public static CodeGenerationOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\SyntaxFormattingOptionsProviders.cs (2)
14public static SyntaxFormattingOptions GetSyntaxFormattingOptions(this IOptionsReader options, Host.LanguageServices languageServices) 24public static SyntaxFormattingOptions GetDefault(Host.LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\IndentationOptionsProviders.cs (1)
12public static IndentationOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\OptionsProvider.cs (2)
16ValueTask<TOptions> GetOptionsAsync(LanguageServices languageServices, CancellationToken cancellationToken); 23public async ValueTask<TOptions> GetOptionsAsync(LanguageServices languageServices, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplifierOptionsProviders.cs (2)
14public static SimplifierOptions GetSimplifierOptions(this IOptionsReader options, Host.LanguageServices languageServices) 26public static SimplifierOptions GetDefault(Host.LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
28public LanguageServices LanguageServices => HostLanguageServices.LanguageServices;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
28internal sealed partial class CSharpCodeGenerationService(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Formatting\CSharpSyntaxFormattingService.cs (2)
26internal sealed class CSharpSyntaxFormattingService(LanguageServices languageServices) 29private readonly LanguageServices _services = languageServices;
Microsoft.CodeAnalysis.CSharp.Features (3)
LanguageServices\CSharpSymbolDisplayService.cs (1)
10internal sealed partial class CSharpSymbolDisplayService(Host.LanguageServices services) : AbstractSymbolDisplayService(services)
LanguageServices\CSharpSymbolDisplayService.SymbolDescriptionBuilder.cs (1)
27Host.LanguageServices languageServices,
QuickInfo\CSharpQuickInfoSevice.cs (1)
21private sealed class CSharpQuickInfoService(LanguageServices services) : QuickInfoServiceWithProviders(services);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
28internal sealed partial class CSharpCodeGenerationService(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Formatting\CSharpSyntaxFormattingService.cs (2)
26internal sealed class CSharpSyntaxFormattingService(LanguageServices languageServices) 29private readonly LanguageServices _services = languageServices;
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
Options\OmnisharpLegacyGlobalOptionsWorkspaceService.cs (1)
59public SyntaxFormattingOptions GetSyntaxFormattingOptions(LanguageServices languageServices)
Microsoft.CodeAnalysis.Features (22)
AddImport\AddImportOptions.cs (1)
26LanguageServices languageServices,
ChangeSignature\AbstractChangeSignatureService.cs (1)
971protected ImmutableArray<SyntaxTrivia> GetPermutedDocCommentTrivia(SyntaxNode node, ImmutableArray<SyntaxNode> permutedParamNodes, LanguageServices services, LineFormattingOptions options)
Completion\CommonCompletionProvider.cs (1)
42internal override bool ShouldTriggerCompletion(LanguageServices languageServices, SourceText text, int caretPosition, CompletionTrigger trigger, CompletionOptions options, OptionSet passThroughOptions)
Completion\CompletionProvider.cs (1)
47internal virtual bool ShouldTriggerCompletion(LanguageServices languageServices, SourceText text, int caretPosition, CompletionTrigger trigger, CompletionOptions options, OptionSet passThroughOptions)
Completion\CompletionService.cs (2)
102var languageServices = document?.Project.Services ?? _services.GetLanguageServices(Language); 133LanguageServices languageServices,
Completion\Providers\AbstractAggregateEmbeddedLanguageCompletionProvider.cs (2)
58protected ImmutableArray<IEmbeddedLanguage> GetLanguageProviders(Host.LanguageServices? languageServices) 71internal sealed override bool ShouldTriggerCompletion(LanguageServices languageServices, SourceText text, int caretPosition, CompletionTrigger trigger, CompletionOptions options, OptionSet passThroughOptions)
ExternalAccess\VSTypeScript\Api\VSTypeScriptCompletionProvider.cs (1)
21internal sealed override bool ShouldTriggerCompletion(LanguageServices languageServices, SourceText text, int caretPosition, CompletionTrigger trigger, CompletionOptions options, OptionSet passThroughOptions)
GenerateConstructors\AbstractGenerateConstructorsCodeRefactoringProvider.ConstructorDelegatingCodeAction.cs (1)
41var languageServices = project.Solution.Services.GetLanguageServices(_state.ContainingType.Language);
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (2)
87protected readonly LanguageServices LanguageServices; 94LanguageServices languageServices,
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.cs (2)
15internal abstract partial class AbstractSymbolDisplayService(LanguageServices services) : ISymbolDisplayService 17protected readonly LanguageServices LanguageServices = services;
QuickInfo\CommonSemanticQuickInfoProvider.cs (3)
188var languageServices = services.GetLanguageServices(semanticModel.Language); 303var languageServices = services.GetLanguageServices(semanticModel.Language); 338var languageServices = services.GetLanguageServices(semanticModel.Language);
QuickInfo\QuickInfoServiceWithProviders.cs (2)
20internal abstract class QuickInfoServiceWithProviders(LanguageServices services) : QuickInfoService 22private readonly LanguageServices _services = services;
SemanticSearch\ISemanticSearchResultsObserver.cs (1)
42ValueTask<ClassificationOptions> GetClassificationOptionsAsync(LanguageServices language, CancellationToken cancellationToken);
src\roslyn\src\Analyzers\Core\CodeFixes\GenerateDefaultConstructors\AbstractGenerateDefaultConstructorsService.State.cs (1)
79var destinationProvider = semanticDocument.Project.Solution.Services.GetLanguageServices(ClassType.Language);
Workspace\MiscellaneousFileUtilities.cs (1)
38var languageServices = services.GetLanguageServices(languageName);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationService.vb (1)
22Public Sub New(languageServices As LanguageServices)
Microsoft.CodeAnalysis.VisualBasic.Features (3)
LanguageServices\VisualBasicSymbolDisplayService.SymbolDescriptionBuilder.vb (1)
31languageServices As Host.LanguageServices,
LanguageServices\VisualBasicSymbolDisplayService.vb (1)
13Public Sub New(provider As Host.LanguageServices)
QuickInfo\VisualBasicQuickInfoService.vb (1)
27Public Sub New(services As LanguageServices)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationService.vb (1)
22Public Sub New(languageServices As LanguageServices)
Microsoft.CodeAnalysis.Workspaces (51)
Classification\Classifier.cs (2)
78var projectServices = services.GetLanguageServices(semanticModel.Language); 114LanguageServices languageServices, SemanticModel semanticModel, TextSpan textSpan, ClassificationOptions options,
ExtractMethod\ExtractMethodOptions.cs (1)
26public static ExtractMethodGenerationOptions GetDefault(LanguageServices languageServices)
Formatting\Formatter.cs (1)
37internal static ImmutableArray<AbstractFormattingRule> GetDefaultFormattingRules(LanguageServices languageServices)
Options\ILegacyGlobalOptionsWorkspaceService.cs (1)
30SyntaxFormattingOptions GetSyntaxFormattingOptions(LanguageServices languageServices);
Rename\ConflictEngine\ConflictResolver.cs (1)
149var languageServices = solution.Services.GetLanguageServices(language);
Shared\Extensions\ITypeSymbolExtensions.cs (1)
149var provider = services.GetLanguageServices(typeSymbol.Language);
Shared\Extensions\SemanticModelExtensions.cs (1)
76var languageServices = services.GetLanguageServices(token.Language);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\AddImport\AddImportPlacementOptionsProviders.cs (1)
24public static AddImportPlacementOptions GetAddImportPlacementOptions(this IOptionsReader options, Host.LanguageServices languageServices, bool? allowInHiddenRegions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupOptionsProviders.cs (2)
18public static CodeCleanupOptions GetCodeCleanupOptions(this IOptionsReader options, LanguageServices languageServices, bool? allowImportsInHiddenRegions = null) 33public static CodeCleanupOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
30LanguageServices languageServices) 36public LanguageServices LanguageServices { get; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CleanCodeGenerationOptions.cs (1)
32public static CleanCodeGenerationOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeAndImportGenerationOptionsProviders.cs (1)
12internal static CodeAndImportGenerationOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationOptionsProviders.cs (4)
17public static CodeGenerationOptions GetCodeGenerationOptions(this IOptionsReader options, LanguageServices languageServices) 20public static CodeAndImportGenerationOptions GetCodeAndImportGenerationOptions(this IOptionsReader options, LanguageServices languageServices, bool? allowImportsInHiddenRegions = null) 27public static CleanCodeGenerationOptions GetCleanCodeGenerationOptions(this IOptionsReader options, LanguageServices languageServices, bool? allowImportsInHiddenRegions = null) 49public static CodeGenerationOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\SyntaxFormattingOptionsProviders.cs (2)
14public static SyntaxFormattingOptions GetSyntaxFormattingOptions(this IOptionsReader options, Host.LanguageServices languageServices) 24public static SyntaxFormattingOptions GetDefault(Host.LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\IndentationOptionsProviders.cs (1)
12public static IndentationOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\OptionsProvider.cs (2)
16ValueTask<TOptions> GetOptionsAsync(LanguageServices languageServices, CancellationToken cancellationToken); 23public async ValueTask<TOptions> GetOptionsAsync(LanguageServices languageServices, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplifierOptionsProviders.cs (2)
14public static SimplifierOptions GetSimplifierOptions(this IOptionsReader options, Host.LanguageServices languageServices) 26public static SimplifierOptions GetDefault(Host.LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
28public LanguageServices LanguageServices => HostLanguageServices.LanguageServices;
Workspace\CommandLineProject.cs (1)
28var languageServices = workspace.Services.SolutionServices.GetLanguageServices(language);
Workspace\Host\HostLanguageServices.cs (1)
38public LanguageServices LanguageServices { get; }
Workspace\Host\SolutionServices.cs (2)
55/// Gets the <see cref="LanguageServices"/> for the language name. 58public LanguageServices GetLanguageServices(string languageName)
Workspace\Solution\DocumentState.cs (7)
29public LanguageServices LanguageServices { get; } 38LanguageServices languageServices, 55LanguageServices languageServices, 118LanguageServices languageServices, 132LanguageServices languageServices, 148LanguageServices languageServices, 162LanguageServices languageServices,
Workspace\Solution\DocumentState_LinkedFileReuse.cs (4)
102LanguageServices languageServices, 129LanguageServices languageServices, 235LanguageServices languageServices, 258LanguageServices languageServices,
Workspace\Solution\Project.cs (1)
111public LanguageServices Services => State.LanguageServices;
Workspace\Solution\ProjectState.cs (3)
28public readonly LanguageServices LanguageServices; 58LanguageServices languageServices, 80public ProjectState(LanguageServices languageServices, ProjectInfo projectInfo, StructuredAnalyzerConfigOptions fallbackAnalyzerOptions)
Workspace\Solution\SolutionState.cs (1)
404var languageServices = Services.GetLanguageServices(language);
Workspace\Solution\SourceGeneratedDocumentState.cs (4)
46LanguageServices languageServices, 58LanguageServices languageServices, 86LanguageServices languageServices, 134LanguageServices languageServices,
Roslyn.Diagnostics.Analyzers (19)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\AddImport\AddImportPlacementOptionsProviders.cs (1)
24public static AddImportPlacementOptions GetAddImportPlacementOptions(this IOptionsReader options, Host.LanguageServices languageServices, bool? allowInHiddenRegions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeCleanup\CodeCleanupOptionsProviders.cs (2)
18public static CodeCleanupOptions GetCodeCleanupOptions(this IOptionsReader options, LanguageServices languageServices, bool? allowImportsInHiddenRegions = null) 33public static CodeCleanupOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
30LanguageServices languageServices) 36public LanguageServices LanguageServices { get; }
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CleanCodeGenerationOptions.cs (1)
32public static CleanCodeGenerationOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeAndImportGenerationOptionsProviders.cs (1)
12internal static CodeAndImportGenerationOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\CodeGenerationOptionsProviders.cs (4)
17public static CodeGenerationOptions GetCodeGenerationOptions(this IOptionsReader options, LanguageServices languageServices) 20public static CodeAndImportGenerationOptions GetCodeAndImportGenerationOptions(this IOptionsReader options, LanguageServices languageServices, bool? allowImportsInHiddenRegions = null) 27public static CleanCodeGenerationOptions GetCleanCodeGenerationOptions(this IOptionsReader options, LanguageServices languageServices, bool? allowImportsInHiddenRegions = null) 49public static CodeGenerationOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Formatting\SyntaxFormattingOptionsProviders.cs (2)
14public static SyntaxFormattingOptions GetSyntaxFormattingOptions(this IOptionsReader options, Host.LanguageServices languageServices) 24public static SyntaxFormattingOptions GetDefault(Host.LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\IndentationOptionsProviders.cs (1)
12public static IndentationOptions GetDefault(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Options\OptionsProvider.cs (2)
16ValueTask<TOptions> GetOptionsAsync(LanguageServices languageServices, CancellationToken cancellationToken); 23public async ValueTask<TOptions> GetOptionsAsync(LanguageServices languageServices, CancellationToken cancellationToken)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplifierOptionsProviders.cs (2)
14public static SimplifierOptions GetSimplifierOptions(this IOptionsReader options, Host.LanguageServices languageServices) 26public static SimplifierOptions GetDefault(Host.LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Utilities\ParsedDocument.cs (1)
28public LanguageServices LanguageServices => HostLanguageServices.LanguageServices;
Roslyn.Diagnostics.CSharp.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (1)
28internal sealed partial class CSharpCodeGenerationService(LanguageServices languageServices)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Formatting\CSharpSyntaxFormattingService.cs (2)
26internal sealed class CSharpSyntaxFormattingService(LanguageServices languageServices) 29private readonly LanguageServices _services = languageServices;
Roslyn.Diagnostics.VisualBasic.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationService.vb (1)
22Public Sub New(languageServices As LanguageServices)