30 references to OperatorPlacementWhenWrappingPreference
Microsoft.CodeAnalysis.CSharp.Features (1)
Wrapping\CSharpSyntaxWrappingOptions.cs (1)
14OperatorPlacementWhenWrappingPreference operatorPlacement,
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
Wrapping\BinaryExpressionWrappingTests.cs (2)
19=> new(options: Option(CodeStyleOptions2.OperatorPlacementWhenWrapping, OperatorPlacementWhenWrappingPreference.EndOfLine)); 22=> new(options: Option(CodeStyleOptions2.OperatorPlacementWhenWrapping, OperatorPlacementWhenWrappingPreference.BeginningOfLine));
Microsoft.CodeAnalysis.Features (4)
src\Analyzers\Core\Analyzers\AnalyzerOptionsProvider.cs (1)
46public OperatorPlacementWhenWrappingPreference OperatorPlacementWhenWrapping => GetOption(CodeStyleOptions2.OperatorPlacementWhenWrapping);
Wrapping\BinaryExpression\BinaryExpressionCodeActionComputer.cs (1)
99if (Options.OperatorPlacement == OperatorPlacementWhenWrappingPreference.BeginningOfLine)
Wrapping\SyntaxWrappingOptions.cs (2)
13public readonly OperatorPlacementWhenWrappingPreference OperatorPlacement; 17OperatorPlacementWhenWrappingPreference operatorPlacement)
Microsoft.CodeAnalysis.Workspaces (9)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleOptions2.cs (3)
107internal static readonly Option2<OperatorPlacementWhenWrappingPreference> OperatorPlacementWhenWrapping = CreateOption( 110defaultValue: OperatorPlacementWhenWrappingPreference.BeginningOfLine, 112parseValue: str => OperatorPlacementUtilities.Parse(str, OperatorPlacementWhenWrappingPreference.BeginningOfLine),
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\OperatorPlacementWhenWrappingPreference.cs (6)
19public static string GetEditorConfigString(OperatorPlacementWhenWrappingPreference value) 20=> value == OperatorPlacementWhenWrappingPreference.EndOfLine ? end_of_line : beginning_of_line; 22public static Optional<OperatorPlacementWhenWrappingPreference> Parse(string optionString, OperatorPlacementWhenWrappingPreference defaultValue) 28case end_of_line: return OperatorPlacementWhenWrappingPreference.EndOfLine; 29case beginning_of_line: return OperatorPlacementWhenWrappingPreference.BeginningOfLine;
Microsoft.VisualStudio.LanguageServices (14)
EditorConfigSettings\Whitespace\ViewModel\OperatorPlacementWhenWrappingViewModel.cs (14)
36private sealed class OperatorPlacementWhenWrappingViewModel : EnumSettingViewModel<OperatorPlacementWhenWrappingPreference> 45protected override void ChangePropertyTo(OperatorPlacementWhenWrappingPreference newValue) 49case OperatorPlacementWhenWrappingPreference.BeginningOfLine: 50_setting.SetValue(OperatorPlacementWhenWrappingPreference.BeginningOfLine); 52case OperatorPlacementWhenWrappingPreference.EndOfLine: 53_setting.SetValue(OperatorPlacementWhenWrappingPreference.EndOfLine); 60protected override OperatorPlacementWhenWrappingPreference GetCurrentValue() 64OperatorPlacementWhenWrappingPreference.BeginningOfLine => OperatorPlacementWhenWrappingPreference.BeginningOfLine, 65_ => OperatorPlacementWhenWrappingPreference.EndOfLine, 69protected override IReadOnlyDictionary<string, OperatorPlacementWhenWrappingPreference> GetValuesAndDescriptions() 73static IEnumerable<(string description, OperatorPlacementWhenWrappingPreference value)> EnumerateOptions() 75yield return (ServicesVSResources.Beginning_of_line, OperatorPlacementWhenWrappingPreference.BeginningOfLine); 76yield return (ServicesVSResources.End_of_line, OperatorPlacementWhenWrappingPreference.EndOfLine);