File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -419,9 +419,15 @@ let promoteNewlinesBeforeComments (trivia: TriviaNode array) : TriviaNode array
419419
420420 pendingNewlines.Add( t)
421421 | CommentOnSingleLine comment when lastPendingNewlineIsAdjacentTo t.Range.StartLine && t.Range.StartColumn > 0 ->
422- let startPos = Position.mkPos pendingNewlines.[ 0 ]. Range.StartLine t.Range.StartColumn
422+ let startPos =
423+ Position.mkPos pendingNewlines.[ 0 ]. Range.StartLine t.Range.StartColumn
424+
423425 let combinedRange = Range.mkFileIndexRange t.Range.FileIndex startPos t.Range.End
424- result.Add( TriviaNode( CommentOnSingleLineWithLeadingNewlines( pendingNewlines.Count, comment), combinedRange))
426+
427+ result.Add(
428+ TriviaNode( CommentOnSingleLineWithLeadingNewlines( pendingNewlines.Count, comment), combinedRange)
429+ )
430+
425431 pendingNewlines.Clear()
426432 | _ ->
427433 flushPendingNewlines ()
You can’t perform that action at this time.
0 commit comments