Skip to content

Commit

Permalink
use Queue.length instead Seq.length (#901)
Browse files Browse the repository at this point in the history
  • Loading branch information
jindraivanek committed Jun 8, 2020
1 parent 1fa24a9 commit 62f46bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fantomas/Context.fs
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ let internal leadingExpressionLong threshold leadingExpression continuationExpre
continuationExpression (lineCountAfter > lineCountBefore || (columnAfter - columnBefore > threshold)) contextAfterLeading

let internal leadingExpressionIsMultiline leadingExpression continuationExpression (ctx: Context) =
let eventCountBeforeExpression = Seq.length ctx.WriterEvents
let eventCountBeforeExpression = Queue.length ctx.WriterEvents
let contextAfterLeading = leadingExpression ctx
let hasWriteLineEventsAfterExpression = contextAfterLeading.WriterEvents |>Seq.skip eventCountBeforeExpression |> Seq.exists (function | WriteLine _ -> true | _ -> false)
continuationExpression hasWriteLineEventsAfterExpression contextAfterLeading
Expand Down

0 comments on commit 62f46bf

Please sign in to comment.