From 62f46bf164ffff535462862a34ca833d78df211e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jind=C5=99ich=20Iv=C3=A1nek?= Date: Mon, 8 Jun 2020 20:05:15 +0200 Subject: [PATCH] use Queue.length instead Seq.length (#901) --- src/Fantomas/Context.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fantomas/Context.fs b/src/Fantomas/Context.fs index 2e291ab8ba..9205e3fa7f 100644 --- a/src/Fantomas/Context.fs +++ b/src/Fantomas/Context.fs @@ -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