17 references to Single
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpFormattingOptions2.cs (1)
36
KeyValuePairUtil.Create("before_and_after", BinaryOperatorSpacingOptions.
Single
),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpFormattingOptions2.Parsers.cs (1)
93
=> s_binaryOperatorSpacingOptionsEditorConfigMap.TryGetValue(binaryOperatorSpacingValue.Trim(), out var value) ? value : BinaryOperatorSpacingOptions.
Single
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpSyntaxFormattingOptions.cs (1)
56
[DataMember] public BinaryOperatorSpacingOptions SpacingAroundBinaryOperator { get; init; } = BinaryOperatorSpacingOptions.
Single
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
336
case BinaryOperatorSpacingOptions.
Single
:
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (10)
CodeStyle\CSharpEditorConfigCodeStyleParserTests.cs (2)
21
[InlineData("before_and_after", BinaryOperatorSpacingOptions.
Single
)]
26
[InlineData(" before_and_after ", BinaryOperatorSpacingOptions.
Single
)]
Formatting\EditorConfigOptionParserTests.cs (2)
37
InlineData("before_and_after", BinaryOperatorSpacingOptions.
Single
)]
50
Assert.True(CSharpFormattingOptions2.ParseEditorConfigSpacingAroundBinaryOperator(value) == BinaryOperatorSpacingOptions.
Single
,
Formatting\FormattingTests_Patterns.cs (6)
65
BinaryOperatorSpacingOptions.
Single
=> expectedSingle,
151
(BinaryOperatorSpacingOptions.
Single
, false) => expectedSingleFalse,
154
(BinaryOperatorSpacingOptions.
Single
, true) => expectedSingleTrue,
211
BinaryOperatorSpacingOptions.
Single
=> expectedSingle,
296
(BinaryOperatorSpacingOptions.
Single
, false) => expectedSingleFalse,
299
(BinaryOperatorSpacingOptions.
Single
, true) => expectedSingleTrue,
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.CSharp (1)
Formatting\OmniSharpSyntaxFormattingOptionsFactory.cs (1)
22
Single = BinaryOperatorSpacingOptions.
Single
,
Microsoft.VisualStudio.LanguageServices.CSharp (2)
EditorConfigSettings\BinaryOperatorSpacingOptionsViewModel.cs (1)
40
yield return (CSharpVSResources.Insert_space_before_and_after_binary_operators, BinaryOperatorSpacingOptions.
Single
);
Options\Formatting\SpacingViewModel.cs (1)
155
Items.Add(new RadioButtonViewModel<BinaryOperatorSpacingOptions>(CSharpVSResources.Insert_space_before_and_after_binary_operators, s_expressionSpacingPreview, "binary", BinaryOperatorSpacingOptions.
Single
, CSharpFormattingOptions2.SpacingAroundBinaryOperator, this, OptionStore));