4 writes to Indentation
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpSyntaxFormattingOptions.cs (1)
105Indentation =
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.CSharp (1)
Formatting\OmniSharpSyntaxFormattingOptionsFactory.cs (1)
129Indentation =
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
RazorCSharpSyntaxFormattingOptions.cs (1)
57Indentation = (IndentationPlacement)Indentation,
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Remote\ServiceDescriptorTests.cs (1)
243Indentation = IndentationPlacement.SwitchSection
20 references to Indentation
Microsoft.CodeAnalysis.CSharp.Workspaces (14)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (11)
38_options.Indentation == newOptions.Indentation) 88if (!_options.Indentation.HasFlag(IndentationPlacement.SwitchCaseContents) && !_options.Indentation.HasFlag(IndentationPlacement.SwitchCaseContentsWhenBlock)) 94var alwaysIndent = _options.Indentation.HasFlag(IndentationPlacement.SwitchCaseContents) && _options.Indentation.HasFlag(IndentationPlacement.SwitchCaseContentsWhenBlock); 98Debug.Assert(_options.Indentation.HasFlag(IndentationPlacement.SwitchCaseContents) != _options.Indentation.HasFlag(IndentationPlacement.SwitchCaseContentsWhenBlock)); 101if (_options.Indentation.HasFlag(IndentationPlacement.SwitchCaseContentsWhenBlock) != firstStatementIsBlock) 238if (node is BlockSyntax && !_options.Indentation.HasFlag(IndentationPlacement.BlockContents)) 244if (node is SwitchStatementSyntax && !_options.Indentation.HasFlag(IndentationPlacement.SwitchSection))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentUserSettingsFormattingRule.cs (3)
29if (_options.Indentation.HasFlag(IndentationPlacement.Braces) == newOptions.Indentation.HasFlag(IndentationPlacement.Braces)) 49if (_options.Indentation.HasFlag(IndentationPlacement.Braces))
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
RazorCSharpSyntaxFormattingOptions.cs (1)
41(RazorIndentationPlacement)options.Indentation,
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
Formatter\FormatterTests.cs (5)
192Assert.True(formattingOptions.Indentation.HasFlag(IndentationPlacement.Braces)); 193Assert.False(formattingOptions.Indentation.HasFlag(IndentationPlacement.BlockContents)); 194Assert.False(formattingOptions.Indentation.HasFlag(IndentationPlacement.SwitchCaseContents)); 195Assert.False(formattingOptions.Indentation.HasFlag(IndentationPlacement.SwitchCaseContentsWhenBlock)); 196Assert.False(formattingOptions.Indentation.HasFlag(IndentationPlacement.SwitchSection));