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