From 61e39f2c315eeb7f240fb07407000a2a218b213d Mon Sep 17 00:00:00 2001 From: Ilya Chernikov Date: Fri, 20 Jan 2023 16:38:56 +0100 Subject: [PATCH] minor: fix a typo leading to the wrong lines count with LT --- .../src/org/jetbrains/kotlin/fir/pipeline/buildFir.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/pipeline/buildFir.kt b/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/pipeline/buildFir.kt index 1d5cdaaf19c..0f5697580ff 100644 --- a/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/pipeline/buildFir.kt +++ b/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/pipeline/buildFir.kt @@ -32,7 +32,7 @@ fun FirSession.buildFirViaLightTree( it.readSourceFileWithMapping() } if (shouldCountLines) { - linesCount += linesMapping.lastOffset + linesCount += linesMapping.linesCount } builder.buildFirFile(code, file, linesMapping).also { firFile -> firProvider.recordFile(firFile)