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