2 instantiations of CSharpSyntaxFormattingOptions
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpSyntaxFormatting.cs (1)
43=> new CSharpSyntaxFormattingOptions(options);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpSyntaxFormattingOptions.cs (1)
53public static readonly CSharpSyntaxFormattingOptions Default = new();
78 references to CSharpSyntaxFormattingOptions
Microsoft.CodeAnalysis.CSharp.CodeStyle (78)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\CSharpCodeStyleOptions.cs (2)
275CSharpSyntaxFormattingOptions.Default.NamespaceDeclarations, 288CSharpSyntaxFormattingOptions.Default.PreferTopLevelStatements);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpFormattingOptions2.cs (38)
75CSharpSyntaxFormattingOptions.SpacingDefault.HasFlag(SpacePlacement.AfterMethodDeclarationName)) 80CSharpSyntaxFormattingOptions.SpacingDefault.HasFlag(SpacePlacement.WithinMethodDeclarationParenthesis)) 85CSharpSyntaxFormattingOptions.SpacingDefault.HasFlag(SpacePlacement.BetweenEmptyMethodDeclarationParentheses)) 90CSharpSyntaxFormattingOptions.SpacingDefault.HasFlag(SpacePlacement.AfterMethodCallName)) 95CSharpSyntaxFormattingOptions.SpacingDefault.HasFlag(SpacePlacement.WithinMethodCallParentheses)) 100CSharpSyntaxFormattingOptions.SpacingDefault.HasFlag(SpacePlacement.BetweenEmptyMethodCallParentheses)) 105CSharpSyntaxFormattingOptions.SpacingDefault.HasFlag(SpacePlacement.AfterControlFlowStatementKeyword)) 111CSharpSyntaxFormattingOptions.SpacingDefault.ToSpacingWithinParentheses(), 118CSharpSyntaxFormattingOptions.SpacingDefault.HasFlag(SpacePlacement.AfterCast)) 123CSharpSyntaxFormattingOptions.SpacingDefault.HasFlag(SpacePlacement.IgnoreAroundVariableDeclaration), 131CSharpSyntaxFormattingOptions.SpacingDefault.HasFlag(SpacePlacement.BeforeOpenSquareBracket)) 136CSharpSyntaxFormattingOptions.SpacingDefault.HasFlag(SpacePlacement.BetweenEmptySquareBrackets)) 141CSharpSyntaxFormattingOptions.SpacingDefault.HasFlag(SpacePlacement.WithinSquareBrackets)) 146CSharpSyntaxFormattingOptions.SpacingDefault.HasFlag(SpacePlacement.AfterColonInBaseTypeDeclaration)) 151CSharpSyntaxFormattingOptions.SpacingDefault.HasFlag(SpacePlacement.AfterComma)) 156CSharpSyntaxFormattingOptions.SpacingDefault.HasFlag(SpacePlacement.AfterDot)) 161CSharpSyntaxFormattingOptions.SpacingDefault.HasFlag(SpacePlacement.AfterSemicolonsInForStatement)) 166CSharpSyntaxFormattingOptions.SpacingDefault.HasFlag(SpacePlacement.BeforeColonInBaseTypeDeclaration)) 171CSharpSyntaxFormattingOptions.SpacingDefault.HasFlag(SpacePlacement.BeforeComma)) 176CSharpSyntaxFormattingOptions.SpacingDefault.HasFlag(SpacePlacement.BeforeDot)) 181CSharpSyntaxFormattingOptions.SpacingDefault.HasFlag(SpacePlacement.BeforeSemicolonsInForStatement)) 186CSharpSyntaxFormattingOptions.Default.SpacingAroundBinaryOperator, 194CSharpSyntaxFormattingOptions.IndentationDefault.HasFlag(IndentationPlacement.Braces)) 199CSharpSyntaxFormattingOptions.IndentationDefault.HasFlag(IndentationPlacement.BlockContents)) 204CSharpSyntaxFormattingOptions.IndentationDefault.HasFlag(IndentationPlacement.SwitchSection)) 209CSharpSyntaxFormattingOptions.IndentationDefault.HasFlag(IndentationPlacement.SwitchSection)) 214CSharpSyntaxFormattingOptions.IndentationDefault.HasFlag(IndentationPlacement.SwitchCaseContentsWhenBlock)) 219CSharpSyntaxFormattingOptions.Default.LabelPositioning, 227CSharpSyntaxFormattingOptions.Default.WrappingPreserveSingleLine) 232CSharpSyntaxFormattingOptions.Default.WrappingKeepStatementsOnSingleLine) 238CSharpSyntaxFormattingOptions.NewLinesDefault.ToNewLineBeforeOpenBracePlacement(), 245CSharpSyntaxFormattingOptions.NewLinesDefault.HasFlag(NewLinePlacement.BeforeElse)) 250CSharpSyntaxFormattingOptions.NewLinesDefault.HasFlag(NewLinePlacement.BeforeCatch)) 255CSharpSyntaxFormattingOptions.NewLinesDefault.HasFlag(NewLinePlacement.BeforeFinally)) 260CSharpSyntaxFormattingOptions.NewLinesDefault.HasFlag(NewLinePlacement.BeforeMembersInObjectInitializers)) 265CSharpSyntaxFormattingOptions.NewLinesDefault.HasFlag(NewLinePlacement.BeforeMembersInAnonymousTypes)) 270CSharpSyntaxFormattingOptions.NewLinesDefault.HasFlag(NewLinePlacement.BetweenQueryExpressionClauses)) 278defaultValue: CSharpSyntaxFormattingOptions.Default.CollectionExpressionWrappingLength,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpSyntaxFormatting.cs (1)
40=> CSharpSyntaxFormattingOptions.Default;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpSyntaxFormattingOptions.cs (2)
15internal sealed record class CSharpSyntaxFormattingOptions : SyntaxFormattingOptions, IEquatable<CSharpSyntaxFormattingOptions> 53public static readonly CSharpSyntaxFormattingOptions Default = new();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (5)
21private readonly CSharpSyntaxFormattingOptions _options; 24: this(CSharpSyntaxFormattingOptions.Default) 28private IndentBlockFormattingRule(CSharpSyntaxFormattingOptions options) 35var newOptions = options as CSharpSyntaxFormattingOptions ?? CSharpSyntaxFormattingOptions.Default;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentUserSettingsFormattingRule.cs (5)
16private readonly CSharpSyntaxFormattingOptions _options; 19: this(CSharpSyntaxFormattingOptions.Default) 23private IndentUserSettingsFormattingRule(CSharpSyntaxFormattingOptions options) 30var newOptions = options as CSharpSyntaxFormattingOptions ?? CSharpSyntaxFormattingOptions.Default;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\NewLineUserSettingFormattingRule.cs (5)
15private readonly CSharpSyntaxFormattingOptions _options; 18: this(CSharpSyntaxFormattingOptions.Default) 22private NewLineUserSettingFormattingRule(CSharpSyntaxFormattingOptions options) 29var newOptions = options as CSharpSyntaxFormattingOptions ?? CSharpSyntaxFormattingOptions.Default;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\QueryExpressionFormattingRule.cs (5)
18private readonly CSharpSyntaxFormattingOptions _options; 21: this(CSharpSyntaxFormattingOptions.Default) 25private QueryExpressionFormattingRule(CSharpSyntaxFormattingOptions options) 32var newOptions = options as CSharpSyntaxFormattingOptions ?? CSharpSyntaxFormattingOptions.Default;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (5)
18private readonly CSharpSyntaxFormattingOptions _options; 21: this(CSharpSyntaxFormattingOptions.Default) 25private SpacingFormattingRule(CSharpSyntaxFormattingOptions options) 32var newOptions = options as CSharpSyntaxFormattingOptions ?? CSharpSyntaxFormattingOptions.Default;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\TokenBasedFormattingRule.cs (5)
20private readonly CSharpSyntaxFormattingOptions _options; 23: this(CSharpSyntaxFormattingOptions.Default) 27private TokenBasedFormattingRule(CSharpSyntaxFormattingOptions options) 34var newOptions = options as CSharpSyntaxFormattingOptions ?? CSharpSyntaxFormattingOptions.Default;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\WrappingFormattingRule.cs (5)
21private readonly CSharpSyntaxFormattingOptions _options; 24: this(CSharpSyntaxFormattingOptions.Default) 28private WrappingFormattingRule(CSharpSyntaxFormattingOptions options) 35var newOptions = options as CSharpSyntaxFormattingOptions ?? CSharpSyntaxFormattingOptions.Default;