8 references to SwitchCaseContentsWhenBlock
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
CSharpFormattingOptions2.cs (1)
218
CSharpSyntaxFormattingOptions.IndentationDefault.HasFlag(IndentationPlacement.
SwitchCaseContentsWhenBlock
))
CSharpSyntaxFormattingOptions.cs (3)
50
IndentationPlacement.
SwitchCaseContentsWhenBlock
|
108
(options.GetOption(CSharpFormattingOptions2.IndentSwitchCaseSectionWhenBlock, fallbackOptions.Indentation.HasFlag(IndentationPlacement.
SwitchCaseContentsWhenBlock
)) ? IndentationPlacement.
SwitchCaseContentsWhenBlock
: 0) |
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)