1 type derived from Whitespace
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.ModifiedWhitespace.cs (1)
12protected sealed class ModifiedWhitespace : Whitespace
5 instantiations of Whitespace
Microsoft.CodeAnalysis.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (5)
61spaces[i] = new Whitespace(options, space: i, elastic: false); 69whitespaces[lineIndex, indentationLevel] = new Whitespace( 93return new Whitespace(this.Options, space, elastic: true); 102return new Whitespace(this.Options, space, elastic: false); 132? new Whitespace(this.Options, lineBreaks, indentation, elastic)
14 references to Whitespace
Microsoft.CodeAnalysis.CodeStyle (14)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (12)
16private static readonly Dictionary<LineFormattingOptions, (Whitespace[] spaces, Whitespace[,] whitespaces)> s_optionsToWhitespace = []; 17private static Tuple<LineFormattingOptions, (Whitespace[] spaces, Whitespace[,] whitespaces)>? s_lastOptionAndWhitespace; 22private readonly Whitespace[] _spaces; 23private readonly Whitespace[,] _whitespaces; 35private static (Whitespace[] spaces, Whitespace[,] whitespaces) GetSpacesAndWhitespaces(LineFormattingOptions options) 49static (Whitespace[] spaces, Whitespace[,] whitespaces) ComputeAndCacheSpacesAndWhitespaces(LineFormattingOptions options) 59var spaces = new Whitespace[SpaceCacheSize]; 63var whitespaces = new Whitespace[LineBreakCacheSize, IndentationLevelCacheSize];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.ModifiedWhitespace.cs (2)
14private readonly Whitespace? _original; 22public ModifiedWhitespace(LineFormattingOptions options, Whitespace original, int lineBreaks, int indentation, bool elastic)