2 writes to LineBreaks
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.Analyzer.cs (2)
77
result.
LineBreaks
= 1;
144
result.
LineBreaks
++;
11 references to LineBreaks
Microsoft.CodeAnalysis.CSharp.Workspaces (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.cs (11)
117
if (result.
LineBreaks
== 0 && result.Tab > 0)
121
return new ModifiedWhitespace(this.Options, result.
LineBreaks
, indentation: spaces, elastic: result.TreatAsElastic);
141
Debug.Assert(result.
LineBreaks
>= 0);
146
if (result.HasUnknownWhitespace && result.
LineBreaks
== 0 && indentation == 0)
152
return (canUseTriviaAsItIs: false, result.
LineBreaks
, indentation);
159
return (canUseTriviaAsItIs: false, result.
LineBreaks
, indentation);
162
return (canUseTriviaAsItIs: true, result.
LineBreaks
, indentation);
170
return (canUseTriviaAsItIs: false, result.
LineBreaks
, indentation);
175
return (canUseTriviaAsItIs: false, result.
LineBreaks
, indentation);
181
return (canUseTriviaAsItIs: true, result.
LineBreaks
, indentation);
186
if (result.HasTrailingSpace || result.HasUnknownWhitespace || result.
LineBreaks
> 0 || result.Tab > 0)