12 references to WithFlagValue
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Formatting\CSharpFormattingOptions.cs (1)
68
=> ((SpacePlacementWithinParentheses)currentInternalValue!).
WithFlagValue
(_flag, (bool)newPublicValue!);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (9)
Formatting\FormattingTests.cs (7)
6891
{ SpaceBetweenParentheses, SpaceBetweenParentheses.DefaultValue.
WithFlagValue
( SpacePlacementWithinParentheses.ControlFlowStatements, true) },
12111
{ CSharpFormattingOptions2.SpaceBetweenParentheses, CSharpFormattingOptions2.SpaceBetweenParentheses.DefaultValue.
WithFlagValue
(SpacePlacementWithinParentheses.Expressions, true) }
12136
{ CSharpFormattingOptions2.SpaceBetweenParentheses, CSharpFormattingOptions2.SpaceBetweenParentheses.DefaultValue.
WithFlagValue
(SpacePlacementWithinParentheses.Expressions, false) }
12161
{ CSharpFormattingOptions2.SpaceBetweenParentheses, CSharpFormattingOptions2.SpaceBetweenParentheses.DefaultValue.
WithFlagValue
(SpacePlacementWithinParentheses.TypeCasts, true) }
12186
{ CSharpFormattingOptions2.SpaceBetweenParentheses, CSharpFormattingOptions2.SpaceBetweenParentheses.DefaultValue.
WithFlagValue
(SpacePlacementWithinParentheses.TypeCasts, false) }
12219
{ CSharpFormattingOptions2.SpaceBetweenParentheses, CSharpFormattingOptions2.SpaceBetweenParentheses.DefaultValue.
WithFlagValue
(SpacePlacementWithinParentheses.ControlFlowStatements, true) }
12252
{ CSharpFormattingOptions2.SpaceBetweenParentheses, CSharpFormattingOptions2.SpaceBetweenParentheses.DefaultValue.
WithFlagValue
(SpacePlacementWithinParentheses.ControlFlowStatements, false) }
Formatting\FormattingTests_Patterns.cs (2)
150
{ CSharpFormattingOptions2.SpaceBetweenParentheses, CSharpFormattingOptions2.SpaceBetweenParentheses.DefaultValue.
WithFlagValue
(SpacePlacementWithinParentheses.Expressions, spaceWithinExpressionParentheses) },
291
{ CSharpFormattingOptions2.SpaceBetweenParentheses, CSharpFormattingOptions2.SpaceBetweenParentheses.DefaultValue.
WithFlagValue
(SpacePlacementWithinParentheses.Expressions, spaceWithinExpressionParentheses) },
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Options\DocumentOptionSetTests.cs (1)
168
var newInternalValue = option.DefaultValue.
WithFlagValue
(flag, newValue);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Options\AutomationObject\AutomationObject.cs (1)
43
=> SetOption(option, GetOption(option).
WithFlagValue
(flag, value != 0));