29 references to WithFlagValue
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (12)
AutomaticCompletion\AutomaticBraceCompletionTests.cs (12)
786
{ CSharpFormattingOptions2.NewLineBeforeOpenBrace, CSharpFormattingOptions2.NewLineBeforeOpenBrace.DefaultValue.
WithFlagValue
(NewLineBeforeOpenBracePlacement.ObjectCollectionArrayInitializers, false) }
862
{ CSharpFormattingOptions2.NewLineBeforeOpenBrace, CSharpFormattingOptions2.NewLineBeforeOpenBrace.DefaultValue.
WithFlagValue
(NewLineBeforeOpenBracePlacement.ObjectCollectionArrayInitializers, false) }
934
{ CSharpFormattingOptions2.NewLineBeforeOpenBrace, CSharpFormattingOptions2.NewLineBeforeOpenBrace.DefaultValue.
WithFlagValue
(NewLineBeforeOpenBracePlacement.ObjectCollectionArrayInitializers, false) }
996
{ CSharpFormattingOptions2.NewLineBeforeOpenBrace, CSharpFormattingOptions2.NewLineBeforeOpenBrace.DefaultValue.
WithFlagValue
(NewLineBeforeOpenBracePlacement.ObjectCollectionArrayInitializers, false) }
1058
{ CSharpFormattingOptions2.NewLineBeforeOpenBrace, CSharpFormattingOptions2.NewLineBeforeOpenBrace.DefaultValue.
WithFlagValue
(NewLineBeforeOpenBracePlacement.ObjectCollectionArrayInitializers, false) }
1383
{ CSharpFormattingOptions2.NewLineBeforeOpenBrace, CSharpFormattingOptions2.NewLineBeforeOpenBrace.DefaultValue.
WithFlagValue
(NewLineBeforeOpenBracePlacement.ObjectCollectionArrayInitializers, bracesOnNewLine) }
1427
{ CSharpFormattingOptions2.NewLineBeforeOpenBrace, CSharpFormattingOptions2.NewLineBeforeOpenBrace.DefaultValue.
WithFlagValue
(NewLineBeforeOpenBracePlacement.ObjectCollectionArrayInitializers, bracesOnNewLine) }
1471
{ CSharpFormattingOptions2.NewLineBeforeOpenBrace, CSharpFormattingOptions2.NewLineBeforeOpenBrace.DefaultValue.
WithFlagValue
(NewLineBeforeOpenBracePlacement.Accessors, bracesOnNewLine) }
1515
{ CSharpFormattingOptions2.NewLineBeforeOpenBrace, CSharpFormattingOptions2.NewLineBeforeOpenBrace.DefaultValue.
WithFlagValue
(NewLineBeforeOpenBracePlacement.AnonymousMethods, bracesOnNewLine) }
1559
{ CSharpFormattingOptions2.NewLineBeforeOpenBrace, CSharpFormattingOptions2.NewLineBeforeOpenBrace.DefaultValue.
WithFlagValue
(NewLineBeforeOpenBracePlacement.AnonymousTypes, bracesOnNewLine) }
1604
{ CSharpFormattingOptions2.NewLineBeforeOpenBrace, CSharpFormattingOptions2.NewLineBeforeOpenBrace.DefaultValue.
WithFlagValue
(NewLineBeforeOpenBracePlacement.ControlBlocks, bracesOnNewLine) }
1655
{ CSharpFormattingOptions2.NewLineBeforeOpenBrace, CSharpFormattingOptions2.NewLineBeforeOpenBrace.DefaultValue.
WithFlagValue
(NewLineBeforeOpenBracePlacement.ControlBlocks, bracesOnNewLine) }
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Formatting\CSharpFormattingOptions.cs (1)
52
=> ((NewLineBeforeOpenBracePlacement)currentInternalValue!).
WithFlagValue
(_flag, (bool)newPublicValue!);
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (14)
Formatting\FormattingTests.cs (14)
963
{ NewLineBeforeOpenBrace, NewLineBeforeOpenBrace.DefaultValue.
WithFlagValue
(NewLineBeforeOpenBracePlacement.ObjectCollectionArrayInitializers, false) },
1038
{ NewLineBeforeOpenBrace, NewLineBeforeOpenBrace.DefaultValue.
WithFlagValue
(NewLineBeforeOpenBracePlacement.LambdaExpressionBody, false) },
2134
{ NewLineBeforeOpenBrace, NewLineBeforeOpenBrace.DefaultValue.
WithFlagValue
(NewLineBeforeOpenBracePlacement.ControlBlocks, false) }
7268
{ NewLineBeforeOpenBrace, NewLineBeforeOpenBrace.DefaultValue.
WithFlagValue
(NewLineBeforeOpenBracePlacement.ControlBlocks, false) }
7307
{ NewLineBeforeOpenBrace , NewLineBeforeOpenBrace.DefaultValue.
WithFlagValue
(NewLineBeforeOpenBracePlacement.ControlBlocks, false) }
8485
{ NewLineBeforeOpenBrace, NewLineBeforeOpenBrace.DefaultValue.
WithFlagValue
(NewLineBeforeOpenBracePlacement.ControlBlocks, false) }
8628
{ NewLineBeforeOpenBrace, NewLineBeforeOpenBrace.DefaultValue.
WithFlagValue
(NewLineBeforeOpenBracePlacement.Properties, false) },
8666
{ NewLineBeforeOpenBrace, NewLineBeforeOpenBrace.DefaultValue.
WithFlagValue
(NewLineBeforeOpenBracePlacement.Accessors, false) },
8705
.
WithFlagValue
(NewLineBeforeOpenBracePlacement.Properties, false)
8706
.
WithFlagValue
(NewLineBeforeOpenBracePlacement.Accessors, false)},
9757
{ NewLineBeforeOpenBrace, NewLineBeforeOpenBrace.DefaultValue.
WithFlagValue
(NewLineBeforeOpenBracePlacement.ObjectCollectionArrayInitializers, false) },
9817
{ NewLineBeforeOpenBrace, NewLineBeforeOpenBrace.DefaultValue.
WithFlagValue
(NewLineBeforeOpenBracePlacement.ObjectCollectionArrayInitializers, false) },
9927
{ NewLineBeforeOpenBrace, NewLineBeforeOpenBrace.DefaultValue.
WithFlagValue
(NewLineBeforeOpenBracePlacement.ObjectCollectionArrayInitializers, false) },
9963
{ NewLineBeforeOpenBrace, NewLineBeforeOpenBrace.DefaultValue.
WithFlagValue
(NewLineBeforeOpenBracePlacement.ObjectCollectionArrayInitializers, option) },
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Options\DocumentOptionSetTests.cs (1)
112
var newInternalValue = option.DefaultValue.
WithFlagValue
(flag, newValue);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Options\AutomationObject\AutomationObject.cs (1)
40
=> SetOption(option, GetOption(option).
WithFlagValue
(flag, value != 0));