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