33 references to IndentationPlacement
Microsoft.CodeAnalysis.CSharp.CodeStyle (33)
CSharpFormattingOptions2.cs (5)
198
CSharpSyntaxFormattingOptions.IndentationDefault.HasFlag(
IndentationPlacement
.Braces))
203
CSharpSyntaxFormattingOptions.IndentationDefault.HasFlag(
IndentationPlacement
.BlockContents))
208
CSharpSyntaxFormattingOptions.IndentationDefault.HasFlag(
IndentationPlacement
.SwitchSection))
213
CSharpSyntaxFormattingOptions.IndentationDefault.HasFlag(
IndentationPlacement
.SwitchSection))
218
CSharpSyntaxFormattingOptions.IndentationDefault.HasFlag(
IndentationPlacement
.SwitchCaseContentsWhenBlock))
CSharpSyntaxFormattingOptions.cs (16)
47
public const
IndentationPlacement
IndentationDefault =
48
IndentationPlacement
.BlockContents |
49
IndentationPlacement
.SwitchCaseContents |
50
IndentationPlacement
.SwitchCaseContentsWhenBlock |
51
IndentationPlacement
.SwitchSection;
59
[DataMember] public
IndentationPlacement
Indentation { get; init; } = IndentationDefault;
105
(options.GetOption(CSharpFormattingOptions2.IndentBraces, fallbackOptions.Indentation.HasFlag(
IndentationPlacement
.Braces)) ?
IndentationPlacement
.Braces : 0) |
106
(options.GetOption(CSharpFormattingOptions2.IndentBlock, fallbackOptions.Indentation.HasFlag(
IndentationPlacement
.BlockContents)) ?
IndentationPlacement
.BlockContents : 0) |
107
(options.GetOption(CSharpFormattingOptions2.IndentSwitchCaseSection, fallbackOptions.Indentation.HasFlag(
IndentationPlacement
.SwitchCaseContents)) ?
IndentationPlacement
.SwitchCaseContents : 0) |
108
(options.GetOption(CSharpFormattingOptions2.IndentSwitchCaseSectionWhenBlock, fallbackOptions.Indentation.HasFlag(
IndentationPlacement
.SwitchCaseContentsWhenBlock)) ?
IndentationPlacement
.SwitchCaseContentsWhenBlock : 0) |
109
(options.GetOption(CSharpFormattingOptions2.IndentSwitchSection, fallbackOptions.Indentation.HasFlag(
IndentationPlacement
.SwitchSection)) ?
IndentationPlacement
.SwitchSection : 0);
IndentBlockFormattingRule.cs (9)
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)
232
if (node is BlockSyntax && !_options.Indentation.HasFlag(
IndentationPlacement
.BlockContents))
238
if (node is SwitchStatementSyntax && !_options.Indentation.HasFlag(
IndentationPlacement
.SwitchSection))
IndentUserSettingsFormattingRule.cs (3)
32
if (_options.Indentation.HasFlag(
IndentationPlacement
.Braces) == newOptions.Indentation.HasFlag(
IndentationPlacement
.Braces))
52
if (_options.Indentation.HasFlag(
IndentationPlacement
.Braces))