2 writes to Spaces
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.FormattedWhitespace.cs (1)
24
this.
Spaces
= Math.Max(0, indentation);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.Whitespace.cs (1)
38
this.
Spaces
= indentation;
17 references to Spaces
Microsoft.CodeAnalysis.CodeStyle (17)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (5)
329
previousChangesMap[currentToken.Token] = triviaInfo.
Spaces
;
331
if (previousToken.IndexInStream < 0 || triviaInfo.
Spaces
== baseSpaceOrIndentation)
453
var indentation = triviaInfo.
Spaces
+ indentationDelta;
455
if (triviaInfo.
Spaces
== indentation)
465
previousChangesMap.Add(currentToken, triviaInfo.
Spaces
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.FormattedWhitespace.cs (2)
39
builder.AppendIndentationString(
Spaces
, Options.UseTabs, Options.TabSize);
44
return new string(' ',
Spaces
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.ModifiedWhitespace.cs (4)
40
if (this.LineBreaks == _original.LineBreaks && _original.
Spaces
== space)
55
if (_original.LineBreaks == line && _original.
Spaces
== indentation)
71
if (this.LineBreaks == _original.LineBreaks && _original.
Spaces
== indentation)
86
formattingResultApplier(tokenPairIndex, context.TokenStream, new FormattedWhitespace(this.Options, this.LineBreaks, this.
Spaces
));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.Whitespace.cs (3)
49
if (this.LineBreaks == 0 && this.
Spaces
== space)
59
if (this.LineBreaks == line && this.
Spaces
== indentation)
70
if (this.
Spaces
== indentation)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.cs (3)
297
return spaces + triviaInfo.
Spaces
;
301
spaces += triviaInfo.
Spaces
;
315
return spaces + triviaDataGetter(previousToken, tokenData).
Spaces
;