13 references to LabelPositionOptions
Microsoft.CodeAnalysis.CSharp.CodeStyle (13)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpFormattingOptions2.cs (6)
38
private static readonly BidirectionalMap<string,
LabelPositionOptions
> s_labelPositionOptionsEditorConfigMap =
41
KeyValuePairUtil.Create("flush_left",
LabelPositionOptions
.LeftMost),
42
KeyValuePairUtil.Create("no_change",
LabelPositionOptions
.NoIndent),
43
KeyValuePairUtil.Create("one_less_than_current",
LabelPositionOptions
.OneLess),
217
public static Option2<
LabelPositionOptions
> LabelPositioning { get; } = CreateOption(
220
new EditorConfigValueSerializer<
LabelPositionOptions
>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpFormattingOptions2.Parsers.cs (3)
98
internal static
LabelPositionOptions
ParseEditorConfigLabelPositioning(string labelIndentationValue)
99
=> s_labelPositionOptionsEditorConfigMap.TryGetValue(labelIndentationValue.Trim(), out var value) ? value :
LabelPositionOptions
.NoIndent;
101
private static string GetLabelPositionOptionEditorConfigString(
LabelPositionOptions
value)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpSyntaxFormattingOptions.cs (2)
58
[DataMember] public
LabelPositionOptions
LabelPositioning { get; init; } =
LabelPositionOptions
.OneLess;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (2)
139
if (_options.LabelPositioning ==
LabelPositionOptions
.OneLess)
143
else if (_options.LabelPositioning ==
LabelPositionOptions
.LeftMost)