3 instantiations of CSharpSimplifierOptions
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Simplification\CSharpSimplificationService.cs (1)
51=> new CSharpSimplifierOptions(options);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\CSharpSimplification.cs (1)
18=> new CSharpSimplifierOptions(options);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\CSharpSimplifierOptions.cs (1)
21public static readonly CSharpSimplifierOptions Default = new();
59 references to CSharpSimplifierOptions
Microsoft.CodeAnalysis.CSharp.Workspaces (58)
Simplification\CSharpSimplificationService.cs (1)
48=> CSharpSimplifierOptions.Default;
Simplification\Reducers\AbstractCSharpReducer.AbstractReductionRewriter.cs (4)
25protected CSharpSimplifierOptions? Options { get; private set; } 45Options = (CSharpSimplifierOptions)options; 126Func<TNode, SemanticModel, CSharpSimplifierOptions, CancellationToken, SyntaxNode> simplifier) 159protected SyntaxToken SimplifyToken(SyntaxToken token, Func<SyntaxToken, SemanticModel, CSharpSimplifierOptions, CancellationToken, SyntaxToken> simplifier)
Simplification\Reducers\AbstractCSharpReducer.cs (2)
19=> IsApplicable((CSharpSimplifierOptions)options); 21protected abstract bool IsApplicable(CSharpSimplifierOptions options);
Simplification\Reducers\CSharpCastReducer.cs (1)
26protected override bool IsApplicable(CSharpSimplifierOptions options)
Simplification\Reducers\CSharpDefaultExpressionReducer.cs (1)
17protected override bool IsApplicable(CSharpSimplifierOptions options)
Simplification\Reducers\CSharpDefaultExpressionReducer.Rewriter.cs (2)
25private readonly Func<DefaultExpressionSyntax, SemanticModel, CSharpSimplifierOptions, CancellationToken, SyntaxNode> _simplifyDefaultExpression; 30CSharpSimplifierOptions options,
Simplification\Reducers\CSharpEscapingReducer.cs (3)
23private static readonly Func<SyntaxToken, SemanticModel, CSharpSimplifierOptions, CancellationToken, SyntaxToken> s_simplifyIdentifierToken = SimplifyIdentifierToken; 29protected override bool IsApplicable(CSharpSimplifierOptions options) 35CSharpSimplifierOptions options,
Simplification\Reducers\CSharpExtensionMethodReducer.cs (3)
23private static readonly Func<InvocationExpressionSyntax, SemanticModel, CSharpSimplifierOptions, CancellationToken, SyntaxNode> s_simplifyExtensionMethod = SimplifyExtensionMethod; 29protected override bool IsApplicable(CSharpSimplifierOptions options) 35CSharpSimplifierOptions options,
Simplification\Reducers\CSharpInferredMemberNameReducer.cs (1)
25protected override bool IsApplicable(CSharpSimplifierOptions options)
Simplification\Reducers\CSharpMiscellaneousReducer.cs (3)
31protected override bool IsApplicable(CSharpSimplifierOptions options) 111private static readonly Func<BlockSyntax, SemanticModel, CSharpSimplifierOptions, CancellationToken, SyntaxNode> s_simplifyBlock = SimplifyBlock; 116CSharpSimplifierOptions options,
Simplification\Reducers\CSharpNameReducer.cs (3)
22private static readonly Func<SyntaxNode, SemanticModel, CSharpSimplifierOptions, CancellationToken, SyntaxNode> s_simplifyName = SimplifyName; 28protected override bool IsApplicable(CSharpSimplifierOptions options) 34CSharpSimplifierOptions options,
Simplification\Reducers\CSharpNullableAnnotationReducer.cs (1)
27protected override bool IsApplicable(CSharpSimplifierOptions options)
Simplification\Reducers\CSharpParenthesizedExpressionReducer.cs (1)
27protected override bool IsApplicable(CSharpSimplifierOptions options)
Simplification\Reducers\CSharpParenthesizedPatternReducer.cs (1)
29protected override bool IsApplicable(CSharpSimplifierOptions options)
Simplification\Reducers\CSharpVarReducer.cs (1)
20protected override bool IsApplicable(CSharpSimplifierOptions options)
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (2)
26: AbstractSimplifier<TSyntax, TSimplifiedSyntax, CSharpSimplifierOptions> 393protected static bool PreferPredefinedTypeKeywordInMemberAccess(ExpressionSyntax expression, CSharpSimplifierOptions options, SemanticModel semanticModel)
Simplification\Simplifiers\ExpressionSimplifier.cs (3)
33CSharpSimplifierOptions options, 68CSharpSimplifierOptions options, 91CSharpSimplifierOptions options,
Simplification\Simplifiers\NameSimplifier.cs (2)
36CSharpSimplifierOptions options, 731private static bool PreferPredefinedTypeKeywordInDeclarations(NameSyntax name, CSharpSimplifierOptions options, SemanticModel semanticModel)
Simplification\Simplifiers\QualifiedCrefSimplifier.cs (1)
27CSharpSimplifierOptions options,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (7)
29CSharpSimplifierOptions.Default.VarForBuiltInTypes); 33CSharpSimplifierOptions.Default.VarWhenTypeIsApparent); 37CSharpSimplifierOptions.Default.VarElsewhere); 69CSharpSimplifierOptions.Default.PreferThrowExpression); 142CSharpSimplifierOptions.Default.PreferBraces, 150CSharpSimplifierOptions.Default.PreferSimpleDefaultExpression); 250CSharpSimplifierOptions.Default.AllowEmbeddedStatementsOnSameLine);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\CSharpSimplification.cs (1)
15=> CSharpSimplifierOptions.Default;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\CSharpSimplifierOptions.cs (2)
16internal sealed record class CSharpSimplifierOptions : SimplifierOptions, IEquatable<CSharpSimplifierOptions> 21public static readonly CSharpSimplifierOptions Default = new();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpTypeStyleHelper.cs (5)
20private readonly CSharpSimplifierOptions _options; 38public TypeStyleResult(CSharpTypeStyleHelper helper, TypeSyntax typeName, SemanticModel semanticModel, CSharpSimplifierOptions options, bool isStylePreferred, NotificationOption2 notificationOption, CancellationToken cancellationToken) : this() 60CSharpSimplifierOptions options, CancellationToken cancellationToken) 77TypeSyntax typeName, SemanticModel semanticModel, CSharpSimplifierOptions options, CancellationToken cancellationToken); 80SyntaxToken identifier, TypeSyntax typeName, ExpressionSyntax initializer, SemanticModel semanticModel, CSharpSimplifierOptions options, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpTypeStyleHelper.State.cs (1)
32CSharpSimplifierOptions options, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseExplicitTypeHelper.cs (2)
68CSharpSimplifierOptions options, CancellationToken cancellationToken) 142CSharpSimplifierOptions options,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseImplicitTypeHelper.cs (3)
31CSharpSimplifierOptions options, CancellationToken cancellationToken) 99CSharpSimplifierOptions options, CancellationToken cancellationToken) 258CSharpSimplifierOptions options,
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Simplification\CSharpSimplifierOptionsProviders.cs (1)
14public static async ValueTask<CSharpSimplifierOptions> GetCSharpSimplifierOptionsAsync(this Document document, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\AddImportsTests.cs (1)
87var simplifierOptions = CSharpSimplifierOptions.Default;