2 writes to LineBreaks
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.FormattedWhitespace.cs (1)
23
this.
LineBreaks
= Math.Max(0, lineBreaks);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.Whitespace.cs (1)
37
this.
LineBreaks
= lineBreaks;
11 references to LineBreaks
Microsoft.CodeAnalysis.CodeStyle (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.FormattedWhitespace.cs (1)
34
for (var i = 0; i <
LineBreaks
; i++)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.ModifiedWhitespace.cs (6)
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)
75
return new ModifiedWhitespace(this.Options, this, this.
LineBreaks
, indentation, elastic: false);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TriviaData.cs (1)
31
public bool SecondTokenIsFirstTokenOnLine { get { return this.
LineBreaks
> 0; } }