1 type derived from SimplifierOptions
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\VisualBasic\VisualBasicSimplifierOptions.cs (1)
13internal sealed record class VisualBasicSimplifierOptions : SimplifierOptions, IEquatable<VisualBasicSimplifierOptions>
1 instantiation of SimplifierOptions
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SimplifierOptions.cs (1)
19internal static readonly SimplifierOptions CommonDefaults = new();
33 references to SimplifierOptions
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
ExternalAccess\Razor\SimplifyMethodHandler.cs (1)
69var options = simplificationService.GetSimplifierOptions(configOptions);
Microsoft.CodeAnalysis.Workspaces (32)
Simplification\Simplifier.cs (7)
165internal static async Task<Document> ReduceAsync(Document document, SimplifierOptions options, CancellationToken cancellationToken) 193internal static async Task<Document> ReduceAsync(Document document, SyntaxAnnotation annotation, SimplifierOptions options, CancellationToken cancellationToken) 215internal static Task<Document> ReduceAsync(Document document, TextSpan span, SimplifierOptions options, CancellationToken cancellationToken) 234var options = await GetOptionsAsync(document, optionSet, cancellationToken).ConfigureAwait(false); 240internal static Task<Document> ReduceAsync(Document document, IEnumerable<TextSpan> spans, SimplifierOptions options, CancellationToken cancellationToken) 247var options = await document.GetSimplifierOptionsAsync(cancellationToken).ConfigureAwait(false); 255internal static async Task<SimplifierOptions> GetOptionsAsync(Document document, OptionSet? optionSet, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeCleanup\CodeCleanupOptions.cs (1)
17[DataMember] public required SimplifierOptions SimplifierOptions { get; init; }
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (3)
36=> CreatePerLanguageOption(CodeStyleOptionGroups.ThisOrMe, name, defaultValue: SimplifierOptions.DefaultQualifyAccess); 71defaultValue: SimplifierOptions.CommonDefaults.PreferPredefinedTypeKeywordInDeclaration, 80defaultValue: SimplifierOptions.CommonDefaults.PreferPredefinedTypeKeywordInMemberAccess,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\AbstractSimplification.cs (2)
11public abstract SimplifierOptions DefaultOptions { get; } 12public abstract SimplifierOptions GetSimplifierOptions(IOptionsReader options);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\ISimplification.cs (2)
12SimplifierOptions DefaultOptions { get; } 13SimplifierOptions GetSimplifierOptions(IOptionsReader options);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Simplification\SimplifierOptions.cs (1)
19internal static readonly SimplifierOptions CommonDefaults = new();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractReducer.cs (1)
21public abstract bool IsApplicable(SimplifierOptions options);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractReducer.IExpressionRewriter.cs (1)
16void Initialize(ParseOptions parseOptions, SimplifierOptions options, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (5)
44public abstract SimplifierOptions DefaultOptions { get; } 45public abstract SimplifierOptions GetSimplifierOptions(IOptionsReader options); 56SimplifierOptions options, 101SimplifierOptions options, 177SimplifierOptions options,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\ISimplificationService.cs (1)
33SimplifierOptions options,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplificationHelpers.cs (1)
115internal static bool ShouldSimplifyThisOrMeMemberAccessExpression(SimplifierOptions options, ISymbol symbol)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplifierOptionsProviders.cs (5)
14public static SimplifierOptions GetSimplifierOptions(this IOptionsReader options, Host.LanguageServices languageServices) 15=> languageServices.GetService<ISimplificationService>()?.GetSimplifierOptions(options) ?? SimplifierOptions.CommonDefaults; 17public static ValueTask<SimplifierOptions> GetSimplifierOptionsAsync(this Document document, CancellationToken cancellationToken) 20public static async ValueTask<SimplifierOptions> GetSimplifierOptionsAsync(this Document document, ISimplification simplification, CancellationToken cancellationToken) 26public static SimplifierOptions GetDefault(Host.LanguageServices languageServices)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\Simplifiers\AbstractMemberAccessExpressionSimplifier.cs (1)
35SimplifierOptions simplifierOptions,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\Simplifiers\AbstractSimplifier.cs (1)
14where TSimplifierOptions : SimplifierOptions