14 references to BinaryOperatorSpacingOptions
Microsoft.CodeAnalysis.CSharp.CodeStyle (14)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpFormattingOptions2.cs (6)
31
private static readonly BidirectionalMap<string,
BinaryOperatorSpacingOptions
> s_binaryOperatorSpacingOptionsEditorConfigMap =
34
KeyValuePairUtil.Create("ignore",
BinaryOperatorSpacingOptions
.Ignore),
35
KeyValuePairUtil.Create("none",
BinaryOperatorSpacingOptions
.Remove),
36
KeyValuePairUtil.Create("before_and_after",
BinaryOperatorSpacingOptions
.Single),
184
public static Option2<
BinaryOperatorSpacingOptions
> SpacingAroundBinaryOperator { get; } = CreateOption(
187
new EditorConfigValueSerializer<
BinaryOperatorSpacingOptions
>(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpFormattingOptions2.Parsers.cs (3)
92
internal static
BinaryOperatorSpacingOptions
ParseEditorConfigSpacingAroundBinaryOperator(string binaryOperatorSpacingValue)
93
=> s_binaryOperatorSpacingOptionsEditorConfigMap.TryGetValue(binaryOperatorSpacingValue.Trim(), out var value) ? value :
BinaryOperatorSpacingOptions
.Single;
95
private static string GetSpacingAroundBinaryOperatorEditorConfigString(
BinaryOperatorSpacingOptions
value)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpSyntaxFormattingOptions.cs (2)
56
[DataMember] public
BinaryOperatorSpacingOptions
SpacingAroundBinaryOperator { get; init; } =
BinaryOperatorSpacingOptions
.Single;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (3)
336
case
BinaryOperatorSpacingOptions
.Single:
338
case
BinaryOperatorSpacingOptions
.Remove:
355
case
BinaryOperatorSpacingOptions
.Ignore: