7 references to SwitchCaseContentsWhenBlock
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpFormattingOptions2.cs (1)
214
CSharpSyntaxFormattingOptions.IndentationDefault.HasFlag(IndentationPlacement.
SwitchCaseContentsWhenBlock
))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpSyntaxFormattingOptions.cs (2)
50
IndentationPlacement.
SwitchCaseContentsWhenBlock
|
109
(options.GetOption(CSharpFormattingOptions2.IndentSwitchCaseSectionWhenBlock) ? IndentationPlacement.
SwitchCaseContentsWhenBlock
: 0) |
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (4)
88
if (!_options.Indentation.HasFlag(IndentationPlacement.SwitchCaseContents) && !_options.Indentation.HasFlag(IndentationPlacement.
SwitchCaseContentsWhenBlock
))
94
var alwaysIndent = _options.Indentation.HasFlag(IndentationPlacement.SwitchCaseContents) && _options.Indentation.HasFlag(IndentationPlacement.
SwitchCaseContentsWhenBlock
);
98
Debug.Assert(_options.Indentation.HasFlag(IndentationPlacement.SwitchCaseContents) != _options.Indentation.HasFlag(IndentationPlacement.
SwitchCaseContentsWhenBlock
));
101
if (_options.Indentation.HasFlag(IndentationPlacement.
SwitchCaseContentsWhenBlock
) != firstStatementIsBlock)