2 instantiations of LineFormattingOptions
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\LineFormattingOptions.cs (1)
14public static readonly LineFormattingOptions Default = new();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\SyntaxFormattingOptions.cs (1)
31LineFormatting = new LineFormattingOptions(options, language);
23 references to LineFormattingOptions
Microsoft.CodeAnalysis.CodeStyle (23)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.AbstractComplexTrivia.cs (1)
20public AbstractComplexTrivia(LineFormattingOptions options, TreeData treeInfo, SyntaxToken token1, SyntaxToken token2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (6)
20private static readonly Dictionary<LineFormattingOptions, (Whitespace[] spaces, Whitespace[,] whitespaces)> s_optionsToWhitespace = new(); 21private static Tuple<LineFormattingOptions, (Whitespace[] spaces, Whitespace[,] whitespaces)>? s_lastOptionAndWhitespace; 24protected readonly LineFormattingOptions Options; 29protected AbstractTriviaDataFactory(TreeData treeInfo, LineFormattingOptions options) 39private static (Whitespace[] spaces, Whitespace[,] whitespaces) GetSpacesAndWhitespaces(LineFormattingOptions options) 53static (Whitespace[] spaces, Whitespace[,] whitespaces) ComputeAndCacheSpacesAndWhitespaces(LineFormattingOptions options)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.FormattedWhitespace.cs (1)
20public FormattedWhitespace(LineFormattingOptions options, int lineBreaks, int indentation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.ModifiedWhitespace.cs (2)
18public ModifiedWhitespace(LineFormattingOptions options, int lineBreaks, int indentation, bool elastic) 24public ModifiedWhitespace(LineFormattingOptions options, Whitespace original, int lineBreaks, int indentation, bool elastic)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.Whitespace.cs (2)
24public Whitespace(LineFormattingOptions options, int space, bool elastic) 30public Whitespace(LineFormattingOptions options, int lineBreaks, int indentation, bool elastic)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TriviaData.cs (2)
21protected TriviaData(LineFormattingOptions options) 26protected LineFormattingOptions Options { get; }
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TriviaDataWithList.cs (1)
9internal abstract class TriviaDataWithList(LineFormattingOptions options) : TriviaData(options)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingOptions2.cs (4)
28"indent_style", LineFormattingOptions.Default.UseTabs, FormattingOptionGroups.IndentationAndSpacing, isEditorConfigOption: true, 33"tab_width", LineFormattingOptions.Default.TabSize, FormattingOptionGroups.IndentationAndSpacing, isEditorConfigOption: true) 37"indent_size", LineFormattingOptions.Default.IndentationSize, FormattingOptionGroups.IndentationAndSpacing, isEditorConfigOption: true) 41"end_of_line", LineFormattingOptions.Default.NewLine, FormattingOptionGroups.NewLine, isEditorConfigOption: true,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\LineFormattingOptions.cs (1)
14public static readonly LineFormattingOptions Default = new();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\SyntaxFormattingOptions.cs (2)
19[DataMember] public LineFormattingOptions LineFormatting { get; init; } = LineFormattingOptions.Default;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\OrganizeImports\OrganizeImportsOptions.cs (1)
16[DataMember] public string NewLine { get; init; } = LineFormattingOptions.Default.NewLine;