15 references to Types
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
CSharpFormattingOptions2.cs (1)
57
KeyValuePairUtil.Create("types", NewLineBeforeOpenBracePlacement.
Types
),
Formatting\CSharpFormattingOptions.cs (1)
163
public static Option<bool> NewLinesForBracesInTypes { get; } = CreateNewLineForBracesOption("NewLinesForBracesInTypes", NewLineBeforeOpenBracePlacement.
Types
);
NewLineBeforeOpenBracePlacement.cs (2)
28
=> (value.HasFlag(NewLinePlacement.BeforeOpenBraceInTypes) ? NewLineBeforeOpenBracePlacement.
Types
: 0) |
39
=> (value.HasFlag(NewLineBeforeOpenBracePlacement.
Types
) ? NewLinePlacement.BeforeOpenBraceInTypes : 0) |
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (5)
Formatting\EditorConfigOptionParserTests.cs (5)
76
NewLineBeforeOpenBracePlacement.
Types
|
87
[InlineData("types", NewLineBeforeOpenBracePlacement.
Types
, "types")]
88
[InlineData("types,methods", NewLineBeforeOpenBracePlacement.
Types
| NewLineBeforeOpenBracePlacement.Methods, "types,methods")]
89
[InlineData("methods,types", NewLineBeforeOpenBracePlacement.
Types
| NewLineBeforeOpenBracePlacement.Methods, "types,methods")]
91
[InlineData(",, types", NewLineBeforeOpenBracePlacement.
Types
, "types")]
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Options\DocumentOptionSetTests.cs (1)
97
(CSharpFormattingOptions.NewLinesForBracesInTypes, NewLineBeforeOpenBracePlacement.
Types
),
Microsoft.VisualStudio.LanguageServices.CSharp (5)
EditorConfigSettings\DataProvider\Whitespace\CSharpWhitespaceSettingsProvider.cs (1)
82
yield return Setting.CreateEnumFlags(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.
Types
, CSharpVSResources.Place_open_brace_on_new_line_for_types, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions, options, updaterService);
Options\AutomationObject\AutomationObject.Formatting.cs (2)
110
get { return GetBooleanOption(CSharpFormattingOptions2.NewLineBeforeOpenBrace, NewLineBeforeOpenBracePlacement.
Types
); }
111
set { SetBooleanOption(CSharpFormattingOptions2.NewLineBeforeOpenBrace, NewLineBeforeOpenBracePlacement.
Types
, value); }
Options\CSharpVisualStudioOptionStorageReadFallbacks.cs (1)
44
("TextEditor.CSharp.Specific.NewLinesForBracesInTypes", (int)NewLineBeforeOpenBracePlacement.
Types
),
Options\Formatting\NewLinesViewModel.cs (1)
211
Items.Add(new CheckBoxEnumFlagsOptionViewModel<NewLineBeforeOpenBracePlacement>(CSharpFormattingOptions2.NewLineBeforeOpenBrace, (int)NewLineBeforeOpenBracePlacement.
Types
, CSharpVSResources.Place_open_brace_on_new_line_for_types, s_previewText, this, optionStore, newLineBeforeOpenBraceValue, s_newLinesForBracesConversions));