14 references to IndentStyle
Microsoft.CodeAnalysis.CodeStyle (14)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (6)
13
using PublicIndentStyle = Microsoft.CodeAnalysis.Formatting.FormattingOptions2.
IndentStyle
;
62
public static PerLanguageOption2<
IndentStyle
> SmartIndent = new PerLanguageOption2<
IndentStyle
>(
66
serializer: EditorConfigValueSerializer.CreateSerializerForEnum<
IndentStyle
>())
67
.WithPublicOption(PublicFeatureName, "SmartIndent", static value => (
PublicIndentStyle
)value, static value => (
IndentStyle
)value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.cs (1)
19
protected abstract AbstractFormattingRule GetSpecializedIndentationFormattingRule(FormattingOptions2.
IndentStyle
indentStyle);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (4)
71
public IndentationResult? GetDesiredIndentation(FormattingOptions2.
IndentStyle
indentStyle)
74
if (indentStyle == FormattingOptions2.
IndentStyle
.None)
79
if (indentStyle == FormattingOptions2.
IndentStyle
.Block ||
85
Debug.Assert(indentStyle == FormattingOptions2.
IndentStyle
.Smart);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\IndentationOptions.cs (3)
15
[DataMember(Order = 2)] public FormattingOptions2.
IndentStyle
IndentStyle { get; init; } = DefaultIndentStyle;
17
public const FormattingOptions2.
IndentStyle
DefaultIndentStyle = FormattingOptions2.
IndentStyle
.Smart;